[Bug 159002] It should be possible to insert a TAB character before caption text when using "AutoCaption"

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jan 15 11:08:04 UTC 2024


https://bugs.documentfoundation.org/show_bug.cgi?id=159002

--- Comment #5 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Heiko Tietze from comment #4)
> The idea with regular expressions in position data

Let me make a note first, about terminology. Regular expression is *a mask,
against which some other text is matched according to rules*. As such, "regular
expression" term is *only* applicable in search context. Here it is *not
applicable*. Let us call the possible "\t", "\n" syntax simply
"meta-characters". (See also: tdf#153212.)

> might be tempting but is quite nerdy. Only experts would know about /t or /n

No. I would support introduction of meta-characters support here; and it would
be quite wise to do two things:

1. Make sure to use the same meta-characters as in Replace box of Find &
Replace dialog (when searching with regular expressions); this condition would
also benefit automatically from a potential fixes like "allow Unicode
meta-characters in replace box" (tdf#106137).

2. Add a checkbox in the Insert Caption dialog, which would enable
meta-characters. This would make it easily discoverable; tooltips could provide
more frequent samples, and of course, updated Help would contain the
information.


> and should better solve the problem with a macro (or insert the tab manually).

Oh, I disagree. People already have the Insert Caption dialog simply *to
automatize a sequence of the following simple actions*:

1. Put the object into a frame (select the object -> Insert -> Frame);
2. Add a text after (or before) the object;
3. Insert a number range field;
... some more actions. Of course, they may all be implemented using macros...
let's remove the function! (And the whole Writer altogether - we may generate
ODF directly from Python.)

Seriously: this is about "some characters, that one might legitimately want to
see in a caption, can't be inserted using the existing dialog. Let's fix this
shortcoming". I do not see a real problem in doing this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list