Bug 156949 - Incorrect capitalization after number
Summary: Incorrect capitalization after number
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2023-08-27 16:04 UTC by steveja
Modified: 2023-10-18 18:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
document test data for incorrect capitalization after a number (30.30 KB, application/vnd.oasis.opendocument.text)
2023-10-18 16:52 UTC, frances.medina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steveja 2023-08-27 16:04:30 UTC
Description:
When I type a number such as "12pm" it unexpectedly gets changed to "12Pm".
When I uncheck the box next to "Lightproof grammar checker(English)" under Options.Language Settings.Writing Aids the problem no longer occurs.

Steps to Reproduce:
1. type a number such as "12pm" without the quotes
2. 
3.

Actual Results:
see the incorrect change in capitalization

Expected Results:
no change in capitalization


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Dieter 2023-09-09 15:25:32 UTC
Can't confirm with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2ae9eb8be8d7eb9c3a72953a295d128b45639ea3
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-US
Calc: CL threaded

Could you please retest with clean user profile? (Help -> Restart in SafeMode)
=> NEEDINFO
Comment 2 steveja 2023-09-16 19:44:29 UTC
I am now using version 7.6.0.3 and the way I can reproduce it, even in safe mode, is to type <at least 3 characters>.<space>8am . For example open a new document and type "Hey. 8am" will get changed to "Hey. 8Am.
Unchecking the box next to "Lightproof grammar checker(English) doesn't actually seem to make any difference.
Comment 3 QA Administrators 2023-09-21 03:16:13 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-10-03 15:19:29 UTC
Where can I get Lightproof grammar checker?
Comment 5 Dieter 2023-10-12 06:46:04 UTC
(In reply to Buovjaga from comment #4)
> Where can I get Lightproof grammar checker?

Don't understand that question, because as far as I can see it's a regular part of LO (at least in Windows version)
Comment 6 Buovjaga 2023-10-12 07:41:43 UTC
Ok, I guess I was testing under Linux. Can't repro on Windows. I also tried activating "Check words with numbers", but no problem.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cb46ad4c4602fbb6aeab482e9370e31495e12cfe
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 7 frances.medina 2023-10-18 16:46:18 UTC
Able to replicate the issue based on the recent repro steps/comment by steveja 2023-09-16 19, 

I am using Mac OS
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Mac OS X 13.5.2; UI render: Skia/Metal; VCL: osx
Locale: en-PH (en_PH.UTF-8); UI: en-US
Calc: threaded

I dont have the lightproof grammar checker – but i can still replicate the issue. 

The letter beside the number is  capitalized when enter key or space key is pressed after the letters/word input.

- First attempt was successful using the specified data - Hey. 8Am 
- Created a document to test all data wherein the bug could appear.

1. Tested if all the letters after the number will be capitalized. (For the sake of checking if this only happens to the time format.)
Data range from Hey. 8Am to Hey. 8Zm 

2. Replicated in data with End of sentence punctuations -  exclamation point and question mark
ex: hoy! 12Am, hello. 09Abc 

3. Replicated on data with more than 3 character words before the End of sentence punctuations (. ! ?)
ex:
- qwertyuiop! 12345Pm 
- asdfghjklzxcvbnm,qwertyuiop? 12Zz

4. Replicated on data with more than 2 digit number after the  End of sentence punctuations (. ! ?)
ex:
- hey! 12345678909876543256As
- qwertyu? 1234567890987654321234567890987654323456789Bd

5. Replicated on data with more than 2letters at the end of the number
ex:
- hoy! 12Qwerty
- hoy? 45Asdfghhjkl
- pop. 12Xcvbnmasdfghjklqwertyuiop

6. Combination of conditions mentioned above
ex: 
- qwerty! 123456Asdfghjkl
- asdfghjk? 0987654321234567890Asdfghjklqwertyuiopzxcvbnm
- thequickbrownfoxjumpedoverthelazydog. 1234567890Thequickbrownfoxjumpsoverthelazydog 

Also tried replicating on Microsoft Word Version 16.78 and Google Documents but wasnt able to reproduce it there.
Comment 8 frances.medina 2023-10-18 16:52:07 UTC
Created attachment 190280 [details]
document test data for incorrect capitalization after a number

document test data for incorrect capitalization after a number