summaryrefslogtreecommitdiff
path: root/source/text/shared/guide/data_dbase2office.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/shared/guide/data_dbase2office.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/shared/guide/data_dbase2office.xhp')
-rw-r--r--source/text/shared/guide/data_dbase2office.xhp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/shared/guide/data_dbase2office.xhp b/source/text/shared/guide/data_dbase2office.xhp
index a352b229f8..559b867bd1 100644
--- a/source/text/shared/guide/data_dbase2office.xhp
+++ b/source/text/shared/guide/data_dbase2office.xhp
@@ -34,7 +34,7 @@
<bookmark_value>importing; tables in text format</bookmark_value>
<bookmark_value>exporting; spreadsheets to text format</bookmark_value>
</bookmark>
-<paragraph role="heading" id="hd_id3154824" xml-lang="en-US" level="1"><variable id="data_dbase2office"><link href="text/shared/guide/data_dbase2office.xhp" name="Importing and Exporting Data in Text Format">Importing and Exporting Data in Text Format</link>
+<paragraph role="heading" id="hd_id3154824" xml-lang="en-US" level="1"><variable id="data_dbase2office"><link href="text/shared/guide/data_dbase2office.xhp">Importing and Exporting Data in Text Format</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id3147088" xml-lang="en-US">If you want to exchange data with a database that does not have an ODBC link and does not allow dBASE import and export, you can use a common text format.</paragraph>
<paragraph role="heading" id="hd_id3145313" xml-lang="en-US" level="2">Importing Data into $[officename]</paragraph>
@@ -44,13 +44,13 @@
<paragraph role="listitem" id="par_id3145382" xml-lang="en-US">Export the desired data from the source database in a text format. The CSV text format is recommended. This format separates data fields by using delimiters such as commas or semi-colons, and separates records by inserting line breaks.</paragraph>
</listitem>
<listitem>
-<paragraph role="listitem" id="par_id3153821" xml-lang="en-US">Choose <emph>File - </emph><link href="text/shared/01/01020000.xhp" name="Open"><emph>Open</emph></link> and click the file to import.</paragraph>
+<paragraph role="listitem" id="par_id3153821" xml-lang="en-US">Choose <emph>File - </emph><link href="text/shared/01/01020000.xhp"><emph>Open</emph></link> and click the file to import.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id1977904" xml-lang="en-US">Select "Text CSV" from the <emph>File type</emph> combo box. Click <emph>Open</emph>.</paragraph>
</listitem>
<listitem>
-<paragraph role="listitem" id="par_id3150771" xml-lang="en-US">The <link href="text/shared/00/00000208.xhp" name="Text Import"><emph>Text Import</emph></link> dialog appears. Decide which data to include from the text document.</paragraph>
+<paragraph role="listitem" id="par_id3150771" xml-lang="en-US">The <link href="text/shared/00/00000208.xhp"><emph>Text Import</emph></link> dialog appears. Decide which data to include from the text document.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3150986" xml-lang="en-US">Once the data is in a $[officename] Calc spreadsheet, you can edit it as needed. Save the data as a $[officename] data source:</paragraph>
@@ -69,7 +69,7 @@
<paragraph role="listitem" id="par_id3154216" xml-lang="en-US">In <emph>File type</emph> select the filter "Text CSV". Enter a file name and click <emph>Save</emph>.</paragraph>
</listitem>
<listitem>
-<paragraph role="listitem" id="par_id3154908" xml-lang="en-US">This opens the <link href="text/shared/00/00000207.xhp" name="dBase Export"><emph>Export of text files</emph></link> dialog, in which you can select the character set, field delimiter and text delimiter. Click <emph>OK</emph>. A warning informs you that only the active sheet was saved.</paragraph>
+<paragraph role="listitem" id="par_id3154908" xml-lang="en-US">This opens the <link href="text/shared/00/00000207.xhp"><emph>Export of text files</emph></link> dialog, in which you can select the character set, field delimiter and text delimiter. Click <emph>OK</emph>. A warning informs you that only the active sheet was saved.</paragraph>
</listitem>
</list>
<embed href="text/shared/00/00000004.xhp#related"/>