![]() |
#196 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3
Karma: 870
Join Date: Dec 2022
Device: Pocketbook
|
Thank you so much, Markismus! You're literally my saviour, the dictionary works fully! My gratitude is immense! I'm not a tech material but I made a vain attempt to covert that file and I nearly lost hope. I tapped random korean words and they were searched and translated instantly with your file. More million thanks :-)
|
![]() |
![]() |
![]() |
#197 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 898
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@AvijitBis The dictionary is converted. However, it is a glorious html mess. It seems to be the furthest I am willing to stretch the code. It's on pCloud.
|
![]() |
![]() |
Advert | |
|
![]() |
#198 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2022
Device: Pocketbook inkpad 3 pro
|
Quote:
https://www.dropbox.com/s/29fulcrpv5...ocido.azw?dl=0 Thankyou! |
|
![]() |
![]() |
![]() |
#199 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2023
Device: none
|
Dear Markismus
I would also like to ask for a help with a conversion of DE-EN dictionary from MOBI to Stardict format (allegedly natively understood by ONYX BOOX when placed properly into file structure) as I failed converting myself. https://anonfiles.com/bcWdSdT9y3/German-English_mobi Thank you in advance. |
![]() |
![]() |
![]() |
#200 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2022
Device: Pocketbook inkpad 3 pro
|
Quote:
Here is how Calibre keep it in the librery: https://www.dropbox.com/s/29fulcrpv5...ocido.azw?dl=0 |
|
![]() |
![]() |
Advert | |
|
![]() |
#201 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 898
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@Vi42per Nice! I already converted the EN-DE from the same publisher. This one doesn't convert, though. That one was probably an older version. Odd that you have a mobi-format from 2016. Seems Kindle was using azw-format by then.
@Mandelgado58 This file is also a mess. ![]() Last edited by Markismus; 01-31-2023 at 03:36 PM. |
![]() |
![]() |
![]() |
#202 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
Hi!
How to add language information to xdxf so convert.exe see it correctly? Currently my dictionary (cc-sjp.zabałaganionemiejsce.pl) is listed as 'other'. See ![]() Best regards! |
![]() |
![]() |
![]() |
#203 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 130
Karma: 546310
Join Date: Jun 2011
Device: PocketBook Touch HD, PocketBook Era
|
I think that language grouping is hardwired for factory dicts. User dicts always appear under Other.
In my experience convert.exe ignores XDXF lang_from and lang_to fields, only reads the dictionary name field. |
![]() |
![]() |
![]() |
#204 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 11014
Join Date: Feb 2023
Device: Kobo Aura SE
|
Quote:
|
|
![]() |
![]() |
![]() |
#205 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2500000
Join Date: Apr 2021
Device: Kindle Paperwhite 5 SE
|
Quote:
But there is a dictionary, actually what I needed most, which I can't convert to .xml. The command I use at the prompt is this: Code:
mobi2stardict.py --html-file "book.html" --fix-links --dict-name "Grande Dicionário de Português" --author "Porto Editora" --textual --chunked Code:
Traceback (most recent call last): File "D:\Downloads\mobi2stardict\mobi2stardict.py", line 160, in <module> convert(args.html_file, args.dict_name, args.author, args.fix_links, args.gls, args.textual, args.chunked) File "D:\Downloads\mobi2stardict\mobi2stardict.py", line 115, in convert key = ET.SubElement(article, "key").text = entry.HW ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src\lxml\etree.pyx", line 1042, in lxml.etree._Element.text.__set__ File "src\lxml\apihelpers.pxi", line 748, in lxml.etree._setNodeText File "src\lxml\apihelpers.pxi", line 736, in lxml.etree._createTextNode File "src\lxml\apihelpers.pxi", line 1541, in lxml.etree._utf8 ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters To install BeautifulSoup and lxml I used the commands "pip install beautifulsoup4" and "pip install lxml". The Python version I'm using is 3.11.2. Could you help me figure out what I'm doing wrong? |
|
![]() |
![]() |
![]() |
#206 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 11014
Join Date: Feb 2023
Device: Kobo Aura SE
|
Quote:
Open gls file via vscode, look for control chars. such as Code:
BEL Code:
ACK Code:
BEL Code:
ll Code:
ACK Code:
ch |
|
![]() |
![]() |
![]() |
#207 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2500000
Join Date: Apr 2021
Device: Kindle Paperwhite 5 SE
|
Sorry, do I have to put \p{C} here?
Last edited by DenS; 03-12-2023 at 01:06 AM. |
![]() |
![]() |
![]() |
#208 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 11014
Join Date: Feb 2023
Device: Kobo Aura SE
|
|
![]() |
![]() |
![]() |
#209 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2500000
Join Date: Apr 2021
Device: Kindle Paperwhite 5 SE
|
|
![]() |
![]() |
![]() |
#210 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 11014
Join Date: Feb 2023
Device: Kobo Aura SE
|
I think there might be a problem with KindleUnpack because when unpacked via mobitool, the whole process completed without problem. I'm attaching the Windows mobitool binaries if you want to try it yourself.(Use at your own risk!)
Code:
mobitool -s filename.mobi |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pocketbook dictionary | logan | PocketBook | 322 | 03-05-2024 09:48 AM |
Dictionary coversion from .mobi to pocketbook format? | doctorat | PocketBook | 16 | 07-01-2020 05:34 PM |
Webster's 1913 Dictionary in Pocketbook Format | luqmaninbmore | PocketBook | 8 | 05-27-2020 10:41 AM |
SW>EN Dictionary for Pocketbook | tttrine | PocketBook | 3 | 06-09-2015 06:01 AM |