::consonant:: = b|v|z|c|ch|d|f|g|gu|ll|c|qu|l|m|n|ñ|nh|p|r|rr|s|t|x
::vowel:: = a|á|e|é|i|í|ï|o|ó|u|ú|ü|y

gu -> g / _ (i|e)
gu -> gü / _ (a|o|u)

% Keep c before e/i for /θ/, and preserve ch for the digraph mapping.
c -> k / _ (?![eih])

% Preserve the existing final-vowel approximation at each word boundary.
% Unicode word boundaries keep NFD combining accents attached to their vowels.
e -> ɪ / _ \b
o -> ʊ / _ \b
a -> ɐ / _ \b

% Word-initial r is realized as /r/, including after spaces and punctuation.
r -> rr / \b _
