summaryrefslogtreecommitdiff
path: root/source/text/shared/01/06040200.xhp
blob: 445947e850bedb32745163c974b4832abf401a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">

<!--
 * 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 .
 -->

<meta>
<topic id="textshared0106040200xml" indexer="include">
<title id="tit" xml-lang="en-US">Replace</title>
<filename>/text/shared/01/06040200.xhp</filename>
</topic>
</meta>
<body>
<section id="replace">
<bookmark xml-lang="en-US" branch="index" id="bm_id3152876"><bookmark_value>AutoCorrect function; replacement table</bookmark_value>
<bookmark_value>replacement table</bookmark_value>
<bookmark_value>replacing; AutoCorrect function</bookmark_value>
<bookmark_value>text; replacing with format</bookmark_value>
<bookmark_value>frames; AutoCorrect function</bookmark_value>
<bookmark_value>pictures; inserting automatically</bookmark_value>
<bookmark_value>AutoCorrect function; pictures and frames</bookmark_value>
</bookmark>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/AcorReplacePage" id="bm_id3150502" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/@@nowidget@@" id="bm_id3150502" localize="false"/>
<h1 id="hd_id3152876" xml-lang="en-US"><link href="text/shared/01/06040200.xhp">Replace</link></h1>
<paragraph role="paragraph" id="par_id3151262" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/AcorReplacePage">Edits the replacement table for automatically correcting or replacing words or abbreviations in your document.</ahelp></paragraph>
</section>
<paragraph role="paragraph" id="par_id3149999" xml-lang="en-US"><switchinline select="appl"><caseinline select="WRITER">To enable the replacement table, choose <emph>Tools - AutoCorrect - AutoCorrect Options</emph>, click the <emph>Options</emph> tab, and then select <emph>Use replacement table</emph>. To use the replacement table while you type, check <emph>Tools - AutoCorrect - While Typing</emph>.
</caseinline></switchinline></paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#autokoersetzung"/>
</section>
<embed href="text/shared/01/06040300.xhp#language"/>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/tabview" id="bm_id3154810" localize="false"/>
<h2 id="hd_id3155321" xml-lang="en-US">Replacement table</h2>
<paragraph role="paragraph" id="par_id3152945" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/tabview">Lists the entries for automatically replacing words, abbreviations or word parts while you type. To add an entry, enter text in the <emph>Replace </emph>and <emph>With </emph>boxes, and then click <emph>New</emph>. To edit an entry, select it, change the text in the <emph>With</emph> box, and then click <emph>Replace</emph>. To delete an entry, select it, and then click <emph>Delete</emph>.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3153349" xml-lang="en-US">You can use the AutoCorrect feature to apply a specific character format to a word, abbreviation or a word part. Select the formatted text in your document, open this dialog, clear the <emph>Text only</emph> box, and then enter the text that you want to replace in the<emph> Replace</emph> box.</paragraph>
<paragraph role="paragraph" id="par_id3154173" xml-lang="en-US"><switchinline select="appl"><caseinline select="WRITER">You can also include frames, graphics, and OLE objects in an AutoCorrect entry, so long as they are anchored <emph>as characters</emph> in the text. Select the frame, graphic or OLE object and at least one text character in front of and behind the object. Open this dialog, type a name for this AutoCorrect entry in the <emph>Replace </emph>box, and then click <emph>New</emph>.
</caseinline></switchinline></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/origtext" id="bm_id1574449" localize="false"/>
<h3 id="hd_id3148943" xml-lang="en-US">Replace</h3>
<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/origtext">Enter the word, abbreviation or word part that you want to replace while you type.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id191613145378697">The wildcard character sequence <literal>.*</literal> can match anything before or after the replace string. For example:</paragraph>
<list type="unordered">
  <listitem>
    <paragraph id="par_id581613226746969" role="listitem">Having the <emph>replace</emph> pattern <literal>i18n.*</literal> and the <emph>with</emph> pattern <literal>international</literal>, the following corrections are made:</paragraph>
  </listitem>
</list>
<table id="tab_id461613146528171">
   <tablerow>
       <tablecell>
           <paragraph id="par_id591613146528171" role="tablehead">Enter</paragraph>
       </tablecell>
       <tablecell>
           <paragraph id="par_id881613146528171" role="tablehead">Autocorrected Result</paragraph>
       </tablecell>
   </tablerow>
   <tablerow>
       <tablecell>
           <paragraph id="par_id311613146528171" role="tablecontent"><literal>i18ns</literal></paragraph>
       </tablecell>
       <tablecell>
           <paragraph id="par_id551613146766115" role="tablecontent">internationals</paragraph>
       </tablecell>
   </tablerow>
   <tablerow>
      <tablecell>
          <paragraph id="par_id71613147177864" role="tablecontent"><literal>i18nization</literal></paragraph>
      </tablecell>
      <tablecell>
         <paragraph id="par_id771613147188280" role="tablecontent">internationalization</paragraph>
      </tablecell>
   </tablerow>
   <tablerow>
      <tablecell>
          <paragraph id="par_id91613147197169" role="tablecontent"><literal>i18nized</literal> </paragraph>
      </tablecell>
      <tablecell>
          <paragraph id="par_id301613146528171" role="tablecontent">internationalized</paragraph>
      </tablecell>
    </tablerow>
</table>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_id1001613148383132">The replace pattern <literal>....*</literal> with the replacement text <literal>…</literal> finds and replaces the three dots in <literal>...word</literal> with <literal>…word</literal>.</paragraph>
</listitem>
</list>
<tip id="par_id3147590" xml-lang="en-US">To enter time values using the number pad, use the replace pattern <literal>.*...*</literal> and <literal>:</literal> as the replacement text. Now <literal>10..30</literal> is replaced automatically with <literal>10:30</literal>.</tip>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/newtext" id="bm_id6447340" localize="false"/>
<h3 id="hd_id3148947" xml-lang="en-US">With:</h3>
<paragraph role="paragraph" id="par_id3149456" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/newtext">Enter the replacement text, graphic, frame, or OLE object that you want to replace the text in the<emph> Replace</emph> box. If you have selected text, a graphic, a frame, or an OLE object in your document, the relevant information is already entered here.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/textonly" id="bm_id8239997" localize="false"/>
<h3 id="hd_id3150400" xml-lang="en-US">Text only</h3>
<paragraph role="paragraph" id="par_id3153379" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/textonly">Saves the entry in the <emph>With</emph> box without formatting. When the replacement is made, the text uses the same format as the document text.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/new" id="bm_id8823511" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/cui/ui/acorreplacepage/replace" id="bm_id8823512" localize="false"/>
<h2 id="hd_id3153797" xml-lang="en-US">New</h2>
<paragraph role="paragraph" id="par_id3153968" xml-lang="en-US"><ahelp hid="cui/ui/acorreplacepage/new">Adds or replaces an entry in the replacement table.</ahelp></paragraph>
<embed href="text/shared/00/00000001.xhp#delete2"/>
<embed href="text/shared/00/00000001.xhp#AutocorrectButtons"/>
</body>
</helpdocument>