Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「ー」を含んだ平仮名から辞書をひけない #23

Open
akahuku opened this issue May 22, 2024 · 0 comments
Open

「ー」を含んだ平仮名から辞書をひけない #23

akahuku opened this issue May 22, 2024 · 0 comments

Comments

@akahuku
Copy link

akahuku commented May 22, 2024

$ cmigemo -d /usr/share/cmigemo/utf-8/migemo-dict -w 'hoiko-ro-'
(ホイコーロー|回鍋肉|ほいこーろー|hoiko−ro−|hoiko-ro-)
$ node_modules/jsmigemo/bin/jsmigemo-cli.mjs -w 'hoiko-ro-'
(hoiko\-ro\-|ほいこーろー|ホイコーロー|hoiko-ro-|ホイコーロー)

上記の通りローマ字から生成された平仮名が「ー」を含んでいると辞書をひけないようです。
調べてみたところCompactDictionaryとCompactHiraganaStringで「ー」をエンコード・デコードする際にbyte範囲外の値を割り当てているのが原因のような気がします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant