SVG ID的有效字符的ISO表 [英] ISO table(s) of valid characters for SVG ids

查看:116
本文介绍了SVG ID的有效字符的ISO表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SVG规范将读者引向 XML基本规范,用于显示可能出现在id属性值中的字符.

The SVG spec refers the reader to the XML Base spec for the characters that may appear in the value of an id attribute.

但是,XML基础规范并不拼写出这些字符,即AFAICT.相反,它根据"Unicode属性" ID_StartID_Continue提出建议.

The XML Base spec, however, does not spell out these characters, AFAICT. Instead, it makes its recommendations in terms of "Unicode properties" ID_Start and ID_Continue.

我正在寻找明确列出 (或 s ) >具有ID_Start和/或ID_Continue属性的字符.

I am looking for a table (or tables) listing explicitly those characters that have the ID_Start and/or ID_Continue properties.

(如果不同的应用程序或基于XML的标准可以使用ID_Start和/或ID_Continue属性指定自己的字符集,那么我会对嵌入HTML5的SVG感兴趣.)

(In case that different applications or XML-based standards may specify their own sets of characters with the ID_Start and/or the ID_Continue properties, I am interested in HTML5-embeded SVG.)

推荐答案

我在Github上找到了一个存储库,该存储库使用基于Unicode标准的Python脚本生成了许多不同的表.例如,以下是ID_STARTID_CONTINUEXID_STARTXID_CONTINUE等的表:

I found a repo on Github that generates bunch of different tables using Python scripts based on Unicode standard. For example here are tables for ID_START, ID_CONTINUE, XID_START, XID_CONTINUE etc: https://github.com/sourtin/libucd/blob/master/src/tables/bool.rs

我认为它们是从以下XML数据库中解析的: http://www.unicode.org/Public/5.2.0/ucdxml/

I think they are parsed from XML databases provided in: http://www.unicode.org/Public/5.2.0/ucdxml/

这篇关于SVG ID的有效字符的ISO表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆