Comments (2)
先別改。
目前的編碼中不存在大寫字母。沒有必要針對不存在的問題而修改。
如果要做這項改動,應作爲「支持中英混書」功能的一部分。
細節上,一些規則用單個字符 .
匹配任意雙拼聲母 xform/(.)ao$/$1K/
因爲一些歷史代碼,這些正則表達式操作的是 UTF-8 編碼的字符串。小型大寫字母的 UTF-8 編碼是 3 字節,再用 .
匹配雖然也能正確工作,畢竟有些費解。
從可讀性來說,倒不如把中間形式改寫成帶有標記的雙拼碼,比如 xform/(.+)ao$/$1<k>/
最後統一刪除標記字符 erase/<>/
from rime-double-pinyin.
懂了,我先把 PR 关了,issue 暂时留在这
from rime-double-pinyin.
Related Issues (12)
- 是否能增加类似搜狗超级简拼的功能? HOT 12
- 有没有办法让双拼支持/X符号功能? HOT 1
- 如何使用双拼的辅助码呢 HOT 1
- 小鶴雙拼方案之中英並行
- 如何使输入字母保持原样? HOT 1
- 不支持形码吗? HOT 5
- 在双拼模式下无法输出简化字? HOT 6
- 如何让最后一个声母使用简拼 HOT 1
- 问题:使用双拼时如何同时显示按下的键以及双拼对应的拼音? HOT 8
- 小鹤双拼中第一个输入u与 k无法立即显示候选词汇
- 智能ABC双拼方案,输入ba,候选词却是zhe的相关候选词 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rime-double-pinyin.