diff --git a/merge-documents.xsl b/merge-documents.xsl index 7e651f7a..5037ffba 100644 --- a/merge-documents.xsl +++ b/merge-documents.xsl @@ -90,8 +90,13 @@ + + Mode used to prefix ids with a given prefix. + + + - Do not mess with language IDs. + Do not change language IDs. @@ -100,7 +105,7 @@ - Translate IDs in @id attribute. + Translate IDs in @id attributes. diff --git a/modules/block.xsl b/modules/block.xsl index fcf0de14..c3dcc7aa 100644 --- a/modules/block.xsl +++ b/modules/block.xsl @@ -161,6 +161,12 @@ + + Generate a link to a facsimile image. + Generate a direct HTML link to a facsimile image. + The URL of the facsimile image. + + @@ -176,7 +182,6 @@ Generate anchor for a pb-element. - Generate an anchor for a pb-element. @@ -223,12 +228,10 @@ - Handle a milestone (thematic break). - Handle a document milestone. This is mostly used to encode thematic breaks. Generates - slightly different outputs, depending on the @type and @rend-attributes. + A map with various types of milestone markers. - + + Handle a milestone (thematic break). + Handle a document milestone. This is mostly used to encode thematic breaks. Generates + slightly different outputs, depending on the @type and @rend-attributes. + + @@ -289,7 +298,7 @@ - + @@ -398,10 +407,10 @@ Determine the nesting level of a quotation in a paragraph. Count from the most direct ancestor that is a block element, for now consider p, note, cell, item, and q[f:is-block(.)]; - count the number of q ancestors between that and self. + count the number of q ancestors between that and self. - + @@ -693,7 +702,7 @@ - + @@ -703,8 +712,8 @@ - - + + @@ -727,7 +736,9 @@ - + A list of open quotation marks, used when handling decorative initials. + + @@ -775,7 +786,7 @@ - + diff --git a/modules/css.xsl b/modules/css.xsl index 91a676f6..0a06b953 100644 --- a/modules/css.xsl +++ b/modules/css.xsl @@ -68,7 +68,7 @@ - + diff --git a/modules/functions.xsl b/modules/functions.xsl index 670fd5f6..5bc1f2f8 100644 --- a/modules/functions.xsl +++ b/modules/functions.xsl @@ -11,7 +11,7 @@ Utility functions, used by tei2html - This stylesheet contains several utility functions, used by tei2html and tei2epub. +

This stylesheet contains several utility functions, used by tei2html and tei2epub.

Jeroen Hellingman 2021, Jeroen Hellingman
@@ -61,8 +61,8 @@ Provide a default value when a value is null. - The value to be tested. - The default value. + The value to be tested. + The default value. @@ -71,6 +71,11 @@ + + Mode to convert nodes tree to plain text. Only one branch of choice elements will be included. + + + Convert a node tree to plain text. Only one branch of choice elements will be included. diff --git a/modules/levenshtein.xsl b/modules/levenshtein.xsl index ee632160..95583a1b 100644 --- a/modules/levenshtein.xsl +++ b/modules/levenshtein.xsl @@ -9,9 +9,19 @@ exclude-result-prefixes="f xd xs"> + Functions to calculate the Levenshtein distance between two strings. + +

This stylesheet is based on the algorithm given by Jeni Tennison, see his article + Levenshtein distance on the diagonal. +

+
+
+ + Calculate the Levenshtein distance between two strings. - This stylesheet is based on the algorithm given by Jeni Tennison, see - https://www.jenitennison.com/2007/05/06/levenshtein-distance-on-the-diagonal.html. +

This is the top-level function, intended to be called by external stylesheets.

+ The first string. + The second string.
@@ -28,6 +38,11 @@ (1, 0, 1), 2)"/> + + Calculate the Levenshtein distance between two strings. +

This function should not be called by external stylesheets.

+
+ diff --git a/modules/utils.xsl b/modules/utils.xsl index 2fd4f208..5e844f56 100644 --- a/modules/utils.xsl +++ b/modules/utils.xsl @@ -549,6 +549,10 @@ + + + + diff --git a/schemas/xsltdoc.xsd b/schemas/xsltdoc.xsd index 5ba9814a..a5a51e5f 100644 --- a/schemas/xsltdoc.xsd +++ b/schemas/xsltdoc.xsd @@ -20,8 +20,10 @@ + + @@ -37,6 +39,7 @@ + @@ -47,7 +50,9 @@ - + + + @@ -59,7 +64,16 @@ + + + + + + + + + diff --git a/tei2html.xsl b/tei2html.xsl index f3f2b705..54baae53 100644 --- a/tei2html.xsl +++ b/tei2html.xsl @@ -70,7 +70,7 @@ - + diff --git a/tei2html5.xsl b/tei2html5.xsl index d4c915b2..10921136 100644 --- a/tei2html5.xsl +++ b/tei2html5.xsl @@ -69,7 +69,7 @@ - + diff --git a/tei2xhtml.xsl b/tei2xhtml.xsl index beb5ca73..866e7431 100644 --- a/tei2xhtml.xsl +++ b/tei2xhtml.xsl @@ -68,7 +68,7 @@ - + diff --git a/tools/SgmlSupport.pm b/tools/SgmlSupport.pm index 10e7c1ba..ff534ba8 100644 --- a/tools/SgmlSupport.pm +++ b/tools/SgmlSupport.pm @@ -1515,6 +1515,8 @@ BEGIN { $ent{'Peso'} = chr(0x20B1); # Peso sign $ent{'Euro'} = chr(0x20AC); # Euro sign + $ent{'Rupee'} = "Re."; # Rupee sign (singular; also seen as R with strike-through, not in Unicode). + $ent{'Rupees'} = "Rs."; # Rupees sign (plural; could also use U+20A8. Do not use the modern Indian rupee U+20B9 sign here!) $ent{'triangle'} = chr(0x25B3); # White triangle diff --git a/xspec/test-tei2html.xsl b/xspec/test-tei2html.xsl index 6c8bb9e5..dce7e7e3 100644 --- a/xspec/test-tei2html.xsl +++ b/xspec/test-tei2html.xsl @@ -3,6 +3,7 @@ @@ -50,7 +51,7 @@ - +