https://bugzilla.wikimedia.org/show_bug.cgi?id=46058

--- Comment #9 from Bawolff (Brian Wolff) <[email protected]> ---
(In reply to comment #3)
> Icu seems to support making custom collations at run time (based on docs).
> However php's intl extension doesnt seem to expose this. So we are probably
> left with hacking it over top (aka turn w to v before feeding it to icu). Or
> somehow getting upstream to make a sv historical collation (they already
> have 2
> sv collations - reformed and normal) however that would probably be a
> difficult
> process I imagine. I suppose third option is getting php upstream to expose
> custom collation maling methods
> 
> To clarify, when you say sort the same way do you mean totally identical, or
> just primary identical? (The sort algorithm has 3 levels. We check the
> primary
> level first ( ie different letters: A vs B) if there is a tie on that level
> for
> all letters then we move on to check accents (roughly). If there is a tie
> again
> we move on to checking case distinction. In your case it sounds like you
> would
> want V and W to be the same on the primary level but different on the
> secondary
> level - is that the case? (Which might be a moot point since the hack over
> top
> solution would only allow making them identical.)


I'm sorry, I made a mistake looking at the available collations. intl supports
a "standard" collation (vs "reformed" which is what sv.wikipedia is using). The
standard collation has rules:

                "&D<<đ<<<Đ<<ð<<<Ð"
                "&t<<<þ/h"
                "&T<<<Þ/H"
                "&v<<<V<<w<<<W"
                "&Y<<ü<<<Ü<<ű<<<Ű"
                "&[before
1]ǀ<å<<<Å<ä<<<Ä<<æ<<<Æ<<ę<<<Ę<ö<<<Ö<<ø<<<Ø<<ő<<<Ő<<œ<<<Œ<"
                "<ô<<<Ô"

Which means that V would be treated as Secondary different from W, which is
what you want. (The collation can be triggered with a locale name
sv@collation=standard . In theory, I thought sv-u-co-standard should also
trigger it, but it doesn't seem to...)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to