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

76 lines
5.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="textsharedguidectlxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Languages Using Complex Text Layout</title>
<filename>/text/shared/guide/ctl.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3153662"><bookmark_value>CTL;complex text layout languages</bookmark_value>
<bookmark_value>languages;complex text layout</bookmark_value>
<bookmark_value>text;CTL languages</bookmark_value>
<bookmark_value>text layout for special languages</bookmark_value>
<bookmark_value>right-to-left text</bookmark_value>
<bookmark_value>entering text from right to left</bookmark_value>
<bookmark_value>bi-directional writing</bookmark_value>
<bookmark_value>Hindi;entering text</bookmark_value>
<bookmark_value>Hebrew;entering text</bookmark_value>
<bookmark_value>Arabic;entering text</bookmark_value>
<bookmark_value>Thai;entering text</bookmark_value>
</bookmark><comment>mw made "text layout;" a one level entry</comment>
<paragraph role="heading" id="hd_id3153662" xml-lang="en-US" level="1"><variable id="ctl"><link href="text/shared/guide/ctl.xhp">Languages Using Complex Text Layout</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id3147618" xml-lang="en-US">Currently, $[officename] supports Hindi, Thai, Hebrew, and Arabic as <link href="text/shared/00/00000005.xhp#ctl">CTL languages</link>.</paragraph>
<paragraph role="paragraph" id="par_id3155420" xml-lang="en-US">If you select the text flow from right to left, embedded Western text still runs from left to right. The cursor responds to the arrow keys in that Right Arrow moves it "to the text end" and Left Arrow "to the text start".</paragraph>
<paragraph role="paragraph" id="par_id3145609" xml-lang="en-US">You can change the text writing direction directly by pressing one of the following key combinations:</paragraph>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_id3154758" xml-lang="en-US"><switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+D or <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Right Shift Key - switch to right-to-left text entry</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149047" xml-lang="en-US"><switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Shift+A or <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Left Shift Key - switch to left-to-right text entry</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149656" xml-lang="en-US">The modifier-only key combinations only work when CTL support is enabled.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3150541" xml-lang="en-US">In multicolumn pages, sections or frames that are formatted with text flow from right to left, the first column is the right column and the last column is the left column.</paragraph>
<paragraph role="paragraph" id="par_id3148797" xml-lang="en-US">In $[officename] Writer text formatted in <emph>Thai language</emph> has the following features:</paragraph>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_id3156280" xml-lang="en-US">In paragraphs with justified alignment, the characters are stretched to flush the lines at the margins. In other languages the spaces between words are stretched.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3154909" xml-lang="en-US">Use the Delete key to delete a whole composite character. Use the Backspace key to delete the last part of the previous composite character.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149809" xml-lang="en-US">Use the Right or Left Arrow key to jump to the next or previous whole composite character. To position the cursor into a composite character, use <switchinline select="sys"><caseinline select="MAC">Option</caseinline><defaultinline>Alt</defaultinline></switchinline>+Arrow key.</paragraph>
</listitem>
</list>
<embed href="text/shared/00/00000004.xhp#related"/>
<embed href="text/shared/guide/language_select.xhp#language_select"/>
<paragraph role="paragraph" id="par_id3145786" xml-lang="en-US"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01140000.xhp">Language Settings - Languages</link></paragraph>
<paragraph role="paragraph" id="par_id3153770" xml-lang="en-US"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01150300.xhp">Language Settings - Complex Text Layout</link></paragraph>
</body>
</helpdocument>