Bug 103523 - Capitalize Every Word in parenthesis or double quotes
Summary: Capitalize Every Word in parenthesis or double quotes
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.5.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 13:49 UTC by Dušan Majtás
Modified: 2018-03-31 07:04 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 Dušan Majtás 2016-10-26 13:49:49 UTC
Description:
Function "Capitalize Every Word" does not function properly when used on words in parenthesis or single/double quotes. Resulted first (and only a first) word in parenthesis does not change case properly
By applying "Capitalize Every Word" function on "WORD IN (PARENTHESIS)" cuase change to "Word In (PARENTHESIS)" but should be rather change to "Word In (Parenthesis)" instead.
Other change case functions - lowercase, uppercase, sentence case and toggle case works normally as supposed!

applying cpatitalize every word does:
word in (parenthesis) -> Word In (parenthesis)
WORD IN (PARENTHESIS) -> Word In (PARENTHESIS)

for second and later word in the parenthesis function call works normaly as expected.

Steps to Reproduce:
1.Write "This WORD is (IN PARENTHESIS)"
2.Select block of text
3.Call "Capitalize Every Word" function 

Actual Results:  
This Word Is (IN Parenthesis)

Expected Results:
This Word Is (In Parenthesis)


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 Jean-Baptiste Faure 2016-10-29 16:35:14 UTC
Confirmed in LO 5.2.4.0+ under Ubuntu 16.04.
It seems clear to me that the algorithm search for space to detect a new word in the selected sentence. Adding a non breaking space right after the opening parenthesis does not solve the problem.

Setting as NEW.

Best regards. JBF
Comment 2 QA Administrators 2017-10-30 08:31:20 UTC Comment hidden (obsolete)
Comment 3 Dušan Majtás 2017-10-30 14:56:47 UTC
Problem prevailing!

Version: 5.3.6.1
Build ID: 686f202eff87ef707079aeb7f485847613344eb7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; Layout Engine: new; 
Locale: cs-CZ (cs_CZ); Calc: group

First encountered on 5.1.5.2. Seems to be problem Inherited from OOo, as same does occur in OOo (4.1.3)
Comment 4 V Stuart Foote 2018-03-31 07:04:54 UTC
Version: 6.1.0.0.alpha0+ (x64)
Build ID: 83204c1fbf2cb85f3a22a922411ed8291cfb3fe8
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-03-29_01:08:27
Locale: en-US (en_US); Calc: CL

Assume some change to ICU libs imported to LibreOffice resolved this.

=>WFM