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/sbasic/shared/03132100.xhp | |
parent | convert plain paragraphs with role="heading" → h<level> (localize="false") (diff) | |
download | help-77cb682cd1b004e7247560e60f603a4bb0565b8d.tar.gz help-77cb682cd1b004e7247560e60f603a4bb0565b8d.zip |
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/sbasic/shared/03132100.xhp')
-rw-r--r-- | source/text/sbasic/shared/03132100.xhp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/sbasic/shared/03132100.xhp b/source/text/sbasic/shared/03132100.xhp index 28730b1768..b41e818827 100644 --- a/source/text/sbasic/shared/03132100.xhp +++ b/source/text/sbasic/shared/03132100.xhp @@ -33,16 +33,16 @@ <paragraph xml-lang="en-US" id="par_id3152459" role="paragraph">Returns a numerical value that specifies the graphical user interface.</paragraph> </section> <paragraph xml-lang="en-US" id="par_id3153323" role="paragraph">This function is only provided for downward compatibility to previous versions. The return value is not defined in client-server environments.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3154894" role="heading" level="2">Syntax:</paragraph> + <h2 id="hd_id3154894">Syntax:</h2> <bascode> <paragraph xml-lang="en-US" id="par_id3147143" role="bascode" localize="false">GetGUIType()</paragraph> </bascode> - <paragraph xml-lang="en-US" id="hd_id3149346" role="heading" level="2">Return value:</paragraph> + <h2 id="hd_id3149346">Return value:</h2> <paragraph xml-lang="en-US" id="par_id3153748" role="paragraph">Integer</paragraph> - <paragraph xml-lang="en-US" id="hd_id3149177" role="heading" level="2">Return values:</paragraph> + <h2 id="hd_id3149177">Return values:</h2> <paragraph xml-lang="en-US" id="par_id3147242" role="paragraph">1: Windows</paragraph><comment>removed 3: Mac OS, see i95717</comment> <paragraph xml-lang="en-US" id="par_id3156152" role="paragraph">4: UNIX</paragraph> - <paragraph xml-lang="en-US" id="hd_id3148685" role="heading" level="2">Example:</paragraph> + <h2 id="hd_id3148685">Example:</h2> <bascode> <paragraph xml-lang="en-US" id="par_id3149233" role="bascode" localize="false">Sub ExampleEnvironment</paragraph> <paragraph xml-lang="en-US" id="par_id3145609" role="bascode" localize="false"> MsgBox GetGUIType</paragraph> |