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/shared/autopi/01000000.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/shared/autopi/01000000.xhp')
-rw-r--r-- | source/text/shared/autopi/01000000.xhp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/text/shared/autopi/01000000.xhp b/source/text/shared/autopi/01000000.xhp index d074b2b2ff..4094a04ccf 100644 --- a/source/text/shared/autopi/01000000.xhp +++ b/source/text/shared/autopi/01000000.xhp @@ -36,22 +36,22 @@ <bookmark_value>AutoPilots, see wizards</bookmark_value> </bookmark> <bookmark xml-lang="en-US" branch="hid/.uno:AutoPilotMenu" id="bm_id3149827" localize="false"/> -<paragraph role="heading" id="hd_id3152551" xml-lang="en-US" level="1"><link href="text/shared/autopi/01000000.xhp">Wizards</link></paragraph> +<h1 id="hd_id3152551"><link href="text/shared/autopi/01000000.xhp">Wizards</link></h1> <paragraph role="paragraph" id="par_id3153527" xml-lang="en-US"><ahelp hid=".uno:AutoPilotMenu">Guides you through creating business and personal letters, faxes, agendas, and more.</ahelp></paragraph> </section> </section> <section id="howtoget"> <embed href="text/shared/00/00000401.xhp#autobrief"/> </section> -<paragraph role="heading" id="hd_id3154750" xml-lang="en-US" level="2"><link href="text/shared/autopi/01010000.xhp">Letter</link></paragraph> +<h2 id="hd_id3154750"><link href="text/shared/autopi/01010000.xhp">Letter</link></h2> <embed href="text/shared/autopi/01010000.xhp#brief"/> -<paragraph role="heading" id="hd_id3153662" xml-lang="en-US" level="2"><link href="text/shared/autopi/01020000.xhp">Fax</link></paragraph> +<h2 id="hd_id3153662"><link href="text/shared/autopi/01020000.xhp">Fax</link></h2> <embed href="text/shared/autopi/01020000.xhp#fax"/> -<paragraph role="heading" id="hd_id3153561" xml-lang="en-US" level="2"><link href="text/shared/autopi/01040000.xhp">Agenda</link></paragraph> +<h2 id="hd_id3153561"><link href="text/shared/autopi/01040000.xhp">Agenda</link></h2> <embed href="text/shared/autopi/01040000.xhp#agenda"/> -<paragraph role="heading" id="hd_id3147530" xml-lang="en-US" level="2"><link href="text/shared/autopi/01130000.xhp">Document Converter</link></paragraph> +<h2 id="hd_id3147530"><link href="text/shared/autopi/01130000.xhp">Document Converter</link></h2> <embed href="text/shared/autopi/01130000.xhp#ms"/> -<paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2"><link href="text/shared/autopi/01150000.xhp">Euro Converter</link></paragraph> +<h2 id="hd_id3147303"><link href="text/shared/autopi/01150000.xhp">Euro Converter</link></h2> <embed href="text/shared/autopi/01150000.xhp#eurokonv"/> <embed href="text/shared/autopi/01170000.xhp#address_data_source"/> </body> |