python音标html实体转换

来源:互联网 发布:遗传算法的详细步骤 编辑:程序博客网 时间:2024/05/05 04:52

例如:

音标ə 用hmtl实体表示为ə

反过来转换为unichr(601).encode('utf-8')

或者

unichr(int('0x259', 16)).encode('utf-8')

 

国际音标与html实体转换列表

http://tlt.its.psu.edu/suggestions/international/bylanguage/ipachart.html

国际音标对应的unicode位置

http://www.phon.ucl.ac.uk/home/wells/ipa-unicode.htm#spac

原创粉丝点击