文本运行不在Unicode规范化表单C中 [英] Text run is not in Unicode Normalization Form C

查看:272
本文介绍了文本运行不在Unicode规范化表单C中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图验证我的网站时( http://dvartora.com/DvarTora/ ),我出现以下错误:
$ b


文本运行不在Unicode规范化表单C中


A:这是什么意思?

B:我可以用记事本++修复它吗? / b>

C:如果B不是,我该如何解决这个问题,使用免费工具(而不是dreamweaver)?

解决方案

它意味着它的内容(请参阅dan04对简短答案的解释和长期的Unicode标准解释),但它只是表示验证者的作者想要发出警告。 HTML5规则不要求规范化表单C(NFC);它更像是W3C所青睐的东西。



B.除非你决定使用NFC实际上会更好,否则无需修复任何东西。如果你这样做,那么有各种自动转换为NFC的工具,比如免费的 BabelPad 编辑器。如果您只需要处理不在NFC中的一个字符,则可以使用字符信息存储库,如 Fileformat.info字符搜索来找出字符的规范分解并使用它。



无论您使用NFC还是取决于许多考虑因素和对涉及的角色。通常情况下,NFC的效果会更好,但在某些情况下,替代的非NFC演示会产生更适合的渲染效果,或者在某些特定的处理过程中效果更好。

例如,在一个重复的问题中,参考文献Ω 已被报告为触发该消息。 (验证器实际上也检查输入的字符作为此类参考,而不仅仅是纯文本级别的NFC检查。)参考代表U + 2126 OHM SIGNΩ,其定义为与U + 03A9 GREEK CAPITAL字母OMEGAΩ。 Unicode标准明确指出后者是首选字符。它也更好地覆盖在字体中。但是如果你有特殊的理由使用OHM SIGN,你可以这样做,而不违反当前的HTML5规则,你可以忽略验证器警告。


While I was trying to validate my site(http://dvartora.com/DvarTora/) I get the following error:

Text run is not in Unicode Normalization Form C

A: What does it mean?

B: Can I fix it with notepad++ and how?

C: If B is no, How can I fix this with free tools(not dreamweaver)?

解决方案

A. It means what it says (see dan04’s explanation for a brief answer and the Unicode Standard for a long one), but it simply indicates that the authors of the validator wanted to issue the warning. HTML5 rules do not require Normalization Form C (NFC); it is rather something generally favored by the W3C.

B.There is no need to fix anything, unless you decide that using NFC would actually be better. If you do, then there are various tools for automatic conversion to NFC, such as the free BabelPad editor. If you only need to deal with one character not in NFC, you can use character information repositories such as Fileformat.info character search to find out the canonical decomposition of the character and use it.

Whether you use NFC or not depends on many considerations and on the characters involved. As a rule, NFC works better, but in some cases, an alternative, non-NFC presentation produces more suitable rendering or works better in some specific processing.

For example, in a duplicate question, the reference Ω has been reported as triggering the message. (The validator actually checks for characters entered as such references, too, instead of just plain text level NFC check.) The reference stands for U+2126 OHM SIGN "Ω", which is defined to be canonical equivalent to U+03A9 GREEK CAPITAL LETTER OMEGA "Ω". The Unicode Standard explicitly says that the latter is the preferred character. It is also better covered in fonts. But if you have a special reason to use OHM SIGN, you can do that, without violating current HTML5 rules, and you can ignore the validator warning.

这篇关于文本运行不在Unicode规范化表单C中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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