From 665de9c63075ec273cbb5e694f1501358fa03e3c Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 27 Jun 2002 14:05:55 +0000 Subject: [PATCH] Make glossary parameters properly documented parameters; support glossary.as.blocks --- xsl/fo/glossary.xsl | 786 ++++++++++++++++++---------- xsl/fo/param.ent | 4 + xsl/fo/param.xweb | 24 +- xsl/params/glossary.as.blocks.xml | 33 ++ xsl/params/glosslist.as.blocks.xml | 22 + xsl/params/glossterm.separation.xml | 23 + xsl/params/glossterm.width.xml | 23 + 7 files changed, 629 insertions(+), 286 deletions(-) create mode 100644 xsl/params/glossary.as.blocks.xml create mode 100644 xsl/params/glosslist.as.blocks.xml create mode 100644 xsl/params/glossterm.separation.xml create mode 100644 xsl/params/glossterm.width.xml diff --git a/xsl/fo/glossary.xsl b/xsl/fo/glossary.xsl index 8697efaa3..f1629e56c 100644 --- a/xsl/fo/glossary.xsl +++ b/xsl/fo/glossary.xsl @@ -15,56 +15,93 @@ -2in -0.25in - - - - - - - - - + + + - + + + + + + + + + + + - - - + + + + + + - - - + + + + + + + + + + - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -91,23 +128,7 @@ - - - - - - - - - - - - - - - + @@ -118,20 +139,13 @@ - + - + @@ -139,17 +153,282 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + + + + + + + end-on-even + + + + + + + + + + + + + + + + + + + - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -195,11 +521,11 @@ GlossEntry ::= - + - + @@ -207,16 +533,16 @@ GlossEntry ::= - + - + - + - + @@ -231,7 +557,7 @@ GlossEntry ::= - + . @@ -239,7 +565,7 @@ GlossEntry ::= - + @@ -248,19 +574,20 @@ GlossEntry ::= - + - + - + @@ -270,7 +597,7 @@ GlossEntry ::= - + @@ -285,216 +612,119 @@ GlossEntry ::= + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - Warning: processing automatic glossary - without a glossary.collection file. - - - - - - - + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - + - - + + + - - - Warning: processing automatic glossary - without a glossary.collection file. - - - - - - - - - end-on-even - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 0 + 1 - - - - + + + + - - - + + + - - + + + - + + + + - - - - - - - - - - + + + + + + + + + + + + + . - - - - + + + + + + + + + + + + - + + - + + + + + + + + + + + + + + + + + + + + . + + + , + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index 742e135f1..1df61393a 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -49,6 +49,10 @@ + + + + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index dcd6c7dec..e9e69437c 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -173,6 +173,10 @@ generate.section.toc.level; &glossterm.auto.link; &firstterm.only.link; &glossary.collection; +&glossterm.separation; +&glossterm.width; +&glossary.as.blocks; +&glosslist.as.blocks; Miscellaneous @@ -423,8 +427,12 @@ around all these parameters. + + + + @@ -459,6 +467,7 @@ around all these parameters. + @@ -467,11 +476,10 @@ around all these parameters. + - - - + @@ -498,20 +506,20 @@ around all these parameters. - - + + - - - + + + diff --git a/xsl/params/glossary.as.blocks.xml b/xsl/params/glossary.as.blocks.xml new file mode 100644 index 000000000..dd92f0563 --- /dev/null +++ b/xsl/params/glossary.as.blocks.xml @@ -0,0 +1,33 @@ + + +glossary.as.blocks +boolean + + +glossary.as.blocks +Present glossarys using blocks instead of lists? + + + + + + + + +Description + +If non-zero, glossarys will be formatted as +blocks. + +If you have long glossterms, proper list +markup in the FO case may produce unattractive lists. By setting this +parameter, you can force the stylesheets to produce block markup +instead of proper lists. + +You can override this setting with a processing instruction as the +child of glossary: dbfo +glossary-presentation="blocks" or dbfo +glossary-presentation="list" + + + diff --git a/xsl/params/glosslist.as.blocks.xml b/xsl/params/glosslist.as.blocks.xml new file mode 100644 index 000000000..53af6ee2f --- /dev/null +++ b/xsl/params/glosslist.as.blocks.xml @@ -0,0 +1,22 @@ + + +glosslist.as.blocks +boolean + + +glosslist.as.blocks +Use blocks for glosslists? + + + + + + + + +Description + +See glossary.as.blocks. + + + diff --git a/xsl/params/glossterm.separation.xml b/xsl/params/glossterm.separation.xml new file mode 100644 index 000000000..d69a2b928 --- /dev/null +++ b/xsl/params/glossterm.separation.xml @@ -0,0 +1,23 @@ + + +glossterm.separation +length + + +glossterm.separation +Separation between glossary terms and descriptions in list mode + + + + + + + + +Description + +Specifies the separation between glossary terms and descriptions when +glossarys are presented using lists. + + + diff --git a/xsl/params/glossterm.width.xml b/xsl/params/glossterm.width.xml new file mode 100644 index 000000000..6f26d76f6 --- /dev/null +++ b/xsl/params/glossterm.width.xml @@ -0,0 +1,23 @@ + + +glossterm.width +length + + +glossterm.width +Width of glossterm in list presentation mode + + + + + + + + +Description + +This parameter specifies the width reserved for glossary terms when +a list presentation is used. + + + -- 2.50.1