Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

五笔输入法增加传统的四码上屏功能。 #10

Merged
merged 1 commit into from
May 15, 2020

Conversation

YoungBoron
Copy link

比如“战国时代”对应的五笔编码是hljw,分别取每个字的首字母。
另外指出目前支持的五笔输入法是98版本。

比如“战国时代”对应的五笔编码是hljw,分别取每个字的首字母。
另外指出目前的五笔输入法是98版本。
@nobodxbodon
Copy link
Member

多谢!!
因为不是五笔用户,多请教一下哈。刚试了一下1.0.4版本里,好像hljw 已经可以匹配了?
Screen Shot 2020-05-14 at 10 49 44 PM

@YoungBoron
Copy link
Author

就是说,五笔的一个词组的编码,并不是简单地直接把每个字的编码加起来,而是要拆删字的。
比如“战国时代”、“战国时代研究”、“战国时代秦始皇”的编码分别是hljw、hljp、hljr,如果使用全匹配,会匹配太多额外内容进来。

@nobodxbodon nobodxbodon requested a review from zj1d May 15, 2020 06:04
@zj1d zj1d merged commit 2148bd9 into program-in-chinese:master May 15, 2020
@nobodxbodon
Copy link
Member

刚本地测试,确认一下是这样的效果吧?
Screen Shot 2020-05-14 at 11 16 08 PM

@YoungBoron
Copy link
Author

刚本地测试,确认一下是这样的效果吧?
Screen Shot 2020-05-14 at 11 16 08 PM

是的

@@ -1894,7 +1894,7 @@ var 五笔98={
:"wwgs","僜":"wwgu","儉":"wwgw","倹":"wwgw","睂":"wwhh","伱":"wwiy","价":"wwjh","谾":"wwka","䜫":"wwka","卻":"wwkb","郤":"wwkb","谹":"wwkc","䜱":"wwkc","豀"
:"wwkd","豅":"wwkd","豂":"wwke","䜰":"wwkf","谷":"wwkf","鹆":"wwkg","谻":"wwkg","䜮":"wwkg","㑖":"wwkh","螸":"wwkj","谽":"wwkk","豄":"wwkm","䜬":"wwkm","慾"
:"wwkn","䜲":"wwkn","鵒":"wwko","䜯":"wwko","逧":"wwkp","谺":"wwkt","豃":"wwkt","䜪":"wwkv","谼":"wwkw","欲":"wwkw","㞃":"wwky","佡":"wwmh","仉":"wwn","怂":"wwnu",
"㐽":"wwry","偑":"wwtj","仌":"wwu","份":"wwvt","傘":"wwwf","侳":"wwwf","䁞":"wwwh","㫺":"wwwj","俗":"wwwk","众":"wwwu","人":"Rwwww","㐺":"wwwy","伦":"wwxn","从"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

阁下好眼力啊!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试中华人民共和国时发现的……

Copy link
Member

@nobodxbodon nobodxbodon May 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

赞!感觉最好这种数据有现成的成熟库(之前做了个笔顺库:https://www.npmjs.com/package/chinese-character-strokes ),避免出错。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,我那个笔顺库也是从这个 repo 提取的。为此想法刚开了 issue :#11

@nobodxbodon
Copy link
Member

@YoungBoron 包含此 pr 的1.0.5版刚发布,多谢支持!

@nobodxbodon nobodxbodon mentioned this pull request May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants