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>
116 lines
6.3 KiB
XML
116 lines
6.3 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="textsharedguidegallery_insertxml" indexer="include" status="PUBLISH">
|
|
<title xml-lang="en-US" id="tit">Inserting Objects From the Gallery</title>
|
|
<filename>/text/shared/guide/gallery_insert.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
|
|
|
|
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3145136"><bookmark_value>Gallery; inserting pictures from</bookmark_value>
|
|
<bookmark_value>pictures; inserting from Gallery</bookmark_value>
|
|
<bookmark_value>objects; inserting from Gallery</bookmark_value>
|
|
<bookmark_value>patterns for objects</bookmark_value>
|
|
<bookmark_value>textures;inserting from Gallery</bookmark_value>
|
|
<bookmark_value>backgrounds;inserting from Gallery</bookmark_value>
|
|
<bookmark_value>inserting;objects from Gallery</bookmark_value>
|
|
<bookmark_value>copying;from Gallery</bookmark_value>
|
|
</bookmark>
|
|
<comment>mw deleted "adding;"</comment>
|
|
<paragraph xml-lang="en-US" id="hd_id3145136" role="heading" level="1"><variable id="gallery_insert"><link href="text/shared/guide/gallery_insert.xhp">Inserting Objects From the Gallery</link>
|
|
</variable></paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3145345" role="paragraph">You can insert an object in a document either as a <emph>copy</emph> or as a <emph>link</emph>. A copy of an object is independent of the original object. Changes to the original object have no effect on the copy. A link remains dependent on the original object. Changes to the original object are also reflected in the link.</paragraph>
|
|
<paragraph xml-lang="en-US" id="hd_id3145313" role="heading" level="2">Inserting an object as a copy</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3145382" role="listitem">Open the Gallery by clicking the <emph>Gallery</emph> icon on the <emph>Standard</emph> bar, or by selecting <emph>Tools - Gallery</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3154306" role="listitem">Select a theme.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3154516" role="listitem">Select an object using a single click.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3153561" role="listitem">Drag the object into the document, or right-click to open the context menu and select <emph>Insert</emph> and <emph>Copy</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph xml-lang="en-US" id="hd_id3153061" role="heading" level="2">Inserting an object as a link</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3145068" role="listitem">Open the Gallery by clicking the <emph>Gallery</emph> icon on the <emph>Standard</emph> bar, or by choosing <emph>Insert - Media - Gallery</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3148663" role="listitem">Select a theme.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3150543" role="listitem">Select an object by a single click.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3154140" role="listitem">Drag the object into the document while pressing the Shift and <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> keys, or right-click to open the context menu and select <emph>Insert</emph> and <emph>Link</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph xml-lang="en-US" id="hd_id3156282" role="heading" level="2">Inserting an object as a background graphic</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3152920" role="listitem">Open the Gallery by clicking the <emph>Gallery</emph> icon on the <emph>Standard</emph> bar, or by selecting <emph>Tools - Gallery</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3151041" role="listitem">Select a theme.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3145607" role="listitem">Select an object by a single click.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3147289" role="listitem">Open the context menu and choose <emph>Insert - Background - Page</emph> or <emph>Paragraph</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph xml-lang="en-US" id="hd_id3145787" role="heading" level="2">Inserting an object as a texture (pattern) for another object</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3159196" role="listitem">Open the Gallery by clicking the <emph>Gallery</emph> icon on the <emph>Standard</emph> bar, or by selecting <emph>Tools - Gallery</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3152596" role="listitem">Select a theme.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3148617" role="listitem">Select an object by a single click.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3147443" role="listitem">Drag the object on to the other object in the document while pressing <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<section id="relatedtopics">
|
|
|
|
<embed href="text/shared/guide/dragdrop_fromgallery.xhp#dragdrop_fromgallery"/>
|
|
<embed href="text/shared/guide/dragdrop_gallery.xhp#dragdrop_gallery"/>
|
|
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|