Skip to content

Commit

Permalink
añadidas traducciones al diccionario spanish.json
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Casas committed Aug 30, 2018
1 parent a2077e7 commit 7258294
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 34 deletions.
20 changes: 10 additions & 10 deletions blindtex/interpreter/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
from blindtex.interpreter import dictionary

to_read = {'simple_superscript' : 'super %s ',
'comp_superscript' : 'super %s endsuper ',
'comp_superscript' : 'super %s endSuper ',
'simple_subscript' : 'sub %s ',
'comp_subscript' : 'sub %s endsub ',
'comp_subscript' : 'sub %s endSub ',
'simple_frac' : '%s over %s ',
'comp_frac' : 'fraction %s over %s endfraction ',
'simple_sqrt' : 'squarerootof %s ',
'comp_sqrt' : 'squarerootof %s endroot ',
'comp_frac' : 'fraction %s over %s endFraction ',
'simple_sqrt' : 'squareRootOf %s ',
'comp_sqrt' : 'squareRootOf %s endRoot ',
'simple_root' : 'root %s of %s ',
'comp_root' : 'root %s of %s endroot ',
'comp_root' : 'root %s of %s endRoot ',
'simple_choose' : 'from %s choose %s ',
'comp_choose' : 'from %s choose %s end ',
'comp_choose' : 'from %s choose %s endChoose ',
'simple_modulo' : 'modulo %s ',
'comp_modulo' : 'modulo %s end ',
'comp_modulo' : 'modulo %s endModulo ',
'simple_text' : 'text %s ',
'comp_text' : 'text %s endtext ',
'comp_text' : 'text %s endText ',
'from_to' : 'from %s to %s of ',
'over' : 'over %s of ',
'to' : 'to %s of ',
'end' : 'end%s ',
'linebreak' : 'linebreak',
'array' : 'array %s endarray ',
'array' : 'array %s endArray ',
'array_element' : 'element',}
'''dict: A dictionary with the strings to read some mathematical structures,
like: Fractions, roots, large operators, etc.'''
Expand Down
61 changes: 37 additions & 24 deletions blindtex/lang/dicts/spanish.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"squarerootof":"Raiz cuadrada de",
"endRoot":"Fin raíz",
"squareRootOf":"RaizCuadradaDe",
"endRoot":"FinRaíz",
"from":"desde",
"of":"de",
"root":"raíz",
"fraction":"fracción",
"endfraction":"finFracción",
"endFraction":"finFracción",
"over":"sobre",
"hat":"gorro",
"breve":"breve",
Expand All @@ -19,7 +19,7 @@
"acute":"agudo",
"bar":"barra",
"tilde":"virgulilla",
"longleftrightarrow":"flechaIzquierdaDerecha larga",
"longleftrightarrow":"flechaIzquierdaDerechaLarga",
"Rightarrow":"flechaDerechaDoble",
"leftharpoonup":"arpónArribaIzquierdo",
"Leftrightarrow":"flechaIzquierdaDerechaDoble",
Expand Down Expand Up @@ -173,35 +173,35 @@
"limits":"",
"prod":"producto",
"Pr":"probabilidad",
"cosh":"coseno hiperbólico",
"cosh":"cosenoHipernbólico",
"sec":"secante",
"arg":"argumento",
"inf":"infimo",
"tan":"tangente",
"lg":"logaritmo binario",
"gcd":"mayor común divisor",
"min":"miínimo",
"ln":"logaritmo natural",
"lg":"logaritmoBinario",
"gcd":"mayorComúnDivisor",
"min":"mínimo",
"ln":"logaritmoNatural",
"hom":"homomorfismo",
"csc":"cosecante",
"arctan":"arco tangente",
"arctan":"arcoTangente",
"sup":"supremo",
"sin":"seno",
"limsup":"lim sup",
"liminf":"lim inf",
"arcsin":"arco seno",
"max":"máximo",
"sinh":"seno hiperbólico",
"ker":"núcleo",
"coth":"cotangente hiperbólico",
"limsup":"limSup",
"liminf":"limInf",
"arcsin":"arcoSeno",
"max":"máximo",
"sinh":"senoHiperbólico",
"ker":"núcleo",
"coth":"cotangenteHiperbólico",
"log":"logaritmo",
"dim":"dimención",
"dim":"dimención",
"cos":"coseno",
"cot":"cotangente",
"tanh":"tangente hiperbólico",
"tanh":"tangenteHiperbólico",
"det":"determinante",
"exp":"exponencial",
"arccos":"arco coseno",
"arccos":"arcoCoseno",
"deg":"grado",
"pi":"pi",
"chi":"ji",
Expand All @@ -223,7 +223,7 @@
"epsilon":"epsilon",
"sharp":"sostenido",
"phi":"fi",
"Xi":"xi mayúscula",
"Xi":"xiMayúscula",
"kappa":"kappa",
"angle":"ángulo",
"Sigma":"sigmaMayúscula",
Expand All @@ -236,7 +236,7 @@
"psi":"psi",
"iota":"iota",
"Omega":"omegaMayúscula",
"jmath":"jCaligráfica, sinPunto",
"jmath":"jCaligráfica",
"beta":"beta",
"tau":"tau",
"zeta":"zeta",
Expand All @@ -248,7 +248,7 @@
"xi":"xi",
"vartheta":"varTeta",
"top":"transpuesto",
"imath":"iCaligráfica, sinPunto",
"imath":"iCaligráfica",
"triangle":"triángulo",
"nabla":"nabla",
"Re":"parteReal",
Expand Down Expand Up @@ -279,5 +279,18 @@
"mathcal":"caligráfica",
"boldmath":"negrilla",
"mathtt":"máquinaEscribir",
"mathrm":"roman"
"mathrm":"roman",
"endSuper": "finSuper",
"endSub": "finSub",
"choose": "escoger",
"endChoose": "finCombinatoria",
"modulo": "módulo",
"endModulo": "finMódulo",
"text": "texto",
"endText": "finTexto",
"end": "fin",
"linebreak": "saltoDeLínea",
"array": "arreglo",
"endArray": "finArreglo",
"element": "elemento",
}

0 comments on commit 7258294

Please sign in to comment.