现在的位置: 首页 > 综合 > 正文

docbook支持中文

2012年11月21日 ⁄ 综合 ⁄ 共 588字 ⁄ 字号 评论关闭
直接读docbook得官方文档《docbook: the definitive guide》,搜索一下“chinese”就可以了。

实际上就是把文档中的某个元素标上lang属性。

引用官方文档:
“Using the lang attribute
One of the DocBook common attributes is lang. If you specify a language, the DocBook stylesheets will use that language (and all its descendants, if no other language is specified) for generated text within that element.

Table 4.1, “DocBook Stylesheet Language Codes” summarizes the language codes for the supported languages.[15] The following chapter uses text generated in French:

Pierre qui roule n'amasse pas de mousse.

对我来说,只要给article元素的lang属性赋值为"zh-cn"就可以了。

我的一个例子:

redguardtoo
nobody@hotmail.com

2004/12/06 概要介绍 正文。

抱歉!评论已关闭.