[Libreoffice-bugs] [Bug 132626] New: [ENHANCEMENT] Allow more versatility in Caption dialog/management
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun May 3 08:43:26 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=132626
Bug ID: 132626
Summary: [ENHANCEMENT] Allow more versatility in Caption
dialog/management
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: page74010-sf at yahoo.fr
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
https://ask.libreoffice.org/en/question/241962/cant-type-dot-in-caption-category/
on AskLO.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200503/031e3ccd/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list