summaryrefslogtreecommitdiff
path: root/source/text/swriter/01/04090003.xhp
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/01/04090003.xhp
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/01/04090003.xhp')
-rw-r--r--source/text/swriter/01/04090003.xhp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/text/swriter/01/04090003.xhp b/source/text/swriter/01/04090003.xhp
index 38f9e93b36..38159f8751 100644
--- a/source/text/swriter/01/04090003.xhp
+++ b/source/text/swriter/01/04090003.xhp
@@ -26,7 +26,7 @@
</meta>
<body>
<section id="functions">
-<h1 id="hd_id3149123" xml-lang="en-US"><link href="text/swriter/01/04090003.xhp" name="Functions">Functions</link></h1>
+<h1 id="hd_id3149123" xml-lang="en-US"><link href="text/swriter/01/04090003.xhp">Functions</link></h1>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/fldfuncpage/name" id="bm_id3149875" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/fldfuncpage/value" id="bm_id3150251" localize="false"/>
<paragraph role="paragraph" id="par_id3150343" xml-lang="en-US"><ahelp hid="." visibility="hidden">Sets additional function parameters for fields. The type of parameter depends on the field type that you select.</ahelp></paragraph>
@@ -54,7 +54,7 @@
<paragraph role="tablecontent" id="par_id3152999" xml-lang="en-US">Conditional text</paragraph>
</tablecell>
<tablecell>
-<paragraph role="tablecontent" id="par_id3149881" xml-lang="en-US">Inserts text if a certain <link href="text/swriter/01/04090200.xhp" name="condition">condition</link> is met. For example, enter "sun eq 1" in the <emph>Condition</emph> box, and then the text that you want to insert when the variable "sun" equals "1" in the <emph>Then </emph>box. If you want, you can also enter the text that you want to display when this condition is not met in the <emph>Else</emph> box. To define the variable "sun", click the <link href="text/swriter/01/04090005.xhp" name="Variables"><emph>Variables</emph></link> tab, select "Set variable", type "sun" in the<emph> Name</emph> box, and its value in the<emph> Value</emph> box.</paragraph>
+<paragraph role="tablecontent" id="par_id3149881" xml-lang="en-US">Inserts text if a certain <link href="text/swriter/01/04090200.xhp">condition</link> is met. For example, enter "sun eq 1" in the <emph>Condition</emph> box, and then the text that you want to insert when the variable "sun" equals "1" in the <emph>Then </emph>box. If you want, you can also enter the text that you want to display when this condition is not met in the <emph>Else</emph> box. To define the variable "sun", click the <link href="text/swriter/01/04090005.xhp"><emph>Variables</emph></link> tab, select "Set variable", type "sun" in the<emph> Name</emph> box, and its value in the<emph> Value</emph> box.</paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -62,7 +62,7 @@
<paragraph role="tablecontent" id="par_id3153719" xml-lang="en-US">Input list</paragraph>
</tablecell>
<tablecell>
- <paragraph role="tablecontent" id="par_id3147564" xml-lang="en-US">Inserts a text field that displays one item from a list. You can add, edit, and remove items, and change their order in the list. Click an <emph>Input list</emph> field in your document or press <switchinline select="sys"><caseinline select="MAC"><keycode>Command</keycode></caseinline><defaultinline><keycode>Ctrl</keycode></defaultinline></switchinline><keycode>+Shift+F9</keycode> to display the <link href="text/swriter/01/04090003.xhp" name="Choose Item"><emph>Choose Item</emph></link> dialog.</paragraph>
+ <paragraph role="tablecontent" id="par_id3147564" xml-lang="en-US">Inserts a text field that displays one item from a list. You can add, edit, and remove items, and change their order in the list. Click an <emph>Input list</emph> field in your document or press <switchinline select="sys"><caseinline select="MAC"><keycode>Command</keycode></caseinline><defaultinline><keycode>Ctrl</keycode></defaultinline></switchinline><keycode>+Shift+F9</keycode> to display the <link href="text/swriter/01/04090003.xhp"><emph>Choose Item</emph></link> dialog.</paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -70,7 +70,7 @@
<paragraph role="tablecontent" id="par_id3153146" xml-lang="en-US">Input field</paragraph>
</tablecell>
<tablecell>
-<paragraph role="tablecontent" id="par_id3149287" xml-lang="en-US">Inserts a text field that you can open by <link href="text/swriter/01/04090100.xhp" name="clicking">clicking</link> it in the document. You can then change the text that is displayed.</paragraph>
+<paragraph role="tablecontent" id="par_id3149287" xml-lang="en-US">Inserts a text field that you can open by <link href="text/swriter/01/04090100.xhp">clicking</link> it in the document. You can then change the text that is displayed.</paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -94,7 +94,7 @@
<paragraph role="tablecontent" id="par_id3150973" xml-lang="en-US">Hidden text</paragraph>
</tablecell>
<tablecell>
-<paragraph role="tablecontent" id="par_id3147524" xml-lang="en-US">Inserts a text field that is hidden when the condition that you specify is met. To use this function, choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - </menuitem><link href="text/shared/optionen/01040200.xhp" name="Text Document - View"><menuitem>%PRODUCTNAME Writer - View</menuitem></link> and clear the <emph>Hidden text</emph> check box.</paragraph>
+<paragraph role="tablecontent" id="par_id3147524" xml-lang="en-US">Inserts a text field that is hidden when the condition that you specify is met. To use this function, choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - </menuitem><link href="text/shared/optionen/01040200.xhp"><menuitem>%PRODUCTNAME Writer - View</menuitem></link> and clear the <emph>Hidden text</emph> check box.</paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -102,7 +102,7 @@
<paragraph role="tablecontent" id="par_id3154480" xml-lang="en-US">Hidden Paragraph</paragraph>
</tablecell>
<tablecell>
-<paragraph role="tablecontent" id="par_id3153677" xml-lang="en-US">Hides a paragraph when the condition that you specify is met. To use this function, choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><emph> - </emph><link href="text/shared/optionen/01040200.xhp" name="Text Document - View"><menuitem>%PRODUCTNAME Writer - View</menuitem></link> and clear the <emph>Hidden paragraphs</emph> check box.</paragraph>
+<paragraph role="tablecontent" id="par_id3153677" xml-lang="en-US">Hides a paragraph when the condition that you specify is met. To use this function, choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><emph> - </emph><link href="text/shared/optionen/01040200.xhp"><menuitem>%PRODUCTNAME Writer - View</menuitem></link> and clear the <emph>Hidden paragraphs</emph> check box.</paragraph>
</tablecell>
</tablerow>
<tablerow>
@@ -123,7 +123,7 @@
<paragraph role="paragraph" id="par_id3151329" xml-lang="en-US">For function fields, the format field is only used for fields of the type placeholder. Here, the format determines the object for which the placeholder stands.</paragraph>
<section id="condition">
<h2 id="hd_id3149494" xml-lang="en-US">Condition</h2>
-<paragraph role="paragraph" id="par_id3143281" xml-lang="en-US"><ahelp hid="modules/swriter/ui/flddbpage/condition">For fields linked to a <link href="text/swriter/01/04090200.xhp" name="condition">condition</link>, enter the criteria here.</ahelp></paragraph>
+<paragraph role="paragraph" id="par_id3143281" xml-lang="en-US"><ahelp hid="modules/swriter/ui/flddbpage/condition">For fields linked to a <link href="text/swriter/01/04090200.xhp">condition</link>, enter the criteria here.</ahelp></paragraph>
</section>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/fldfuncpage/cond1" id="bm_id3151259" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/fldfuncpage/cond2" id="bm_id3151262" localize="false"/>