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/smath/01/03090100.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/smath/01/03090100.xhp')
-rw-r--r-- | source/text/smath/01/03090100.xhp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/smath/01/03090100.xhp b/source/text/smath/01/03090100.xhp index dd5c78c18d..8f8d881aaa 100644 --- a/source/text/smath/01/03090100.xhp +++ b/source/text/smath/01/03090100.xhp @@ -57,7 +57,7 @@ <bookmark_value>user-defined operators;unary and binary</bookmark_value> </bookmark> <bookmark xml-lang="en-US" branch="hid/STARMATH_HID_SMA_UNBINOPS_TBX" id="bm_id3150200" localize="false"/> -<paragraph role="heading" id="hd_id3150342" xml-lang="en-US" level="1"><link href="text/smath/01/03090100.xhp">Unary/Binary Operators</link></paragraph> +<h1 id="hd_id3150342"><link href="text/smath/01/03090100.xhp">Unary/Binary Operators</link></h1> <paragraph role="paragraph" id="par_id3151241" xml-lang="en-US">You can choose various unary and binary operators to build your $[officename] Math formula. Unary refers to operators that affect one placeholder. Binary refers to operators that connect two placeholders. The lower area of the Elements pane displays the individual operators. The <link href="text/shared/00/00000001.xhp#contextmenu">context menu</link> of the <emph>Commands</emph> window also contains a list of these operators, as well as additional operators. If you need an operator that is not contained in the Elements pane, use the context menu or type it directly in the <emph>Commands</emph> window.</paragraph> </section> <section id="howtoget"> |