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/04/01020000.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/04/01020000.xhp')
-rw-r--r-- | source/text/shared/04/01020000.xhp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/shared/04/01020000.xhp b/source/text/shared/04/01020000.xhp index b5774b18e2..5cae73bf4b 100644 --- a/source/text/shared/04/01020000.xhp +++ b/source/text/shared/04/01020000.xhp @@ -35,8 +35,8 @@ <embed href="text/shared/00/00000099.xhp#keys"/> </section> <section id="keydb"> -<paragraph role="heading" id="hd_id3159155" xml-lang="en-US" level="2">Shortcut keys for databases</paragraph> -<paragraph role="heading" id="hd_id3149378" xml-lang="en-US" level="3">In the query design</paragraph> +<h2 id="hd_id3159155">Shortcut keys for databases</h2> +<h3 id="hd_id3149378">In the query design</h3> <table id="tbl_id3884090"> <tablerow> <tablecell colspan="" rowspan=""> @@ -103,7 +103,7 @@ </tablecell> </tablerow> </table> -<paragraph role="heading" id="hd_id3149403" xml-lang="en-US" level="3">Control Properties Window</paragraph> +<h3 id="hd_id3149403">Control Properties Window</h3> <table id="tbl_id6836451"> <tablerow> <tablecell colspan="" rowspan=""> @@ -170,7 +170,7 @@ </tablecell> </tablerow> </table> -<paragraph role="heading" id="hd_id3148996" xml-lang="en-US" level="2">Shortcuts for creating Basic dialogs</paragraph> +<h2 id="hd_id3148996">Shortcuts for creating Basic dialogs</h2> <table id="tbl_id5835444"> <tablerow> <tablecell colspan="" rowspan=""> |