docbook支持中文

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

直接读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:

Bêtises

Pierre qui roule n'amasse pas de mousse.

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

我的一个例子:

文章主题 redguardtoo nobody@hotmail.com

2004/12/06

概要介绍

Dò(áúóàí?)

正文。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航