summaryrefslogtreecommitdiff
path: root/source/text/swriter/04
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-12-06 14:05:20 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-07 17:39:02 +0000
commit7e42394ecbf921ee53160b495aa12c1cba158604 (patch)
tree9f0b4dcbbf31112c0260a6a6831cbddf86d82c6d /source/text/swriter/04
parent490d42493e8dbec31ad58978df5084b080a36fcb (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/swriter/04')
-rw-r--r--source/text/swriter/04/01020000.xhp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/text/swriter/04/01020000.xhp b/source/text/swriter/04/01020000.xhp
index ed745db06a..5e19d03d5a 100644
--- a/source/text/swriter/04/01020000.xhp
+++ b/source/text/swriter/04/01020000.xhp
@@ -29,12 +29,12 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3145763"><bookmark_value>shortcut keys; in text documents</bookmark_value>
<bookmark_value>text documents; shortcut keys in</bookmark_value>
</bookmark>
-<h1 xml-lang="en-US" id="hd_id3145763"><variable id="text_keys"><link href="text/swriter/04/01020000.xhp" name="Shortcut Keys for %PRODUCTNAME Writer">Shortcut Keys for <item type="productname">%PRODUCTNAME</item> Writer</link>
+<h1 xml-lang="en-US" id="hd_id3145763"><variable id="text_keys"><link href="text/swriter/04/01020000.xhp">Shortcut Keys for <item type="productname">%PRODUCTNAME</item> Writer</link>
</variable></h1>
<paragraph xml-lang="en-US" id="par_id3150491" role="paragraph">You can use shortcut keys to quickly perform common tasks in <item type="productname">%PRODUCTNAME</item>. This section lists the default shortcut keys for <item type="productname">%PRODUCTNAME</item> Writer.</paragraph>
<embed href="text/shared/00/00000099.xhp#keys"/>
</section>
- <paragraph xml-lang="en-US" id="par_id3145081" role="paragraph">You can also use the <link href="text/shared/04/01010000.xhp" name="general shortcut keys in %PRODUCTNAME">general shortcut keys in <item type="productname">%PRODUCTNAME</item></link>.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3145081" role="paragraph">You can also use the <link href="text/shared/04/01010000.xhp">general shortcut keys in <item type="productname">%PRODUCTNAME</item></link>.</paragraph>
<h2 xml-lang="en-US" id="hd_id3149800">Function Keys for <item type="productname">%PRODUCTNAME</item> Writer</h2>
<table id="">
<tablerow>
@@ -837,7 +837,7 @@
</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Tab</paragraph>
</tablecell>
<tablecell>
- <paragraph xml-lang="en-US" id="par_id3153577" role="tablecontent">Next suggestion with <link href="text/shared/01/06040600.xhp" name="Automatic Word Completion">Automatic Word Completion</link></paragraph>
+ <paragraph xml-lang="en-US" id="par_id3153577" role="tablecontent">Next suggestion with <link href="text/shared/01/06040600.xhp">Automatic Word Completion</link></paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -846,7 +846,7 @@
</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+Tab</paragraph>
</tablecell>
<tablecell>
- <paragraph xml-lang="en-US" id="par_id3147386" role="tablecontent">Use previous suggestion with <link href="text/shared/01/06040600.xhp" name="Automatic Word Completion">Automatic Word Completion</link></paragraph>
+ <paragraph xml-lang="en-US" id="par_id3147386" role="tablecontent">Use previous suggestion with <link href="text/shared/01/06040600.xhp">Automatic Word Completion</link></paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -931,7 +931,7 @@
</tablecell>
</tablerow>
</table>
- <note id="par_id491655382900210">To insert a tab at the beginning of a heading or list paragraph, use the <menuitem>Numbering followed by</menuitem> option in the <link href="text/shared/01/06050600.xhp" name="Position"><menuitem>Position</menuitem></link> tab in the <menuitem>Chapter Numbering</menuitem> or <menuitem>Bullets and Numbering</menuitem> dialog. Alternatively, a tab can be copied and then pasted at the beginning.</note>
+ <note id="par_id491655382900210">To insert a tab at the beginning of a heading or list paragraph, use the <menuitem>Numbering followed by</menuitem> option in the <link href="text/shared/01/06050600.xhp"><menuitem>Position</menuitem></link> tab in the <menuitem>Chapter Numbering</menuitem> or <menuitem>Bullets and Numbering</menuitem> dialog. Alternatively, a tab can be copied and then pasted at the beginning.</note>
<h2 xml-lang="en-US" id="hd_id3149180">Shortcut Keys for Tables in <item type="productname">%PRODUCTNAME</item> Writer</h2>
<table id="">
<tablerow>