https://bugs.freedesktop.org/show_bug.cgi?id=63432

          Priority: medium
            Bug ID: 63432
          Assignee: [email protected]
           Summary: FORMATTING: "Change Case" does not work in some
                    situations when symbols appear
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.0.2.2 release
         Component: Writer
           Product: LibreOffice

Problem description: If a symbol such as the open quotation mark appears right
before a word, the following “Format → Change Case” functions do not work as
expected.


Steps to reproduce:
I save this attached file using LibreOffice Version 4.0.2.2 (Build ID:
4c82dcdd6efcd48b1d8bba66bfe1989deee49c3)

Select the text (including the symbol) → Format 
→ Change Case → Sentence case → (It does not work)

Select the text (including the symbol) → Format 
→ Change Case → Capitalize Every Word → (It does not work)

Select the text (including the symbol) → Format 
→ Change Case → tOGGLE cASE → (It does not work)

Sample text:
hi! 'quotation marks' may cause the problem
hi! “quotation marks” may cause the problem
hi! "quotation marks" may cause the problem
hi! (brackets mmm...) may cause the problem
hi! [square brackets mmm...] may cause the problem
hi! *asterisks may cause the problem
hi! -minuses may cause the problem

'quotation marks' may cause the problem
“quotation marks” may cause the problem
"quotation marks" may cause the problem
(brackets mmm...) may cause the problem
[square brackets mmm...] may cause the problem
*asterisks may cause the problem
-minuses may cause the problem


Current behavior: The three specified "Change Case" features do not work.

Expected behavior: These three specified "Change Case" features should work.


Potential problem in the programming code (a guess): Nothing checks the symbol.

Potential solution (a guess): Add a checking function (e.g. using regular
expressions, etc.) to check the first character of each word first for the
symbol. If the symbol exists, check the next character for another symbol until
a letter appears. When the letter appears, apply the format. This could be one
of the new Easy Hacks.

I hope that this will help you to solve the programming problems.

Regards,
C. H. D.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to