gumblex / zhconv

Simple conversion and localization between simplified and traditional Chinese using tables from MediaWiki.
https://pypi.python.org/pypi/zhconv
MIT License
520 stars 37 forks source link

Get keyError when parsing text with html tag #14

Open yangyaofei opened 2 years ago

yangyaofei commented 2 years ago
convert_for_mw('[[𨭎|-{zh-cn:-{钅}-<span style="position: relative; left: -1ex">-{喜}-</span>; 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