diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2022-12-06 14:05:20 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-12-07 17:39:02 +0000 |
commit | 7e42394ecbf921ee53160b495aa12c1cba158604 (patch) | |
tree | 9f0b4dcbbf31112c0260a6a6831cbddf86d82c6d /source/text/sdraw/main0213.xhp | |
parent | 490d42493e8dbec31ad58978df5084b080a36fcb (diff) |
tdf#152323 drop name attribute from <link> elements
Replacement done with
find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'
(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)
translation files will be prepped with:
find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
$'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'
(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)
Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'source/text/sdraw/main0213.xhp')
-rw-r--r-- | source/text/sdraw/main0213.xhp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/text/sdraw/main0213.xhp b/source/text/sdraw/main0213.xhp index 38f2ae5c09..5002822fa3 100644 --- a/source/text/sdraw/main0213.xhp +++ b/source/text/sdraw/main0213.xhp @@ -26,46 +26,46 @@ </meta> <body> <section id="optionsbar"> -<h1 id="hd_id3150793" xml-lang="en-US"><link href="text/sdraw/main0213.xhp" name="Options Bar">Options Bar</link></h1> +<h1 id="hd_id3150793" xml-lang="en-US"><link href="text/sdraw/main0213.xhp">Options Bar</link></h1> <paragraph role="paragraph" id="par_id3154685" xml-lang="en-US">The <emph>Options</emph> bar can be displayed by choosing <emph>View - Toolbars - Options</emph>.</paragraph> </section> <section id="howtoget"> <embed href="text/simpress/00/00000403.xhp#option"/> </section><comment>UFI: changed some links, see #i52549</comment><embed href="text/simpress/02/13020000.xhp#rotation_mode"/> <embed href="text/simpress/02/13020000.xhp#syrotation_mode"/> -<h2 id="hd_id3145251" xml-lang="en-US" ><link href="text/shared/02/01171200.xhp" name="Display Grid">Display Grid</link></h2> +<h2 id="hd_id3145251" xml-lang="en-US" ><link href="text/shared/02/01171200.xhp">Display Grid</link></h2> <embed href="text/shared/optionen/01050100.xhp#rastersicht"/> <embed href="text/shared/02/01171200.xhp#sydisplay_grid"/> <embed href="text/simpress/02/13050000.xhp#show_snap_lines"/> <embed href="text/simpress/02/13050000.xhp#syshow_snap_lines"/> -<h2 id="hd_id3149018" xml-lang="en-US"><link href="text/shared/02/01171400.xhp" name="Helplines While Moving">Helplines While Moving</link></h2> +<h2 id="hd_id3149018" xml-lang="en-US"><link href="text/shared/02/01171400.xhp">Helplines While Moving</link></h2> <embed href="text/shared/optionen/01070100.xhp#verschieb"/> <embed href="text/shared/02/01171400.xhp#syhline"/> <section id="Snap_to_Grid_and_Guides"> -<h2 id="hd_id3147338" xml-lang="en-US"><link href="text/shared/02/01171300.xhp" name="Snap to Grid">Snap to Grid</link></h2> +<h2 id="hd_id3147338" xml-lang="en-US"><link href="text/shared/02/01171300.xhp">Snap to Grid</link></h2> <embed href="text/shared/optionen/01050100.xhp#snap_to_grid"/> <embed href="text/shared/02/01171300.xhp#sysnap_to_grid"/> -<h2 id="hd_id3146313" xml-lang="en-US"><link href="text/simpress/02/13140000.xhp" name="Snap to Snap Lines">Snap to Snap Guides</link></h2> +<h2 id="hd_id3146313" xml-lang="en-US"><link href="text/simpress/02/13140000.xhp">Snap to Snap Guides</link></h2> <embed href="text/shared/optionen/01070300.xhp#anlinie"/> <embed href="text/simpress/02/13140000.xhp#sysnap_to_snap_guides"/> </section> <section id="Snap_to_Page"> -<h2 id="hd_id3155111" xml-lang="en-US"><link href="text/simpress/02/13150000.xhp" name="Snap to Page Margins">Snap to Page Margins</link></h2> +<h2 id="hd_id3155111" xml-lang="en-US"><link href="text/simpress/02/13150000.xhp">Snap to Page Margins</link></h2> <embed href="text/shared/optionen/01070300.xhp#seitenrand"/> <embed href="text/simpress/02/13150000.xhp#sysnap_to_page_margins"/> </section> <section id="Snap_to_Border_and_Points"> -<h2 id="hd_id3150343" xml-lang="en-US"><link href="text/simpress/02/13160000.xhp" name="Snap to Object Border">Snap to Object Border</link></h2> +<h2 id="hd_id3150343" xml-lang="en-US"><link href="text/simpress/02/13160000.xhp">Snap to Object Border</link></h2> <embed href="text/shared/optionen/01070300.xhp#rahmen"/> <embed href="text/simpress/02/13160000.xhp#sysnap_to_object_border"/> -<h2 id="hd_id3150368" xml-lang="en-US"><link href="text/simpress/02/13170000.xhp" name="Snap to Object Points">Snap to Object Points</link></h2> +<h2 id="hd_id3150368" xml-lang="en-US"><link href="text/simpress/02/13170000.xhp">Snap to Object Points</link></h2> <embed href="text/shared/optionen/01070300.xhp#opunkte"/> <embed href="text/simpress/02/13170000.xhp#sysnap_to_object_points"/> </section> -<h2 id="hd_id3146980" xml-lang="en-US"><link href="text/simpress/02/13180000.xhp" name="Allow Quick Editing">Allow Quick Editing</link></h2> +<h2 id="hd_id3146980" xml-lang="en-US"><link href="text/simpress/02/13180000.xhp">Allow Quick Editing</link></h2> <embed href="text/shared/optionen/01070500.xhp#schnellbearb"/> <embed href="text/simpress/02/13180000.xhp#syallow_quick_editing"/> -<h2 id="hd_id3148870" xml-lang="en-US"><link href="text/simpress/02/13190000.xhp" name="Select Text Area Only">Select Text Area Only</link></h2> +<h2 id="hd_id3148870" xml-lang="en-US"><link href="text/simpress/02/13190000.xhp">Select Text Area Only</link></h2> <embed href="text/shared/optionen/01070500.xhp#textbereich"/> <embed href="text/simpress/02/13190000.xhp#syselect_text_area_only"/> <embed href="text/simpress/02/13060000.xhp#doubleclick_textedit"/> |