Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338290 - Title style capitalization does not handle "little words" properly
Summary: Title style capitalization does not handle "little words" properly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 18:46 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2011-02-25 18:46:39 EST
Sapphire title style capitalization routine that converts labels to title style does not follow the following rule:

"Do not capitalize little words within titles such as a, an, the, but, as, if, and, or, nor, or prepositions, regardless of their length."

We should at least handle everything except of prepositions in this list as prepositions would require an actual dictionary and possibly grammatical parsing.
Comment 1 Konstantin Komissarchik CLA 2011-02-25 19:01:21 EST
Fixed.
Comment 2 Ling Hao CLA 2011-06-08 18:06:38 EDT
Can we include more of the commonly used prepositions such as of, to, at and in? Or the short list of 70 of the more common one-word prepositions:

http://www.englishclub.com/grammar/prepositions-list.htm
Comment 3 Konstantin Komissarchik CLA 2011-06-08 18:26:46 EDT
I've added at, by, in, of and to. We need to go a bit more carefully on other propositions since in common usage many are still typically capitalized.
Comment 4 Ling Hao CLA 2011-06-08 20:11:14 EDT
Verified.