summaryrefslogtreecommitdiff
path: root/source/text/sdraw
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-03-13 16:41:53 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-03-16 15:18:30 +0000
commit4453c0b2edae4934f87594d5974783c4a1a5ea54 (patch)
treeda7008bd439cc57cd8d44597f8cba6fc1808aa0c /source/text/sdraw
parent77cb682cd1b004e7247560e60f603a4bb0565b8d (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/sdraw')
-rw-r--r--source/text/sdraw/00/00000004.xhp2
-rw-r--r--source/text/sdraw/guide/color_define.xhp2
-rw-r--r--source/text/sdraw/main0101.xhp2
-rw-r--r--source/text/sdraw/main0202.xhp12
-rw-r--r--source/text/sdraw/main0503.xhp2
-rw-r--r--source/text/sdraw/main_tools.xhp8
6 files changed, 14 insertions, 14 deletions
diff --git a/source/text/sdraw/00/00000004.xhp b/source/text/sdraw/00/00000004.xhp
index 2852dd2b19..8eebcb7fc3 100644
--- a/source/text/sdraw/00/00000004.xhp
+++ b/source/text/sdraw/00/00000004.xhp
@@ -32,6 +32,6 @@
<body>
- <paragraph id="hd_id3156024" role="heading" level="1" xml-lang="en-US"><variable id="wie">To access this command...</variable></paragraph>
+ <h1 id="hd_id3156024"><variable id="wie">To access this command...</variable></h1>
</body>
</helpdocument>
diff --git a/source/text/sdraw/guide/color_define.xhp b/source/text/sdraw/guide/color_define.xhp
index 9521b55cd3..b6febb882d 100644
--- a/source/text/sdraw/guide/color_define.xhp
+++ b/source/text/sdraw/guide/color_define.xhp
@@ -32,7 +32,7 @@
<bookmark_value>user-defined colors</bookmark_value>
<bookmark_value>custom colors</bookmark_value>
</bookmark>
- <paragraph xml-lang="en-US" id="hd_id3149263" role="heading" level="1"><variable id="color_define"><link href="text/sdraw/guide/color_define.xhp">Defining Custom Colors</link></variable></paragraph>
+ <h1 id="hd_id3149263"><variable id="color_define"><link href="text/sdraw/guide/color_define.xhp">Defining Custom Colors</link></variable></h1>
<paragraph xml-lang="en-US" id="par_id3154511" role="paragraph">Define custom colors and add them to the <emph>Custom</emph> color palette.</paragraph>
<h2 id="hd_id3155600">To define a custom color</h2>
<list type="ordered">
diff --git a/source/text/sdraw/main0101.xhp b/source/text/sdraw/main0101.xhp
index 0f56ae3607..466b35cfaf 100644
--- a/source/text/sdraw/main0101.xhp
+++ b/source/text/sdraw/main0101.xhp
@@ -29,7 +29,7 @@
</meta>
<body>
<section id="file">
- <paragraph role="heading" id="hd_id3149655" xml-lang="en-US" level="1"><link href="text/sdraw/main0101.xhp">File</link></paragraph>
+ <h1 id="hd_id3149655"><link href="text/sdraw/main0101.xhp">File</link></h1>
<paragraph role="paragraph" id="par_id3150868" xml-lang="en-US">This menu contains general commands for working with Draw documents, such as create, open, close and print. To close $[officename] Draw, click <emph>Exit</emph>.</paragraph>
</section>
<embed href="text/shared/01/01010000.xhp#new"/>
diff --git a/source/text/sdraw/main0202.xhp b/source/text/sdraw/main0202.xhp
index e0b427b742..738f700be2 100644
--- a/source/text/sdraw/main0202.xhp
+++ b/source/text/sdraw/main0202.xhp
@@ -32,7 +32,7 @@
</meta>
<body>
<section id="lineandfillingbar">
-<paragraph role="heading" id="hd_id3149669" xml-lang="en-US" level="1"><link href="text/sdraw/main0202.xhp">Line and Filling Bar</link></paragraph>
+<h1 id="hd_id3149669"><link href="text/sdraw/main0202.xhp">Line and Filling Bar</link></h1>
<paragraph role="paragraph" id="par_id3150543" xml-lang="en-US">The Line and Filling bar contains commands for the current editing mode.</paragraph>
</section>
<embed href="text/shared/02/01230000.xhp#stylist"/>
@@ -41,21 +41,21 @@
<embed href="text/shared/00/00040502.xhp#syline"/>
<embed href="text/shared/02/05020000.xhp#arrow_style"/>
<embed href="text/shared/02/05020000.xhp#syarrow_style"/>
-<paragraph role="heading" id="hd_id3149664" xml-lang="en-US" level="2"><link href="text/shared/01/05200100.xhp">Line Style</link></paragraph>
+<h2 id="hd_id3149664"><link href="text/shared/01/05200100.xhp">Line Style</link></h2>
<embed href="text/shared/01/05200100.xhp#stiltext"/>
<embed href="text/shared/00/00000004.xhp#syline_style"/>
-<paragraph role="heading" id="hd_id3156285" xml-lang="en-US" level="2"><link href="text/shared/01/05200100.xhp">Line Width</link></paragraph>
+<h2 id="hd_id3156285"><link href="text/shared/01/05200100.xhp">Line Width</link></h2>
<embed href="text/shared/01/05200100.xhp#breitetext"/>
<embed href="text/shared/00/00000004.xhp#syline_width"/>
-<paragraph role="heading" id="hd_id3154015" xml-lang="en-US" level="2"><link href="text/shared/01/05200100.xhp">Line Color</link></paragraph>
+<h2 id="hd_id3154015"><link href="text/shared/01/05200100.xhp">Line Color</link></h2>
<embed href="text/shared/01/05200100.xhp#farbetext"/>
<embed href="text/shared/00/00000004.xhp#syline_color"/>
<embed href="text/shared/01/05210000.xhp#area"/>
<embed href="text/shared/00/00040502.xhp#syarea"/>
-<paragraph role="heading" id="hd_id3155767" xml-lang="en-US" level="2"><link href="text/shared/01/05210100.xhp">Area Style / Filling</link></paragraph>
+<h2 id="hd_id3155767"><link href="text/shared/01/05210100.xhp">Area Style / Filling</link></h2>
<embed href="text/shared/01/05210100.xhp#sytext"/>
<embed href="text/shared/00/00000004.xhp#syarea_style"/>
-<paragraph role="heading" id="hd_id3341471" xml-lang="en-US" level="2"><link href="text/shared/01/05210600.xhp">Shadow</link><comment>UFI: inserted Shadow header and link</comment></paragraph>
+<h2 id="hd_id3341471"><link href="text/shared/01/05210600.xhp">Shadow</link><comment>UFI: inserted Shadow header and link</comment></h2>
<embed href="text/shared/01/05210600.xhp#syshadow"/>
</body>
</helpdocument>
diff --git a/source/text/sdraw/main0503.xhp b/source/text/sdraw/main0503.xhp
index 9461f04b96..a3d97e2134 100644
--- a/source/text/sdraw/main0503.xhp
+++ b/source/text/sdraw/main0503.xhp
@@ -33,7 +33,7 @@
<section id="features">
- <paragraph id="hd_id3148797" role="heading" level="1" xml-lang="en-US"><variable id="main0503"><link href="text/sdraw/main0503.xhp">$[officename] Draw Features</link></variable></paragraph>
+ <h1 id="hd_id3148797"><variable id="main0503"><link href="text/sdraw/main0503.xhp">$[officename] Draw Features</link></variable></h1>
<paragraph role="paragraph" id="par_id3146975" xml-lang="en-US">$[officename] Draw lets you create simple and complex drawings and export them in a number of common image formats. You can also insert tables, charts, formulas and other items created in $[officename] programs into your drawings.</paragraph>
</section>
<h2 id="hd_id3147435">Vector Graphics</h2>
diff --git a/source/text/sdraw/main_tools.xhp b/source/text/sdraw/main_tools.xhp
index 0f51ac83d2..9d60ca59d7 100644
--- a/source/text/sdraw/main_tools.xhp
+++ b/source/text/sdraw/main_tools.xhp
@@ -28,22 +28,22 @@
</meta>
<body>
<section id="tools">
-<paragraph role="heading" id="hd_id3159155" xml-lang="en-US" level="1"><link href="text/sdraw/main_tools.xhp">Tools</link></paragraph>
+<h1 id="hd_id3159155"><link href="text/sdraw/main_tools.xhp">Tools</link></h1>
<paragraph role="paragraph" id="par_id3156443" xml-lang="en-US">This menu provides tools for $[officename] Draw as well as access to language and system settings.</paragraph>
</section>
<embed href="text/shared/01/06990000.xhp#spelling"/>
<embed href="text/shared/01/06010500.xhp#language"/>
<embed href="text/shared/01/gallery.xhp#stargallery"/>
-<paragraph role="heading" id="hd_id3148699" xml-lang="en-US" level="2"><link href="text/shared/01/02220000.xhp">ImageMap</link></paragraph>
+<h2 id="hd_id3148699"><link href="text/shared/01/02220000.xhp">ImageMap</link></h2>
<embed href="text/shared/01/02220000.xhp#imagemaptext"/>
<embed href="text/shared/01/06030000.xhp#color_replacer"/>
<embed href="text/shared/01/mediaplayer.xhp#mediaplayer"/>
<embed href="text/shared/01/06130001.xhp#macro"/>
<embed href="text/shared/01/packagemanager.xhp#packagemanager"/>
<embed href="text/shared/01/06150000.xhp#xmlfilter"/>
-<paragraph role="heading" id="hd_id3153415" xml-lang="en-US" level="2"><link href="text/shared/01/06040000.xhp">AutoCorrect Options</link></paragraph>
+<h2 id="hd_id3153415"><link href="text/shared/01/06040000.xhp">AutoCorrect Options</link></h2>
<embed href="text/shared/01/06040000.xhp#autoko"/>
-<paragraph role="heading" id="hd_id3150044" xml-lang="en-US" level="2"><link href="text/shared/01/06140000.xhp">Customize</link></paragraph>
+<h2 id="hd_id3150044"><link href="text/shared/01/06140000.xhp">Customize</link></h2>
<embed href="text/shared/01/06140000.xhp#anpassen"/>
<embed href="text/shared/optionen/01000000.xhp#options"/>
</body>