1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
254be4daeSmseidel
3226a8927SAndrew Rist<!--***********************************************************
454be4daeSmseidel *
5226a8927SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
6226a8927SAndrew Rist * or more contributor license agreements.  See the NOTICE file
7226a8927SAndrew Rist * distributed with this work for additional information
8226a8927SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
9226a8927SAndrew Rist * to you under the Apache License, Version 2.0 (the
10226a8927SAndrew Rist * "License"); you may not use this file except in compliance
11226a8927SAndrew Rist * with the License.  You may obtain a copy of the License at
1254be4daeSmseidel *
13226a8927SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
1454be4daeSmseidel *
15226a8927SAndrew Rist * Unless required by applicable law or agreed to in writing,
16226a8927SAndrew Rist * software distributed under the License is distributed on an
17226a8927SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18226a8927SAndrew Rist * KIND, either express or implied.  See the License for the
19226a8927SAndrew Rist * specific language governing permissions and limitations
20226a8927SAndrew Rist * under the License.
2154be4daeSmseidel *
22226a8927SAndrew Rist ***********************************************************-->
23226a8927SAndrew Rist
2454be4daeSmseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textsharedguidespace_hyphenxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Inserting Protected Spaces, Hyphens and Conditional Separators</title>
28cdf0e10cSrcweir<filename>/text/shared/guide/space_hyphen.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
3254be4daeSmseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3155364">
3354be4daeSmseidel<bookmark_value>protected spaces;inserting</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>spaces; inserting protected spaces</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>hyphens;inserting custom</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>conditional separators</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>separators; conditional</bookmark_value>
38cdf0e10cSrcweir<bookmark_value>dashes</bookmark_value>
39cdf0e10cSrcweir<bookmark_value>non-breaking dashes</bookmark_value>
40cdf0e10cSrcweir<bookmark_value>replacing;dashes</bookmark_value>
41cdf0e10cSrcweir<bookmark_value>protected dashes</bookmark_value>
42cdf0e10cSrcweir<bookmark_value>exchanging, see also replacing</bookmark_value>
43cdf0e10cSrcweir</bookmark>
44cdf0e10cSrcweir<paragraph role="heading" id="hd_id3155364" xml-lang="en-US" level="1" l10n="U" oldref="30"><variable id="space_hyphen"><link href="text/shared/guide/space_hyphen.xhp" name="Inserting Protected Spaces, Hyphens and Conditional Separators">Inserting Protected Spaces, Hyphens and Conditional Separators</link>
45cdf0e10cSrcweir</variable></paragraph>
46cdf0e10cSrcweir<paragraph role="heading" id="hd_id3156136" xml-lang="en-US" level="2" l10n="U" oldref="61">Non-breaking spaces</paragraph>
47cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147008" xml-lang="en-US" l10n="U" oldref="31">To prevent two words from being separated at the end of a line, hold down the <switchinline select="sys"><caseinline select="MAC">Command key
48cdf0e10cSrcweir</caseinline><defaultinline>Ctrl key</defaultinline></switchinline> and the Shift key when you type a space between the words.</paragraph>
49cdf0e10cSrcweir<paragraph role="note" id="par_id5749687" xml-lang="en-US" l10n="NEW">In Calc, you cannot insert non-breaking spaces.</paragraph>
50cdf0e10cSrcweir<paragraph role="heading" id="hd_id3146957" xml-lang="en-US" level="2" l10n="U" oldref="62">Non-breaking dash</paragraph>
51cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148538" xml-lang="en-US" l10n="U" oldref="32">An example of a non-breaking dash is a company name such as A-Z. Obviously you would not want A- to appear at the end of a line and Z at the beginning of the next line. To solve this problem, press Shift+Ctrl+ minus sign. In other words, hold down the Shift and Ctrl keys and press the minus key.</paragraph>
52cdf0e10cSrcweir<paragraph role="heading" id="hd_id3163802" xml-lang="en-US" level="2" l10n="U" oldref="65">Hyphen, dash</paragraph>
53cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154749" xml-lang="en-US" l10n="CHG" oldref="66">In order to enter longer dashes, you can find under <emph>Tools - AutoCorrect Options</emph>
54cdf0e10cSrcweir<emph>- Options</emph> the <emph>Replace dashes</emph> option. This option replaces one or two minus signs under certain conditions with an en-dash or an em-dash (see <link href="text/shared/01/06040100.xhp" name="$[officename] Help">$[officename] Help</link>).</paragraph>
55cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153561" xml-lang="en-US" l10n="U" oldref="67">For additional replacements see the replacements table under <emph>Tools - AutoCorrect Options</emph>
56*bdc40920Smseidel<emph>-</emph> <link href="text/shared/01/06040200.xhp" name="Replace"><emph>Replace</emph></link>. Here you can, among other things, replace a shortcut automatically by a dash, even in another font.</paragraph>
57cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153825" xml-lang="en-US" level="2" l10n="U" oldref="63">Definite separator</paragraph>
58cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154306" xml-lang="en-US" l10n="U" oldref="60">To support automatic hyphenation by entering a separator inside a word yourself, use the keys <switchinline select="sys"><caseinline select="MAC">Command
59cdf0e10cSrcweir</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+minus sign. The word is separated at this position when it is at the end of the line, even if automatic hyphenation for this paragraph is switched off.</paragraph>
60cdf0e10cSrcweir<embed href="text/shared/00/00000004.xhp#related"/>
61cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3151245" xml-lang="en-US" l10n="U" oldref="64"><link href="text/shared/01/04100000.xhp" name="Special characters">Special characters</link></paragraph>
62cdf0e10cSrcweir<embed href="text/shared/01/formatting_mark.xhp#formattingmark"/>
63cdf0e10cSrcweir</body>
64cdf0e10cSrcweir</helpdocument>
65