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/simpress/main0113.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/simpress/main0113.xhp')
-rw-r--r-- | source/text/simpress/main0113.xhp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/text/simpress/main0113.xhp b/source/text/simpress/main0113.xhp index cdf6e024df..0538b9da09 100644 --- a/source/text/simpress/main0113.xhp +++ b/source/text/simpress/main0113.xhp @@ -30,25 +30,25 @@ </meta> <body> <section id="modify"> -<bookmark xml-lang="en-US" branch="hid/.uno:ModifyMenu" id="bm_id1189001" localize="false"/><paragraph role="heading" id="hd_id3154020" xml-lang="en-US" level="1"><link href="text/simpress/main0113.xhp">Modify</link></paragraph> +<bookmark xml-lang="en-US" branch="hid/.uno:ModifyMenu" id="bm_id1189001" localize="false"/><h1 id="hd_id3154020"><link href="text/simpress/main0113.xhp">Modify</link></h1> <paragraph role="paragraph" id="par_id3154321" xml-lang="en-US"><ahelp hid=".">Contains commands for modifying objects in your document.</ahelp></paragraph> </section> -<paragraph role="heading" id="hd_id3153188" xml-lang="en-US" level="2"><link href="text/shared/02/05090000.xhp">Rotate</link></paragraph> +<h2 id="hd_id3153188"><link href="text/shared/02/05090000.xhp">Rotate</link></h2> <paragraph role="paragraph" id="par_id3149378" xml-lang="en-US">Rotates the selected object(s).</paragraph> <embed href="text/shared/01/05240000.xhp#flip"/> <embed href="text/simpress/01/13050000.xhp#convert"/> <embed href="text/simpress/01/05250000.xhp#arrange"/> <embed href="text/shared/01/05070000.xhp#alignment"/> <embed href="text/shared/01/05360000.xhp#distribute_selection"/> -<paragraph role="heading" id="hd_id3153966" xml-lang="en-US" level="2"><link href="text/shared/01/05190000.xhp">Name Object</link></paragraph> +<h2 id="hd_id3153966"><link href="text/shared/01/05190000.xhp">Name Object</link></h2> <embed href="text/shared/01/05190000.xhp#name"/> -<paragraph role="heading" id="hd_id3154656" xml-lang="en-US" level="2"><link href="text/shared/01/05290100.xhp">Group</link></paragraph> +<h2 id="hd_id3154656"><link href="text/shared/01/05290100.xhp">Group</link></h2> <embed href="text/shared/01/05290100.xhp#gruppierentext"/> -<paragraph role="heading" id="hd_id3153484" xml-lang="en-US" level="2"><link href="text/shared/01/05290200.xhp">Ungroup</link></paragraph> +<h2 id="hd_id3153484"><link href="text/shared/01/05290200.xhp">Ungroup</link></h2> <embed href="text/shared/01/05290200.xhp#aufhebentext"/> -<paragraph role="heading" id="hd_id3148870" xml-lang="en-US" level="2"><link href="text/shared/01/05290300.xhp">Enter Group</link></paragraph> +<h2 id="hd_id3148870"><link href="text/shared/01/05290300.xhp">Enter Group</link></h2> <embed href="text/shared/01/05290300.xhp#betretentext"/> -<paragraph role="heading" id="hd_id3143233" xml-lang="en-US" level="2"><link href="text/shared/01/05290400.xhp">Exit Group</link></paragraph> +<h2 id="hd_id3143233"><link href="text/shared/01/05290400.xhp">Exit Group</link></h2> <embed href="text/shared/01/05290400.xhp#verlassentext"/> <embed href="text/simpress/01/13140000.xhp#combine"/> <embed href="text/simpress/01/13150000.xhp#split"/> |