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>
88 lines
5.1 KiB
XML
88 lines
5.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="textsharedguidehyperlink_editxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Editing Hyperlinks</title>
|
|
<filename>/text/shared/guide/hyperlink_edit.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3153910"><bookmark_value>hyperlinks; editing</bookmark_value>
|
|
<bookmark_value>links; editing hyperlinks</bookmark_value>
|
|
<bookmark_value>editing; hyperlinks</bookmark_value>
|
|
<bookmark_value>text attributes; hyperlinks</bookmark_value>
|
|
<bookmark_value>buttons;editing hyperlink buttons</bookmark_value>
|
|
<bookmark_value>URL;changing hyperlink URLs</bookmark_value>
|
|
</bookmark><comment>MW deleted "changing;"</comment>
|
|
<h1 id="hd_id3153910"><variable id="hyperlink_edit"><link href="text/shared/guide/hyperlink_edit.xhp">Editing Hyperlinks</link></variable></h1>
|
|
<paragraph role="paragraph" id="par_id4124881" xml-lang="en-US">When you <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>-click a hyperlink in a Writer document, your web browser opens with the requested web address. If you don't use a mouse, position the cursor inside the hyperlink and open the context menu by Shift+F10, then choose Open Hyperlink.</paragraph>
|
|
<h2 id="hd_id3145071">Changing the text of a hyperlink</h2>
|
|
|
|
<tip id="par_id3166410">In Writer documents, you can click anywhere into a hyperlink and edit the visible text.</tip>
|
|
<paragraph role="listitem" id="par_id2690511" xml-lang="en-US">If you leave the hyperlink by positioning the cursor elsewhere, only the visible text changes.</paragraph>
|
|
<paragraph role="listitem" id="par_id1983092" xml-lang="en-US">If you leave the hyperlink by entering a space character directly following the last character, the AutoCorrect - if enabled - will change the target URL to be the same as the visible text.</paragraph>
|
|
<tip id="par_id333262">In all document types, you can open the Hyperlink dialog to edit a hyperlink. First set the cursor into the hyperlink or directly in front of the hyperlink, then click the Hyperlink icon on the Standard bar.</tip>
|
|
<h2 id="hd_id3158432">Changing the URL of a hyperlink</h2>
|
|
<list type="unordered">
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3150503" xml-lang="en-US">As described above, open <link href="text/shared/02/09070000.xhp">Hyperlink Dialog</link>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<h2 id="hd_id3148686">Changing the attribute of all hyperlinks</h2>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_id3148943" xml-lang="en-US">Open the Styles window.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10826" xml-lang="en-US">Click the Character Styles icon.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN1082C" xml-lang="en-US">Right-click the "Internet Link" or "Visited Internet Link" character style, and choose <emph>Modify</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10834" xml-lang="en-US">In the dialog, select the new attributes, and click <emph>OK</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
|
|
<h2 id="hd_id3147530">Editing a hyperlink button</h2>
|
|
<paragraph role="paragraph" id="par_id901565307899796">Hyperlink buttons must be edited in Form design mode.</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_id641565307910254"> Select menu <switchinline select="appl"><caseinline select="WRITER"><menuitem>Form - Design mode</menuitem> or choose </caseinline></switchinline> <menuitem>View - Toolbars</menuitem> and enable the Form Controls toolbar, click on the Design Mode icon and click on the button. The button handles shows.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_id961565308003935">Open context menu and select <menuitem>Control Properties</menuitem>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_id811565308009651">Edit the property in the control dialog box.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<section id="relatedtopics">
|
|
<embed href="text/shared/guide/hyperlink_rel_abs.xhp#hyperlink_rel_abs"/>
|
|
<embed href="text/shared/guide/hyperlink_insert.xhp#hyperlink_insert"/>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|