ref: 4c48982eead7a31974ae7622430d8b58805719a3
parent: 057614609f7cc45561697dd375b13a01c08f8ed6
author: noodle <noodle@pastanoggin.com>
date: Mon Jan 19 01:26:40 EST 2026
add ktrans-increasemaxkouho: increase Maxkouho to 128 to allow cycling through them.
--- /dev/null
+++ b/ktrans-increasemaxkouho
@@ -1,0 +1,26 @@
+From: noodle <noodle@pastanoggin.com>
+Date: Mon, 12 Jan 2026 07:22:15 +0000
+Subject: [PATCH] ktrans: increase enum Maxkouho from 32 to 128 candidates
+
+
+There're some input sequences that have more than 32 candidates, with
+the highest having 105, as shown with the following command:
+
+awk '{ if (NF-1 > max) { line=$0; max = NF-1; } } END { print max, line }' /lib/ktrans/kanji.dict+
+Increase Maxkouho to 128 to allow cycling through them.
+---
+diff ff2f33f1aa618f34060701c2c0c1d6a9e3d67afa 141d216fdb1370ca330b9934c0be2b5c4877b41d
+--- a/sys/src/cmd/ktrans/main.c
++++ b/sys/src/cmd/ktrans/main.c
+@@ -142,7 +142,7 @@
+ }
+
+ enum{+- Maxkouho=32,
++ Maxkouho=128,
+ };
+
+ Hmap*
+--
+⑨
--
⑨