diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2023-03-13 16:41:53 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2023-03-16 15:18:30 +0000 |
commit | 4453c0b2edae4934f87594d5974783c4a1a5ea54 (patch) | |
tree | da7008bd439cc57cd8d44597f8cba6fc1808aa0c /source/text/swriter/01/04120220.xhp | |
parent | 77cb682cd1b004e7247560e60f603a4bb0565b8d (diff) |
convert paragraphs with role="heading" & childelements to → h<level>
and also drop the language that was changed to implied previously/defaults to
en-US unless specified.
This change doesn't affect translations, only the content of the
paragraph/headings is extracted.
done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>.*?)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
and manually undoing the one that uses <sup>in body that's not valid
according to the dtd in the h tags.
Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/swriter/01/04120220.xhp')
-rw-r--r-- | source/text/swriter/01/04120220.xhp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/text/swriter/01/04120220.xhp b/source/text/swriter/01/04120220.xhp index b278fb31ec..655cfcf6ac 100644 --- a/source/text/swriter/01/04120220.xhp +++ b/source/text/swriter/01/04120220.xhp @@ -35,18 +35,18 @@ <section id="entries"> <bookmark branch="hid/modules/swriter/ui/tocentriespage/@@nowidget@@" xml-lang="en-US" id="bm_@@nowidget@@" localize="false"/> <bookmark branch="hid/modules/swriter/ui/tocentriespage/TocEntriesPage" xml-lang="en-US" id="bm_id3145824" localize="false"/> - <paragraph id="hd_id3149349" role="heading" level="1" xml-lang="en-US"><link href="text/swriter/01/04120220.xhp">Entries (indexes/tables)</link></paragraph> + <h1 id="hd_id3149349"><link href="text/swriter/01/04120220.xhp">Entries (indexes/tables)</link></h1> <paragraph role="paragraph" id="par_id3154504" xml-lang="en-US"><ahelp visibility="visible" hid="modules/swriter/ui/tocentriespage/TocEntriesPage">Specify the format of the index or table entries. The appearance of this tab changes to reflect the type of index that you selected on the <link href="text/swriter/01/04120210.xhp">Type</link> tab.</ahelp></paragraph> </section> <section id="howtoget"> <embed href="text/swriter/00/00000404.xhp#verz3"/> </section> - <paragraph id="hd_id3148770" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120221.xhp">Table of Contents</link></paragraph> - <paragraph id="hd_id3147564" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120222.xhp">Alphabetical Index</link></paragraph> - <paragraph id="hd_id3151188" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120223.xhp">Illustration Index</link></paragraph> - <paragraph id="hd_id3150761" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120224.xhp">Index of Tables</link></paragraph> - <paragraph id="hd_id3153517" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120225.xhp">User-Defined</link></paragraph> - <paragraph id="hd_id3151175" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120226.xhp">Table of Objects</link></paragraph> - <paragraph id="hd_id3147506" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04120227.xhp">Bibliography</link></paragraph> + <h2 id="hd_id3148770"><link href="text/swriter/01/04120221.xhp">Table of Contents</link></h2> + <h2 id="hd_id3147564"><link href="text/swriter/01/04120222.xhp">Alphabetical Index</link></h2> + <h2 id="hd_id3151188"><link href="text/swriter/01/04120223.xhp">Illustration Index</link></h2> + <h2 id="hd_id3150761"><link href="text/swriter/01/04120224.xhp">Index of Tables</link></h2> + <h2 id="hd_id3153517"><link href="text/swriter/01/04120225.xhp">User-Defined</link></h2> + <h2 id="hd_id3151175"><link href="text/swriter/01/04120226.xhp">Table of Objects</link></h2> + <h2 id="hd_id3147506"><link href="text/swriter/01/04120227.xhp">Bibliography</link></h2> </body> </helpdocument> |