zhconv
zhconv copied to clipboard
Simple conversion and localization between simplified and traditional Chinese using tables from MediaWiki.
具体路径应该是\includes\languages\data\ZhConversion.php
爬取小说通过OpenCC简繁转换,但实在太慢了。不知道这个速度怎么样?
命令行含义不明
https://pypi.org/project/zhconv/1.4.0/#description 这里我试了半天,不知道怎么输入命令执行 ``` python -mzhconv [-w] {zh-cn|zh-tw|zh-hk|zh-sg|zh-hans|zh-hant|zh} < input > output ``` 我试过以下命令,怎么用都是错的 ``` python3 -mzhconv -w zh-cn ./tc/ ./out python3 -mzhconv -zh-cn ./tc ./out python3 -mzhconv zh-cn ./tc ./out...
我以此事颇有意思,欲为纯浏览器本者,并加之级段落启发式模板,卿可议开源许我做这衍生本乎? (我觉得这个工作很有意思,想做一个纯浏览器的版本,并加入一些段落级的启发式模板,你的开源协议可以允许我做这样的衍生版本吗?)
Because return the not actually converted sentence may confuse someone that is careless about the supported locales. And I think raise an error early can stop future big error for...
``` python3 convert_for_mw('[[𨭎|-{zh-cn:-{钅}--{喜}-; zh-tw:𨭎; zh-hk:𨭎;}-]]', "zh-cn") ``` This text above will raise a keyError, and you can get this page from https://zh.wikipedia.org/wiki/%E9%92%A8
这种转换异常情况,会有抛出吗 