niobures's picture
XPF
4a08ba7 verified
# Central Catalan
# Written by Abi Creighton
# Updated 2018-12-04
# Edited by Shiying Yang
# Edited 2019-05-21
# Edited by Emily Strand
# Edited 2019-09-27
# Edited by Allison Shao
# Edited 2020-06-10
type,sfrom,sto,weight,precede,follow,comment
# Class Rules
class,front,(e|è|é|i|í|ï),,,,
class,back,(o|ò|ó|u|ú|ü|a|à),,,,
class,cdot,(·|•|᛫|•|∙|⋅),,,,
class,vowel,(a|e|i|o|u),,,,
class,consonant,(b|c|d|f|g|h|k|l|m|n|p|q|r|s|t|v|w|x|y|z),,,,
class,passthrough,[abdefhiklmnopstuwz],,,,
class,t-follower,[jsz],,,,
class,l_with_cdot,[ŀ],,,,
class,gem,(p|b|t|d|k|ɡ|ts|dz|tʃ|dʒ|f|s|z|ʃ|ʒ|m|n|ɲ|ɾ|r|ʎ|j|w),,,,
class,punct,['-],,,,
# Individual Letters
sub,à,a,1,,,
sub,c,s,1,,{front},"<c> becomes /s/ preceding front vowels",
sub,c,k,0.5,,,
sub,ç,s,1,,,
sub,é,e,1,,,
sub,è,ɛ,1,,,
sub,g,ɡ,1,,,
sub,g,ʒ,2,,{front},"<g> becomes /ʒ/ preceding front vowels",
sub,h,,1,,,
sub,í,i,1,,,
sub,ï,i,1,,,
sub,ó,o,1,,,
sub,ò,ɔ,1,,,
sub,r,r,1,^,,"<r> becomes a trill word-initially",
sub,r,ɾ,0.5,,,
sub,j,ʒ,1,,,
sub,ú,u,1,,,
sub,ü,u,1,,,
sub,v,b,1,,,
sub,x,ʃ,0.5,^,,,
sub,x,ʃ,0.5,i,,
sub,x,ʃ,0.5,{consonant},,
sub,x,k s,0.5,,,
sub,y,i,0.5,,,
sub,y,j,1,{vowel},,"<y> becomes /j/ following vowels",
sub,({passthrough}),\1,0.1,,,
# Digraphs
sub,g,tʃ,2,i,$,"<ig> becomes /tʃ/ word-finally",
sub,i,,2,,g$,"clean-up",
sub,l,ʎ,1,,l,
sub,l,,1,l,,"clean-up",
sub,n,ɲ,1,,y,
sub,y,,1,n,,"clean-up",
sub,s,s,1,{vowel},s{vowel},"<ss> becomes <s> intervocalically",
sub,s,,1,{vowel}s,{vowel},"clean-up",
sub,t,tʃ,1,,x,
sub,x,,1,t,,"clean-up",
sub,r,r,1,{vowel},r{vowel},"<rr> becomes a trill intervocalically",
sub,r,,1,{vowel}r,{vowel},"clean-up",
# Gemination of /l/ (mid-dot)
sub,l,l ː,1,,{cdot},
sub,{cdot},,1,l,,"clean-up",
sub,{l_with_cdot},lː,1,,l,
sub,l,,1,{l_with_cdot},,"clean-up",
sub,l,,1,{cdot},,"clean-up",
# Misc. Rules
sub,{punct},,0.1,,,
# Additional digraphs - Emily
sub,g,ɡ,3,,u{front},"ex. gui",
sub,g,ɡ w,4,,u{back},"ex. gua",
sub,u,,3,g,,"clean-up",
sub,g,ɡ w,3,,ü{front},
sub,ü,,3,g,,"clean-up",
sub,q,k,3,,u{front},"ex. qui",
sub,q,k w,3,,u{back},"ex. qua",
sub,u,,4,q,,"clean-up",
sub,q,k w,3,,ü{front},
sub,ü,,4,q,,"clean-up",
sub,g,dʒ,3,t,{front},
sub,t,,4,,g,"clean-up",
sub,t,dʒ,3,,j,
sub,t,ts,3,,s,
sub,t,dz,3,,z,
sub,{t-follower},,4,t,,"clean-up",
ipasub,\b({gem}) \1\b,\1 ː,2,,,