summaryrefslogtreecommitdiff
path: root/source/text/shared/autokorr
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/shared/autokorr
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/shared/autokorr')
-rw-r--r--source/text/shared/autokorr/01000000.xhp2
-rw-r--r--source/text/shared/autokorr/02000000.xhp2
-rw-r--r--source/text/shared/autokorr/03000000.xhp2
-rw-r--r--source/text/shared/autokorr/04000000.xhp2
-rw-r--r--source/text/shared/autokorr/05000000.xhp2
-rw-r--r--source/text/shared/autokorr/06000000.xhp2
-rw-r--r--source/text/shared/autokorr/07000000.xhp2
-rw-r--r--source/text/shared/autokorr/08000000.xhp2
-rw-r--r--source/text/shared/autokorr/09000000.xhp2
-rw-r--r--source/text/shared/autokorr/10000000.xhp2
-rw-r--r--source/text/shared/autokorr/12000000.xhp2
-rw-r--r--source/text/shared/autokorr/13000000.xhp2
12 files changed, 12 insertions, 12 deletions
diff --git a/source/text/shared/autokorr/01000000.xhp b/source/text/shared/autokorr/01000000.xhp
index d03b206664..ea78e753c7 100644
--- a/source/text/shared/autokorr/01000000.xhp
+++ b/source/text/shared/autokorr/01000000.xhp
@@ -34,7 +34,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_WORDENEMDASH" id="bm_id3152459" localize="false"/>
<paragraph role="heading" id="hd_id3148410" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3146946" xml-lang="en-US" level="3">TWo INitial CApitals have been corrected</paragraph>
-<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US">Typing errors such as "WOrd" have been corrected and replaced by the <link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> function to "Word".</paragraph>
+<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US">Typing errors such as "WOrd" have been corrected and replaced by the <link href="text/shared/01/06040000.xhp">AutoCorrect</link> function to "Word".</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/02000000.xhp b/source/text/shared/autokorr/02000000.xhp
index 4359cbc9c3..a685938094 100644
--- a/source/text/shared/autokorr/02000000.xhp
+++ b/source/text/shared/autokorr/02000000.xhp
@@ -34,7 +34,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_SENTENEMDASH" id="bm_id3149976" localize="false"/>
<paragraph role="heading" id="hd_id3155354" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3150502" xml-lang="en-US" level="3">Start each sentence with a capital letter</paragraph>
-<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US">Your text was corrected with <link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> so that the current word began with a capital letter. AutoCorrect changes words at the beginning of a paragraph, and words after the character at the end of a sentence (period, exclamation point, question mark).</paragraph>
+<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US">Your text was corrected with <link href="text/shared/01/06040000.xhp">AutoCorrect</link> so that the current word began with a capital letter. AutoCorrect changes words at the beginning of a paragraph, and words after the character at the end of a sentence (period, exclamation point, question mark).</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/03000000.xhp b/source/text/shared/autokorr/03000000.xhp
index f3fc8e4a3c..119f30ba3a 100644
--- a/source/text/shared/autokorr/03000000.xhp
+++ b/source/text/shared/autokorr/03000000.xhp
@@ -34,7 +34,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_SENTWORDENEMDASH" id="bm_id3145759" localize="false"/>
<paragraph role="heading" id="hd_id3152459" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3146946" xml-lang="en-US" level="3">Two capital letters at the beginning of a word and a sentence have been corrected to one capital letter</paragraph>
-<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has modified your text so that a word beginning with two capital letters at the beginning of a sentence now starts with one capital letter.</paragraph>
+<paragraph role="paragraph" id="par_id3158397" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has modified your text so that a word beginning with two capital letters at the beginning of a sentence now starts with one capital letter.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/04000000.xhp b/source/text/shared/autokorr/04000000.xhp
index 4cb9277da9..99c8beffa2 100644
--- a/source/text/shared/autokorr/04000000.xhp
+++ b/source/text/shared/autokorr/04000000.xhp
@@ -35,7 +35,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_ACORSENTWORDENEMDASH" id="bm_id3145759" localize="false"/>
<paragraph role="heading" id="hd_id3154283" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3154812" xml-lang="en-US" level="3">A replacement has been carried out</paragraph>
-<paragraph role="paragraph" id="par_id3159241" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has replaced a word.</paragraph>
+<paragraph role="paragraph" id="par_id3159241" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has replaced a word.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/05000000.xhp b/source/text/shared/autokorr/05000000.xhp
index d849041cc1..44ef0f4287 100644
--- a/source/text/shared/autokorr/05000000.xhp
+++ b/source/text/shared/autokorr/05000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_ACORSENTWORD" id="bm_id3159242" localize="false"/>
<paragraph role="heading" id="hd_id3155354" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3156418" xml-lang="en-US" level="3">AutoCorrect has performed a replacement. The beginning of the sentence now starts with a capital letter</paragraph>
-<paragraph role="paragraph" id="par_id3153341" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has performed a replacement, and the beginning of the sentence now starts with a capital letter.</paragraph>
+<paragraph role="paragraph" id="par_id3153341" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has performed a replacement, and the beginning of the sentence now starts with a capital letter.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/06000000.xhp b/source/text/shared/autokorr/06000000.xhp
index b41b751199..f3af0bb153 100644
--- a/source/text/shared/autokorr/06000000.xhp
+++ b/source/text/shared/autokorr/06000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_CHGQUOTES" id="bm_id3156116" localize="false"/>
<paragraph role="heading" id="hd_id3148932" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3158421" xml-lang="en-US" level="3">Double quotation marks (") have been replaced</paragraph>
-<paragraph role="paragraph" id="par_id3146060" xml-lang="en-US">Your text was corrected by <link href="text/shared/01/06040000.xhp" name="Autocorrect">Autocorrect</link> so that double quotation marks were replaced by <link href="text/shared/01/06040400.xhp" name="typographical quotation marks">typographical quotation marks</link>.</paragraph>
+<paragraph role="paragraph" id="par_id3146060" xml-lang="en-US">Your text was corrected by <link href="text/shared/01/06040000.xhp">Autocorrect</link> so that double quotation marks were replaced by <link href="text/shared/01/06040400.xhp">typographical quotation marks</link>.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokotyafz"/>
</section>
diff --git a/source/text/shared/autokorr/07000000.xhp b/source/text/shared/autokorr/07000000.xhp
index 26b8a8b052..946dfd7d51 100644
--- a/source/text/shared/autokorr/07000000.xhp
+++ b/source/text/shared/autokorr/07000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_CHGSGLQUOTES" id="bm_id3147477" localize="false"/>
<paragraph role="heading" id="hd_id3153629" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3149987" xml-lang="en-US" level="3">Single quotes have been replaced</paragraph>
-<paragraph role="paragraph" id="par_id3154688" xml-lang="en-US">Your text was corrected by <link href="text/shared/01/06040000.xhp" name="Autocorrect">Autocorrect</link> so that single quotation marks were replaced by <link href="text/shared/01/06040400.xhp" name="typographical quotation marks">typographical quotation marks</link>.</paragraph>
+<paragraph role="paragraph" id="par_id3154688" xml-lang="en-US">Your text was corrected by <link href="text/shared/01/06040000.xhp">Autocorrect</link> so that single quotation marks were replaced by <link href="text/shared/01/06040400.xhp">typographical quotation marks</link>.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokotyafz"/>
</section>
diff --git a/source/text/shared/autokorr/08000000.xhp b/source/text/shared/autokorr/08000000.xhp
index 96350addb9..f3ce3a6cc7 100644
--- a/source/text/shared/autokorr/08000000.xhp
+++ b/source/text/shared/autokorr/08000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_SETINETATTR" id="bm_id3155354" localize="false"/>
<paragraph role="heading" id="hd_id3147240" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3152823" xml-lang="en-US" level="3">An URL has been detected and a hyperlink attribute has been set</paragraph>
-<paragraph role="paragraph" id="par_id3150278" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has modified your text. A string has been detected as an URL and is now shown as a hyperlink.</paragraph>
+<paragraph role="paragraph" id="par_id3150278" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has modified your text. A string has been detected as an URL and is now shown as a hyperlink.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/09000000.xhp b/source/text/shared/autokorr/09000000.xhp
index 27b7c2e644..73a9cc1909 100644
--- a/source/text/shared/autokorr/09000000.xhp
+++ b/source/text/shared/autokorr/09000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_IGNOREDOUBLESPACE" id="bm_id3153882" localize="false"/>
<paragraph role="heading" id="hd_id3149976" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3147543" xml-lang="en-US" level="3">Double spaces have been ignored</paragraph>
-<paragraph role="paragraph" id="par_id3149297" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has corrected your text so that the multiple spaces you have entered have now been reduced to one single space.</paragraph>
+<paragraph role="paragraph" id="par_id3149297" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has corrected your text so that the multiple spaces you have entered have now been reduced to one single space.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/10000000.xhp b/source/text/shared/autokorr/10000000.xhp
index 383f9300b0..df51bc1941 100644
--- a/source/text/shared/autokorr/10000000.xhp
+++ b/source/text/shared/autokorr/10000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_CHGWEIGHTUNDERL" id="bm_id3150618" localize="false"/>
<paragraph role="heading" id="hd_id3147446" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3155577" xml-lang="en-US" level="3">Bold and underline attributes have been recognized and applied</paragraph>
-<paragraph role="paragraph" id="par_id3156014" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has modified your text, and the bold and/or underline text attributes have been automatically applied.</paragraph>
+<paragraph role="paragraph" id="par_id3156014" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has modified your text, and the bold and/or underline text attributes have been automatically applied.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/12000000.xhp b/source/text/shared/autokorr/12000000.xhp
index 8728b88863..7b33374764 100644
--- a/source/text/shared/autokorr/12000000.xhp
+++ b/source/text/shared/autokorr/12000000.xhp
@@ -31,7 +31,7 @@
<body>
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_CHGTOENEMDASH" id="bm_id3146936" localize="false"/><paragraph role="heading" id="hd_id3153116" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3149551" xml-lang="en-US" level="3">Minus signs have been replaced<comment>i73558</comment></paragraph>
-<paragraph role="paragraph" id="par_id3148932" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has modified your text, and minus signs have been replaced with dashes.</paragraph>
+<paragraph role="paragraph" id="par_id3148932" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has modified your text, and minus signs have been replaced with dashes.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>
diff --git a/source/text/shared/autokorr/13000000.xhp b/source/text/shared/autokorr/13000000.xhp
index 05fc50950a..d6bebea610 100644
--- a/source/text/shared/autokorr/13000000.xhp
+++ b/source/text/shared/autokorr/13000000.xhp
@@ -33,7 +33,7 @@
<bookmark xml-lang="en-US" branch="hid/EDITENG_HID_AUTOCORR_HELP_CHGORDINALNUMBER" id="bm_id3147519" localize="false"/>
<paragraph role="heading" id="hd_id3149513" xml-lang="en-US" level="1">AutoCorrect has been activated</paragraph>
<paragraph role="heading" id="hd_id3147090" xml-lang="en-US" level="3">1st ... has been replaced with 1st ...</paragraph>
-<paragraph role="paragraph" id="par_id3153220" xml-lang="en-US"><link href="text/shared/01/06040000.xhp" name="AutoCorrect">AutoCorrect</link> has corrected your text so that ordinal number suffixes have been superscripted.</paragraph>
+<paragraph role="paragraph" id="par_id3153220" xml-lang="en-US"><link href="text/shared/01/06040000.xhp">AutoCorrect</link> has corrected your text so that ordinal number suffixes have been superscripted.</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokooptionen"/>
</section>