Writing systems/zh

本页为写作体系提供多方面的基本信息：多种语言手写本、写作方向、前沿翻译以及输入.



多种文字，多种方言
许多语言都用多种文字书写. 通常这是可以实现的，但缺乏软件支持，而且有时候如果不能实施，情况将变得非常复杂. 一些语言有用于支持多套书写系统的LanguageConverter.

一些语言拥有使用相同体系书写的相似方言，它们——在技术上——可以采用和不同体系书写的语言相同的方式处理.

LanguageConverter
關於如何使用LanguageConverter的文件，請參考

基于语言变体的系统. (LC) 是一个基于语言变体的系统，可自动将页面内容转换为不同的变体. 变体主要是用不同的文字书写相同的语言. 要使用语言转换器，请进入国际化首选项. 如果你所在的维基支持转换，你会看到一个额外的选择脚本的选项.

T21044 -- 这需要更多的记录！

它适用于以下语言（截至 2023 年 7 月；最新列表见"languagesWithVariants"）：


 * (ban): Balinese (ban-bali), Latin (ban-latn) [1.36+]
 * (crh): Latin (crh-latn), Cyrillic (crh-cyrl)
 * (en): Normal (en), Pig Latin (en-x-piglatin) (for testing, only when is enabled)
 * (gan): Simplified (gan-hans), Traditional (gan-hant)
 * (iu): Latin (ike-latn), Syllabics (ike-cans) [1.18+]
 * (kk): Cyrillic (kk-cyrl), Latin (kk-latn), Arabic (kk-arab)
 * (ku): Latin (ku-latn), Arabic (ku-arab) [ + ]
 * (sh): Cyrillic (sh-cyrl), Latin (sh-latn) [1.40+]
 * (shi): Tifinagh (shi-tfng), Latin (shi-latn) [1.19+]
 * (sr): Cyrillic (sr-ec), Latin (sr-el)
 * (tg): Cyrillic (tg-cyrl), Latin (tg-latn)
 * (tly): Cyrillic (tly-cyrl), Latin (tly-latn) [1.36+]
 * (uz): Cyrillic (uz-cyrl), Latin (uz-latin) [1.20+]
 * (wuu): Simplified (wuu-hans), Traditional (wuu-hant) [1.41+]
 * (zh):
 * (zh-hans): China (zh-cn), Singapore (zh-sg), Malaysia (zh-my)
 * (zh-hant): Taiwan (zh-tw), Hong Kong (zh-hk), Macau (zh-mo)

更多的语言也需要它！

脚本的语言代码标签应遵循ISO 15924标准.

该系统目前的一个局限是，它可能特别不擅长处理基于同一底层脚本的多种书写系统. 中文维基人偶尔会在失败的情况下使用  （单向）. 在 PHP 中，LC 总是尝试使用  来eat up the largest chunk of words单词，因此  （分词）也经常很有用.



支持配置
通过zhwp 的 sitelib中的 wgULS/wgUVS 函数，可以在用户脚本用户界面中轻松选择变量. 这可以帮助脚本编写者为用户制作一个可感知变量的界面. 对于 LC 无法访问的其他地方，可以使用  来获取当前的用户界面语言/变量.

小工具PreviewWithVariant允许维基人在编辑器预览中检查转换结果. 您可以在您自己的wiki網站上配置這個功能.

"Foreign language marker" templates like should add "disable conversion" markers   around the quoted foreign text to avoid mis-conversion. On Hans/Hant wikipedias this becomes a concern for Japanese Kanji and Vietnamese Han Nom, while on Wikipedias with Latin text marked for conversion this concern should be immediate.

The WikitextLC module allows for easily inserting LC commands to Lua output. The NoteTA and CGroup system allow for accessing pre-defined sets of subject-specific conversions. Module:地区用词 allows for an adaptive output of the form "foo, known in PLACE and PLACE as bar, and PLACE as baz".

Automated title redirection on URLs may cause apparent inconvenience for interfaces without this feature. See T49725 for the Lua task and T160952 for the section-anchor task.



參見

 * m:Automatic conversion between simplified and traditional Chinese
 * m:Wikipedias in multiple writing systems
 * Parsoid/Language conversion
 * Parsoid/Language conversion

书写方向
许多书写系统的字符从左往右写（LTR），行文自上而下（TtB）.

A few common scripts (Arabic and Hebrew in particular) write characters right-to-left (RTL) -- see directionality support for more details on how we handle right-to-left and mixed bidirectional text with HTML output and CSS styles.

Note that an individual language can be used with scripts that have different directionalities, such as Kazakh and Kurdish which support Latin and Arabic variants.

Note also that the World Wide Web Consortium has defined more directionalities for the use in web pages, such as North East Asian top-to-bottom ones, with lines stacked either from left to right or right to left.



字体渲染与输入
Many scripts do not have proper fonts easily available to users. This may be because operating systems do not ship these fonts, or users don't know how to install them or don't have enough permissions to do this. The extension tries to solve this by embedding the fonts in the wiki itself. Fonts will be served from the server and the user's system would not need to have the fonts installed.

UniversalLanguageSelector adds support to be able to type a certain script, so users do not have to rely on external tools or support on their systems.