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>
66 lines
4.8 KiB
XML
66 lines
4.8 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="textsharedguideinsert_specialcharxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Inserting Special Characters</title>
|
|
<filename>/text/shared/guide/insert_specialchar.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3154927"><bookmark_value>characters; special</bookmark_value>
|
|
<bookmark_value>inserting; special characters</bookmark_value>
|
|
<bookmark_value>special characters</bookmark_value>
|
|
<bookmark_value>text; inserting special characters</bookmark_value>
|
|
<bookmark_value>accents</bookmark_value>
|
|
<bookmark_value>compose key to insert special characters</bookmark_value>
|
|
</bookmark>
|
|
<paragraph role="heading" id="hd_id3154927" xml-lang="en-US" level="1"><variable id="insert_specialchar"><link href="text/shared/guide/insert_specialchar.xhp">Inserting Special Characters</link>
|
|
</variable></paragraph>
|
|
<paragraph role="paragraph" id="par_id3147576" xml-lang="en-US">This function allows you to insert special characters, such as check marks, boxes, and telephone symbols, into your text.</paragraph>
|
|
<list type="unordered">
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3155535" xml-lang="en-US">To view a repertoire of all characters, choose <menuitem>Insert - Special Character</menuitem>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3147275" xml-lang="en-US">In the large selection field double-click on the desired character, which is inserted in the current document.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3153031" xml-lang="en-US">In any text input field (such as the input fields in the <emph>Find & Replace</emph> dialog) you can press Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+S to open the <emph>Special Characters</emph> dialog.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph role="paragraph" id="par_id3155630" xml-lang="en-US"><switchinline select="sys"><caseinline select="UNIX">At present there are three ways of entering letters with accents directly from the keyboard.
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3154897" xml-lang="en-US"><switchinline select="sys"><caseinline select="UNIX"><emph>Solaris:</emph> Using a Sun keyboard. First press the Compose key to the right of the space bar, then enter the first and second modifiers.
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3145315" xml-lang="en-US"><switchinline select="sys"><caseinline select="UNIX"><emph>Linux / NetBSD:</emph> Using the dead-keys. In an xterm window first press the (´) or (`) key. The character should not appear on the screen. Now press a letter, such as "e". The e is given an accent, é or è. If not, then check in the XF86Config file if a "nodeadkeys" XkbdVariant has been loaded there and replace it. You may also have set the environment variable SAL_NO_DEADKEYS, which deactivates the dead-keys.
|
|
</caseinline></switchinline></paragraph>
|
|
<paragraph role="paragraph" id="par_id3148943" xml-lang="en-US"><switchinline select="sys"><caseinline select="UNIX"><emph>All Unix systems:</emph> (Alt Graph) as additional compose key. The (Alt Graph) key can work in $[officename] like the Compose key, if you set the environment variable SAL_ALTGR_COMPOSE. The (Alt Graph) key must trigger a mode_switch, so, for example, xmodmap -e "keysym Alt_R = Mode_switch" must be set. First press (Alt Graph), then the first modifier, then the second modifier. The characters are combined as described on a Solaris system in the file /usr/openwin/include/X11/Suncompose.h.
|
|
</caseinline></switchinline></paragraph>
|
|
<embed href="text/shared/00/00000004.xhp#related"/>
|
|
<paragraph role="paragraph" id="par_id3149047" xml-lang="en-US"><link href="text/shared/01/04100000.xhp">Special Characters</link></paragraph>
|
|
<paragraph role="paragraph" id="par_id3153896" xml-lang="en-US"><link href="text/shared/01/06040200.xhp">AutoCorrect</link></paragraph>
|
|
</body>
|
|
</helpdocument>
|