Bug 170044 - FEATURE REQUEST: Drop Caps: option to skip over leading punctuation
Summary: FEATURE REQUEST: Drop Caps: option to skip over leading punctuation
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.2.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph-Drop-Caps
  Show dependency treegraph
 
Reported: 2025-12-19 10:58 UTC by David Lee
Modified: 2025-12-21 12:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Lee 2025-12-19 10:58:39 UTC
Description:
Example.  Take the following two "lorem ipsum" paragraphs and assume they are long enough for line-wrapping; apply "Drop Caps" paragraph styling:

Lorem ipsum dolor sit amet...

"Lorem ipsum dolor sit amet...," she said.

In both cases the first glyph is DropCapped.

The first looks good; the "dropping" applies to the capital-L.  It is what the user expects.

The second looks poor (or worse); the dropping is applied to the opening quotation mark.  It is unlikely (although not impossible) that the user had wanted this; they would generally (although there may be exceptions) want the capital-L to be dropped.

I propose adding a tick-box option to the "Drop Caps" part of "Paragraph style" called something like "Skip leading punctuation".  If selected, the DropCap operation would skip over leading punctuation characters (the first quotation mark in my example-pair) and take effect at the first real non-punctuation (typically alphanumeric).  So both paragraphs would have the "L" drop-capped; the second would retain its opening quotation mark in non-dropped form.

Naturally, we would need tighter definitions of "punctuation" here. And I can see that there might be internationalisation and character classification aspects.  But initially at least can we focus on the high-level desirability of such an option.

Steps to Reproduce:
See description.

Actual Results:
See description.

Expected Results:
See description.


Reproducible: Always


User Profile Reset: No

Additional Info:
See description.
Comment 1 David Lee 2025-12-19 15:08:16 UTC
The discussion at https://ask.libreoffice.org/t/130120/10 added a use-case option for *both* the punctuation (e.g. opening quote) *and* the first non-punctuation.

This seems reasonable, especially as the main purpose is to add reasonable flexibility options.