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

希望能在搜尋時 增加新選項 自動配對異體漢字 #178

Open
bluelovers opened this issue Apr 26, 2018 · 3 comments
Open

希望能在搜尋時 增加新選項 自動配對異體漢字 #178

bluelovers opened this issue Apr 26, 2018 · 3 comments

Comments

@bluelovers
Copy link

希望能在搜尋時 增加新選項 自動配對異體漢字

例如 搜尋(包含 regex 模式時) 時 可以同時搜尋 尔爾

string mode

搜尋 時 可以同時搜尋 尔爾

regex mode

神学 => 神[学學]

然後 忽略原本就在 [] 內的字 (預設 或者 變成額外新選項)

神[学] => 神[学]

類似這種感覺 https://www.npmjs.com/package/regexp-cjk

異體漢字可以參考

@hltj
Copy link
Collaborator

hltj commented May 21, 2019

很好的建议,我研究下哈。主要是看能否同现有正则匹配兼容

@bluelovers
Copy link
Author

這個網址可以線上體驗一下
https://demonovel.netlify.com/

image

我想最大的問題點在於 如何解析 regex 跟 把字插進去而已 以及 惰性XD

@hltj
Copy link
Collaborator

hltj commented May 21, 2019

這個網址可以線上體驗一下
https://demonovel.netlify.com/

image

我想最大的問題點在於 如何解析 regex 跟 把字插進去而已 以及 惰性XD

效果不错,我也想想

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

2 participants