Align slug transliteration with bDS2
This commit is contained in:
@@ -14,10 +14,11 @@ enum PostStatus {
|
||||
value Slug {
|
||||
value: String
|
||||
|
||||
-- Generated by: transliterate unicode to ASCII, lowercase,
|
||||
-- replace [^a-z0-9]+ with hyphens, strip leading/trailing hyphens
|
||||
-- Transliteration scope: only German (ä/ö/ü/ß/ÄÖÜ) and English letters used.
|
||||
-- Verify transliteration matches the established bDS behaviour for this set.
|
||||
-- Generated exactly as bDS2: replace ß with "ss", normalize to Unicode NFD,
|
||||
-- discard every non-ASCII code point, lowercase, replace [^a-z0-9]+ with
|
||||
-- hyphens, then strip leading/trailing hyphens.
|
||||
-- Therefore ä/ö/ü/Ä/Ö/Ü become a/o/u/A/O/U through NFD decomposition;
|
||||
-- examples: "Über" -> "uber", "ÄÖÜäöüß" -> "aouaouss".
|
||||
-- Uniqueness: tries base, then {slug}-2, {slug}-3, … (unbounded numeric suffix)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user