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/swriter/menu | |
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/swriter/menu')
-rw-r--r-- | source/text/swriter/menu/insert_footnote_endnote.xhp | 4 | ||||
-rw-r--r-- | source/text/swriter/menu/insert_frame.xhp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/text/swriter/menu/insert_footnote_endnote.xhp b/source/text/swriter/menu/insert_footnote_endnote.xhp index 42c801503e..5dc43ec975 100644 --- a/source/text/swriter/menu/insert_footnote_endnote.xhp +++ b/source/text/swriter/menu/insert_footnote_endnote.xhp @@ -35,10 +35,10 @@ <paragraph id="par_id030420161136126396" role="paragraph" xml-lang="en-US"><ahelp hid=".">The menu contains commands to insert a footnote or endnote with or without additional user interaction.</ahelp></paragraph> </section> -<paragraph id="par_id03042016113613789" role="heading" level="2" xml-lang="en-US">Footnote</paragraph> +<h2 id="par_id03042016113613789">Footnote</h2> <paragraph id="par_id030420161138373075" role="paragraph" xml-lang="en-US"><ahelp hid=".uno:InsertFootnote">Insert a footnote at the current cursor position without a prompt.</ahelp></paragraph> -<paragraph id="hd_id030420161138377837" role="heading" level="2" xml-lang="en-US">Endnote</paragraph> +<h2 id="hd_id030420161138377837">Endnote</h2> <paragraph id="par_id030420161138378865" role="paragraph" xml-lang="en-US"><ahelp hid=".uno:InsertEndnote">Insert a endnote at the current cursor position without a prompt.</ahelp></paragraph> <paragraph id="hd_id3147231" role="heading" level="2" xml-lang="en-US"><link href="text/swriter/01/04030000.xhp">Footnote or Endnote</link></paragraph> diff --git a/source/text/swriter/menu/insert_frame.xhp b/source/text/swriter/menu/insert_frame.xhp index 026c0a6d9b..86db143350 100644 --- a/source/text/swriter/menu/insert_frame.xhp +++ b/source/text/swriter/menu/insert_frame.xhp @@ -35,7 +35,7 @@ <paragraph id="par_id030720160603138925" role="paragraph" xml-lang="en-US"><ahelp hid=".">This submenu contains both interactive and non-interactive means of inserting a frame.</ahelp></paragraph> </section> -<paragraph id="hd_id030720160605268360" role="heading" level="2" xml-lang="en-US">Frame Interactively</paragraph> +<h2 id="hd_id030720160605268360">Frame Interactively</h2> <paragraph id="par_id030720160605261333" role="paragraph" xml-lang="en-US"><ahelp hid=".uno:InsertFrameInteract">Insert a frame by drawing its shape with the mouse cursor.</ahelp></paragraph> <embed href="text/swriter/01/04130000.xhp#frame"/> |