|
|
#16 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 8430
Join Date: Mar 2016
Device: PW3, Clara HD, PB740
|
Maybe override the Dictionary.app executable with your own program, but you'd have to implement how it interacts with the rest of the framework
Code:
//! \defgroup Dictionary Dictionary functions
//! \{
// Dictionary functions
char **EnumDictionaries();
int OpenDictionary(const char *name);
void CloseDictionary();
int LookupWord(const char *what, char **word, char **trans);
int LookupWordExact(const char *what, char **word, char **trans);
int LookupPrevious(char **word, char **trans);
int LookupNext(char **word, char **trans);
//! \brief GetWordListWithPrefix get up to maxWords words with given prefix from current dictionary.
//! Function is not reentrant
//! \param prefix - prefix to find words (in utf-8)
//! \param maxWords - maximum words to find (should not be > 255)
//! \param wordList - resulting list of words (in utf-8), caller should not free the list
//! \return number of words found or 0 on error
int GetWordListWithPrefix(const char *prefix_utf8, int maxWords, char ***wordList);
void OpenDictionaryView(iv_wlist *wordlist, const char *dicname);
void OpenControlledDictionaryView(pointer_to_word_hand_t pointer_handler, iv_wlist *wordlist, const char *dicname);
void OpenFastTranslation(pointer_to_word_hand_t pointer_handler, iv_wlist *wordlist, int pos, const char *dicname);
//! \}
It's sad, but the built-in app is lacking (navigating between multiple entries for the same word, for instance) |
|
|
|
|
|
#17 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 963
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
I already hate that you can't lookup words from the dictionary by tapping/holding them. If that was possible, I could chain the definitions that way. Last edited by Markismus; 12-04-2019 at 03:55 PM. |
|
|
|
|
|
|
#18 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 156515
Join Date: Oct 2019
Device: KT, KPW4, PB740-2
|
https://github.com/koreader/koreader...ionary-support
Seriously, ditch the internal dictionary in the long term. koreader supports stardict directly. I think best would be just hack koreader to pose as Dictionary.app too, the script invoking its dictionary lookup dialog routine directly even w/o book opened. |
|
|
|
|
|
#19 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 963
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
@ezdiy I adapted the script towards Stardict the last week and towards Koreader, today. The result is beautiful! I finally got html-support for Stardict working as I liked.
The Stardict Oxford English Dictionary 2nd Ed. is now well aligned and in color/gray-scale. Last edited by Markismus; 11-14-2020 at 07:11 AM. |
|
|
|
|
|
#20 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 614
Join Date: Apr 2020
Device: Pocketbook
|
Hi
![]() Could you please try to convert this greek-english dictionary to .dic format? I've looked for a ready one everywhere, but unfortunately I can't find one. I found the dictionary here: https://www.babylon-software.com/fre...ish/58402.html I would be eternally grateful for your help, trying to do this by myself has honestly driven me a little insane. Thank you so much in advance
|
|
|
|
|
|
#21 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 963
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
@In-Feara
I've put it through pyglossary to transform it into Stardict-format. After that I put that through the script to generate xdxf-format and pocketbook dic-format. The results are here. I can't test it anymore, since my Pocketbook went back to Amazon.de. I haven't found configuration files for the Greek language, so morphemes and keyboard are for english. (So it could be hard to manually input search terms and it won't recognize conjugations.) Still, I hope it is useful. Let me know! Last edited by Markismus; 04-18-2020 at 06:50 AM. Reason: Updated url |
|
|
|
|
|
#22 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 614
Join Date: Apr 2020
Device: Pocketbook
|
@Markismus
It works with the Greek keyboard, so inputting conjugations isn't much of a problem It works like a charm, thank you so much!
|
|
|
|
|
|
#23 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 182076
Join Date: Aug 2017
Device: Kobo Libra 2
|
Does anyone know where I can get the stardict-editor for Windows? It's not bundled with Stardict and can't find it through my internet searches…
|
|
|
|
|
|
#24 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 803
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Found 3 versions in the depths of my harddrive. Have fun.
(PS: Since 7z files are not accepted here I had to zip my 7zip archive)
|
|
|
|
|
|
#25 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 182076
Join Date: Aug 2017
Device: Kobo Libra 2
|
|
|
|
|
|
|
#26 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 134
Karma: 546310
Join Date: Jun 2011
Device: PocketBook Touch HD, PocketBook Era
|
Last version for Windows:
https://github.com/lpdevs/free-dicti...t-editor-3.0.1 For Linux its name is StarDict Tools. |
|
|
|
|
|
#27 | ||
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Quote:
I tried to convert the xdxf of Duden to stardict with pyglossary, but it fails Quote:
|
||
|
|
|
|
|
#28 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 963
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
I've uploaded the result to the same place. |
|
|
|
|
|
|
#29 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Thank you very much!!
|
|
|
|
|
|
#30 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 963
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
I've tweaked the script a bit. Apparently, it stumbled over some unknown tags and didn't convert '&' when it was in the <key>-tag.
The resulting PONS EN-DE dictionary with 110k entries is uploaded at the same place. and seems ok. However, let me know if further testing reveals conversion errors. |
|
|
|
![]() |
|
Similar Threads
|
||||
| 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 |