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>
131 lines
7.1 KiB
XML
131 lines
7.1 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="textsharedguidedoc_savexml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Saving Documents</title>
|
|
<filename>/text/shared/guide/doc_save.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3147226"><bookmark_value>documents; saving</bookmark_value>
|
|
<bookmark_value>saving; documents</bookmark_value>
|
|
<bookmark_value>backups; documents</bookmark_value>
|
|
<bookmark_value>files; saving</bookmark_value>
|
|
<bookmark_value>text documents; saving</bookmark_value>
|
|
<bookmark_value>spreadsheets; saving</bookmark_value>
|
|
<bookmark_value>drawings; saving</bookmark_value>
|
|
<bookmark_value>presentations; saving</bookmark_value>
|
|
<bookmark_value>FTP; saving documents</bookmark_value>
|
|
</bookmark><comment>mw changed "tables;..." to "spreadsheets;..."</comment><comment>mw changed "text;" to "text documents;"</comment><paragraph role="heading" id="hd_id3147226" xml-lang="en-US" level="1"><variable id="doc_save"><link href="text/shared/guide/doc_save.xhp">Saving Documents</link>
|
|
</variable></paragraph>
|
|
<list type="unordered">
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3156113" xml-lang="en-US">Click the <emph>Save</emph> icon or press the shortcut keys <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+S.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<table id="tbl_id3154307">
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="paragraph" id="par_id3155450" xml-lang="en-US">
|
|
<image id="img_id3152349" src="cmd/sc_save.png" width="0.222inch" height="0.222inch"><alt id="alt_id3152349" xml-lang="en-US">This icon is for tips on how to use the program more effectively.</alt></image></paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="paragraph" id="par_id3148685" xml-lang="en-US">The document is saved under its path and name on the current local data medium or network drive or on the Internet, overwriting any file of the same name.</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
</table>
|
|
<paragraph role="paragraph" id="par_id3150984" xml-lang="en-US">When you save a new file for the first time, the <link href="text/shared/01/01070000.xhp">Save As</link> dialog opens, in which you can enter a name, folder and drive or volume for the file. To open this dialog, choose <emph>File - Save As</emph>.</paragraph>
|
|
<paragraph role="note" id="par_id3152472" xml-lang="en-US">You can set the automatic creation of a backup copy under <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - </emph><link href="text/shared/optionen/01010200.xhp"><emph>Load/Save - General</emph></link>.</paragraph>
|
|
<paragraph role="heading" id="hd_id7146824" xml-lang="en-US" level="2">Automatic extension to the file name</paragraph>
|
|
<paragraph role="paragraph" id="par_id9359111" xml-lang="en-US">When saving a file, %PRODUCTNAME always appends an extension to the file name, except when the file name already has an extension that matches the file type. See the list of <link href="text/shared/00/00000021.xhp">ODF extensions</link>. </paragraph>
|
|
<paragraph role="paragraph" id="par_id6709494" xml-lang="en-US">Some examples for the automatic extensions are listed in the following table:</paragraph>
|
|
<table id="tbl_id9627979">
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablehead" id="par_id9009674" xml-lang="en-US">You enter this file name</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablehead" id="par_id485549" xml-lang="en-US">You select this file type</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablehead" id="par_id3987243" xml-lang="en-US">File is saved with this name</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id7681814" xml-lang="en-US">my file</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id9496749" xml-lang="en-US">ODF Text</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id342417" xml-lang="en-US">my file.odt</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id5087130" xml-lang="en-US">my file.odt</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id7523728" xml-lang="en-US">ODF Text</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id8994109" xml-lang="en-US">my file.odt</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id266426" xml-lang="en-US">my file.txt</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id3031098" xml-lang="en-US">ODF Text</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id8276619" xml-lang="en-US">my file.txt.odt</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
<tablerow>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id7824030" xml-lang="en-US">my file.txt</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id7534104" xml-lang="en-US">Text (.txt)</paragraph>
|
|
</tablecell>
|
|
<tablecell colspan="" rowspan="">
|
|
<paragraph role="tablecontent" id="par_id209051" xml-lang="en-US">my file.txt</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
</table>
|
|
<section id="relatedtopics">
|
|
<embed href="text/shared/guide/export_ms.xhp#export_ms"/>
|
|
<embed href="text/shared/guide/doc_autosave.xhp#doc_autosave"/>
|
|
<embed href="text/shared/00/00000021.xhp#xmlformat"/>
|
|
<paragraph role="paragraph" id="par_id3153524" xml-lang="en-US"><link href="text/shared/01/01070000.xhp">Save As</link></paragraph>
|
|
<embed href="text/shared/guide/ms_user.xhp#ms_user"/>
|
|
<paragraph role="paragraph" id="par_id3154140" xml-lang="en-US"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01010200.xhp">Load/Save - General</link></paragraph>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|