From: Bob Stayton Date: Thu, 29 Sep 2005 07:11:37 +0000 (+0000) Subject: Added parameters to localize punctuation in indexes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26df9bba614f507ee1cc1ffcfb39ab478e1ce161;p=docbook-dsssl Added parameters to localize punctuation in indexes. --- diff --git a/xsl/params/index.number.separator.xml b/xsl/params/index.number.separator.xml new file mode 100644 index 000000000..1e516b9a7 --- /dev/null +++ b/xsl/params/index.number.separator.xml @@ -0,0 +1,46 @@ + + +index.number.separator +string + + +index.number.separator +Punctuation separating page numbers in index + + + + + + + index + number-separator + + + + + +Description + +This parameter contains the text to insert between +page references in a formatted index entry. Typically +that would be a comma and a space. + + +Because this text may be locale dependent, +this parameter's value is taken from a gentext +template named 'number-separator' in the +context 'index' in the stylesheet +locale file for the language +of the current document. + + +So this text string can be customized in two ways. +You can override the default gentext string using +the local.l10n.xml parameter, or you can +directly replace the content of this parameter. +The content can be a simple string, or it can be +something more complex such as a call-template. + + + + diff --git a/xsl/params/index.range.separator.xml b/xsl/params/index.range.separator.xml new file mode 100644 index 000000000..004cc1c3e --- /dev/null +++ b/xsl/params/index.range.separator.xml @@ -0,0 +1,49 @@ + + +index.range.separator +string + + +index.range.separator +Punctuation separating the two numbers +in a page range in index + + + + + + + index + range-separator + + + + + +Description + +This parameter contains the text to insert between +the two numbers of a page range in an index. +This parameter is only used by those XSL-FO processors +that support an extension for generating such page ranges +(such as XEP). + + +Because this text may be locale dependent, +this parameter's value is taken from a gentext +template named 'range-separator' in the +context 'index' in the stylesheet +locale file for the language +of the current document. + + +So this text string can be customized in two ways. +You can override the default gentext string using +the local.l10n.xml parameter, or you can +directly replace the content of this parameter. +The content can be a simple string, or it can be +something more complex such as a call-template. + + + + diff --git a/xsl/params/index.term.separator.xml b/xsl/params/index.term.separator.xml new file mode 100644 index 000000000..cff276116 --- /dev/null +++ b/xsl/params/index.term.separator.xml @@ -0,0 +1,49 @@ + + +index.term.separator +string + + +index.term.separator +Punctuation separating an index term +from its list of page references in an index + + + + + + + index + term-separator + + + + + +Description + +This parameter contains the text to insert between +the end of an index term and its list of page references. +Typically that might be a comma and a space. + + +Because this text may be locale dependent, +this parameter's value is taken from a gentext +template named 'term-separator' in the +context 'index' in the stylesheet +locale file for the language +of the current document. + + +So this text string can be customized in two ways. +You can override the default gentext string using +the local.l10n.xml parameter, or you can +directly replace the content of this parameter. +The content can be a simple string, or it can be +something more complex such as a call-template. +For fo output, it could be an fo:leader +element to provide space of a specific length, or a dot leader. + + + +