mirror of
https://github.com/LibreOffice/help.git
synced 2026-01-13 05:38:56 +00:00
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
3.6 KiB
XML
56 lines
3.6 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_insertxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Inserting Hyperlinks</title>
|
|
<filename>/text/shared/guide/hyperlink_insert.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3150789"><bookmark_value>hyperlinks; inserting</bookmark_value>
|
|
<bookmark_value>links; inserting</bookmark_value>
|
|
<bookmark_value>inserting; hyperlinks</bookmark_value>
|
|
</bookmark>
|
|
<paragraph role="heading" id="hd_id3150789" xml-lang="en-US" level="1"><variable id="hyperlink_insert"><link href="text/shared/guide/hyperlink_insert.xhp">Inserting Hyperlinks</link>
|
|
</variable></paragraph>
|
|
<paragraph role="paragraph" id="par_id3149095" xml-lang="en-US">You can insert hyperlinks in two ways: as text or as a button. In both cases, the visible text can be different from the URL.</paragraph>
|
|
<paragraph role="paragraph" id="par_id3149811" xml-lang="en-US">Place the text cursor in the document at the point where you want to insert the hyperlink or select the text that you want to put the hyperlink on. Select <emph>Hyperlink</emph> command from the <emph>Insert</emph> menu. Alternatively click on the <image id="img_id3149763" src="cmd/sc_hyperlinkdialog.png" width="0.222inch" height="0.222inch"><alt id="alt_id3149763" xml-lang="en-US">Icon</alt></image> Hyperlink icon on the <emph>Standard</emph> toolbar. The <link href="text/shared/02/09070000.xhp">Hyperlink dialog</link> appears.</paragraph>
|
|
<list type="unordered">
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_id3154685" xml-lang="en-US">To jump to a specific line in a text document, first enter a bookmark at that position (<emph>Insert - Bookmark</emph>). </paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN1076D" xml-lang="en-US">To jump to a cell in a spreadsheet, first enter a name for the cell (<emph>Sheet - Named Ranges and Expressions - Define</emph>).</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph role="tip" id="par_id3152887" xml-lang="en-US">Hyperlinks can also be inserted by drag-and-drop from the Navigator. Hyperlinks can refer to references, headings, graphics, tables, objects, directories or bookmarks.</paragraph>
|
|
<paragraph role="tip" id="par_id3146975" xml-lang="en-US">If you wish to insert in a text a hyperlink that refers to Table 1, drag the entry Table 1 from the Navigator and drop it in the text. To do this, the <emph>Insert as Hyperlink</emph> drag mode must be selected in the Navigator.</paragraph>
|
|
<section id="relatedtopics">
|
|
<embed href="text/shared/guide/hyperlink_rel_abs.xhp#hyperlink_rel_abs"/>
|
|
<switch select="appl"><case select="WRITER"><embed href="text/swriter/guide/references.xhp#references"/></case></switch>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|