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/main0503.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/main0503.xhp')
-rw-r--r-- | source/text/scalc/main0503.xhp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/scalc/main0503.xhp b/source/text/scalc/main0503.xhp index 27e04b5f81..396e1f2e60 100644 --- a/source/text/scalc/main0503.xhp +++ b/source/text/scalc/main0503.xhp @@ -30,12 +30,12 @@ <section id="features"> - <h1 id="hd_id3154758"><variable id="main0503"><link href="text/scalc/main0503.xhp" name="$[officename] Calc Features">$[officename] Calc Features</link></variable></h1> + <h1 id="hd_id3154758"><variable id="main0503"><link href="text/scalc/main0503.xhp">$[officename] Calc Features</link></variable></h1> <paragraph role="paragraph" id="par_id3149457" xml-lang="en-US">$[officename] Calc is a spreadsheet application that you can use to calculate, analyze, and manage your data. You can also import and modify Microsoft Excel spreadsheets.</paragraph> </section> <h2 id="hd_id3148797">Calculations</h2> - <paragraph xml-lang="en-US" role="paragraph" id="par_id3145172">$[officename] Calc provides you with <link href="text/scalc/01/04060100.xhp" name="functions">functions</link>, including statistical and banking functions, that you can use to create formulas to perform complex calculations on your data.</paragraph> - <paragraph xml-lang="en-US" role="paragraph" id="par_id3145271">You can also use the <link href="text/scalc/01/04060000.xhp" name="AutoPilots">Function Wizard</link> to help you create your formulas.</paragraph> + <paragraph xml-lang="en-US" role="paragraph" id="par_id3145172">$[officename] Calc provides you with <link href="text/scalc/01/04060100.xhp">functions</link>, including statistical and banking functions, that you can use to create formulas to perform complex calculations on your data.</paragraph> + <paragraph xml-lang="en-US" role="paragraph" id="par_id3145271">You can also use the <link href="text/scalc/01/04060000.xhp">Function Wizard</link> to help you create your formulas.</paragraph> <h2 id="hd_id3152596">What-If Calculations</h2> <paragraph role="paragraph" id="par_id3156444" xml-lang="en-US">An interesting feature is to be able to immediately view the results of changes made to one factor of calculations that are composed of several factors. For instance, you can see how changing the time period in a loan calculation affects the interest rates or repayment amounts. Furthermore, you can manage larger tables by using different predefined scenarios.</paragraph> <h2 id="hd_id3148576">Database Functions</h2> @@ -46,6 +46,6 @@ <h2 id="hd_id3155601">Dynamic Charts</h2> <paragraph role="paragraph" id="par_id3149121" xml-lang="en-US">$[officename] Calc lets you present spreadsheet data in dynamic charts that update automatically when the data changes.</paragraph> <h2 id="hd_id3153707">Opening and Saving Microsoft Files</h2> - <paragraph xml-lang="en-US" role="paragraph" id="par_id3157867">Use the $[officename] filters to convert Excel files, or to open and save in a variety of other <link href="text/shared/00/00000020.xhp" name="formats">formats</link>.</paragraph> + <paragraph xml-lang="en-US" role="paragraph" id="par_id3157867">Use the $[officename] filters to convert Excel files, or to open and save in a variety of other <link href="text/shared/00/00000020.xhp">formats</link>.</paragraph> </body> </helpdocument> |