Skip to content

Commit

Permalink
docs: Updated for 4.20.14601
Browse files Browse the repository at this point in the history
* No new dictionaries added in this version.
* Base64-encoded images now work perfectly in both dictionary views.
* URL schemes other than dict:/// don't cause the in-book dictionary
  view to segfault anymore.
* Images referenced with dict:/// URLs still blank the webview in
  both views.

Also see #1.
  • Loading branch information
pgaskin committed Mar 2, 2020
1 parent 2a80ab3 commit 512c333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dictutil/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var (
builtinUpdated = "4.19.14123"
builtinUpdated = "4.20.14601"
builtinDict = map[string]string{
"de": "Deutsch",
"de-en": "Deutsch - English",
Expand Down
4 changes: 3 additions & 1 deletion docs/dicthtml/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This document describes [version 2](./v1v2) of Kobo dictionaries. Japanese dicti

Kobo dictzips are standard ZIP files. In general, they are named `dicthtml-LOCALE.zip` where **LOCALE** is the ISO-639-1 language code (although custom locale codes can be used if added to ExtraLocales in the Kobo config file). In addition, a dictzip may be named `dicthtml-LOCALE-LOCALE.zip` for translation dictionaries. Some official dictionaries have slightly different locale codes (e.g. `jaxxdjs`), but these are exceptions.

As of firmware 4.19.14123, the official dictionaries are hosted on `https://kbdownload1-a.akamaihd.net/ereader/dictionaries/v2/dicthtml*.zip`, and support the following locales:
As of firmware 4.20.14601, the official dictionaries are hosted on `https://kbdownload1-a.akamaihd.net/ereader/dictionaries/v2/dicthtml*.zip`, and support the following locales:

| Locale | Language |
| --- | --- |
Expand Down Expand Up @@ -132,6 +132,8 @@ If you have control over the target device, you can also use `file:///...` URLs

As of firmware 4.19.14123, all of these methods are too buggy (due to bugs in libnickel) to be usable. The only one which works is base64-encoded images in the full-screen dictionary view (i.e. not the in-book dictionary). The `dict:///` URLs cause the webview to appear blank, and the base64-encoded and file URLs cause nickel to segfault in the in-book dictionary view. See [#1](https://github.com/geek1011/dictutil/issues/1) for more details.

Starting in firmware 4.20.14601, the base64 method works perfectly in both views (yay!). Other URLs don't segfault the in-book dictionary view anymore, and `dict:///` URLs still blank the webview.

## Example

This is an example dictdir using most of the things mentioned above.
Expand Down

0 comments on commit 512c333

Please sign in to comment.