Thứ Sáu, 15 tháng 5, 2015

Convert Babylon BLG to Stardict IFO dictionaries



If you use the excellent QDict for Android, which is capable of modal windows (unlike, say GoldenDict, which in turn can read many dictionary formats), then you may be in need for more dictionaries than Google allows.
Here's how to quickly convert Babylon BLG dictionary files to the Stardict, aka IFO, aka QDict format in Windows. 
  • Download a BLG dictionary file itself, from the Babylon site, or e.g. from a torrent here. (We will use Spanish-English Dictionary (Granada University, Spain), 13.5 dictionary file below, saved to C:\Temp\Babylon stardict files\)
  • Download and install Python 2.* to C:\Program Files\Python27\ (Important: Python 3.* is not compatible with the script, as of yet). In MacOSX or Linux has available.
  • Download PyGlossary 2011 from the PyGlossary site to e.g. C:\Temp\Babylon stardict files\pyglossary_2011\. (Important: the older versions seem not do not produce Stardict compatible files)
  • Here's the trick. Do not run its otherwise nice GUI. Run a DOS command instead: 
  • "C:\Program Files\Python27\python.exe" "C:\Temp\Babylon stardict files\pyglossary-2011.06.16\src\pyglossary.pyw" "C:\Temp\Babylon stardict files\A Spanish-English Dictionary (Granada University, Spain).BGL" "C:\Temp\Babylon stardict files\A Spanish-English Dictionary (Granada University, Spain).ifo"
  •  You should see:
  • Reading file "C:\Temp\Babylon stardict files\A Spanish-English Dictionary (Granada University, Spain).BGL"
    numEntries = 80289
    defaultCharset = cp1252
    sourceCharset = cp1252
    targetCharset = cp1252
    defaultEncoding = cp1252
    sourceEncoding = cp1252
    targetEncoding = cp1252
    sourceLang = Spanish
    targetLang = English
    creationTime = 2006/12/12, 09:22
    middleUpdated = 2010/02/23, 07:54
    lastUpdated = 2010/02/23, 07:54
    title = A Spanish-English Dictionary (Granada University, Spain), 10.2
    author = Tony
    email = alozano@ugr.es
    copyright =
    description = This is a compilation of terminology in the social sciences that students and professionals generally encounter when reading professional literature with a particular emphasis on information organisation and retrieval. Last update February 2010. (http://eubd1.ugr.es)
    Loading: |Ôľł                                               /  2.5% ETA: 00:00:3
    Loading: |ÔľłÔľł                                              -  5.0% ETA: 00:02
    Loading: |ÔľłÔľłÔľł                                             \  7.5% ETA: 00:
    Loading: |ÔľłÔľłÔľłÔľł                                            | 10.0% ETA: 0
    Loading: |ÔľłÔľłÔľłÔľłÔľł                                           / 12.5% ETA:
    Loading: |ÔľłÔľłÔľłÔľłÔľłÔľłÔľł                                         - 14.9%
     etc.
    • Be patient! The script seems to get stuck on:
  • Writing to file "c:\temp\A Spanish-English Dictionary (Granada University, Spain).ifo"
    filename=c:\temp\A Spanish-English Dictionary (Granada University, Spain).ifo
    but after about a dozen of minutes it terminates with:
  • Done
    and returns to the command prompt.
  • You should get:
Copy these to the /sdcard/QDict/dicts/ directory on your Android and run QDict.

Last version pyglossary: 2011.06.1 has fixed target charset to utf-8 with vietnamese.


Thứ Tư, 13 tháng 5, 2015

QDict User Guide



This is an open source Android dictionary application which support 'stardict' format dictionaries.

The only dictionary you need for all purpose. There is no word you can't find
- You can use QDict as a dictionary tool, it support all the 'stardict' format dictionaries.
- QDict support 3 type ways to search:  'Glob-style pattern matching',  'Fuzzy query' and 'Full-text' search.
There must be a SD card (or other external memory) on your phone to store 'stardict' format dictionary files and some other data files which will be used by this application.
* We have a huge list of dictionaries which can meet the needs of any language learner.
*There are near 1000 different kind of 'stardict' dictionaries on the link (bellow)
If you can't download the dictionaries from that website, you can contact with me.

Guide 
- You need to download dictionaries at bellow link.
- Manual install dictionary:
+ QDict support fully stardict format. Download file and extract to .idx, .dict files into a folder.
+ Rename folder to dict name. EX : en_vi folder contains file en_vi.idx and en_vi.dict
+ Note : file name only: a,b,..,y,z;0,1...8,9,_ and non space between.
+ Copy folder to sdcard/QDict/dicts (Path display in settings).
* How to push dictionary:
+ Using an FTPServer application - if you do not want connect PC. (Ex: Mini-FTPServer - You an find in play store).
+ Using 'adb' command.
+ Window Explorer ( in window).
* Other app:
+ GoogleVoice (GoogleQuickSearch)
You can find in Play Store
Note: You can find many dictionary for download here: Dropbox , Onedrive and Sourceforge.
Text-to-Speech other apps:

Tags: universal dictionary application, download-update dictionary

Tiếng Việt

Là từ điển duy nhất hỗ trợ cho bạn với tất cả các mục đich. Không có từ mà bạn không thể tìm thấy
- Bạn có thể sử dụng từ điển QDict như một công cụ, nó hỗ trợ tất cả các định dạng từ điển 'stardict' trên máy tính.
- QDict có hỗ trợ 3 kiểu tìm kiếm: 'Tìm kiếm theo mẫu', 'Truy vấn Fuzzy' và Tìm kiếm 'Full-text'.
Bạn cần có một thẻ nhớ (hoặc bộ nhớ trong) trên điện thoại của bạn để lưu trữ tập tin định dạng từ điển 'stardict' và một số tập tin dữ liệu khác sẽ được sử dụng bởi ứng dụng này.
* Chúng tôi có một danh sách rất lớn của các từ điển mà có thể đáp ứng nhu cầu của bất kỳ người học ngoại ngữ nào.
* Có gần 1.000 loại khác nhau của 'stardict' từ điển vào liên kết (liên kết dưới đây)
Nếu bạn không thể tải về từ điển từ trang địa chỉ đó, bạn có thể liên hệ với tôi.

Hướng dẫn
  • Bạn cần tải dữ liệu từ điển ở các link dưới.
  • Cài đặt từ điển bằng tay:
    1. QDict sử dụng dữ liệu từ điển Stardict. Bạn tải về rồi giải nén tạo ra các file .idx, .dict files
    2. Đổi tên thư mục và các file vừa giải nén thành tên từ điển. Ví dụ : thư mục en_vi chứa file en_vi.idx và en_vi.dict có thể gồm các dữ liệu khác.
    3. Chú ý : tên file chỉ bao gồm các ký tự a,b,..,y,z;0,1...8,9, và không chứa dấu cách.
    4. Copy các thư mục chứa dữ liệu từ điển vào thư mục sdcard/QDict/dicts.
Ghi chú: Bạn có thể tìm thấy rất nhiều từ điển để tải về tại đây: DropboxOnedrive  và Sourceforge và xem hướng dẫn trên để cài đặt.