Bug 48936

Summary: EDITING: Autocorrect incorrectly handles ordinals at beginning of sentence
Product: LibreOffice Reporter: Andrew Tinka <tinka>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bfo.bugmail, tinka
Priority: medium    
Version: 3.3.2 release   
Hardware: Other   
OS: All   
See Also: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=38242
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Screenshot showing the mis-formatted text.

Description Andrew Tinka 2012-04-19 16:17:55 UTC
Created attachment 60345 [details]
Screenshot showing the mis-formatted text.

Problem description: 
When you type "1st" or other ordinal at the beginning of the SECOND or subsequent sentence in a text box, the "st" is capitalized ("St") as well as superscripted.

Steps to reproduce:
1. Start a new presentation.
2. Click inside a text box.
3. Type "1st sentence. 2nd sentence. 3rd sentence."

Current behavior:
(using LaTeX-style ^{} notation to represent superscripting)
What appears is: "1^{st} sentence. 2^{Nd} sentence. 3^{Rd} sentence."


Expected behavior:
"1^{st} sentence. 2^{nd} sentence. 3^{rd} sentence."


Notes:
1. You must be typing the second or higher sentence.  The first sentence in the text box does not exhibit the bug.
2. The character after the ordinal matters.  The following sequences trigger the bug:
"1st sentence. 2nd sentence. 3rd sentence."
"1st! 2nd! 3rd!"
"1st? 2nd? 3rd?"
However the following sequence does NOT trigger the bug:
"1st. 2nd. 3rd."

Platform (if different from the browser): 
Ubuntu 10.10.  The "About LibreOffice" dialog shows:
"LibreOffice 3.3.2 
OOO330m19 (Build:202)
tag libreoffice-3.3.2.2, Ubuntu package 1:3.3.2-1ubuntu2~maverick1"
Comment 1 Javier Silva 2012-04-22 10:08:42 UTC
[No Reproducible] with "LibreOffice 3.4.4  - Ubuntu 11.10 (64bit) Spanish
UI"
Comment 2 bfoman (inactive) 2012-04-26 06:33:22 UTC
Reproduced with:
LOdev 3.5.3rc1+ 
Build ID: 51648779-22e3d74-d554af7
Windows 7 Professional SP1 64 bit

On default settings superscript is gone. Text is: 1st text. 2Nd text. 3Rd text.
Comment 3 peterthevicar 2012-05-12 04:11:04 UTC
This happens only if you have "Tools/ AutoCorrect/ Options/ Capitalise first letter of every sentence" checked. Any number of initial digits are ignored when working out the first letter of the sentence. There is another bug for the failure to superscript the ordinal suffix (st, nd, th etc) which is #38242.

Version 1:3.5.3-0ubuntu1
Comment 4 bfoman (inactive) 2012-06-28 09:05:45 UTC
Do not hesitate to reopen in case of mistriage.

*** This bug has been marked as a duplicate of bug 38242 ***