# =============================================================================
# MBROLA NG - Español (es) - scripts.txt
# Copyright (c) 2026 Darko Milošević
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Latin letters -> canonical lowercase letters. The vowels with a written
# accent (á é í ó ú) and ü stay letters of their own: g2p.txt reads the
# accent as the word stress (and "gü" as g + w), which is what makes
# Spanish stress correct without a word list.
# Letters of other alphabets are unknown to Spanish and skipped.
#
# SECTIONS (see languages/hr/scripts.txt for the full description)
#   [script NAME]  lower [Upper ...] -> canonical letters
#   [normalize]    text clean-up: from -> to ("" = delete)
# =============================================================================

[script latin]
a A -> a
á Á -> á
b B -> b
c C -> c
d D -> d
e E -> e
é É -> é
f F -> f
g G -> g
h H -> h
i I -> i
í Í -> í
j J -> j
k K -> k
l L -> l
m M -> m
n N -> n
ñ Ñ -> ñ
o O -> o
ó Ó -> ó
p P -> p
q Q -> q
r R -> r
s S -> s
t T -> t
u U -> u
ú Ú -> ú
ü Ü -> ü
v V -> v
w W -> w
x X -> x
y Y -> y
z Z -> z
# the ordinal indicators of "1.º" and "2.ª" are letters here (g2p.txt
# reads them as o and a); keeping them apart from o/a means that "nº"
# (abbreviations.txt) and the word "no" stay different words
º -> º
ª -> ª
# foreign letters -> the nearest Spanish spelling
à À -> a
â Â -> a
ä Ä -> a
ã Ã -> a
å Å -> a
ă Ă -> a
ą Ą -> a
è È -> e
ê Ê -> e
ë Ë -> e
ě Ě -> e
ę Ę -> e
ì Ì -> i
î Î -> i
ï Ï -> i
ò Ò -> o
ô Ô -> o
ö Ö -> o
õ Õ -> o
ø Ø -> o
ő Ő -> o
ù Ù -> u
û Û -> u
ů Ů -> u
ű Ű -> u
ý Ý -> i
ÿ Ÿ -> i
ç Ç -> s
ć Ć -> ch
č Č -> ch
š Š -> ch
ś Ś -> s
ş Ş -> s
ž Ž -> ch
ź Ź -> s
ż Ż -> s
ń Ń -> ñ
ň Ň -> ñ
ď Ď -> d
đ Đ -> d
ť Ť -> t
ţ Ţ -> t
ĺ Ĺ -> l
ľ Ľ -> l
ł Ł -> l
ŕ Ŕ -> r
ř Ř -> r
ğ Ğ -> g
ß -> ss
æ Æ -> ae
œ Œ -> oe

[normalize]
# typographic characters
U+2018 -> '
U+2019 -> '
U+201A -> '
U+201B -> '
U+201C -> "
U+201D -> "
U+201E -> "
U+201F -> "
U+00AB -> "
U+00BB -> "
U+2013 -> -
U+2014 -> -
U+2015 -> -
U+2212 -> -
U+2026 -> ...
# invisible characters
U+00AD -> ""
U+200B -> ""
U+2060 -> ""
U+FEFF -> ""
# decomposed letters (NFC for the letters of this language)
a U+0301 -> á
A U+0301 -> Á
e U+0301 -> é
E U+0301 -> É
i U+0301 -> í
I U+0301 -> Í
o U+0301 -> ó
O U+0301 -> Ó
u U+0301 -> ú
U U+0301 -> Ú
u U+0308 -> ü
U U+0308 -> Ü
n U+0303 -> ñ
N U+0303 -> Ñ
c U+0327 -> ç
a U+0300 -> à
e U+0300 -> è
o U+0302 -> ô
a U+0308 -> ä
o U+0308 -> ö
