1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 30e4b25e7SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 60e4b25e7SAndrew Rist * or more contributor license agreements. See the NOTICE file 70e4b25e7SAndrew Rist * distributed with this work for additional information 80e4b25e7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the 100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance 110e4b25e7SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 130e4b25e7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing, 160e4b25e7SAndrew Rist * software distributed under the License is distributed on an 170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 180e4b25e7SAndrew Rist * KIND, either express or implied. See the License for the 190e4b25e7SAndrew Rist * specific language governing permissions and limitations 200e4b25e7SAndrew Rist * under the License. 21cdf0e10cSrcweir * 220e4b25e7SAndrew Rist ***********************************************************--> 230e4b25e7SAndrew Rist 24e91968a5Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textswriterguidehyphen_preventxhp" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Preventing Hyphenation of Specific Words</title> 28cdf0e10cSrcweir<filename>/text/swriter/guide/hyphen_prevent.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32e91968a5Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3149695"> 33e91968a5Smseidel<bookmark_value>hyphenation;preventing for specific words</bookmark_value> 34cdf0e10cSrcweir<bookmark_value>words;wrapping/not wrapping in text</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>switching off;hyphenation for specific words</bookmark_value> 36cdf0e10cSrcweir</bookmark><comment>mw copied 2 entries from using_hyphen.xhp and added a new entry</comment> 37*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="hd_id3149695" role="heading" level="1" l10n="U"><variable id="hyphen_prevent"><link href="text/swriter/guide/hyphen_prevent.xhp" name="Preventing Hyphenation of Specific Words">Preventing Hyphenation of Specific Words</link> 38cdf0e10cSrcweir</variable></paragraph><comment>MW created this guide from splitting using_hyphen.xhp</comment> 39cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id5640125" role="paragraph" l10n="NEW">If your text is <link href="text/swriter/guide/using_hyphen.xhp">automatically hyphenated</link> and certain hyphenated words look ugly, or if you want specific words never to be hyphenated you can switch off hyphenation for those words:</paragraph> 40cdf0e10cSrcweir<list type="ordered"> 41cdf0e10cSrcweir<listitem> 42*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3153634" role="listitem" l10n="U">Choose <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Language Settings - Writing Aids</emph> 43cdf0e10cSrcweir</paragraph> 44cdf0e10cSrcweir</listitem> 45cdf0e10cSrcweir<listitem> 46*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3153658" role="listitem" l10n="U">Select a dictionary in the <emph>User-defined dictionary</emph> list, and then click <emph>Edit</emph>.</paragraph> 47*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3147125" role="listitem" l10n="U">If the list is empty, click <emph>New</emph> to create a dictionary.</paragraph> 48cdf0e10cSrcweir</listitem> 49cdf0e10cSrcweir<listitem> 50*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3150218" role="listitem" l10n="U">In the <emph>Word</emph> box, type the word you want to exclude from hyphenation, followed by an equal sign (=), for example, "pretentious=".</paragraph> 51cdf0e10cSrcweir</listitem> 52cdf0e10cSrcweir<listitem> 53*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3150247" role="listitem" l10n="U">Click <emph>New</emph>, and then click <emph>Close</emph>.</paragraph> 54cdf0e10cSrcweir</listitem> 55cdf0e10cSrcweir</list> 56*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3147036" role="tip" l10n="U">To quickly exclude a word from hyphenation, select the word, choose <emph>Format - Character</emph>, click the <emph>Font</emph> tab, and select "None" in the <emph>Language</emph> box.</paragraph> 57cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0302200910262761" role="paragraph" l10n="NEW">Some words contain special characters that %PRODUCTNAME treats as a hyphen. If you do not want such words to be hyphenated, you can insert a special code that prevents hyphenation at the position where the special code is inserted. Proceed as follows:</paragraph> 58cdf0e10cSrcweir<list type="ordered"> 59cdf0e10cSrcweir<listitem> 60cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0302200910262850" role="paragraph" l10n="NEW">Enable the special features of complex text layout (CTL) languages: Choose <item type="menuitem"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Language Settings - Languages</item> and check <emph>Enabled for complex text layout (CTL)</emph>. Click OK.</paragraph> 61cdf0e10cSrcweir</listitem> 62cdf0e10cSrcweir<listitem> 63cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0302200910262837" role="paragraph" l10n="NEW">Position the cursor at the place where no hyphenation should occur.</paragraph> 64cdf0e10cSrcweir</listitem> 65cdf0e10cSrcweir<listitem> 66cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0302200910262867" role="paragraph" l10n="NEW">Choose <item type="menuitem">Insert - Formatting Mark - No-width no break</item>.</paragraph> 67cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0302200910572128" role="paragraph" l10n="NEW">Once the special character is inserted, you might disable CTL again. Support of CTL was only necessary to insert the special character.</paragraph> 68cdf0e10cSrcweir</listitem> 69cdf0e10cSrcweir</list> 70cdf0e10cSrcweir<embed href="text/shared/00/00000004.xhp#related"/> 71cdf0e10cSrcweir<embed href="text/swriter/guide/using_hyphen.xhp#using_hyphen"/> 72*7e5ed1f9Smseidel<paragraph xml-lang="en-US" id="par_id3154361" role="paragraph" l10n="U"><link href="text/swriter/01/05030200.xhp" name="Text Flow">Text Flow</link></paragraph> 73cdf0e10cSrcweir</body> 74cdf0e10cSrcweir</helpdocument> 75