From: Michael Smith Date: Mon, 26 Feb 2007 20:04:25 +0000 (+0000) Subject: Reverted necessary escaping of backslash, dot, and dash X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=835ebb3dfee1ba067e580df6528a93026a02886b;p=docbook-dsssl Reverted necessary escaping of backslash, dot, and dash out of the well-intentioned (but it now appears, misguided) "marker" mechanism (introduced in the 1.72.0 release) -- which made use of alternative "marker" characters as internal representations of those characters, and then replaced them just prior to serialization -- and back into what's basically the system that was used prior to the 1.69.0 release; that is, into a part of stylesheet code that gets executed at the beginning of processing -- before any other roff markup up is. This change obviates the need for the marker system. It also requires a lot less RAM during processing (for large files, the marker mechanism ending up requiring gigabytes of memory). Closes bug #1661177. Thanks to Scott Smedley for providing a test case (the fvwm man page) that exposed the problem with the marker mechanism. Also moved the mechanism for converting non-breaking spaces back into the same area of the stylesheet code. --- diff --git a/xsl/manpages/block.xsl b/xsl/manpages/block.xsl index 1751a4528..43917f6ff 100644 --- a/xsl/manpages/block.xsl +++ b/xsl/manpages/block.xsl @@ -26,7 +26,7 @@ - ⌂PP + .PP @@ -54,14 +54,14 @@ ancestor::authorblurb or ancestor::personblurb"> - ⌂sp + .sp - ⌂RS 4n + .RS 4n - ⌂PP + .PP @@ -72,7 +72,7 @@ ancestor::personblurb"> - ⌂RE + .RE @@ -87,7 +87,7 @@ - ⌂sp + .sp @@ -120,12 +120,12 @@ parent::td|parent::th" /> - ⌂sp + .sp - ⌂RS + .RS @@ -151,31 +151,31 @@ - ⌂ft + .ft - ⌂nf + .nf - ⌂fi - ⌂ft + .fi + .ft - ⌂nf + .nf - ⌂fi + .fi - ⌂RE + .RE - ⌂sp + .sp @@ -215,7 +215,7 @@ - ⌂PP + .PP @@ -225,9 +225,9 @@ - ⌂sp + .sp - ⌂RS + .RS @@ -235,7 +235,7 @@ - ⌂RE + .RE diff --git a/xsl/manpages/endnotes.xsl b/xsl/manpages/endnotes.xsl index f0bad2001..39a2f81a2 100644 --- a/xsl/manpages/endnotes.xsl +++ b/xsl/manpages/endnotes.xsl @@ -226,7 +226,7 @@ - ▓% + \% @@ -293,7 +293,7 @@ - ▓&[ + \&[ ] @@ -344,7 +344,7 @@ - ⌂SH " + .SH " @@ -368,7 +368,7 @@ - ⌂IP + .IP " @@ -426,7 +426,7 @@ - ⌂RS + .RS @@ -437,11 +437,11 @@ - ▓% + \% - ⌂RE + .RE diff --git a/xsl/manpages/info.xsl b/xsl/manpages/info.xsl index 66cd06cdd..5bbe063f6 100644 --- a/xsl/manpages/info.xsl +++ b/xsl/manpages/info.xsl @@ -25,7 +25,7 @@ - ▓n(zqu + \n(zqu @@ -202,7 +202,7 @@ $info//othercredit)"> - ⌂SH " + .SH " @@ -256,7 +256,7 @@ - ⌂PP + .PP @@ -264,7 +264,7 @@ - ⌂br + .br @@ -276,7 +276,7 @@ - ⌂PP + .PP @@ -286,7 +286,7 @@ - ⌂PP + .PP @@ -296,7 +296,7 @@ - ⌂PP + .PP @@ -308,8 +308,8 @@ - ⌂sp ░1n - ⌂IP "" + .sp -1n + .IP "" @@ -339,7 +339,7 @@ - <▓& + <\& @@ -354,7 +354,7 @@ - ▓&> + \&> - ⌂br + .br @@ -400,7 +400,7 @@ - ⌂br + .br @@ -414,7 +414,7 @@ - ⌂br + .br @@ -432,8 +432,8 @@ - ⌂sp ░1n - ⌂IP "" + .sp -1n + .IP "" @@ -446,8 +446,8 @@ - ⌂sp ░1n - ⌂IP "" + .sp -1n + .IP "" @@ -464,8 +464,8 @@ - ⌂sp ░1n - ⌂IP "" + .sp -1n + .IP "" @@ -529,8 +529,8 @@ |../othername|../lineage|../honorific |../affiliation|../email|../address"> - ⌂sp ░1n - ⌂IP "" + .sp -1n + .IP "" @@ -543,12 +543,12 @@ - ⌂PP + .PP - ⌂br + .br @@ -566,7 +566,7 @@ - ⌂SH " + .SH " @@ -583,13 +583,13 @@ - ⌂br + .br - ⌂br + .br diff --git a/xsl/manpages/lists.xsl b/xsl/manpages/lists.xsl index 510dad94d..6b4fabcd5 100644 --- a/xsl/manpages/lists.xsl +++ b/xsl/manpages/lists.xsl @@ -22,7 +22,7 @@ - ▓n(zqu + \n(zqu @@ -42,13 +42,13 @@ ]"> - ⌂sp + .sp - ⌂PP + .PP @@ -56,7 +56,7 @@ - ⌂PP + .PP @@ -76,20 +76,20 @@ - ⌂br + .br - ⌂RS + .RS - ⌂RE + .RE @@ -102,7 +102,7 @@ parent::para[following-sibling::node()] or parent::simpara[following-sibling::node()] or parent::remark[following-sibling::node()]"> - ⌂sp + .sp @@ -117,42 +117,42 @@ - ⌂sp + .sp - ⌂RS + .RS - ▓h'░ + \h'- 0 ' - ▓h'+ + \h'+ 0 ' - ⌂RE + .RE - ⌂sp + .sp - ⌂RS + .RS - ▓h'░ + \h'- 0 @@ -162,20 +162,20 @@ - ▓h'+ + \h'+ 0 ' - ⌂RE + .RE - ⌂PP + .PP @@ -189,8 +189,8 @@ - ⌂sp - ⌂RE + .sp + .RE @@ -198,7 +198,7 @@ orderedlist[ancestor::listitem or ancestor::step or ancestor::glossdef]| procedure[ancestor::listitem or ancestor::step or ancestor::glossdef]"> - ⌂PP + .PP @@ -207,7 +207,7 @@ parent::para[following-sibling::node()] or parent::simpara[following-sibling::node()] or parent::remark[following-sibling::node()]"> - ⌂IP "" + .IP "" @@ -257,7 +257,7 @@ - ⌂IP "" + .IP "" @@ -274,14 +274,14 @@ - ⌂PP + .PP - ⌂▓" line length increase to cope w/ tbl weirdness - ⌂ll +(▓n(LLu * 62u / 100u) + .\" line length increase to cope w/ tbl weirdness + .ll +(\n(LLu * 62u / 100u) - ⌂TS + .TS @@ -290,7 +290,7 @@ l - + . @@ -304,11 +304,11 @@ - ⌂TE - ⌂▓" line length decrease back to previous value - ⌂ll ░(▓n(LLu * 62u / 100u) + .TE + .\" line length decrease back to previous value + .ll -(\n(LLu * 62u / 100u) - ⌂sp + .sp diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 90c191eb3..0b96f09cb 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -145,7 +145,7 @@ db:manvolnum - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ + + + + + \e + + + + + + + + . + \. + + + + + + + + - + \- + + + + + + + + ' + \' + + + + + + + +   + + + + + + + + + + + + + + + + \ + + + @@ -169,12 +280,12 @@ db:manvolnum - ⌂▓" Title: + .\" Title: - ⌂▓" Author: + .\" Author: @@ -183,30 +294,30 @@ db:manvolnum - ⌂▓" Generator: DocBook + .\" Generator: DocBook v - <http://docbook⌂sf⌂net/> + <http://docbook.sf.net/> - ⌂▓" Date: + .\" Date: - ⌂▓" Manual: + .\" Manual: - ⌂▓" Source: + .\" Source: - ⌂▓" + .\" @@ -255,7 +366,7 @@ db:manvolnum - ⌂TH " + .TH " @@ -317,32 +428,32 @@ db:manvolnum - ⌂▓" disable hyphenation - ⌂nh + .\" disable hyphenation + .nh - ⌂▓" disable justification + .\" disable justification (adjust text to left margin only) - ⌂ad l + .ad l - ⌂▓" store initial "default indentation value" - ⌂nr zq ▓n(IN - ⌂▓" adjust default indentation - ⌂nr IN + .\" store initial "default indentation value" + .nr zq \n(IN + .\" adjust default indentation + .nr IN - ⌂▓" adjust indentation of SS headings - ⌂nr SN ▓n(IN + .\" adjust indentation of SS headings + .nr SN \n(IN - ⌂▓" enable line breaks after slashes - ⌂cflags 4 / + .\" enable line breaks after slashes + .cflags 4 / diff --git a/xsl/manpages/refentry.xsl b/xsl/manpages/refentry.xsl index b5463684d..3634e79a5 100644 --- a/xsl/manpages/refentry.xsl +++ b/xsl/manpages/refentry.xsl @@ -19,11 +19,11 @@ - ⌂br + .br - ⌂SH " + .SH " " @@ -65,7 +65,7 @@ - ⌂SH " + .SH " " @@ -77,7 +77,7 @@ - ⌂SH " + .SH " " @@ -94,7 +94,7 @@ |title)[1]/node()"/> - ⌂SS " + .SS " " @@ -102,9 +102,9 @@ - ⌂RS + .RS - ⌂RE + .RE @@ -131,9 +131,9 @@ - ⌂RS + .RS - ⌂RE + .RE @@ -143,7 +143,7 @@ - ⌂ti (▓n(SNu * 5u / 3u) + .ti (\n(SNu * 5u / 3u) @@ -165,13 +165,13 @@ - (▓n(SNu) + (\n(SNu) - ⌂RS (▓n(SNu) + .RS (\n(SNu) - ⌂RE + .RE diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index 2c69f370d..07678fc5a 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -50,9 +50,9 @@ - ⌂sp ░1n + .sp -1n - ⌂HP + .HP @@ -150,30 +150,30 @@ - ⌂br▒ + .br▒ - ⌂ad l + .ad l - ⌂hy 0 + .hy 0 - ⌂HP + .HP - ⌂ad + .ad - ⌂hy + .hy @@ -191,20 +191,20 @@ - ⌂ad l + .ad l - ⌂hy 0 + .hy 0 - ⌂ad + .ad - ⌂hy + .hy @@ -232,12 +232,12 @@ - ⌂HP + .HP - + . @@ -282,18 +282,18 @@ - + - - + + - " " + "░" - " " + "░" diff --git a/xsl/manpages/table.xsl b/xsl/manpages/table.xsl index 921f14872..ea15126e5 100644 --- a/xsl/manpages/table.xsl +++ b/xsl/manpages/table.xsl @@ -125,7 +125,7 @@ - ⌂PP + .PP . @@ -134,12 +134,12 @@ - ⌂sp ░1n + .sp -1n - ⌂TS + .TS H @@ -175,7 +175,7 @@ - ⌂TH + .TH @@ -186,7 +186,7 @@ - ⌂T& + .T& @@ -208,9 +208,9 @@ - ⌂TE + .TE - ⌂sp + .sp @@ -380,7 +380,7 @@ >tbl convert : Extracted a nested table - [▓fInested▀table▓fR]* + [\fInested▀table\fR]* @@ -436,7 +436,7 @@ - + @@ -462,9 +462,7 @@ - - - + . @@ -571,7 +569,7 @@ select=".//tgroup//footnote"/> - ⌂br + .br diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index beaaceba5..1ae62af63 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -37,17 +37,17 @@ - ▓fB + \fB - ▓fR + \fR - ▓fI + \fI - ▓fR + \fR @@ -95,7 +95,7 @@ - ▓% + \% @@ -112,14 +112,14 @@ - - + + - - + + @@ -130,11 +130,11 @@ - ⌂sp - ⌂it 1 an░trap - ⌂nr an░no░space░flag 1 - ⌂nr an░break░flag 1 - ⌂br + .sp + .it 1 an-trap + .nr an-no-space-flag 1 + .nr an-break-flag 1 + .br @@ -172,7 +172,7 @@ - ⌂sp + .sp @@ -284,7 +284,7 @@ preceding-sibling::note| preceding-sibling::tip| preceding-sibling::warning)"> - ⌂RS + .RS @@ -321,7 +321,7 @@ tip| warning"> - ⌂RE + .RE @@ -421,7 +421,7 @@ - ⌂▓" + .\" diff --git a/xsl/params/man.string.subst.map.xml b/xsl/params/man.string.subst.map.xml index 4a135485b..8c4cf7df7 100644 --- a/xsl/params/man.string.subst.map.xml +++ b/xsl/params/man.string.subst.map.xml @@ -18,29 +18,6 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -49,16 +26,6 @@ - - - - - - - - - - @@ -70,33 +37,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -115,10 +60,10 @@ - + - + @@ -129,12 +74,6 @@ - - - - - -