Skip to content

@geek1011 geek1011 released this Mar 8, 2020 · 20 commits to master since this release

This release improves/fixes many things related to installing/uninstalling dictionaries on 4.20.14601+. See geek1011/kobopatch-patches#49, #3, and #4 for more information.


ec6e0d7 all: Don't upload converted dictionaries from Drone
6913bda examples/webster1913-convert: Cleaned up leading and trailing whitespace in parsed dictionary
b6f76da cmd/dictutil: Added warning about dictionary label not having an effect on 4.20.14601+
96b86db all: Updated dictionary installation for 4.20.14601


If you haven't already done so, you may also want to read the release notes for v0.1.2.

Assets 27

@geek1011 geek1011 released this Mar 7, 2020 · 24 commits to master since this release

This release adds a new dictzip-decompile tool. See the documentation for more information.

In addition, I've increased the maximum line buffer size for dictgen, which fixes compiling some large dictfiles with long lines of generated HTML.


8a0e9ee all: Updated release build script
ccfb5f6 examples/dictzip-decompile: Implemented a tool to convert a dictzip into a dictfile
1e207d6 dictgen: Increased maximum line buffer size


If you haven't already done so, you may also want to read the release notes for v0.1.2.

Assets 27

@geek1011 geek1011 released this Mar 6, 2020 · 27 commits to master since this release

This is the first stable version of dictutil. Everything has been tested manually, and dictutil now implements all features supported by Kobo. Dictgen is also complete, and the dictfile format is stable. The documentation here is finished (with the exception of infomation about word matching, which I haven't finished testing).

Dictutil is compatible with firmware versions 4.7.10364+ (December 2017). Images are supported on 4.20.14601+ (February 2020).

Features

dictutil:

  • Full support for all Kobo dictionary features: HTML, images, multiple entries for a word, variants, word prefixes, and Unicode.
  • Completely correct, tested, and documented word prefix calculation.
  • Supports v2 dictionaries (see the docs for more info).
  • All operations are lossless and deterministic.
  • Can install and uninstall custom and built-in dictionaries.
  • Can unpack and pack dictionaries.
  • Can calculate prefixes for one or more words, with multiple output formats.

dictgen:

  • Full support for all features from dictutil.
  • Easy to use dictfile format.
  • Can merge multiple dictionaries.
  • Definitions can be written in Markdown or HTML.
  • Images in multiple formats can be included.

examples/gotdict-convert:

  • Full support for all features from GOTDict, with the exception of cross-references (which aren't supported by nickel).
  • Can optionally include or exclude images.
  • Can directly convert GOTDict without any manual intervention.
  • Output is written to a dictfile (which makes it easy to modify).

examples/webster1913-convert:

  • Parses and converts Project Gutenberg's Webster's 1913 Unabridged Dictionary to a dictfile.
  • Will preserve multiple entries for a word.
  • Will include all variants, tenses, and phrase definitions as variants for easy lookup.
  • Over 113000 unique entries and
  • Will preserve and format examples, etymology, pronunciation information, definition categories, and other features.
  • Can export the parsed dictionary as JSON for further processing.
  • Output is written to a dictfile (which makes it easy to modify).

Links

Binaries for the tools can be downloaded below. See the website for more detailed documentation, examples, and usage information.

Pre-built dictionaries from gotdict-convert and webster1913-convert can be downloaded from here:

API documentation for embedding dictutil as a library can be found on pkg.go.dev.

Note: This release replaces v0.1.0, which had an issue with 32-bit binaries on Windows (see #2) and v0.1.1, which had an issue with file permissions on Windows.

Assets 22
Pre-release
Pre-release

@geek1011 geek1011 released this Mar 5, 2020 · 33 commits to master since this release

Note: There are currently known issues with dictutil on Windows (see #2). These will be fixed for v0.1.1 (by the end of today).

Please use v0.1.1 instead.

Assets 22
Pre-release
Pre-release

@geek1011 geek1011 released this Mar 2, 2020 · 50 commits to master since this release

This release re-enables images, which were fixed in 4.20.14601 (see #1) (thanks @gtalusan!). Also, Go has been updated to 1.14, which brings a small performance increase with dictgen.

Internally, WordPrefix is now simpler and slightly faster. Also, building dictutil doesn't require SWIG to be installed anymore, and marisa won't leak memory when using dictutil as a library.

This will be the last alpha release, and the first stable version (which will be posted on MR too) will be released once I finish the documentation. The first v1.x.x release will be released once more unit tests have been written and the final API is complete. I may also redesign the documentation before then.

Assets 17
Pre-release
Pre-release

@geek1011 geek1011 released this Feb 23, 2020 · 62 commits to master since this release

This probably the last alpha release. After I finish the rest of the documentation, I'll release the first v0.x.x stable version and make a post on MR.

I've disabled image support by default due to #1.

Assets 17
Pre-release
Pre-release

@geek1011 geek1011 released this Feb 21, 2020 · 68 commits to master since this release

This release fixes bugs from v0.0.1-alpha, and completes support for all dictionary features with the addition of image support.

It is pretty much ready to be used, except for the lack of documentation. I will release the first beta once I finish the documentation.

Assets 17
Pre-release
Pre-release

@geek1011 geek1011 released this Feb 19, 2020 · 84 commits to master since this release

Finished implementing everything, mostly ready for testing (see 0ac4192#commitcomment-37385776).

I've already tested gotdict-convert and dictgen pretty extensively. The dictutil pack/unpack commands shouldn't have any bugs, but I haven't tested extensively. The dictutil install/uninstall commands have only been minimally tested.

Documentation (will be finished before the first beta) and some unit tests (will be finished before the stable version) aren't completely finished yet.

Assets 17
You can’t perform that action at this time.