diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-15 22:32:16 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-15 22:32:16 +0100 |
| commit | 9988329901d5450cd54955d95f6e919daba9506e (patch) | |
| tree | 61cdb86a88eca8a3a6c1752854ff13854eec5369 /src/utils | |
| parent | 5785c3abdf8cbf20aed3c43edf0a801aadb57fbf (diff) | |
| download | chawan-9988329901d5450cd54955d95f6e919daba9506e.tar.gz | |
widthconv: fix hiragana -> half-width kana conversion
Unicode has no half-width hiragana :/
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/widthconv.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/widthconv.nim b/src/utils/widthconv.nim index a42ebf5d..60241607 100644 --- a/src/utils/widthconv.nim +++ b/src/utils/widthconv.nim @@ -28,6 +28,7 @@ const halfFullMap = (func(): seq[tuple[half, full1, full2: uint32]] = var full2 = 0u32 if i < line.len: assert line[i] == '\t' + inc i full2 = line.nextUTF8(i) result.add((half, full1, full2)) )() |