Bug 149045 - Uppercase beginning of sentence for new paragraph not applied when previous paragraph ends at an undefined sentence break iterator
Summary: Uppercase beginning of sentence for new paragraph not applied when previous p...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2022-05-12 08:04 UTC by Barefoot Runner
Modified: 2023-09-02 15:19 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
a document produced with libre office writer to show what was discussed (12.15 KB, application/vnd.oasis.opendocument.text)
2022-05-12 08:20 UTC, Barefoot Runner
Details
flat ODF Text file with two paragraphs (29.33 KB, application/vnd.oasis.opendocument.text)
2023-09-02 15:19 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barefoot Runner 2022-05-12 08:04:57 UTC
Description:
it is of course understood that one would not want to uppercase the first letter after a ) or ” even if there is a punctuation mark just inside the delimiter. on the occasions that the text inside the delimiter is the end of the sentence, the shift can be done manually.
but this makes no sense if the first character after the ) or ” is a newline (denoted by the symbol ↵ or html mnemonic ↵ (ampersand crarr semicolon))!
clearly, if one begins a new line, that indicates another paragraph and should begin with an uppercase letter.
examples: (a question?) more text
but, (a question?)↵
New paragraph begins with uppercase letter.
“an exclamatory quote!” and the rest.
but, “an exclamatory quote!”↵
The newline should force the next character to be uppercased.
my version is 6.4.7.2 but it has been present for a long time.

Steps to Reproduce:
1.enter text with closing paren or double quote
2.hit enter
3.first letter of word following the enter should be uppercased but is not.

Actual Results:
paragraph begins with lowercase letter.

Expected Results:
when you start a new paragraph, you expect it to begin with an uppercase letter, or at least i do.
the program does this properly except when a newline is entered.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
this has been occurring as long as i can recall using libre office.
cannot access the keywords page; it times out.
copy from about page:
Version: 6.4.7.2
Build ID: 1:6.4.7-0ubuntu0.20.04.4
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Barefoot Runner 2022-05-12 08:20:46 UTC
Created attachment 180072 [details]
a document produced with libre office writer to show what was discussed

i really enjoy libre office, and just wanted to point this out.
Comment 2 Timur 2022-05-12 14:12:21 UTC
I think this is justified. New.
Comment 3 Michael Warner 2022-05-13 14:01:26 UTC
What if someone is making a list? I think if you want an upper-case letter, you should use the shift key. My vote => WF.
Comment 4 Timur 2022-05-13 14:28:10 UTC
Please give an example of a list. This is for sentences.
Comment 5 V Stuart Foote 2023-09-02 15:14:10 UTC
The OP was a bit muddled. However issue is valid.

IIUC there is an sw editshell issue in defining/identifying the sentence / next sentence break iterators. [1]

That is one facet, and affects selection (i.e. bug 147828, bug 125174).

But also there is an issue that when previous paragraph ends with an undetected sentence, such that the following paragraph does not trigger the Auto-Correction "Capitalize first letter of every sentence" action. That seems wrong as well.

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/sw/source/core/crsr/swcrsr.cxx?r=b542d904#1552
Comment 6 V Stuart Foote 2023-09-02 15:19:50 UTC
Created attachment 189313 [details]
flat ODF Text file with two paragraphs

ODF Flat XML Text document from Writer with two one sentence paragraphs.

No autocorrect first word of 2nd paragraph, on creation or by apply of autocorrect.

=-testing-=

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d88779fc86385dde1215fd28b78a69eacc6b4f97
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded