diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2023-03-13 16:04:19 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2023-03-16 15:18:10 +0000 |
commit | 77cb682cd1b004e7247560e60f603a4bb0565b8d (patch) | |
tree | 5ff7d8bf5fcc8f9fe162b8ed05ca7eeaf21022ba /source/text/shared/01/font_features.xhp | |
parent | 00567a452bb1e270dd2438dcc865359edba56c19 (diff) |
convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed
to implied in the dtd 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'
(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)
Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/text/shared/01/font_features.xhp b/source/text/shared/01/font_features.xhp index 6ca4fe5a9f..70e2bbc44b 100644 --- a/source/text/shared/01/font_features.xhp +++ b/source/text/shared/01/font_features.xhp @@ -33,9 +33,9 @@ </section> <paragraph role="paragraph" id="par_id321541773889428" xml-lang="en-US">%PRODUCTNAME supports OpenType font format. The two main benefits of the OpenType format are its cross-platform compatibility, and its ability to support widely expanded character sets and layout features, which provide richer linguistic support and advanced typographic control.</paragraph> <paragraph xml-lang="en-US" id="par_id31541774826256" role="note">The features displayed in the Font Features dialog depends on the selected font.</paragraph> - <paragraph role="heading" id="hd_id81541778714507" level="2" xml-lang="en-US">Font features box</paragraph> + <h2 id="hd_id81541778714507">Font features box</h2> <paragraph role="paragraph" id="par_id991541778707882" xml-lang="en-US">The font features box contains the configurable features available for the font.</paragraph> - <paragraph role="heading" id="hd_id511541778721077" level="2" xml-lang="en-US">Font feature visualization window</paragraph> + <h2 id="hd_id511541778721077">Font feature visualization window</h2> <paragraph role="paragraph" id="par_id31541778666390" xml-lang="en-US">The feature visualization window displays a default text where the selected features can be inspected.</paragraph> <section id="relatedtopics"> <paragraph role="paragraph" id="par_id801541774734588" xml-lang="en-US"><link href="https://en.wikipedia.org/wiki/OpenType">Wikipedia on OpenType</link></paragraph> |