Files
help/source/text/shared/guide/database_main.xhp
Ilmari Lauhakangas 7e42394ecb 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>
2022-12-07 17:39:02 +00:00

61 lines
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<helpdocument version="1.0">
<meta>
<topic id="textsharedguidedatabase_mainxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Database Overview</title>
<filename>/text/shared/guide/database_main.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3153031"><bookmark_value>databases; overview</bookmark_value>
<bookmark_value>data source view; overview</bookmark_value>
<bookmark_value>data source explorer</bookmark_value>
<bookmark_value>explorer of data sources</bookmark_value>
</bookmark>
<paragraph role="paragraph" id="par_id3153031" xml-lang="en-US" localize="false"/>
<h1 id="hd_id3148474"><variable id="database_main"><link href="text/shared/guide/database_main.xhp">Database Overview</link>
</variable><comment>remove this file when all links are resolved</comment></h1>
<paragraph role="paragraph" id="par_idN105F1" xml-lang="en-US"><link href="text/sdatabase/main.xhp">Working with databases in %PRODUCTNAME</link></paragraph>
<h2 id="hd_id3153821">Data Source View</h2>
<paragraph role="paragraph" id="par_id3149415" xml-lang="en-US">Choose <emph>View - Data Sources</emph> or press <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> + Shift + F4 keys to call the data source view from a text document or spreadsheet.</paragraph>
<paragraph role="paragraph" id="par_id3147531" xml-lang="en-US">On the left you can see the <link href="text/shared/02/12000000.xhp">Data source explorer</link>. If you select a table or query there, you see the contents of this table or query on the right. At the top margin is the <link href="text/shared/main0212.xhp">Table Data bar</link>.</paragraph>
<h2 id="hd_id3149047">Data Sources</h2>
<paragraph role="paragraph" id="par_id3145069" xml-lang="en-US"><link href="text/shared/guide/data_addressbook.xhp">Address book as data source</link></paragraph>
<paragraph role="paragraph" id="par_id3150398" xml-lang="en-US"><link href="text/shared/01/04180100.xhp">View data source contents</link></paragraph>
<paragraph role="paragraph" id="par_idN106A4" xml-lang="en-US"><link href="text/sdatabase/menubar.xhp">Menu bar of a database file</link></paragraph>
<h2 id="hd_id3154123">Forms and Reports</h2>
<paragraph role="paragraph" id="par_id3154909" xml-lang="en-US"><link href="text/sdatabase/04030000.xhp">Create new form document</link>, <link href="text/shared/02/01170000.xhp">edit form controls</link>, <link href="text/shared/autopi/01090000.xhp">Form Wizard</link></paragraph>
<paragraph role="paragraph" id="par_id3152920" xml-lang="en-US"><link href="text/shared/02/01170500.xhp">Entering data versus editing form</link></paragraph>
<paragraph role="paragraph" id="par_id3151380" xml-lang="en-US"><link href="text/shared/autopi/01100000.xhp">Report Wizard</link></paragraph>
<embed href="text/shared/guide/data_report.xhp#data_report"/>
<h2 id="hd_id3145606">Queries</h2>
<paragraph role="paragraph" id="par_id3125864" xml-lang="en-US"><link href="text/sdatabase/02000000.xhp">Create new query or table view, edit query structure</link></paragraph>
<paragraph role="paragraph" id="par_idN1072A" xml-lang="en-US"><link href="text/sdatabase/querywizard00.xhp">Query Wizard</link></paragraph>
<paragraph role="paragraph" id="par_id3155430" xml-lang="en-US"><link href="text/shared/01/05340400.xhp">Enter, edit and copy records</link></paragraph>
<h2 id="hd_id3147287">Tables</h2>
<paragraph role="paragraph" id="par_id3163713" xml-lang="en-US"><link href="text/sdatabase/05010000.xhp">Create new table, edit table structure</link>, <link href="text/sdatabase/05010100.xhp">index</link>, <link href="text/sdatabase/05020000.xhp">relations</link></paragraph>
<paragraph role="paragraph" id="par_idN1078F" xml-lang="en-US"><link href="text/sdatabase/tablewizard00.xhp">Table Wizard</link></paragraph>
<paragraph role="paragraph" id="par_id3159196" xml-lang="en-US"><link href="text/shared/01/05340400.xhp">Enter, edit and copy records</link></paragraph>
</body>
</helpdocument>