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/scalc/01/04060000.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/scalc/01/04060000.xhp')
-rw-r--r-- | source/text/scalc/01/04060000.xhp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/scalc/01/04060000.xhp b/source/text/scalc/01/04060000.xhp index 4fad66a05d..91b457e60e 100644 --- a/source/text/scalc/01/04060000.xhp +++ b/source/text/scalc/01/04060000.xhp @@ -37,7 +37,7 @@ <bookmark xml-lang="en-US" branch="hid/SC_HID_INSWIN_CALC" id="bm_id3145750" localize="false"/> <bookmark xml-lang="en-US" branch="hid/.uno:FunctionDialog" id="bm_id1185225" localize="false"/> <section id="function_wizard"> -<h1 id="hd_id3147426"><link href="text/scalc/01/04060000.xhp" name="AutoPilot: Functions">Function</link></h1> +<h1 id="hd_id3147426"><link href="text/scalc/01/04060000.xhp">Function</link></h1> <paragraph role="paragraph" id="par_id3145271" xml-lang="en-US"><variable id="funktionsautopilottext"><ahelp hid=".">Opens the <emph>Function Wizard</emph>, which helps you to interactively create formulas.</ahelp></variable></paragraph> </section> <paragraph role="paragraph" id="par_id491577286833512">Before you start the Wizard, select a cell or a range of cells from the current sheet, in order to determine the position at which the formula will be inserted.</paragraph> @@ -54,7 +54,7 @@ <h3 id="hd_id3154730">Category</h3> <paragraph role="paragraph" id="par_id3153417" xml-lang="en-US"><variable id="kategorienliste"><ahelp hid="formula/ui/functionpage/category">Lists all the categories to which the different functions are assigned. Select a category to view the appropriate functions in the list field below.</ahelp> Select "All" to view all functions in alphabetical order, irrespective of category. "Last Used" lists the functions you have most recently used. </variable></paragraph> -<paragraph role="paragraph" id="par_id3149378" xml-lang="en-US">You can browse the full <link href="text/scalc/01/04060100.xhp" name="List of Categories and Functions"><emph>List of Categories and Functions</emph></link>.</paragraph> +<paragraph role="paragraph" id="par_id3149378" xml-lang="en-US">You can browse the full <link href="text/scalc/01/04060100.xhp"><emph>List of Categories and Functions</emph></link>.</paragraph> <bookmark xml-lang="en-US" branch="hid/formula/ui/functionpage/function" id="bm_id1185227" localize="false"/> <h3 id="hd_id3150749">Function</h3> <paragraph role="paragraph" id="par_id3155445" xml-lang="en-US"><ahelp hid="formula/ui/functionpage/function">Displays the functions found under the selected category. Double-click to select a function.</ahelp> A single-click displays a short function description.</paragraph> @@ -64,11 +64,11 @@ <paragraph role="paragraph" id="par_id3155959" xml-lang="en-US">The <emph>Array</emph> option is identical to the <switchinline select="sys"><caseinline select="MAC"><emph>Command</emph></caseinline><defaultinline><emph>Ctrl</emph></defaultinline></switchinline><emph>+Shift+Enter</emph> command, which is used to enter and confirm formulas in the sheet. The formula is inserted as a matrix formula indicated by two braces: <emph>{ }</emph>.</paragraph> <note id="par_id3152993">The maximum size of an array range is 128 by 128 cells.</note> <h3 id="hd_id3150367">Argument Input Fields</h3> -<paragraph role="paragraph" id="par_id3145587" xml-lang="en-US">When you double-click a function, the argument input field(s) appear on the right side of the dialog. To select a cell reference as an argument, click directly into the cell, or drag across the required range on the sheet while holding down the mouse button. You can also enter numerical and other values or references directly into the corresponding fields in the dialog. When using <link href="text/scalc/01/04060102.xhp" name="date entries"><emph>date entries</emph></link>, make sure you use the correct format. Click <emph>OK</emph> to insert the result into the spreadsheet.</paragraph> +<paragraph role="paragraph" id="par_id3145587" xml-lang="en-US">When you double-click a function, the argument input field(s) appear on the right side of the dialog. To select a cell reference as an argument, click directly into the cell, or drag across the required range on the sheet while holding down the mouse button. You can also enter numerical and other values or references directly into the corresponding fields in the dialog. When using <link href="text/scalc/01/04060102.xhp"><emph>date entries</emph></link>, make sure you use the correct format. Click <emph>OK</emph> to insert the result into the spreadsheet.</paragraph> <embed href="text/shared/00/00000001.xhp#shrink_maximize"/> <bookmark xml-lang="en-US" branch="hid/formula/ui/formuladialog/result" id="bm_id1185233" localize="false"/> <h3 id="hd_id3149408">Function Result</h3> -<paragraph role="paragraph" id="par_id3155809" xml-lang="en-US">As soon you enter arguments in the function, the result is calculated. This preview informs you if the calculation can be carried out with the arguments given. If the arguments result in an error, the corresponding <link href="text/scalc/05/02140000.xhp" name="error code"><emph>error code</emph></link> is displayed.</paragraph> +<paragraph role="paragraph" id="par_id3155809" xml-lang="en-US">As soon you enter arguments in the function, the result is calculated. This preview informs you if the calculation can be carried out with the arguments given. If the arguments result in an error, the corresponding <link href="text/scalc/05/02140000.xhp"><emph>error code</emph></link> is displayed.</paragraph> <paragraph role="paragraph" id="par_id3148700" xml-lang="en-US">The required arguments are indicated by names in bold print.</paragraph> <bookmark xml-lang="en-US" branch="hid/formula/ui/parameter/FX1" id="bm_id1185230" localize="false"/> <bookmark xml-lang="en-US" branch="hid/formula/ui/parameter/FX2" id="bm_id1185231" localize="false"/> |