Bug 88666 - Auto-Capitalization of paragraphs and new lines i/o sentences
Summary: Auto-Capitalization of paragraphs and new lines i/o sentences
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2015-01-21 16:04 UTC by Zeki Bildirici
Modified: 2024-03-19 14:08 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 Zeki Bildirici 2015-01-21 16:04:27 UTC
Hi,

Currently LibreOffice auto-capitalize works on:

1- First line of the document
2- First word after a sentence (finished with proper punctuation i.e. (.) (?) (!)

However, it should be better if it behaves to capitalize every new line after pressing ENTER. 

The reason is, as you know, in some cases you need to start with a capital letter, such as:

-- Greetings: 

Dear John,

We are waiting for you.... (not auto - capitalized)

-- Poems, most of the lines end with (,) and (;) also no punct. at all:

It was many and many a year ago,
In a kingdom by the sea,
That a maiden there lived whom you may know
By the name of ANNABEL LEE;
And this maiden she lived with no other thought 
Than to love and be loved by me. 
(not auto - capitalized, if i was writing poems on LO Writer i will be realy annoyed to capitalize every line, muse will fly through shift+f3 )

* http://www.poemhunter.com/poem/annabel-lee/ 

Note: i think https://www.libreoffice.org/bugzilla/show_bug.cgi?id=87911 tried to said the same.

Best regards,
Zeki
Comment 1 Cor Nouws 2015-01-21 19:30:10 UTC
Thanks Zeki for filing.

Known behaviour since the old days..
You did set component to Writer, but I expect that other modules have the same behaviour.

I wonder what ideas others have for this request.. > UXAdvise

Cheers,
Cor
Comment 2 Robinson Tryon (qubit) 2016-08-25 04:21:41 UTC Comment hidden (obsolete)
Comment 3 Heiko Tietze 2017-04-18 14:36:27 UTC
The majority of users likely do not write poems every day, and the first sentence after salutation is also not necessarily capitalized (your example would be wrong in German). So I'd say the feature is better realized with an extension. But if a developer would implement another option like "Always capitalize after return" which is off by default it won't hurt the average users. And for sake of consistency with Impress it makes sense to introduce this option. In Impress it's known as "Capitalize first letter of every sentence".

Was looking for a workaround with bullet lists where indentation is set to zero and the bullet char is hidden. Maybe I'm wrong.
Comment 4 Xisco Faulí 2020-03-09 13:28:31 UTC
Please add keyword 'needsUXEval' and CC 'libreoffice-ux-advise@lists.freedesktop.org' if input from UX is needed.
Comment 5 Mike Kaganski 2023-06-19 07:21:48 UTC
OP provided examples of *correct* cases when the previous line does not end a sentence, and the next one is expected to start with a capital. Heiko (comment 3) provided an opposite example, mentioning a *different* locale.

The question is: if it is reasonable to make this function locale-specific. Because if it is really such, then extension-based approach is wrong, because LibreOffice is simply wrong, not honoring locale-specific rules that we could add into it, like we add many others (cf. French rules for punctuation, or locale-specific figure quotes).

Or - if it's not that locale-specific, then what are the reasons for the current behavior, and what is the ratio of users expecting one vs. the other. An option (autocorrect option->options) could be a good thing, or we may need to consider to change to the opposite behavior.
Comment 6 Saša Filipović 2024-03-19 14:08:53 UTC
Hi all,
Just wanted to point out the same, missing functionality for capitalization of every new sentence  without period or one more "enter" button hit. Can it be added as option atleast ?