我想找出一个符文的Unicode属性,特别是它的脚本属性的值.Unicode就是这样说的(见http://www.unicode.org/reports/tr24/第1.5节):
The script property assigns a single value to each character, either
explicitly associating it with a particular script, or assigning one
of several specail [sic] values.
Run Code Online (Sandbox Code Playgroud)
Go的unicode包为我提供了一种方式来问:"脚本x中的这个符文是什么?",但是我没办法问,"这个符文的脚本是什么?".我显然可以迭代所有脚本,但这样会浪费.找到一个符文的剧本是否有更聪明的方法?(我总是可以实现一个自组织列表,但我正在寻找已经做了我想要的标准go库中的东西,而且我忽略了.)
谢谢大家!