View Single Post
Old 11-24-2015, 09:00 PM   #145
Simpetus
Enthusiast
Simpetus began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2015
Device: Kobo Aura H2O
Quote:
Originally Posted by AlPe View Post
I have no idea. Kobo has not published official documentation, so it is impossible to tell for sure.

What I can say is that I tried ~50MB dictionaries on my Kobo Glo, and they worked.

AFAICT, Kobo software loads only the index file into memory (called "words" --- it uses a very efficient data structure, called MARISA trie; its size only depends on the number of words in your dictionaries, not the size/length of the definitions), while it unpacks only the relevant definition file ??.html when the lookup in the index succeeds for the word selected by the user via the UI.

My suggestion is: build your dictionary and see what happens.
Got it. Big thanks for quick reply. I tried to convert dict format to kobo's, the process seems good at the start, but then I come up with that:

Code:
C:\Penelope>penelope.py -p zho_rus -f zho -t rus --output-kobo
[INFO] Input dictionary has sequence type 'x'.
[INFO] Starting conversion with the following parameters:

[INFO] Dictionary file: dicthtml-zho-rus
[INFO] Index file:      words
[INFO] Language from:   zho
[INFO] Language to:     rus
[INFO] License:         GNU GPL 3
[INFO] Copyright:       GNU GPL 3
[INFO] Title:           Dictionary zho -> rus
[INFO] Description:     Dictionary zho -> rus
[INFO] Year:            2012

[INFO] Reading input dictionaries...
[INFO] Parsing the input data...
[INFO] Using the built-in parser...
[INFO] Outputting in Kobo format to file...
[INFO] Creating compressed index file words...
Traceback (most recent call last):
  File "C:\Penelope\penelope.py", line 2093, in <module>
    main()
  File "C:\Penelope\penelope.py", line 2069, in main
    write_to_kobo_format(config, parsed_data, debug)
  File "C:\Penelope\penelope.py", line 1218, in write_to_kobo_format
    p = subprocess.Popen([MARISA_BUILD_PATH, "-l", "-o", index_filename], stdout
=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 672, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

C:\Penelope>
I am using:

Penelope 1.20
Python 2.7.0

What went wrong here and how to fix it?
Thanks.
Simpetus is offline   Reply With Quote