Additionally, a project can also cleanly define custom parsers (some unusual date/numbers
or whatever format they have).
$.tablesorter.addParser( {
id: "specialFormat",
is: function (s) {
//Check if content is specialFormat
return isSpecialFormat;
},
format: function (s) {
//Return normalized String/Number
return s;
},
type: "text"
} );
Leo
On Monday, June 27, 2011 at 11:33 PM, Brion Vibber wrote:
In theory yes:
* european-order date processing when the language file declares dmy order
* explicit checks for month names in content language (confirmation tests
welcome!)
* I think it _should_ handle comma vs period, but need test cases!
* handles language-specific custom character sorting if specified in the way
needed for the new code (regex fragments to translate chars), though there
doesn't seem to be re-ordering for digraphs or accented chars here.
It's probably worth a look to see if any other wikis are doing this
patching, if anything needs to be fixed or added to match.
-- brion
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l