1

For my own CMS I have almost completed a language manager, that will let website owners create new languages on the fly for their website. The thing is -- considering Latin alphabet languages as a default -- at this stage I only want to support languages that don't need specific presentational adjustments, such as direction: rtl; for Arabic languages and what have you.

What languages (or groups of languages, such as Latin) generally don't need any of such adjustments, to display properly? Or rather perhaps; what type of languages usually do need these types of adjustments? (whichever category is less big to mention :))

4

1 回答 1

2

我不太确定您所说的“表现调整”是什么意思。以及它与 UTF-8 的关系。

首先,UTF-8 只是一种字符编码,是 Unicode 的表示方式。它能够显示任何国家字符(唯一的问题可能会弹出 GB18030:2005 定义的额外 4 字节汉字,但使用 Unicode 6.0 我相信这会消失)。

另一件事:非拉丁文字可能需要以任何一种方式进行调整 - 字体和大小可能无论如何都需要更改。

第三件事:您提到了方向:rtl,即CSS关键字。问题是,您应该使用 HTML dir 属性来切换方向 - 这符合W3C 的建议

最后一件事:我不会修复 RTL 语言列表来说阿拉伯语、希伯来语、乌尔都语和波斯语(波斯语),因为还有其他 Bi-Di 语言

换句话说,我会考虑如何为最终用户修改样式和方向性,而不是对其进行硬编码。

于 2011-04-02T08:39:31.630 回答