|
Re: 请教您关于docbook的一个问题
|
|
HOME.
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 请教您关于docbook的一个问题
bash$ cvs diff -i -b -u -r 1.1 ldp.dsl
Index: ldp.dsl
===================================================================
RCS file: /cvshome/user/jiangxin/homepage/worldhello/share/style/dsssl/ldp.dsl,v
retrieving revision 1.1
retrieving revision 1.6
diff -i -b -u -r1.1 -r1.6
--- ldp.dsl 12 Jan 2003 10:11:22 -0000 1.1
+++ ldp.dsl 17 Feb 2003 02:17:12 -0000 1.6
@@ -13,11 +13,13 @@
"-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"
CDATA dsssl>
]]>
+<!ENTITY % lang.cn "INCLUDE">
+<!ENTITY % lang.cn.dsssl "INCLUDE">
]>
<style-sheet>
-;; ------------------------------------------------------------------------
+<!--
;; ldp.dsl - LDP Customized DSSSL Stylesheet
;; v1.10, 2002-12-04
;; Copyright (C) 2002-2000
@@ -35,11 +37,28 @@
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; ------------------------------------------------------------------------
+-->
<style-specification id="print" use="docbook">
<style-specification-body>
+<!--
+;; worldhello customize begin
+-->
+
+<![ %lang.cn; [
+<![ %lang.cn.dsssl; [
+(define %gentext-language% "zh_cn")
+]]>
+(define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html; charset=gb2312"))
+))
+]]>
+
+<!--
+;; worldhello customize end
+-->
+
+;; ==============================
;; customize the print stylesheet
(declare-characteristic preserve-sdata?
@@ -132,6 +151,74 @@
<style-specification id="html" use="docbook">
<style-specification-body>
+<!--
+;; worldhello customize begin
+-->
+<![ %lang.cn; [
+<![ %lang.cn.dsssl; [
+(define %gentext-language% "zh_cn")
+]]>
+(define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html; charset=gb2312"))
+))
+]]>
+
+(define %callout-graphics-number-limit%
+ ;; REFENTRY callout-graphics-number-limit
+ ;; PURP Number of largest callout graphic
+ ;; DESC
+ ;; If '%callout-graphics%' is true, graphics are used to represent
+ ;; callout numbers. The value of '%callout-graphics-number-limit%' is
+ ;; the largest number for which a graphic exists. If the callout number
+ ;; exceeds this limit, the default presentation "(nnn)" will always
+ ;; be used.
+ ;; /DESC
+ ;; AUTHOR N/A
+ ;; /REFENTRY
+ 20)
+(define %gentext-nav-use-tables%
+ ;; Use tables to build the navigation headers and footers?
+ #t)
+
+(define %body-attr%
+ (list
+ (list "BGCOLOR" "#FFFFFF")
+ (list "TEXT" "#000000")
+ (list "LINK" "#0000FF")
+ (list "VLINK" "#840084")
+ (list "ALINK" "#0000FF")))
+
+(define %stylesheet% "../images/docbook.css")
+(define %stylesheet-type% "text/css")
+(define %css-decoration% #t)
+(define %css-liststyle-alist%
+ '(("bullet" "disc") ("box" "square")))
+(define %spacingparas% #t)
+(define %link-mailto-url% "mailto:johnson.AT.worldhello.net")
+
+<!-- Understand <segmentedlist> and related elements. Simpleminded,
+ and only works for the HTML output. -->
+
+(element segmentedlist
+ (make element gi: "TABLE border='0'"
+ (process-children)))
+
+(element segtitle
+ (make element gi: "TH class='segmentedlist'"
+ (process-children)))
+
+(element seglistitem
+ (make element gi: "TR"
+ (process-children)))
+
+(element seg
+ (make element gi: "TD class='segmentedlist'"
+ attributes: '(("VALIGN" "TOP"))
+ (process-children)))
+
+<!--
+;; worldhello customize end
+-->
+
(declare-characteristic preserve-sdata?
;; this is necessary because right now jadetex does not understand
;; symbolic entities, whereas things work well with numeric entities.
@@ -214,7 +301,8 @@
(define (toc-depth nd)
;; more depth (2 levels) to toc; instead of flat hierarchy
- 2)
+ ;;2)
+ 4)
(element emphasis
;; make role=strong equate to bold for emphasis tag
-----邮件原件-----
发件人: 小新 [mailto:quakelee@263.net]
发送时间: 2003年7月4日 14:34
收件人: johnson.AT.worldhello.net
主题: 请教您关于docbook的一个问题
johnson,您好!
您能否告诉我,您那篇文章的css定义是怎么添加到dsl文件中让生成的html文件引用这个css呢。
谢谢了
致
礼!
小新
quakelee@263.net
2003-07-04