tshet-uinh-js
tshet-uinh-js copied to clipboard
A JavaScript library for the Tshet-uinh phonological system
推導方案 → `/modules/____.html` 表達式 → `/modules/___.html` 資料 → `/modules/__.html` 適配分析體系 → `/modules/______.html` 音韻地位 → `/classes/____.html` 音韻地位.屬於→ `/classes/____.html#__-6`
之前在 #29 裡提過一下,雖然沒採用,但放在這裡待討論。 #29 原本在 `音韻地位.constructor` 中加上了這樣的代碼(當時未考慮 `constructor`): ```js Object.getOwnPropertyNames(Object.getPrototypeOf(this)).forEach(function (this: Record, key) { typeof this[key] === 'function' && (this[key] = this[key].bind(this)); }, this); ``` 其作用是將 `音韻地位` 的 `屬於`、`判斷` 等方法在構造時立即...
目前在 [dev-0.14 分支](https://github.com/nk2028/qieyun-js/tree/dev-0.14) 進行中~ - [x] 移除 `推導方案` API - 其工作交由 nk2028/tshet-uinh-deriver-tools 處理 - [x] `音韻地位` 體系調整 - [x] 標準體系調整(韻目用字、開合/重紐標法等) - [x] `音韻地位`「導入/驗證」功能(代替原本的 `適配分析體系.v2ext` 與 `音韻地位.驗證`) - [x] ~~`音韻地位.正則地位` 功能(作用是過濾掉非正則地位,代替原...
(Present in 0.13.1 & 0.13.2, temporarily reverted in 0.13.3) 0.13.1 和 0.13.2 雖然加入了 default export,但它的 index.d.ts 在 submodule 方面似乎出了很大問題。 於是導致在 TypeScript 項目中: - 無法 `import { 資料 } from 'qieyun'`(似乎所有...
開發分支位於 [dev-0.16](https://github.com/nk2028/tshet-uinh-js/tree/dev-0.16) v0.16 將大幅更新資料內容與相關 API。其餘部分(如 `音韻地位` API)應當不會有變動。 開發: - [x] 使用新資料(https://github.com/nk2028/tshet-uinh-js/discussions/53 )與新的查詢結果格式 - [ ] 實作 `釋義上下文`,代替原 `釋義補充` - [ ] 實作資料條目的成員方法(用於解析新的包含校勘標示的字頭、反切) - [ ] 整理單元測試 - [ ] 更新文檔...
[WIP]
Bundle type declaration to avoid exposing internal types and enforce encapsulation TODOs - Convert Unicode escapes in outputted `index.d.ts` into actual code points Alternatively, use `rollup-plugin-dts`
Perhaps?
e.g. `readonly 聲: '平' | '上' | '去' | '入'`, `readonly 類: 'A' | 'B' | 'C' | null`, `get 韻別(): '陰' | '陽' | '入'` Question: how strict should...