PinIn icon indicating copy to clipboard operation
PinIn copied to clipboard

Java library for Chinese text match using Pinyin - 用于各类汉语拼音匹配问题的 Java 库

Results 3 PinIn issues
Sort by recently updated
recently updated
newest added

当使用类似于toding、 gudong 、ashanyan这些情况时,会无法匹配对应的文字,即铜锭、滚动、安山岩 下面使用PinIn1.5.0版本情况下匹配的情况。 ![image](https://user-images.githubusercontent.com/42764413/183718309-ca3dee83-f9e0-4862-a86b-10b82e24de19.png) ![image](https://user-images.githubusercontent.com/42764413/183718350-2bd39071-f31b-487a-89fe-4d3c094e16ac.png) ![image](https://user-images.githubusercontent.com/42764413/183718390-b1259b2a-6591-418b-8fd8-0b30520ba995.png) -------------------- ![image](https://user-images.githubusercontent.com/42764413/183718560-94da54a1-d646-40a9-9262-363980bcd2ef.png) ![image](https://user-images.githubusercontent.com/42764413/183718818-71376345-90c8-4d14-8482-60dab1f0266e.png) ![image](https://user-images.githubusercontent.com/42764413/183718913-ff9385f2-0a84-4286-a1b7-3349cfbfabac.png)

目前来看,PinIn使用的数据还是挺完善的, 不过现在出现了[这种](https://github.com/Towdium/JustEnoughCharacters/issues/95)情况 看起来似乎是时候更新一波数据了。

如标题所述 1.双拼声母韵母匹配失效问题 双拼匹配要求声母韵母同时存在,但是存在失效问题 双拼声母韵母匹配失效问题来源于没有检查strCmp返回的是否为0 有时候start如果等于了source.length()就会导致双拼要求的声母韵母同时存在的规则失效 要检查strCmp返回的是否为0,如果为0,那么代表没有匹配成功的字符串 2.Keyboard切分函数的问题 之前添加的Keyboard的一些新键位设计,没有去考虑到其对应的零声母规则,我已经实现了他们对应的零声母规则: zeroOInitial: 如果没有声母,则用o作为声母 (搜狗,微软,紫光) zeroAInitial: 如果没有声母,则用a作为声母 (国标) zeroFirstInitial: 如果没有声母,则是韵母第一个字母作为声母 (拼音加加) 额外:原本智能ABC双拼打了表但是忘记填写字段了,现在加上了