Giter VIP home page Giter VIP logo

Comments (2)

lotem avatar lotem commented on August 10, 2024 1

先別改。

目前的編碼中不存在大寫字母。沒有必要針對不存在的問題而修改。
如果要做這項改動,應作爲「支持中英混書」功能的一部分。

細節上,一些規則用單個字符 . 匹配任意雙拼聲母 xform/(.)ao$/$1K/

因爲一些歷史代碼,這些正則表達式操作的是 UTF-8 編碼的字符串。小型大寫字母的 UTF-8 編碼是 3 字節,再用 . 匹配雖然也能正確工作,畢竟有些費解。

從可讀性來說,倒不如把中間形式改寫成帶有標記的雙拼碼,比如 xform/(.+)ao$/$1<k>/ 最後統一刪除標記字符 erase/<>/

from rime-double-pinyin.

tshu-w avatar tshu-w commented on August 10, 2024

懂了,我先把 PR 关了,issue 暂时留在这

from rime-double-pinyin.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.