Difference between revisions of "Guess Case"

From MusicBrainz Wiki
m (case fix (!))
m
Line 15: Line 15:
 
** Does not ''title'' words after a hyphen.   
 
** Does not ''title'' words after a hyphen.   
 
<ul><li style="list-style-type:none">Example: Peut-être, the second part is not ''titled''   
 
<ul><li style="list-style-type:none">Example: Peut-être, the second part is not ''titled''   
<ul><li style="list-style-type:none">This will be eventually moved into a [[Guess Case Mode/French Mode|GuessCaseMode/FrenchMode]] --[[User:Keschte|Keschte]]
 
</ul>
 
 
</ul>
 
</ul>
  
 
* [[Guess Case Mode/Classical Mode|GuessCaseMode/ClassicalMode]] - handles specific cases of the [[Classical Style Guideline|ClassicalStyleGuideline]]  
 
* [[Guess Case Mode/Classical Mode|GuessCaseMode/ClassicalMode]] - handles specific cases of the [[Classical Style Guideline|ClassicalStyleGuideline]]  
 +
 +
* [[Guess Case Mode/French Mode|GuessCaseMode/FrenchMode]]
  
 
==New modes under discussion==
 
==New modes under discussion==

Revision as of 05:49, 14 October 2011

This is the wiki page for the GuessCase JavaScript function.

Keschte has enhanced the guess case script and addressed most of the GuessCaseOldSuggestions.

Implemented modes

  • If there are multiple sentences in a title, each one is handled as a separate sentence. (meaning: the next word after one of the sentence stop characters "?", "!", ".", ";", "/" is titled again)
    • Does not title words after a hyphen.
  • Example: Peut-être, the second part is not titled

New modes under discussion

Borked Data

usually lowercased words after a single quote: