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/01/05030800.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/01/05030800.xhp')
-rw-r--r-- | source/text/shared/01/05030800.xhp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/text/shared/01/05030800.xhp b/source/text/shared/01/05030800.xhp index c760c7ecdc..2165a441b4 100644 --- a/source/text/shared/01/05030800.xhp +++ b/source/text/shared/01/05030800.xhp @@ -47,45 +47,45 @@ <embed href="text/shared/00/00040500.xhp#crop"/> </section> <section id="pixelcut"> -<paragraph role="heading" id="hd_id3148585" xml-lang="en-US" level="2">Crop</paragraph> +<h2 id="hd_id3148585">Crop</h2> <paragraph role="paragraph" id="par_id3152372" xml-lang="en-US">Use this area to trim or scale the selected graphic, or to add white space around the graphic.</paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/keepscale" id="bm_id3154751" localize="false"/> -<paragraph role="heading" id="hd_id3145669" xml-lang="en-US" level="3">Keep scale</paragraph> +<h3 id="hd_id3145669">Keep scale</h3> <paragraph role="paragraph" id="par_id3149346" xml-lang="en-US"><ahelp hid="cui/ui/croppage/keepscale">Maintains the original scale of the graphic when you crop, so that only the size of the graphic changes.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/keepsize" id="bm_id3147577" localize="false"/> -<paragraph role="heading" id="hd_id3156426" xml-lang="en-US" level="3">Keep image size</paragraph> +<h3 id="hd_id3156426">Keep image size</h3> <paragraph role="paragraph" id="par_id3155892" xml-lang="en-US"><ahelp hid="cui/ui/croppage/keepsize">Maintains the original size of the graphic when you crop, so that only the scale of the graphic changes. To reduce the scale of the graphic, select this option and enter negative values in the cropping boxes. To increase the scale of the graphic, enter positive values in the cropping boxes.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/left" id="bm_id3155392" localize="false"/> -<paragraph role="heading" id="hd_id3153683" xml-lang="en-US" level="3">Left</paragraph> +<h3 id="hd_id3153683">Left</h3> <paragraph role="paragraph" id="par_id3145313" xml-lang="en-US"><ahelp hid="cui/ui/croppage/left">If the <emph>Keep Scale</emph> option is selected, enter a positive amount to trim the left edge of the graphic, or a negative amount to add white space to the left of the graphic. If the <emph>Keep image size</emph> option is selected, enter a positive amount to increase the horizontal scale of the graphic, or a negative amount to decrease the horizontal scale of the graphic.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/right" id="bm_id3154750" localize="false"/> -<paragraph role="heading" id="hd_id3163803" xml-lang="en-US" level="3">Right</paragraph> +<h3 id="hd_id3163803">Right</h3> <paragraph role="paragraph" id="par_id3145382" xml-lang="en-US"><ahelp hid="cui/ui/croppage/right">If the <emph>Keep Scale</emph> option is selected, enter a positive amount to trim the right edge of the graphic, or a negative amount to add white space to the right of the graphic. If the <emph>Keep image size</emph> option is selected, enter a positive amount to increase the horizontal scale of the graphic, or a negative amount to decrease the horizontal scale of the graphic.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/top" id="bm_id3153320" localize="false"/> -<paragraph role="heading" id="hd_id3156153" xml-lang="en-US" level="3">Top</paragraph> +<h3 id="hd_id3156153">Top</h3> <paragraph role="paragraph" id="par_id3154514" xml-lang="en-US"><ahelp hid="cui/ui/croppage/top">If the <emph>Keep Scale</emph> option is selected, enter a positive amount to trim the top of the graphic, or a negative amount to add white space above the graphic. If the <emph>Keep image size</emph> option is selected, enter a positive amount to increase the vertical scale of the graphic, or a negative amount to decrease the vertical scale of the graphic.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/bottom" id="bm_id3156156" localize="false"/> -<paragraph role="heading" id="hd_id3149956" xml-lang="en-US" level="3">Bottom</paragraph> +<h3 id="hd_id3149956">Bottom</h3> <paragraph role="paragraph" id="par_id3150084" xml-lang="en-US"><ahelp hid="cui/ui/croppage/bottom">If the <emph>Keep Scale</emph> option is selected, enter a positive amount to trim the bottom of the graphic, or a negative amount to add white space below the graphic. If the <emph>Keep image size</emph> option is selected, enter a positive amount to increase the vertical scale of the graphic, or a negative amount to decrease the vertical scale of the graphic.</ahelp></paragraph> -<paragraph role="heading" id="hd_id3158432" xml-lang="en-US" level="2">Scale</paragraph> +<h2 id="hd_id3158432">Scale</h2> <paragraph role="paragraph" id="par_id3153257" xml-lang="en-US">Changes the scale of the selected graphic.</paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/widthzoom" id="bm_id3151384" localize="false"/> -<paragraph role="heading" id="hd_id3155504" xml-lang="en-US" level="3">Width</paragraph> +<h3 id="hd_id3155504">Width</h3> <paragraph role="paragraph" id="par_id3148943" xml-lang="en-US"><ahelp hid="cui/ui/croppage/widthzoom">Enter the width for the selected graphic as a percentage.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/heightzoom" id="bm_id3144422" localize="false"/> -<paragraph role="heading" id="hd_id3145609" xml-lang="en-US" level="3">Height</paragraph> +<h3 id="hd_id3145609">Height</h3> <paragraph role="paragraph" id="par_id3154348" xml-lang="en-US"><ahelp hid="cui/ui/croppage/heightzoom">Enter the height of the selected graphic as a percentage.</ahelp></paragraph> -<paragraph role="heading" id="hd_id3154924" xml-lang="en-US" level="2">Image size</paragraph> +<h2 id="hd_id3154924">Image size</h2> <paragraph role="paragraph" id="par_id3148755" xml-lang="en-US">Changes the size of the selected graphic.</paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/width" id="bm_id3150359" localize="false"/> -<paragraph role="heading" id="hd_id3161656" xml-lang="en-US" level="3">Width</paragraph> +<h3 id="hd_id3161656">Width</h3> <paragraph role="paragraph" id="par_id3150543" xml-lang="en-US"><ahelp hid="cui/ui/croppage/width">Enter a width for the selected graphic.</ahelp></paragraph> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/height" id="bm_id3157320" localize="false"/> -<paragraph role="heading" id="hd_id3150398" xml-lang="en-US" level="3">Height</paragraph> +<h3 id="hd_id3150398">Height</h3> <paragraph role="paragraph" id="par_id3154686" xml-lang="en-US"><ahelp hid="cui/ui/croppage/height">Enter a height for the selected graphic.</ahelp></paragraph> <embed href="text/shared/00/00000001.xhp#preview_field"/> <bookmark xml-lang="en-US" branch="hid/cui/ui/croppage/origsize" id="bm_id3153178" localize="false"/> -<paragraph role="heading" id="hd_id3148676" xml-lang="en-US" level="2">Original Size</paragraph> +<h2 id="hd_id3148676">Original Size</h2> <paragraph role="paragraph" id="par_id3154068" xml-lang="en-US"><ahelp hid="cui/ui/croppage/origsize">Returns the selected graphic to its original size.</ahelp></paragraph> </section> </body> |