Skip to content

Instantly share code, notes, and snippets.

@Mottie
Last active November 23, 2016 20:16
Show Gist options
  • Save Mottie/bbe593607eb0e97f3ac3de562d0a40cf to your computer and use it in GitHub Desktop.
Save Mottie/bbe593607eb0e97f3ac3de562d0a40cf to your computer and use it in GitHub Desktop.
Spanish Diacritic definition
{
"de": {
"de": {
"metadata": {
"alphabet": "Latn",
"continent": "EU",
"language": "German",
"native": "Deutsch",
"sources": [
"https://en.wikipedia.org/wiki/German_orthography#Special_characters"
]
},
"data": {
"ü": {
"mapping": {
"base": "u",
"decompose": "ue"
},
"equivalents": [
{
"raw": "ü",
"unicode": "\\u00FC",
"html_decimal": "ü",
"html_hex": "ü",
"encoded_uri": "%C3%BC",
"html_entity": "ü"
},
{
"raw": "ü",
"unicode": "u\\u0308",
"html_decimal": "ü",
"html_hex": "ü",
"encoded_uri": "u%CC%88"
}
]
},
"Ü": {
"mapping": {
"base": "U",
"decompose": "UE"
},
"equivalents": [
{
"raw": "Ü",
"unicode": "\\u00DC",
"html_decimal": "Ü",
"html_hex": "Ü",
"encoded_uri": "%C3%9C",
"html_entity": "Ü"
},
{
"raw": "Ü",
"unicode": "U\\u0308",
"html_decimal": "Ü",
"html_hex": "Ü",
"encoded_uri": "U%CC%88"
}
]
},
"ö": {
"mapping": {
"base": "o",
"decompose": "oe"
},
"equivalents": [
{
"raw": "ö",
"unicode": "\\u00F6",
"html_decimal": "ö",
"html_hex": "ö",
"encoded_uri": "%C3%B6",
"html_entity": "ö"
},
{
"raw": "ö",
"unicode": "o\\u0308",
"html_decimal": "ö",
"html_hex": "ö",
"encoded_uri": "o%CC%88"
}
]
},
"Ö": {
"mapping": {
"base": "O",
"decompose": "OE"
},
"equivalents": [
{
"raw": "Ö",
"unicode": "\\u00D6",
"html_decimal": "Ö",
"html_hex": "Ö",
"encoded_uri": "%C3%96",
"html_entity": "Ö"
},
{
"raw": "Ö",
"unicode": "O\\u0308",
"html_decimal": "Ö",
"html_hex": "Ö",
"encoded_uri": "O%CC%88"
}
]
},
"ä": {
"mapping": {
"base": "a",
"decompose": "ae"
},
"equivalents": [
{
"raw": "ä",
"unicode": "\\u00E4",
"html_decimal": "ä",
"html_hex": "ä",
"encoded_uri": "%C3%A4",
"html_entity": "ä"
},
{
"raw": "ä",
"unicode": "a\\u0308",
"html_decimal": "ä",
"html_hex": "ä",
"encoded_uri": "a%CC%88"
}
]
},
"Ä": {
"mapping": {
"base": "A",
"decompose": "AE"
},
"equivalents": [
{
"raw": "Ä",
"unicode": "\\u00C4",
"html_decimal": "Ä",
"html_hex": "Ä",
"encoded_uri": "%C3%84",
"html_entity": "Ä"
},
{
"raw": "Ä",
"unicode": "A\\u0308",
"html_decimal": "Ä",
"html_hex": "Ä",
"encoded_uri": "A%CC%88"
}
]
},
"ß": {
"mapping": {
"base": "ß",
"decompose": "ss"
},
"equivalents": [
{
"raw": "ß",
"unicode": "\\u00DF",
"html_decimal": "ß",
"html_hex": "ß",
"encoded_uri": "%C3%9F",
"html_entity": "ß"
}
]
}
}
}
},
"es": {
"es": {
"metadata": {
"alphabet": "Latn",
"continent": [
"NA",
"SA",
"EU",
"OC",
"AF",
"AN"
],
"language": "Spanish",
"native": "Español",
"sources": [
"https://en.wikipedia.org/wiki/Spanish_orthography#Keyboard_requirements",
"https://en.wikipedia.org/wiki/Spanish_language#Estimated_number_of_speakers",
"https://commons.wikimedia.org/wiki/File:Idioma_espa%C3%B1ol_en_el_mundo.PNG",
"https://en.wikipedia.org/wiki/Inverted_question_and_exclamation_marks"
]
},
"data": {
"á": {
"mapping": {
"base": "a"
},
"equivalents": [
{
"raw": "á",
"unicode": "\\u00E1",
"html_decimal": "á",
"html_hex": "á",
"encoded_uri": "%C3%A1",
"html_entity": "á"
},
{
"raw": "á",
"unicode": "a\\u0301",
"html_decimal": "á",
"html_hex": "á",
"encoded_uri": "a%CC%81"
}
]
},
"Á": {
"mapping": {
"base": "A"
},
"equivalents": [
{
"raw": "Á",
"unicode": "\\u00C1",
"html_decimal": "Á",
"html_hex": "Á",
"encoded_uri": "%C3%81",
"html_entity": "Á"
},
{
"raw": "Á",
"unicode": "A\\u0301",
"html_decimal": "Á",
"html_hex": "Á",
"encoded_uri": "A%CC%81"
}
]
},
"é": {
"mapping": {
"base": "e"
},
"equivalents": [
{
"raw": "é",
"unicode": "\\u00E9",
"html_decimal": "é",
"html_hex": "é",
"encoded_uri": "%C3%A9",
"html_entity": "é"
},
{
"raw": "é",
"unicode": "e\\u0301",
"html_decimal": "é",
"html_hex": "é",
"encoded_uri": "e%CC%81"
}
]
},
"É": {
"mapping": {
"base": "E"
},
"equivalents": [
{
"raw": "É",
"unicode": "\\u00C9",
"html_decimal": "É",
"html_hex": "É",
"encoded_uri": "%C3%89",
"html_entity": "É"
},
{
"raw": "É",
"unicode": "E\\u0301",
"html_decimal": "É",
"html_hex": "É",
"encoded_uri": "E%CC%81"
}
]
},
"í": {
"mapping": {
"base": "i"
},
"equivalents": [
{
"raw": "í",
"unicode": "\\u00ED",
"html_decimal": "í",
"html_hex": "í",
"encoded_uri": "%C3%AD",
"html_entity": "í"
},
{
"raw": "í",
"unicode": "i\\u0301",
"html_decimal": "í",
"html_hex": "í",
"encoded_uri": "i%CC%81"
}
]
},
"Í": {
"mapping": {
"base": "I"
},
"equivalents": [
{
"raw": "Í",
"unicode": "\\u00CD",
"html_decimal": "Í",
"html_hex": "Í",
"encoded_uri": "%C3%8D",
"html_entity": "Í"
},
{
"raw": "Í",
"unicode": "I\\u0301",
"html_decimal": "Í",
"html_hex": "Í",
"encoded_uri": "I%CC%81"
}
]
},
"ï": {
"mapping": {
"base": "i"
},
"equivalents": [
{
"raw": "ï",
"unicode": "\\u00EF",
"html_decimal": "ï",
"html_hex": "ï",
"encoded_uri": "%C3%AF",
"html_entity": "ï"
},
{
"raw": "ï",
"unicode": "i\\u0308",
"html_decimal": "ï",
"html_hex": "ï",
"encoded_uri": "i%CC%88"
}
]
},
"ñ": {
"mapping": {
"base": "n"
},
"equivalents": [
{
"raw": "ñ",
"unicode": "\\u00F1",
"html_decimal": "ñ",
"html_hex": "ñ",
"encoded_uri": "%C3%B1",
"html_entity": "ñ"
},
{
"raw": "ñ",
"unicode": "n\\u0303",
"html_decimal": "ñ",
"html_hex": "ñ",
"encoded_uri": "n%CC%83"
}
]
},
"Ñ": {
"mapping": {
"base": "N"
},
"equivalents": [
{
"raw": "Ñ",
"unicode": "\\u00D1",
"html_decimal": "Ñ",
"html_hex": "Ñ",
"encoded_uri": "%C3%91",
"html_entity": "Ñ"
},
{
"raw": "Ñ",
"unicode": "N\\u0303",
"html_decimal": "Ñ",
"html_hex": "Ñ",
"encoded_uri": "N%CC%83"
}
]
},
"ó": {
"mapping": {
"base": "o"
},
"equivalents": [
{
"raw": "ó",
"unicode": "\\u00F3",
"html_decimal": "ó",
"html_hex": "ó",
"encoded_uri": "%C3%B3",
"html_entity": "ó"
},
{
"raw": "ó",
"unicode": "o\\u0301",
"html_decimal": "ó",
"html_hex": "ó",
"encoded_uri": "o%CC%81"
}
]
},
"Ó": {
"mapping": {
"base": "O"
},
"equivalents": [
{
"raw": "Ó",
"unicode": "\\u00D3",
"html_decimal": "Ó",
"html_hex": "Ó",
"encoded_uri": "%C3%93",
"html_entity": "Ó"
},
{
"raw": "Ó",
"unicode": "O\\u0301",
"html_decimal": "Ó",
"html_hex": "Ó",
"encoded_uri": "O%CC%81"
}
]
},
"ú": {
"mapping": {
"base": "u"
},
"equivalents": [
{
"raw": "ú",
"unicode": "\\u00FA",
"html_decimal": "ú",
"html_hex": "ú",
"encoded_uri": "%C3%BA",
"html_entity": "ú"
},
{
"raw": "ú",
"unicode": "u\\u0301",
"html_decimal": "ú",
"html_hex": "ú",
"encoded_uri": "u%CC%81"
}
]
},
"Ú": {
"mapping": {
"base": "U"
},
"equivalents": [
{
"raw": "Ú",
"unicode": "\\u00DA",
"html_decimal": "Ú",
"html_hex": "Ú",
"encoded_uri": "%C3%9A",
"html_entity": "Ú"
},
{
"raw": "Ú",
"unicode": "U\\u0301",
"html_decimal": "Ú",
"html_hex": "Ú",
"encoded_uri": "U%CC%81"
}
]
},
"ü": {
"mapping": {
"base": "u"
},
"equivalents": [
{
"raw": "ü",
"unicode": "\\u00FC",
"html_decimal": "ü",
"html_hex": "ü",
"encoded_uri": "%C3%BC",
"html_entity": "ü"
},
{
"raw": "ü",
"unicode": "u\\u0308",
"html_decimal": "ü",
"html_hex": "ü",
"encoded_uri": "u%CC%88"
}
]
},
"Ü": {
"mapping": {
"base": "U"
},
"equivalents": [
{
"raw": "Ü",
"unicode": "\\u00DC",
"html_decimal": "Ü",
"html_hex": "Ü",
"encoded_uri": "%C3%9C",
"html_entity": "Ü"
},
{
"raw": "Ü",
"unicode": "U\\u0308",
"html_decimal": "Ü",
"html_hex": "Ü",
"encoded_uri": "U%CC%88"
}
]
},
"ý": {
"mapping": {
"base": "y"
},
"equivalents": [
{
"raw": "ý",
"unicode": "\\u00FD",
"html_decimal": "ý",
"html_hex": "ý",
"encoded_uri": "%C3%BD",
"html_entity": "ý"
},
{
"raw": "ý",
"unicode": "y\\u0301",
"html_decimal": "ý",
"html_hex": "ý",
"encoded_uri": "y%CC%81"
}
]
},
"Ý": {
"mapping": {
"base": "Y"
},
"equivalents": [
{
"raw": "Ý",
"unicode": "\\u00DD",
"html_decimal": "Ý",
"html_hex": "Ý",
"encoded_uri": "%C3%9D",
"html_entity": "Ý"
},
{
"raw": "Ý",
"unicode": "Y\\u0301",
"html_decimal": "Ý",
"html_hex": "Ý",
"encoded_uri": "Y%CC%81"
}
]
},
"¿": {
"mapping": {
"decompose": "?"
},
"equivalents": [
{
"raw": "¿",
"unicode": "\\u00BF",
"html_decimal": "¿",
"html_hex": "¿",
"encoded_uri": "%C2%BF",
"html_entity": "¿"
}
]
},
"¡": {
"mapping": {
"decompose": "!"
},
"equivalents": [
{
"raw": "¡",
"unicode": "\\u00A1",
"html_decimal": "¡",
"html_hex": "¡",
"encoded_uri": "%C2%A1",
"html_entity": "¡"
}
]
},
"⸘": {
"mapping": {
"decompose": "?!"
},
"equivalents": [
{
"raw": "⸘",
"unicode": "\\u2E18",
"html_decimal": "⸘",
"html_hex": "⸘",
"encoded_uri": "%E2%B8%98"
}
]
}
}
}
}
}
{
"metadata": {
"alphabet": "Latn",
"continent": ["NA", "SA", "EU", "OC", "AF", "AN"],
"language": "Spanish",
"native": "Español",
"sources": [
"https://en.wikipedia.org/wiki/Spanish_orthography#Keyboard_requirements",
// Spanish is the official or national language in Spain (EU),
// Equatorial Guinea (AF), and 19 countries in the Americas...
"https://en.wikipedia.org/wiki/Spanish_language#Estimated_number_of_speakers",
// Antarctica is only shown in this image
"https://commons.wikimedia.org/wiki/File:Idioma_espa%C3%B1ol_en_el_mundo.PNG",
"https://en.wikipedia.org/wiki/Inverted_question_and_exclamation_marks"
]
},
"data": {
"á": {
"mapping": {
"base": "a"
}
},
"Á": {
"mapping": {
"base": "A"
}
},
"é": {
"mapping": {
"base": "e"
}
},
"É": {
"mapping": {
"base": "E"
}
},
"í": {
"mapping": {
"base": "i"
}
},
"Í": {
"mapping": {
"base": "I"
}
},
"ï": {
"mapping": {
"base": "i"
}
},
"ñ": {
"mapping": {
"base": "n"
}
},
"Ñ": {
"mapping": {
"base": "N"
}
},
"ó": {
"mapping": {
"base": "o"
}
},
"Ó": {
"mapping": {
"base": "O"
}
},
"ú": {
"mapping": {
"base": "u"
}
},
"Ú": {
"mapping": {
"base": "U"
}
},
"ü": {
"mapping": {
"base": "u"
}
},
"Ü": {
"mapping": {
"base": "U"
}
},
"ý": {
"mapping": {
"base": "y"
}
},
"Ý": {
"mapping": {
"base": "Y"
}
},
// The following symbols are used as an opening tag and the decomposed
// symbols are typically used as a closing tag
"¿": {
"mapping": {
"decompose": "?"
}
},
"¡": {
"mapping": {
"decompose": "!"
}
},
"⸘": {
"mapping": {
"decompose": "?!"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment