Hi,
I converted the french wiktionary from this GitHub project:
https://github.com/BoboTiG/ebook-reader-dictThis project extract every day dictionaries from Wiktionary in several languages. So, the work I made could easiliy be done for other language too.
The french version I made is base on the 28th of January 2021. It contains more than
1.5 millions word !
It is downloadable here:
https://gofile.io/d/a27MMkThe .dic file must be copied into the "system\dictionaries" folder of your Pocketbook reader. (Note: the "System" folder is hidden)
Any comment and suggestion is welcomed !
------------------
If you want to make the convertion yourself, here are the steps to proceed:
# 1 ## Download the woktionary in the Stardict format:
https://github.com/BoboTiG/ebook-reader-dictI used the french version:
https://github.com/BoboTiG/ebook-reader-dict/releases/tag/fr# 2 ## Convert the Stardict files to a XDXF file using Linguae 0.15.
Download Linguae here:
https://linguae.stalikez.info/# 3 ## Proceed to some cleanup of the XDXF with the "sed" tools:
1) Change the dictionary name : "Wiktionnaire"
2) Remove colors codes not needed on reader : #([0-9a-fA-F]){6}
3) Add "\n" after each </li> : this truncates long lines to avoid crash of the Pocketbook converter (step 4)
4) Add "#" at the beginning of definitions : a matter of look and lisibility. Change to whatever you like...
5) For french wiktionary, remove <i>(Date à préciser)</i> : this text is useless for readers. Change the text to your language.
I used this light and standalone sed for windows:
https://raw.githubusercontent.com/mbuilov/sed-windows/master/sed-4.8-x64.exeand used this command:
sed -e "s/<full_name>.*<\/full_name>/<full_name>Wiktionnaire<\/full_name>/" -e "s/\(<\/li>\)/\1\n/g" -e "s/#\([0-9a-fA-F]\)\{6\}//g" -e "s/<li>/<li># /g" -e "s/<i>(Date .* pr.*ciser)<\/i>//g" dict.xdxf >Wiktionnaire.xdxf
# 4 ## Convert to Pocketbook format:
The official converter can be downloader here:
https://support.pocketbook-int.com/dictionaries/u/DictionaryConverter.zipThis version includes only few "locales" files. The "fr" local was not included.
These locales are available in an older version in this post:
https://www.mobileread.com/forums/sh...06&postcount=4The file is here:
https://www.mobileread.com/forums/at...4&d=1435862948I used this patched version of the converter which avoid crash with long XDXF content:
https://www.mobileread.com/forums/sh...82&postcount=4To convert the file from XDXF to Pocketbook format:
converter Wiktionnaire.xdxf fr
=> Create: Wiktionnaire.dic
That’s great, thanks for the work. Any idea if the dic could work with Koreader ?
Quote ploum
Thats great, thanks for the work. Any idea if the dic could work with Koreader ?
I guess you could say that. Since KoReader uses Stardict file format, I'm sure you can find a link in the first post of the thread
Hi,
I packed a bundle of the tools required to convert dictionaries without the need of Linguae (I use a modified version of the Penelope tools instead). So, the convertion process can now be fully automated.
See my post in the developper corner:
https://www.mobileread.com/forums/sh...7&postcount=76Note: this bundle also include also the Wiktionary (fr) and an adapted version of the Nouveau Littré.
Hi folks,
I came too late -> The "wiktionnaire" file is NOT available anymore.
I have already sent a message to InMyPocket and maybe he will help me BUT
someone could also upload it again....
Thanks anyway!
Have a nice day
Same here, seems to be that InMyPocket went missing. Tried to contact her/him too. No responce.
Quote nhedgehog
Same here, seems to be that InMyPocket went missing. Tried to contact her/him too. No responce.
- Thank you, but maybe he's just busy. So I will will wait, but if no help is coming, we will have to find another way.
For me it's just that I am too busy right now to learn how to do the work myself. InMyPocket even described, how he created the dictionary.
Have a nice day!
Hope InMyPocket is well, I do have a backup of the aformentioned Penelope hack and a Windows Sed version, hope that helps.
Quote nhedgehog
Hope InMyPocket is well, I do have a backup of the aformentioned Penelope hack and a Windows Sed version, hope that helps.
Dear nhedgehog, thank you for uploading the tools, but quite frankly I will be busy for some time.
Have a nice evening!
Quote nhedgehog
Hope InMyPocket is well
Yes, I'm well, thanks ! I was just disconnected for some days...
All files can be found
here.
There many Wiktionaries in there (I génerated a German version for you) and several multilanguage version. e.g: An FR_EN_NL version or a ES_PT_PL version. See discussion in the developper corner for more details.
The WiktDict_XXXX files were generated with a all new program I made to convert dbnary files to xdxf. I also uploaded that tool: dbnary2xdxf.py
To use it python must be installed on your computer. Then start:
Quote
dbnary2xdxf.py the_dbnary_ontolex_file lang_from lang_to [lang_to2...] > dest_file.xdxf
Rem:
Then convert the xdxf file with the PocketBook converter (included PBConvertTools.zip) :
Quote
converter dest_file.xdxf language_code
Enjoy !