Guess Case: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
Reosarevok (talk | contribs) |
Reosarevok (talk | contribs) (Searches are dead) |
||
Line 25: | Line 25: | ||
<ul><li style="list-style-type:none">(see [http://bugs.musicbrainz.org/report/2 the open tickets] of the guess case function) |
<ul><li style="list-style-type:none">(see [http://bugs.musicbrainz.org/report/2 the open tickets] of the guess case function) |
||
</ul> |
</ul> |
||
==Borked Data== |
|||
usually lowercased words after a single quote: |
|||
* [http://musicbrainz.org/search/oldsearch.html?search=Puttin%27+on+the+Ritz+&table=track&limit=0 Puttin' on the Ritz] |
|||
* [http://musicbrainz.org/search/oldsearch.html?search=Singin%27+in+the+Rain+&table=track&limit=0 Singin' in the Rain] |
|||
* [http://musicbrainz.org/search/oldsearch.html?search=Stompin%27+at+the+Savoy+&table=track&limit=0 Stompin' at the Savoy] etc. |
|||
[[Category:To Be Reviewed]] [[Category:Development]] |
[[Category:To Be Reviewed]] [[Category:Development]] |
Revision as of 05:51, 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
- GuessCaseMode/DefaultMode - handles English titles.
- Implements CapitalizationStandardEnglish
- All the official formatting StyleGuideline
s
- GuessCaseMode/SentenceMode - handles the same cases than the GuessCaseMode/DefaultMode, but
- Titles only the first word of a sentence.
- 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
- GuessCaseMode/ClassicalMode - handles specific cases of the ClassicalStyleGuideline
New modes under discussion
- (see the open tickets of the guess case function)