forked from amazingfate/help
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>
56 lines
4.1 KiB
XML
56 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
<!--
|
|
* 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 .
|
|
-->
|
|
|
|
<meta>
|
|
<topic id="textsharedguideaaa_startxml" indexer="include">
|
|
<title id="tit" xml-lang="en-US">First Steps</title>
|
|
<filename>/text/shared/guide/aaa_start.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3156324"><bookmark_value>samples and templates</bookmark_value>
|
|
<bookmark_value>templates; new documents from templates</bookmark_value>
|
|
<bookmark_value>business cards; using templates</bookmark_value>
|
|
</bookmark>
|
|
<h1 id="hd_id3156324" xml-lang="en-US"><variable id="aaa_start"><link href="text/shared/guide/aaa_start.xhp">First Steps</link></variable></h1>
|
|
<h2 id="hd_id3156211" xml-lang="en-US">How to simplify your work using samples and templates</h2>
|
|
<paragraph role="paragraph" id="par_id3144436" xml-lang="en-US">
|
|
<item type="productname">%PRODUCTNAME</item> includes many sample documents and ready-to-use templates. You can access these by choosing <emph>File - New - Templates</emph>, or press Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+N.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3147291" xml-lang="en-US">When you open one of the templates, a new document is created based on this template.</paragraph>
|
|
<paragraph role="paragraph" id="par_id0820200803563860" xml-lang="en-US">Click the <emph>Browse online templates</emph> button in the dialog to select and download more templates.</paragraph>
|
|
<paragraph role="paragraph" id="par_id0820200803563974" xml-lang="en-US">You can also use the various wizards (under the <emph>File - Wizards</emph> menu) to create your own templates, which you can use as a basis for further documents.</paragraph>
|
|
<section id="relatedtopics">
|
|
<paragraph role="paragraph" id="par_id3149177" xml-lang="en-US"><link href="text/shared/guide/main.xhp">Working with <item type="productname">%PRODUCTNAME</item></link></paragraph>
|
|
<paragraph role="paragraph" id="par_id401607339239056"><switchinline select="appl"><caseinline select="WRITER"><link href="text/swriter/guide/template_styles.xhp">Working with Templates</link>
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3149095" xml-lang="en-US"><switchinline select="appl"><caseinline select="WRITER"><link href="text/swriter/guide/main.xhp">Working with Text Documents</link>
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3152997" xml-lang="en-US"><switchinline select="appl"><caseinline select="CALC"><link href="text/scalc/guide/main.xhp">Working with Spreadsheets</link>
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3147243" xml-lang="en-US"><switchinline select="appl"><caseinline select="IMPRESS"><link href="text/simpress/guide/main.xhp">Working with Presentations</link>
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3154047" xml-lang="en-US"><switchinline select="appl"><caseinline select="DRAW"><link href="text/sdraw/guide/main.xhp">Working with Drawings</link>
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3153824" xml-lang="en-US"><switchinline select="appl"><caseinline select="MATH"><link href="text/smath/guide/main.xhp">Working with Formulas</link>
|
|
</caseinline></switchinline></paragraph>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|