View Single Post
Old 09-23-2020, 11:09 PM   #15
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
  • Support for custom dictionaries
    • Put them in directory .kobo/custom-dict
    • For extra languages, add an "ExtraLocales" entry in config file with the list of language codes.
    • I think this should be considered the same as the Beta features. Or the hidden options in the config file. It is from Kobo, but, at this point at least, it won't get the same support as the core features.
To clarify one thing, the ExtraLocales isn't mandatory anymore. If you don't specify it, it will just use the zip filename as the dictionary name.

Also, if you do choose to use ExtraLocales, you won't need to use the patch anymore since the bug with language splitting for "Extra: " has been fixed.

Note that if you use the same locale as a built-in dictionary, it will not conflict since all custom ones matching a valid locale will have " (Custom)" appended to the name.

Also, the bug with custom dictionary sizes in the settings and with it saying it needs to sync has been fixed along with a bunch of other bugs related to dictionary lookup.

When you install this firmware version, it should automatically move your custom dictionaries.

I will add support for the new install method in dictutil later this week.

See the dictutil issue on GitHub I linked near the top of this thread for more details about this.

An internal detail which might be interesting is that there's a new dicthtml v3 format for built-in dictionaries (custom ones use v2). I'll be adding support to dictutil later, but it's a lower priority for me. This format adds a prefix_exceptions file (for the same reason as the dictutil workaround with duplicating variant entries) and a new option to set the credit text by adding a global zip archive comment. The word matching appears to be the same. It will work fine with existing v2 dictionaries, but v3 dictionaries which use prefix_exceptions will not be fully functional if used on older firmware versions.

Quote:
  • Space at start removed
  • Bigger indentation for each level
For anyone currently using my TOC patches, note that these changes are essentially the same thing, but built-in. I will be removing the two TOC patches and replacing them with one which allows you to change the indentation if you don't like the increased indentation.

Last edited by geek1011; 09-24-2020 at 02:11 AM.
geek1011 is offline   Reply With Quote