[Libreoffice-commits] help.git: source/text

Seth Chaiklin (via logerrit) logerrit at kemper.freedesktop.org
Sun Feb 14 23:32:14 UTC 2021


 source/text/shared/01/06040200.xhp |   62 +++++++++++++++++++++++++++++++------
 1 file changed, 53 insertions(+), 9 deletions(-)

New commits:
commit 9f804dbbddf4abdb69009082c7e7d55e58315270
Author:     Seth Chaiklin <sdc.blanco at youmail.dk>
AuthorDate: Fri Feb 12 17:59:45 2021 +0100
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Mon Feb 15 00:31:50 2021 +0100

    tdf#140392 improve explanation of wildcard in replace for AutoCorrect
    
         * elaborate examples, improve layout
         * simplify tip and highlight where to use it
         * update to <h1>,<h2>,<h3>,<tip>
    
    Change-Id: Ibb0a9f811ee6cdd23cd6f8e4ec92dc06e980c3cd
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110787
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/source/text/shared/01/06040200.xhp b/source/text/shared/01/06040200.xhp
index 8c1de803d..d94d6778a 100644
--- a/source/text/shared/01/06040200.xhp
+++ b/source/text/shared/01/06040200.xhp
@@ -19,7 +19,6 @@
  *   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>
@@ -38,7 +37,7 @@
 </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"/>
-<paragraph role="heading" id="hd_id3152876" xml-lang="en-US" level="1"><link href="text/shared/01/06040200.xhp" name="Replace">Replace</link></paragraph>
+<h1 id="hd_id3152876" xml-lang="en-US"><link href="text/shared/01/06040200.xhp" name="Replace">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>.
@@ -48,24 +47,69 @@
 </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"/>
-<paragraph role="heading" id="hd_id3155321" xml-lang="en-US" level="2">Replacement table</paragraph>
+<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"/>
-<paragraph role="heading" id="hd_id3148943" xml-lang="en-US" level="3">Replace</paragraph>
-<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. Wildcard character sequence .* in the end of word results the replacement of the word before arbitrary suffixes, too. Wildcard character sequence .* before the word results the replacement after arbitrary prefixes, too. For example, the pattern "i18n.*" with the replacement text "internationalization" finds and replaces "i18ns" with "internationalizations", or the pattern ".*..." with the replacement text "…" finds and replaces three dots in "word..." with the typographically correct precomposed Unicode horizontal ellipsis ("word…").</ahelp></paragraph>
-<paragraph role="tip" id="par_id3147590" xml-lang="en-US">To replace word parts or characters within words, you can use starting and terminating wildcard character sequences in the same pattern. For example, entering time values can be faster using only numerical keys, and double decimal separators as colons in the following way: set the pattern ".*...*" or ".*,,.*" (double dots or commas within words) and the replacement text ":", and entering "10..30" or "10,,30" results "10:30" automatically.</paragraph>
+<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"/>
-<paragraph role="heading" id="hd_id3148947" xml-lang="en-US" level="3">With:</paragraph>
+<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"/>
-<paragraph role="heading" id="hd_id3150400" xml-lang="en-US" level="3">Text only</paragraph>
+<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"/>
-<paragraph role="heading" id="hd_id3153797" xml-lang="en-US" level="2">New</paragraph>
+<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#loeschen1"/>
 <embed href="text/shared/00/00000001.xhp#AutocorrectButtons"/>


More information about the Libreoffice-commits mailing list