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/shared/05 | |
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/shared/05')
-rw-r--r-- | source/text/shared/05/00000001.xhp | 2 | ||||
-rw-r--r-- | source/text/shared/05/00000002.xhp | 2 | ||||
-rw-r--r-- | source/text/shared/05/00000110.xhp | 2 | ||||
-rw-r--r-- | source/text/shared/05/00000130.xhp | 2 | ||||
-rw-r--r-- | source/text/shared/05/00000140.xhp | 2 | ||||
-rw-r--r-- | source/text/shared/05/00000160.xhp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/source/text/shared/05/00000001.xhp b/source/text/shared/05/00000001.xhp index 39ec887fa5..39b636cf50 100644 --- a/source/text/shared/05/00000001.xhp +++ b/source/text/shared/05/00000001.xhp @@ -32,7 +32,7 @@ <bookmark_value>forums and support</bookmark_value> <bookmark_value>Web support</bookmark_value> </bookmark> -<paragraph id="hd_id3146873" role="heading" level="1" xml-lang="en-US"><variable id="00000001"><link href="text/shared/05/00000001.xhp">Getting Support</link></variable></paragraph> +<h1 id="hd_id3146873"><variable id="00000001"><link href="text/shared/05/00000001.xhp">Getting Support</link></variable></h1> <paragraph id="par_id3150667" role="paragraph" xml-lang="en-US">You can find support on <link href="https://www.libreoffice.org/get-help/feedback/">the %PRODUCTNAME website</link>.</paragraph> <paragraph id="par_id3154230" role="paragraph" xml-lang="en-US">For a summary of the current support services refer to the <emph>Readme</emph> file in the %PRODUCTNAME folder.</paragraph> <h2 id="hd_id26327">Local language support pages</h2> diff --git a/source/text/shared/05/00000002.xhp b/source/text/shared/05/00000002.xhp index f8c3fc70ec..217828cfdc 100644 --- a/source/text/shared/05/00000002.xhp +++ b/source/text/shared/05/00000002.xhp @@ -29,7 +29,7 @@ </meta> <body> <bookmark branch="hid/HID_INTERFACE_SFXHELP_VIEWSH" xml-lang="en-US" id="bm_id3156421" localize="false"/> -<paragraph id="hd_id3153116" role="heading" level="1" xml-lang="en-US"><link href="text/shared/05/00000002.xhp">Icons in the Documentation</link></paragraph> +<h1 id="hd_id3153116"><link href="text/shared/05/00000002.xhp">Icons in the Documentation</link></h1> <section id="symbole"> <h2 id="hd_id3154962">Icons in the Documentation</h2> <paragraph role="paragraph" id="par_id3146961" xml-lang="en-US">There are three icons used to call your attention to additional helpful information.</paragraph> diff --git a/source/text/shared/05/00000110.xhp b/source/text/shared/05/00000110.xhp index 7138099df6..22775c13fe 100644 --- a/source/text/shared/05/00000110.xhp +++ b/source/text/shared/05/00000110.xhp @@ -28,7 +28,7 @@ <bookmark xml-lang="en-US" branch="hid/.uno:HelpOnHelp" id="bm_id3706162" localize="false"/> <bookmark xml-lang="en-US" branch="hid/sfx/ui/searchdialog/@@nowidget@@" id="bm_@@nowidget@@" localize="false"/> <bookmark xml-lang="en-US" branch="hid/sfx/ui/searchdialog/SearchDialog" id="bm_id3153244" localize="false"/> -<paragraph xml-lang="en-US" id="hd_id3153884" role="heading" level="1"><variable id="00000110"><link href="text/shared/05/00000110.xhp">The <item type="productname">%PRODUCTNAME</item> Help Window</link></variable></paragraph> +<h1 id="hd_id3153884"><variable id="00000110"><link href="text/shared/05/00000110.xhp">The <item type="productname">%PRODUCTNAME</item> Help Window</link></variable></h1> <paragraph xml-lang="en-US" id="par_id3156183" role="warning">The Help system for all versions of the software is based on the same source files. Some of the functions described in Help may not be included in this particular distribution. Some features specific to a distribution may not be mentioned in this Help.</paragraph> <paragraph xml-lang="en-US" id="par_id3147143" role="paragraph"><ahelp hid="." visibility="hidden">Provides an overview of the Help system.</ahelp> The <emph>Help</emph> window shows the currently selected Help page.</paragraph> <bookmark xml-lang="en-US" branch="hid/SFX2_HID_HELP_TOOLBOX" id="bm_id3153114" localize="false"/> diff --git a/source/text/shared/05/00000130.xhp b/source/text/shared/05/00000130.xhp index 782e609924..8d0aed7872 100644 --- a/source/text/shared/05/00000130.xhp +++ b/source/text/shared/05/00000130.xhp @@ -32,7 +32,7 @@ <bookmark_value>Help; keywords</bookmark_value> </bookmark> <paragraph role="paragraph" id="par_id3149428" xml-lang="en-US" localize="false"/> -<paragraph role="heading" id="hd_id3153884" xml-lang="en-US" level="1"><variable id="00000130"><link href="text/shared/05/00000130.xhp">Index - Keyword Search in the Help</link></variable></paragraph> +<h1 id="hd_id3153884"><variable id="00000130"><link href="text/shared/05/00000130.xhp">Index - Keyword Search in the Help</link></variable></h1> <bookmark xml-lang="en-US" branch="hid/sfx/ui/helpindexpage/HelpIndexPage" id="bm_id3149662" localize="false"/> <paragraph role="paragraph" id="par_id3150960" xml-lang="en-US"><ahelp hid="sfx/ui/helpindexpage/HelpIndexPage" visibility="hidden">Double-click an entry or type the word you want to find in the index.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/sfx/ui/helpindexpage/display" id="bm_id3150476" localize="false"/> diff --git a/source/text/shared/05/00000140.xhp b/source/text/shared/05/00000140.xhp index 1d7aab383c..4549c6269d 100644 --- a/source/text/shared/05/00000140.xhp +++ b/source/text/shared/05/00000140.xhp @@ -33,7 +33,7 @@ <bookmark_value>full-text search in Help</bookmark_value> </bookmark> <paragraph role="paragraph" id="par_id3148532" xml-lang="en-US" localize="false"/> -<paragraph role="heading" id="hd_id3148523" xml-lang="en-US" level="1"><variable id="00000140"><link href="text/shared/05/00000140.xhp">Find - The Full-Text Search</link></variable></paragraph> +<h1 id="hd_id3148523"><variable id="00000140"><link href="text/shared/05/00000140.xhp">Find - The Full-Text Search</link></variable></h1> <bookmark xml-lang="en-US" branch="hid/sfx/ui/helpsearchpage/search" id="bm_id3151100" localize="false"/> <paragraph role="paragraph" id="par_id3155599" xml-lang="en-US"><ahelp hid="sfx/ui/helpsearchpage/search" visibility="hidden">Enter the search term here. The search is not case-sensitive.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/sfx/ui/helpsearchpage/find" id="bm_id3109850" localize="false"/> diff --git a/source/text/shared/05/00000160.xhp b/source/text/shared/05/00000160.xhp index 11431ef0e3..a13bed27d8 100644 --- a/source/text/shared/05/00000160.xhp +++ b/source/text/shared/05/00000160.xhp @@ -33,7 +33,7 @@ </bookmark> <paragraph role="paragraph" id="par_id3147090" xml-lang="en-US" localize="false"/> <bookmark xml-lang="en-US" branch="hid/sfx/ui/helpcontentpage/HelpContentPage" id="bm_id3155354" localize="false"/> -<paragraph role="heading" id="hd_id3146856" xml-lang="en-US" level="1"><variable id="doc_title"><link href="text/shared/05/00000160.xhp">Contents - The Main Help Topics</link></variable></paragraph> +<h1 id="hd_id3146856"><variable id="doc_title"><link href="text/shared/05/00000160.xhp">Contents - The Main Help Topics</link></variable></h1> <paragraph role="paragraph" id="par_id3147000" xml-lang="en-US"><ahelp hid="sfx/ui/helpcontentpage/HelpContentPage">Displays the main help themes, arranged in a similar way to folders in a file manager.</ahelp></paragraph> <table id="tbl_id3150476"> <tablerow> |