ToMiddleChinese 
Install
$ pip install ToMiddleChinese
Usage
>>> import ToMiddleChinese
>>> # 音韻地位 (Description of Phonological Position)
>>> ToMiddleChinese.get_pos_list('遙襟甫暢,逸興遄飛。')
[('遙', '以開三宵平'), ('襟', '見開三B侵平'), ('甫', '幫三虞上'), ('暢', '徹開三陽去'), (',', None), ('逸', '以開三眞入'), ('興', '曉開三蒸平'), ('遄', '常合三仙平'), ('飛', '幫三微平'), ('。', None)]
>>> ToMiddleChinese.get_pos('遙襟甫暢,逸興遄飛。')
'遙(以開三宵平)襟(見開三B侵平)甫(幫三虞上)暢(徹開三陽去),逸(以開三眞入)興(曉開三蒸平)遄(常合三仙平)飛(幫三微平)。'
>>> ToMiddleChinese.get_pos_text('遙襟甫暢,逸興遄飛。')
'以開三宵平 見開三B侵平 幫三虞上 徹開三陽去,以開三眞入 曉開三蒸平 常合三仙平 幫三微平。'
>>> # 切韻拼音 (Tshet-uinh Phonetic Alphabet)
>>> ToMiddleChinese.get_tupa_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jiew'), ('襟', 'kyim'), ('甫', 'puoq'), ('暢', 'trhyangh'), (',', None), ('逸', 'jit'), ('興', 'hyngh'), ('遄', 'djwien'), ('飛', 'puj'), ('。', None)]
>>> ToMiddleChinese.get_tupa('遙襟甫暢,逸興遄飛。')
'遙(jiew)襟(kyim)甫(puoq)暢(trhyangh),逸(jit)興(hyngh)遄(djwien)飛(puj)。'
>>> ToMiddleChinese.get_tupa_text('遙襟甫暢,逸興遄飛。')
'jiew kyim puoq trhyangh, jit hyngh djwien puj.'
>>> # 古韻羅馬字 (Koxyonh’s Romanization)
>>> ToMiddleChinese.get_kyonh_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jeu'), ('襟', 'kim'), ('甫', 'pyox'), ('暢', 'thriangh'), (',', None), ('逸', 'jit'), ('興', 'hingh'), ('遄', 'zjyen'), ('飛', 'pyoi'), ('。', None)]
>>> ToMiddleChinese.get_kyonh('遙襟甫暢,逸興遄飛。')
'遙(jeu)襟(kim)甫(pyox)暢(thriangh),逸(jit)興(hingh)遄(zjyen)飛(pyoi)。'
>>> ToMiddleChinese.get_kyonh_text('遙襟甫暢,逸興遄飛。')
'jeu kim pyox thriangh, jit hingh zjyen pyoi.'
>>> # unt 切韻擬音 (unt’s Qieyun Reconstruction)
>>> ToMiddleChinese.get_unt_list('遙襟甫暢,逸興遄飛。')
[('遙', 'jew'), ('襟', 'kɹim'), ('甫', 'púo'), ('暢', 'ʈʰàɴ'), (',', None), ('逸', 'jit'), ('興', 'xɨ̀ŋ'), ('遄', 'dʑwen'), ('飛', 'puj'), ('。', None)]
>>> ToMiddleChinese.get_unt('遙襟甫暢,逸興遄飛。')
'遙[jew]襟[kɹim]甫[púo]暢[ʈʰàɴ],逸[jit]興[xɨ̀ŋ]遄[dʑwen]飛[puj]。'
>>> ToMiddleChinese.get_unt_text('遙襟甫暢,逸興遄飛。')
'jew.kɹim.púo.ʈʰàɴ | jit.xɨ̀ŋ.dʑwen.puj'
Metadata
Release files for ToMiddleChinese 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ToMiddleChinese-0.2.2.tar.gz | 5.2 MB | Without provenance | Details for ToMiddleChinese-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ToMiddleChinese-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for ToMiddleChinese-0.2.2-py3-none-any.whl |
Total release size: 10.4 MB
Release files / ToMiddleChinese-0.2.2.tar.gz
| Download URL | ToMiddleChinese-0.2.2.tar.gz |
|---|---|
| Size | 5.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
359e013f093dfaeb82545a49ca2ce9e55cc3ca071f03088366b40294d01ca15b
|
|
BLAKE2b-256 checksum How to use checksums |
99990bfc2c2c74d043fb4526a9a302d6dfc88fba226cc48bf176b618ba5f85ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / ToMiddleChinese-0.2.2-py3-none-any.whl
| Download URL | ToMiddleChinese-0.2.2-py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8ec0d48bec908e261b4f3ff5ea5c57d9223fde027252233476da0519c1323f8
|
|
BLAKE2b-256 checksum How to use checksums |
168084f6e1513ed2e4a66ec8349bcea7071a40c1cbd39f2247d6c6c6ec6fd335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for ToMiddleChinese 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.