From b775f4394a931be84755c2935f64df9e36a4502f Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 4 Jan 2002 16:08:03 +0000 Subject: [PATCH] First cut at supporting a glossary.collection file --- xsl/fo/glossary.xsl | 190 +++++++++++++++++++++++++++++ xsl/fo/inline.xsl | 56 ++++++++- xsl/fo/param.ent | 2 + xsl/fo/param.xweb | 12 +- xsl/html/glossary.xsl | 95 +++++++++++++++ xsl/html/inline.xsl | 61 +++++++-- xsl/html/param.ent | 2 + xsl/html/param.xweb | 9 +- xsl/params/firstterm.only.link.xml | 24 ++++ xsl/params/glossary.collection.xml | 28 +++++ 10 files changed, 463 insertions(+), 16 deletions(-) create mode 100644 xsl/params/firstterm.only.link.xml create mode 100644 xsl/params/glossary.collection.xml diff --git a/xsl/fo/glossary.xsl b/xsl/fo/glossary.xsl index 1e52ca5cf..c5e84b03d 100644 --- a/xsl/fo/glossary.xsl +++ b/xsl/fo/glossary.xsl @@ -316,6 +316,196 @@ GlossEntry ::= + + + + + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + + + + + + + end-on-even + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/inline.xsl b/xsl/fo/inline.xsl index 024015063..d0f21671e 100644 --- a/xsl/fo/inline.xsl +++ b/xsl/fo/inline.xsl @@ -459,19 +459,67 @@ - + + + - + + + - + - + + + + + + + + + + + + + There's no entry for + + in + + + + + + + gl. + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index b7eca3861..8b9e35b8b 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -33,6 +33,7 @@ + @@ -54,6 +55,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 5945567af..68229baff 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -165,15 +165,17 @@ to be incomplete. Don't forget to read the source, too :-) &qanda.inherit.numeration; -Linking -&glossterm.auto.link; - - Bibliography &biblioentry.item.separator; &bibliography.collection; +Glossary +&glossterm.auto.link; +&firstterm.only.link; +&glossary.collection; + + Miscellaneous &graphic.default.extension; &formal.procedures; @@ -306,6 +308,7 @@ around all these parameters. + @@ -327,6 +330,7 @@ around all these parameters. + diff --git a/xsl/html/glossary.xsl b/xsl/html/glossary.xsl index 48e574dfc..afcffdc88 100644 --- a/xsl/html/glossary.xsl +++ b/xsl/html/glossary.xsl @@ -212,4 +212,99 @@ GlossEntry ::= + + + + + + + + + + Warning: processing automatic glossary + without a glossary.collection file. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+
+
+ + +
+
+ + + + + + + + + +
+ + +
+ + + + + + +
+
+
+ + + + + + + + gl. + + + + + +
+ + +
+
+ + + diff --git a/xsl/html/inline.xsl b/xsl/html/inline.xsl index 47033d9e9..dfd50dc84 100644 --- a/xsl/html/inline.xsl +++ b/xsl/html/inline.xsl @@ -616,13 +616,17 @@
- + + + - + + + - + @@ -647,7 +651,50 @@ - + + + + + + + + + + + + + There's no entry for + + in + + + + + + + gl. + + + + + + + + + + + + + + + + + @@ -658,7 +705,7 @@ - @@ -678,13 +725,13 @@ - + - + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index f796d874e..c128494a3 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -31,6 +31,7 @@ + @@ -51,6 +52,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 5322ae1ed..943269014 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -197,7 +197,6 @@ to be incomplete. Don't forget to read the source, too :-) &olink.pubid; &olink.sysid; &olink.resolver; -&glossterm.auto.link; Bibliography @@ -205,6 +204,12 @@ to be incomplete. Don't forget to read the source, too :-) &bibliography.collection; +Glossary +&glossterm.auto.link; +&firstterm.only.link; +&glossary.collection; + + Miscellaneous &graphic.default.extension; &formal.procedures; @@ -308,6 +313,7 @@ around all these parameters. + @@ -328,6 +334,7 @@ around all these parameters. + diff --git a/xsl/params/firstterm.only.link.xml b/xsl/params/firstterm.only.link.xml new file mode 100644 index 000000000..eb53b36d9 --- /dev/null +++ b/xsl/params/firstterm.only.link.xml @@ -0,0 +1,24 @@ + + +firstterm.only.link +boolean + + +firstterm.only.link +Does automatic glossterm linking only apply to firstterms? + + + + + + + + +Description + +If true, only firstterms will be automatically linked +to the glossary. If glossary linking is not enabled, this parameter +has no effect. + + + diff --git a/xsl/params/glossary.collection.xml b/xsl/params/glossary.collection.xml new file mode 100644 index 000000000..5030d5551 --- /dev/null +++ b/xsl/params/glossary.collection.xml @@ -0,0 +1,28 @@ + + +glossary.collection +string + + +glossary.collection +Name of the glossary collection file + + + + + + + + +Description + +Tired of manually maintaining glossaries for multiple documents? +Now you can maintain a central glossary and let the stylesheets do +the copying for you. This parameter identifies the file (by URI reference) +that contains your complete glossary collection. + + +THIS IS EXPERIMENTAL. IT PROBABLY DOESN'T WORK + + + -- 2.40.0