about summary refs log tree commit diff stats
path: root/src/bindings/libunicode.nim
Commit message (Collapse)AuthorAgeFilesLines
* Move JS wrapper into Monouchabptato2024-06-031-44/+0
| | | | Operation "modularize Chawan somewhat" part 3
* luwrap: use separate context (+ various cleanups)bptato2024-05-101-1/+1
| | | | | | Use a LUContext to only load required CharRanges once per pager. Also, add kana & hangul vi word break categories for convenience.
* luwrap: replace Nim unicode maps with libunicodebptato2024-05-091-4/+19
| | | | | | | | | | | | | | | | | Instead of using the built-in (and outdated, and buggy) tables, we now use libunicode from QJS. This shaves some bytes off the executable, though far less than I had imagined it would. Also, a surprising effect of this change: because libunicode's tables aren't glitched out, kanji properly gets classified as alpha. I found this greatly annoying because `w' in Japanese text would now jump through whole sentences. As a band-aid solution I added an extra Han category, but I wish we had a more robust solution that could differentiate between *all* scripts. TODO: I suspect that separately loading the tables for every rune in breaksViWordCat is rather inefficient. Using some context object (at least per operation) would probably be beneficial.
* Update code stylebptato2024-04-171-7/+8
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* Compile with styleCheck:usagesbptato2023-12-281-1/+1
| | | | much better
* Include libunicode header in bindingbptato2023-07-151-0/+5
|
* Add unicode normalization, etcbptato2022-12-191-0/+23