<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [ENHANCEMENT] Allow more versatility in Caption dialog/management"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132626">132626</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ENHANCEMENT] Allow more versatility in Caption dialog/management
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>page74010-sf@yahoo.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Adding a caption with menu Insert > Caption creates a caption with the
following elements (in order):

- a prefix, coming from the Category field of the dialog (followed by a space)
- a number, coming from the number range whose name is given in the Category
field
- a colon, automatic insertion (followed by a space
- a legend, coming from the Caption field

The Category name is a variable name (used to define the number range) and as
such is limited to ASCII letters, digits and underlines. This is not
satisfactory in many languages whose common characters are outside ASCII, like
many European languages (with diacritics), Greek, Russian and all Asian
languages.

As a contrived example, it is impossible in French to define a Décoration
(Decoration) category because of the acute accent. In English, you can't use
the abbreviation Fig. for figures because of the dot.

The behaviour as described here is the same in all known versions of Writer
implementing the Caption feature.

The workaround is to use category [None] and to modify the resulting caption:

- add Fig. and a space at beginning of the paragraph
- Insert > Field > More Fields, Variables tab, Number Range and "Figure"
- add a colon and a space

This workaround results in the correct caption, but it can't be used in
cross-references:

- only Reference which returns the whole paragraph has the expected result
- Category and Number just returns the number because category was set to
[None] and is thus equivalent to Numbering
- Caption Text returns everything after the number, i.e. it contains the colon
and space, which is different from the "standard" case.

IMHO, this could be fixed if the caption dialog contained an additional
editable field Label (or whatever name you like), initialised with the category
name but user could change it for whatever text he deemed fit for the document.

This Label value would be used instead of the present Category name as the
caption prefix.

An English author could then use Fig. for the captions related to the Figure
number range, a French author Décoration for the same Figure number range, etc.

Depending on how it is implemented, I wonder if it could be possible to
manually edit the generated caption prefix (in the frame, not in the dialog) so
that we could have Figure for short captions and Fig. for long captions without
losing the connection with the Figure number range and still capturing the
current prefix in the cross-references. But this is secondary with regard to
the specification above.

This enhancement is a follow-on to question
<a href="https://ask.libreoffice.org/en/question/241962/cant-type-dot-in-caption-category/">https://ask.libreoffice.org/en/question/241962/cant-type-dot-in-caption-category/</a>
on AskLO.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>