View Single Post
Old 09-14-2020, 10:37 AM   #51
Photonoxx
Junior Member
Photonoxx began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2020
Device: Vivlio Touch HD plus=PocketBook touch HD 3=P632
Hi,

As I am on Ubuntu 20.04, Linguae or Stardict tools are no more available. So I guess your script can't works in this situation.

I test Koreader on my PB632 with vivlio (french vendor of Pocketbook device), but it was terribly slow for some things (pinch to zoom for example takes many second to refresh display) and was not usable (may be linked to the vivlio FW ?).

I tried to convert a Stardict dictionary I have (Larousse Chambers eng-fra) with penelope, but I get a failure when it try to output xml file (it works with csv output), may be I missed an argument ?

Code:
penelope -d -i Larousse_Chambers_francais_anglais.zip -j stardict -f en -t fr -p xml -o Larousse_Chambers_francais_anglais.xml
[DEBU] Running with the command line arguments:
Namespace(apply_css=None, author='Penelope', bookeen_collation_function=None, bookeen_install_file=False, copyright='GNU GPL v3', cover_path=None, csv_fs=',', csv_ignore_first_line=False, csv_ls='\n', debug=True, description='Dictionary en to fr', dictzip_path=None, email='penelopedictionaryconverter@gmail.com', epub_no_compress=False, escape_strings=False, flatten_synonyms=False, group_by_prefix_function=None, group_by_prefix_length=2, group_by_prefix_merge_across_first=False, group_by_prefix_merge_min_size=0, identifier='c3925750f315433d81e1240cc50955e3', ignore_case=False, ignore_synonyms=False, include_index_page=False, input_file='Larousse_Chambers_francais_anglais.zip', input_file_encoding='utf-8', input_format='stardict', input_parser=None, keep=False, kindlegen_path=None, language_from='en', language_to='fr', license='GNU GPL v3', marisa_bin_path=None, marisa_index_size=1000000, merge_definitions=False, merge_separator=' | ', mobi_no_kindlegen=False, no_definitions=False, output_file='Larousse_Chambers_francais_anglais.xml', output_format='xml', sd_ignore_sametypesequence=False, sd_no_dictzip=False, sort_after=False, sort_before=False, sort_by_definition=False, sort_by_headword=False, sort_ignore_case=False, sort_reverse=False, title='Dictionary en to fr', version=False, website='https://goo.gl/EB5XSR', year='2020')
[INFO] Reading input file(s)...
[DEBU] Reading from file 'Larousse_Chambers_francais_anglais.zip'...
[DEBU] Working in temp dir '/tmp/tmpy26_xpeo'
[DEBU] Extracted /tmp/tmpy26_xpeo/d.ifo
[DEBU] Extracted /tmp/tmpy26_xpeo/d.idx
[DEBU] Extracted /tmp/tmpy26_xpeo/d.dict.dz
[DEBU] Uncompressed /tmp/tmpy26_xpeo/d.dict
[DEBU] Extracted /tmp/tmpy26_xpeo/d.syn
[DEBU] Read .ifo file with values:
{'version': '2.4.2', 'wordcount': 48978, 'synwordcount': 275022, 'idxfilesize': 999773, 'bookname': 'Larousse Chambers français-anglais', 'author': 'Informatique Editoriale Larousse', 'email': 'linguistic-support@babylon.com', 'description': 'Le plus pédagogique et le plus accessible des grands dictionnaires, dans une nouvelle édition moderne et complète : 250 000 mots et expressions, 450 000 traductions, le vocabulaire spécialisé le plus récent.', 'sametypesequence': 'h'}
[DEBU] The input StarDict file contains a .syn file, parsing it...
[DEBU] The input StarDict file contains a .syn file, parsing it... done
[DEBU] Deleted temp dir '/tmp/tmpy26_xpeo'
[DEBU] Reading from file 'Larousse_Chambers_francais_anglais.zip'... success
[INFO] Reading input file(s)... done
[INFO] Writing output file(s)...
[DEBU] Creating XML tree...
[ERRO] Writing to file 'Larousse_Chambers_francais_anglais.xml'... failure
[ERRO] Unable to write the output file(s)
Additionally, PyGlossary don't manage to write xdxf file, so I don't know what to do now.

So if anybody had an idea or could help me, it would be very appreciated.

Thanks in advance and the hell of proprietary and undocumented file's formats….

Nicolas
Photonoxx is offline   Reply With Quote