Files
help/source/text/shared/guide/linestyles.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

65 lines
3.2 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="textsharedguidelinestylesxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Applying Line Styles</title>
<filename>/text/shared/guide/linestyles.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_id3153884"><bookmark_value>separator lines; defining</bookmark_value>
<bookmark_value>reference lines</bookmark_value>
<bookmark_value>arrows; defining arrow lines</bookmark_value>
<bookmark_value>line styles; applying</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3153884" xml-lang="en-US" level="1"><variable id="linestyles"><link href="text/shared/guide/linestyles.xhp">Applying Line Styles Using the Toolbar</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id3150669" xml-lang="en-US">The <emph>Drawing Object Properties</emph> toolbar contains icons and combo boxes to define various line attributes.</paragraph>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_id3145068" xml-lang="en-US">Click the <emph>Line</emph> icon
<image id="img_id3144510" src="cmd/sc_formatline.png" width="0.222inch" height="0.222inch"><alt id="alt_id3144510" xml-lang="en-US">Icon</alt>
</image> to open the <emph>Line</emph> dialog.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN106D6" xml-lang="en-US">Click the <emph>Arrow Styles</emph> icon
<image id="img_id5858221" src="cmd/sc_lineendstyle.png" width="0.222inch" height="0.222inch"><alt id="alt_id5858221" xml-lang="en-US">Icon</alt>
</image> to select an arrow style for the right and left ends of a line.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id3150868" xml-lang="en-US">Select a style from the <emph>Line Style</emph> box and specify the width in the <emph>Line Width</emph> box. A width of 0 corresponds to 1 pixel.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN1070A" xml-lang="en-US">Select the line and arrow color in the <emph>Line Color</emph> box.</paragraph>
</listitem>
</list>
<section id="relatedtopics">
<embed href="text/shared/guide/linestyle_define.xhp#linestyle_define"/>
<embed href="text/shared/guide/lineend_define.xhp#lineend_define"/>
</section>
</body>
</helpdocument>