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/01/font_features.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/01/font_features.xhp')
-rw-r--r-- | source/text/shared/01/font_features.xhp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/shared/01/font_features.xhp b/source/text/shared/01/font_features.xhp index 70e2bbc44b..857141ebad 100644 --- a/source/text/shared/01/font_features.xhp +++ b/source/text/shared/01/font_features.xhp @@ -24,7 +24,7 @@ <section id="fontresourcesentry"> <bookmark id="bm_id351541769624075" xml-lang="en-US" branch="hid/cui/ui/fontfeaturesdialog/FontFeaturesDialog" localize="false"/> <bookmark id="bm_id351541769624075" xml-lang="en-US" branch="hid/cui/ui/fontfeaturesdialog/@@nowidget@@" localize="false"/> - <paragraph id="hd_id581541769624076" role="heading" level="1" xml-lang="en-US"><link href="text/shared/01/font_features.xhp">Font Features</link></paragraph> + <h1 id="hd_id581541769624076"><link href="text/shared/01/font_features.xhp">Font Features</link></h1> <paragraph id="par_id501541769624078" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">Select and apply font typographical features to characters.</ahelp></variable></paragraph> </section> <section id="howtoget"> |