View Single Post
Old 02-02-2020, 10:58 PM   #39
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 rtiangha View Post
I'm curious about Kanji: Will dictutil be able to handle those properly? Just wondering since the code says it's a special case.
No, sorry, that won't be in the first version. The thing is, it's a whole separate code path which I'd need to figure out, and also, I don't think anyone's looked into how to treat a custom dictionary as Japanese (the Kanji stuff is based on the locale).

Cross-compiling libmarisa

I've finally got marisa to cross-compile properly on all platforms for dictutil: https://github.com/geek1011/dictutil...8d1cb469d4da8a. I can't believe it actually worked though, as I did it by writing a tool to merge all the C* sources into a single file and resolving includes to allow it to be easily compiled by CGO.

Testing Kobo prefix generation

I've also written dictword-test (https://pgaskin.net/kobo-mods/dictword-test/), which allows you to test libnickel's prefix generation directly. This tool is completely self-contained and doesn't conflict with or require patching libnickel. Binaries are available here: https://ci.appveyor.com/project/geek...uild/artifacts.

Last edited by geek1011; 02-02-2020 at 11:02 PM. Reason: dictword-test
geek1011 is offline   Reply With Quote