<?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="textswriterguidewords_countxml" indexer="include" status="PUBLISH">
         <title id="tit">Counting Words</title>
         <filename>/text/swriter/guide/words_count.xhp</filename>
      </topic>
   </meta>
   <body>
<bookmark branch="index" id="bm_id3149686"><bookmark_value>words; counting in text</bookmark_value>
      <bookmark_value>number of words</bookmark_value>
      <bookmark_value>documents; number of words/characters</bookmark_value>
      <bookmark_value>text; number of words/characters</bookmark_value>
      <bookmark_value>characters; counting</bookmark_value>
      <bookmark_value>number of characters</bookmark_value>
      <bookmark_value>counting words</bookmark_value>
      <bookmark_value>word counts</bookmark_value>
</bookmark><comment>MW deleted "character counts"</comment>
<paragraph id="hd_id3149686" role="heading" level="1"><variable id="words_count"><link href="text/swriter/guide/words_count.xhp">Counting Words</link>
</variable></paragraph>
      <list type="ordered">
         <listitem>
            <paragraph id="par_idN105D1" role="listitem">Word and character count is shown in the status bar, and is kept up to date as you edit.</paragraph>
         </listitem>
         <listitem>
            <paragraph id="par_idN105D2" role="listitem">Word and character count for a section is shown in the <link href="text/swriter/guide/navigator.xhp">Navigator</link> as a tooltip when the mouse pointer is over the name of this section.</paragraph>
         </listitem>
         <listitem>
            <paragraph id="par_idN106D1" role="listitem">If you want to count only some text of your document, select the text.</paragraph>
         </listitem>
         <listitem>
            <paragraph id="par_id3149821" role="listitem">To display extended statistics such as count of characters without spaces, double click the word count in the status bar, or choose <emph>Tools - Word Count</emph>.</paragraph>
         </listitem>
      </list>
      <section id="how">
         <h2 id="hd_id1116200901133957">How does %PRODUCTNAME count words?</h2>
         <paragraph id="par_id1116200901133998" role="paragraph">In general, every string of characters between two spaces is a word. Dashes, tabs, line breaks, and paragraph breaks are word limits, too.</paragraph>
         <paragraph id="par_id1116200901133985" role="paragraph">Words with always visible hyphens, as in plug-in, add-on, user/config, are counted as one word each.</paragraph>
         <paragraph id="par_id111620090113399" role="paragraph">The words can be a mix of letters, numbers, and special characters. So the following text counts as four words: abc123 1.23 "$" http://www.example.com.</paragraph>
         <paragraph id="par_id111620090113400" role="paragraph">To add a custom character to be considered as the word limit, choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME Writer - General</emph> and add the character into the <emph>Additional separators</emph> field. By default, this field contains em dash (&#8212;) and en dash (&#8211;).</paragraph>
      </section>
      <paragraph id="par_idN106E2" role="tip">To get some more statistics about the document, choose <emph>File - Properties - Statistics</emph>.</paragraph>

      <section id="relatedtopics">
         <paragraph id="par_id3147418" role="paragraph"><link href="text/shared/01/01100400.xhp">File - Properties - Statistics</link></paragraph>
         <paragraph id="par_id3147444" role="paragraph"><link href="text/swriter/01/06040000.xhp">Word Count</link></paragraph>
      </section>
   </body>
</helpdocument>
