Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:03 AM   #1
galax
Enthusiast
galax began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Sep 2023
Device: none
Help creating dictionary from scratch with Pglossary.

I am trying to create a dictionary in stardict format from clean slate with pyglossary.

The easy part is converting a .tab file to .ifo, this creates the three files of stardic
t dictionary:

Code:
mydictionary.dict
mydictionary.idx
mydictionary.ifo
Some question regarding these steps, is a pyglossary created dictionary comformant with
koreader stardict engine?

Are there any steps required to sort dictonary entries as I add them?

I am aware that stardict needs some sort of strict order.

Pyglossary has also three more stardict formats:

StardictMergeSyns
StardictTextual


But no mention on how to use these.

And lastlyo, is it possible to use images in koreader dictionary pop up? Stardict got an
option to add audio and images resources.

I'd like to include images into the dictionary entries.

Thanks in advanced.
galax is offline   Reply With Quote
Old Today, 04:13 PM   #2
nezih
Connoisseur
nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.
 
nezih's Avatar
 
Posts: 53
Karma: 14828
Join Date: Feb 2023
Device: Boox Page, Kobo Aura SE
You can check conformance with the official Stardict-Editor, see the screenshot.

In python, you can sort your entries with
Code:
entries.sort(key=lambda x: (x.headword.encode("utf-8").lower(), x.headword))
it produces the same results as StarDict's own
Code:
stardict_strcmp()


KOReader's dictionary viewer can display images, just make sure to point to the filename and not to the full path. Example for adding sound (or any data file) files.
Attached Thumbnails
Click image for larger version

Name:	Ekran görüntüsü 2026-10-10 224237.png
Views:	2
Size:	125.8 KB
ID:	226566  
nezih is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating dictionary donMaranzano Conversion 6 05-31-2013 04:09 PM
Creating an ePub from scratch miquele Workshop 4 10-04-2012 03:54 AM
Creating Dictionary in Epub Krystl Workshop 8 04-13-2012 09:58 AM
create dictionary from scratch Gianni Amazon Kindle 0 05-26-2011 08:29 AM
creating dictionary from pdf dictionary fiaz Workshop 0 05-15-2011 12:40 PM


All times are GMT -4. The time now is 04:54 PM.


MobileRead.com is a privately owned, operated and funded community.