about summary refs log tree commit diff stats
path: root/src/utils/luwrap.nim
Commit message (Collapse)AuthorAgeFilesLines
* Update monouchabptato2024-08-091-6/+5
|
* luwrap: use lre_is_spacebptato2024-07-181-2/+1
|
* Move JS wrapper into Monouchabptato2024-06-031-2/+3
| | | | Operation "modularize Chawan somewhat" part 3
* luwrap: use separate context (+ various cleanups)bptato2024-05-101-19/+59
| | | | | | 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-21/+75
| | | | | | | | | | | | | | | | | 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-16/+16
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* Various fixesbptato2023-12-131-0/+46
* Makefile: fix parallel build, add new binaries to install target * twtstr: split out libunicode-related stuff to luwrap * config: quote default gopher2html URL env var for unquote * adapter/: get rid of types/url dependency, use CURL url in all cases