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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2025, 09:42 AM   #1
febalci
Junior Member
febalci began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2019
Device: none
HOWTO: Create a Dictionary/Fictionary for KOBO or koreader

Started to read Malazan series on KOBO Libra Colour, and i immediately faced the problem of the excessive number of characters in the book; and since i am old, i had trouble remembering the character names. So i heard about this Fictionary; which ias basically a dictionary, and when you press and hold the name on kobo, it will show you who this guy is...


I had the very same problem on Game of Thrones and The Wheel of Time Series. Wheel of Time has a whole chapter at the end, showing Who is Who? in the book...

Since my book version is in Turkish, The Fictionary dictionaries din't helped me. So i learned how to prepare dictionaries for KOBO, and when i later continued on koreader; i also learned to make Stardict dictionaries. You can find details on:

https://github.com/febalci/KOBO-Fictionary-Utilities.

KOBO Dictionary
  1. Install dictgen (https://github.com/pgaskin/dictutil)
  2. Create a .txt file with the extension .df
  3. Define characters or words here:
    Simple Sample:

    Code:
    @ word
    Definition here.
    @ word 1
    Definition 1 here.
    @ test
    Blah blah blah.

    Another Sample:

    Code:
    @ Hannan
    & Mosag
    : , Hannan Mosag
    Altı Kabile Konfederasyonu'nun Bağcı Kralı\
    Tiste Edurlar
    @ Theradas
    : , Theradas Buhn
    Buhn Soyu'nun Büyük Oğlu\
    Tiste Edurlar

    # Dictfile reference for dictgen
    Code:
        @ HEADWORD: Start a new entry. The headword doesn’t have to be unique, and can contain spaces.
            Header
                : WORD_INFO or :: (optional): Add extra word info after the headword, or remove it entirely.
                & VARIANT (optional): Add an additional word to match. Follows the same rules as the headword. Can be repeated multiple times.
            Body
                MARKDOWN or <html> RAW_HTML: Include a definition written in Markdown or raw HTML code.
  4. Code:
    $dictgen mydictionary.df
  5. It creates a dicthtml-mydictionary.zip file.
  6. Copy this file to KOBOeReader/.kobo/custom-dictionary folder.

koreader dictionary
# koreader uses Stardict dictionary only.
  1. Install pyglossary (https://github.com/ilius/pyglossary)
  2. Create a .TXT file with the extension .txt
  3. Define characters or words here:
    Sample:
    Code:
    Tomad	<b>Tomad Sengar</b><br>Sengar Soyu'nun patriği<br><i>Tiste Edurlar</i>
    Uruth[TAB]Sengar Soyu'nun matronu<br><i>Tiste Edurlar</i>
    Korku[TAB](Fear)<br>Sengar, Büyük Oğul, Kabilelerin Silah Ustası<br><i>Tiste Edurlar</i>
    Trull[TAB]<b>Trull Sengar</b><br>İkinci Oğul<br><i>Tiste Edurlar</i>
    Binadas[TAB]<b>Binadas Sengar</b><br>Üçüncü Oğul<br><i>Tiste Edurlar</i>
    Rhulad	<b>Rhulad Sengar</b><br>Dördüncü ve En Küçük Oğul<br><i>Tiste Edurlar</i>
    # Press tab key instead of [TAB]. Make sure your editor does not change tabs to spaces
    # You can use html codes in work explanations
  4. Code:
    $pyglossary mydictionary.txt ./mydictionary --sort --write-format=StardictMergeSyns
  5. Your dictionary is ready. But most probably you will need a synonyms file too.
  6. Create a synonyms.txt file
  7. Optionally, define synonyms in this file:

    Sample:
    Code:
    Tomad Sengar[TAB]Tomad
    Trull Sengar[TAB]Trull
    Binadas Sengar[TAB]Binadas
    Rhulad Sengar[TAB]Rhulad
    Sengar[TAB]Tomad
    Sengar[TAB]Trull
    Sengar[TAB]Rhulad
    # Press tab key instead of [TAB]. Make sure your editor does not change tabs to spaces
    # Right side after [TAB] should match one of the words in mydictionary.txt file
  8. Execute syncreate.py file. This will create .syn file.
    Code:
    $python3 syncreate.py mydictionary synonyms.txt
  9. Copy all mydictionary(.idx, .ifo, .dict.dz and optionally .syn) files to /KOBOeReader/.adds/koreader/data/dict/mydictionary/ folder.
febalci is offline   Reply With Quote
Old 05-09-2025, 05:43 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,316
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
A general question on custom dictionaries.

In the standard Kobo English (OED) dictionary, the definition of a word includes the text "Oxford Dictionary of English..." at the end of each definition. Is there any way to add a similar field to custom dictionaries to aid in identifying which custom dictionary it is.

Additionally are there best practices / suggestions for how to name the dicthtml.zip files on the Kobo? I've tried naming them things like dicthtml-Manwe-v5.zip and while this does work, its not that clean looking in the dictionary view.
PeterT is offline   Reply With Quote
Old 05-09-2025, 06:08 PM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by PeterT View Post
In the standard Kobo English (OED) dictionary, the definition of a word includes the text "Oxford Dictionary of English..." at the end of each definition. Is there any way to add a similar field to custom dictionaries to aid in identifying which custom dictionary it is.
If you have the WinRar utility it's very easy.
  • Open the dictionary .zip with WinRar (but don't unpack it) and choose 'Comment' from the main toolbar.
  • Enter any text string you like in the 'Comment' tab
jackie_w is offline   Reply With Quote
Old 05-11-2025, 12:10 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,316
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
That was FAR simpler than I expected. In fact, no need to use Winrar; on linux the command line zip tool can add comments using the -z switch.
PeterT is offline   Reply With Quote
Old 05-11-2025, 01:15 PM   #5
Number9
Dude
Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.
 
Number9's Avatar
 
Posts: 206
Karma: 2184130
Join Date: Feb 2014
Location: Dobbstown
Device: Kobo Aura One; Kobo Aura H2o; Sony Reader PRS-T3
Quote:
Originally Posted by PeterT View Post
A general question on custom dictionaries.




Additionally are there best practices / suggestions for how to name the dicthtml.zip files on the Kobo? I've tried naming them things like dicthtml-Manwe-v5.zip and while this does work, its not that clean looking in the dictionary view.
This, I'd like to know as well.
Number9 is offline   Reply With Quote
Old 05-11-2025, 02:01 PM   #6
febalci
Junior Member
febalci began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2019
Device: none
With the latest Kobo firmware, it only recognizes ISO country codes, like dicthtml-en-es.zip and nothing else. There seems to be a way to alter it explained in https://www.mobileread.com/forums/sh...20&postcount=1 but i never tried.
febalci is offline   Reply With Quote
Reply

Tags
dictionary, fictionary, kobo, koreader

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a kindle dictionary to work with koreader on Kobo? Thorns KOReader 6 10-19-2024 03:07 AM
Adding custom dictionary (fictionary) to Tolino Vision 6? ReaderGuy42 Tolino 1 06-25-2023 03:52 PM
Is there a way to use Kobo dictionary in KOreader? SleepyCatgirl Kobo Reader 3 06-06-2021 10:52 AM
[HOWTO] Create your own native development environment on your Kobo! NiMa Kobo Developer's Corner 51 03-31-2021 05:25 AM
KOReader Dictionary Not Working On Kobo Aura One nasser KOReader 11 11-13-2019 05:49 AM


All times are GMT -4. The time now is 02:18 AM.


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