Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rules/Languages/hu/ClearSpeak_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@
- test:
if: "starts-with(name(.), 'open')"
then: [T: "nem"] # phrase(the interval from a to b 'not' including b)
- T: "tartalmazza a" # phrase(the interval from a to b not 'including' b)
- T: "tartalmazza a(z)" # phrase(the interval from a to b not 'including' b)
- x: "*[1]"
- T: "elemet"
# logic to deal with [not] arg #1
Expand All @@ -647,7 +647,7 @@
if: "name(.) = 'open-interval' or name(.) = 'closed-open-interval'"
then: [T: "nem"] # phrase(the interval 'not' including a)
- T: "tartalmazza" # phrase(the interval not 'including' a)
- T: "a"
- T: "a(z)"
- x: "*[2]"
- T: "elemet"
# onto the [not] [including]... part
Expand Down
4 changes: 2 additions & 2 deletions Rules/Languages/hu/SimpleSpeak_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
- test:
if: "starts-with(name(.), 'open')"
then: [T: "nem"] # phrase(the interval from a to b 'not' including b)
- T: "tartalmazza a" # phrase(the interval from a to b not 'including' b)
- T: "tartalmazza a(z)" # phrase(the interval from a to b not 'including' b)
- x: "*[1]"
- T: "elemet"
# logic to deal with [not] arg #1
Expand All @@ -598,7 +598,7 @@
if: "name(.) = 'open-interval' or name(.) = 'closed-open-interval'"
then: [T: "nem"] # phrase(the interval 'not' including a)
- T: "tartalmazza" # phrase(the interval not 'including' a)
- T: "a"
- T: "a(z)"
- x: "*[2]"
- T: "elemet"
# onto the [not] [including]... part
Expand Down
99 changes: 50 additions & 49 deletions Rules/Languages/hu/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@
#"closed-open-interval":"function=interval between; included and",
#"open-closed-interval":"function=interval between; and included",
#"open-interval":"function=open interval between; and",
"inverse":"function=inverse || postfix=inverse",
"inverse":"function=inverz || postfix=inverz",
"domain": "function= ; domén",
"codomain": "function= ; kodomán",
"image":"function=image",
"image":"function=kép",
#"fraction":"function=fraction; over; end fraction", # NOTE: Fails
"mixed-fraction":"infix=and", # NOTE: in website says function, but follow infix speech pattern.
"greatest-common-divisor": "function=gcd: a GCD: a legnagyobb közös osztó",
"quotient":"function=szám rész; osztva ezzel:", # NOTE: Logic somewhere here failing, becomes "divided by of x comma, y" instead of "integer part of x divided by y"
"evaluated-at":"infix=értékelték",
"remainder":"function=a maradék; osztva ezzel:",
"mixed-fraction":"infix=és", # NOTE: in website says function, but follow infix speech pattern.
"greatest-common-divisor": "function=a legnagyobb közös osztó",
"quotient":"function=egész rész osztva", # NOTE: Logic somewhere here failing, becomes "divided by of x comma, y" instead of "integer part of x divided by y"
"evaluated-at":"infix=értékelve || postfix=értékként",
"remainder":"function=a maradék, osztva",
"max":"function=max",
"min":"function=min",
"power":"infix=a hatványra",
"root":"function=root",
"imaginary-part": "function=képzeletbeli rész: a képzeletbeli rész: a képzeletbeli rész",
"imaginary-part": "a képzeletbeli rész",
"least-common-multiple": "function=lcm: a legkisebb közös többszörös: a legkisebb közös többszörös",
"complex-conjugate":"function=Komplex konjugált",
"complex-arg":"function=argumentum",
"polar-coordinate":"function=poláris koordináta; vessző",
"spherical-coordinate":"function=gömb koordináta; vessző; vessző",
"cartesian-coordinate":"function=derékszögű koordináta; vessző",
"coordinate":"function=koordináta; vessző",
"polar-coordinate":"function=poláris koordináta",
"spherical-coordinate":"function=gömb koordináta",
"cartesian-coordinate":"function=derékszögű koordináta",
"coordinate":"function=koordináta",
"floor":"function=lépcső",
"ceiling":"function=mennyezet",
"round":"function=kerekített érték",
Expand All @@ -60,7 +60,7 @@
"dimension": "function=; dimenzió : dimenzió: a dimenzió; dimenzió vége",
"homomorphism": "function= ; homomorfizmus : homomorfizmus: a homomorfizmus; homomorfizmus vége",
"kernel": "function= ; kernel : kernel: a kernel; kernel vége",
"dot-product": "infix=skaláris szorzat: skaláris szorzat: skaláris szorzat: skaláris szorzat",
"dot-product": "infix=skaláris szorzat",

#"divergence": "function= ; dihv: divergencia: divergencia; divergencia vége",
#"laplacian": "function=laplaciáns", # speech engines don't do a good job with "laplacian"
Expand All @@ -69,19 +69,20 @@
### Calculus
"definite-integral":"function=integrál felett || function=integrál innen:; ide:", # Property ???
"derivative":"function=a deriváltja; mely erre vonatkozik:", # Property ???
"tends-to":"infix=általában",
"tends-to":"infix=ehhez tart",
"tends-to-from-above":"infix=általában alulról indul",

"tends-to-from-below":"infix=alulról indul",
### Sets
"set": "function= ; halmaz: a halmaz",
"set-difference":"function=különbséghalmaz || infix=mínusz || postfix=különbséghalmaza", # NOTE: not tested
"complement":"function=komplemens",
"empty-set":"nofix=üres halmaz",
"empty-set":"function=üres halmaz",
"cardinality":"function=számosság", # NOTE: does not have a defined speech template in website
"list":"function=lista",
"tuple": "function= ; tuple: a tuple",
### Sequence and Series
"sum":"function= ; összegzés : összeg ; ", #: sum over : sum from; to",
"product":"function=produktum || function=produktum vége || function=produktum innen:; ide:",
"product":"function=szorzat || function=szorzat vége || function=szorzat innen ide",

### Elementary classical functions
"sine":"function=szinusz: szinusz",
Expand All @@ -91,23 +92,23 @@
"cosecant":"function=koszekáns: koszekáns",
"cotangent":"function=kotangens: kotangens",
"arcsine":"function=arkusz szinusz",
#"arccosine":"function=arkusz koszinusz",
"arccosine":"function=arkusz koszinusz",
"arctangent":"function=arkusz tangens",
"arcsecant":"function=arkusz szekáns",
"arccosecant":"function=arkusz koszekáns",
"arccotangent":"function=arkusz kotangens",
"hyperbolic-sine":"function=hiperbolikus szinusz",
"hyperbolic-cosine":"function=hiperbolikus koszinusz",
"hyperbolic-tangent":"function=hiperbolikus tangenstanch",
"hyperbolic-secant":"function=sech",
"hyperbolic-cosecant":"function=cosech",
"hyperbolic-cotangent":"function=coth",
"arc-hyperbolic-sine":"function=arc shine",
"arc-hyperbolic-cosine":"function=arc cosh",
"arc-hyperbolic-tangent":"function=arc tanch",
"arc-hyperbolic-secant":"function=arc sech",
"arc-hyperbolic-cosecant":"function=arc cosech",
"arc-hyperbolic-cotangent":"function=arc coth",
"hyperbolic-tangent":"function=hiperbolikus tangens",
"hyperbolic-secant":"function=hiperbolikus szekáns",
"hyperbolic-cosecant":"function=hiperbolikus koszekáns",
"hyperbolic-cotangent":"function=hiperbolikus kotangens",
"arc-hyperbolic-sine":"function=arkusz hiperbolikus szinusz",
"arc-hyperbolic-cosine":"function=arkusz hiperbolikus koszinusz",
"arc-hyperbolic-tangent":"function=arkusz hiperbolikus tangens",
"arc-hyperbolic-secant":"function=arkusz hiperbolikus szekáns",
"arc-hyperbolic-cosecant":"function=arkusz hiperbolikus koszekáns",
"arc-hyperbolic-cotangent":"function=arkusz hiperbolikus kotangens",
"exponential":"function=exponenciális",
"natural-logarithm": "function=l n: természetes alapú logaritmus: természetes alapú logaritmus",
"logarithm":"function=logaritmus", ##Check arity 2
Expand Down Expand Up @@ -138,7 +139,7 @@

### Constants and Sets
"set-of-integers":"nofix=ℤ: az összes egész szám halmaza",
"set-of-reals":"nofix=: az összes valós szám halmaza",
"set-of-reals":"nofix=valós számok halmaza: az összes valós szám halmaza",
"set-of-rationals":"nofix=ℚ: az összes racionális szám halmaza",
"set-of-natural-numbers":"nofix=ℕ: az összes természetes szám halmaza",
"set-of-complex-numbers":"nofix=ℂ: az összes komplex szám halmaza",
Expand Down Expand Up @@ -167,13 +168,13 @@
"highlight":"postfix=kiemelt",
"least-common-denominator":"function=legkisebb közös nevező",
"rate":"infix=per",
"constraint":"infix= ; korlátozással; ",
"constraint":"infix= ; feltétellel; ",

"binomial-coefficient":"infix=választ",
"pochhammer":"function=permutáció",
"permutation-cycle":"function=permutációs ciklus",
"embellished-name":"infix=jegyzetekkel",

"embellished-name":"infix=megjegyzéssel",
"annotation":"infix= ; ami ;", # NOTE: Follows the same order as indexed-by, in site listed as function. Should it be infix?
### Other
## Default fixity function
"curl": "function=rotáció",
Expand All @@ -185,7 +186,7 @@
"angle": "prefix=szög",
"angle-measure": "prefix=szögmérés",
"change": "prefix=változás",
"for-all": "prefix=mindenkinek",
"for-all": "prefix=minden",
"measured-angle": "prefix=mért szög",
"not": "prefix=nem",
"number-of": "prefix=száma",
Expand All @@ -198,7 +199,7 @@

## Default fixity infix
"and": "infix=és",
"applied-to": "infix=alkalmazva erre",
"applied-to": "infix=alkalmazva",
"approximately": "infix=hozzávetőlegesen",
"congruent": "infix=egybeesik",
"cartesian-product": "infix=derékszögű szorzat",
Expand All @@ -210,7 +211,7 @@
"does-not-belong-to": "infix=nem tartozik hozzá",
"does-not-divide": "infix=nem osztja",
"downwards-diagonal-ellipsis": "infix=lefelé mutató átlós ellipszis",
"direct-product": "infix=direkt produktum",
"direct-product": "infix=direkt szorzat",
"element-of": "infix=eleme",
"ellipsis": "infix=ellipszis",
"equals": "infix=egyenlő",
Expand All @@ -222,7 +223,7 @@
"identically-equals": "infix=teljesen egyenlő",
"if-and-only-if": "infix=akkor és csak akkor, ha",
"implies": "infix=utal",
"inner-product": "infix=belső produktum",
"inner-product": "infix=belső szorzat",
"intersection": "infix=keresztezi",
"less-than": "infix=kisebb, mint",
"less-than-or-equal-to": "infix=kisebb vagy egyenlő, mint",
Expand All @@ -231,13 +232,13 @@
"member-of": "infix=tagja",
"minus-or-plus": "infix=mínusz vagy plusz",
"not-subset": "infix=nem részhalmaza",
"not-superset": "infix=nem szuperhalmaz",
"not-superset": "infix=nem szuperhalmaza",
"not-equal-to": "infix=nem egyenlő",
"not-member-of": "infix=nem tagja",
"not-parallel-to": "infix=nem párhuzamos",
"obtained-from": "infix=származó",
"obtained-from": "infix=innen származik",
"or": "infix=vagy",
"outer-product": "infix=külső produktum",
"outer-product": "infix=külső szorzata",
"parallel-to": "infix=párhuzamos",
"perpendicular": "infix=merőleges",
"plus": "infix=plusz || prefix=pozitív", # Prefix not tested
Expand All @@ -246,16 +247,16 @@
"precedes": "infix=megelőzi",
"proportional": "infix=arányos",
"range-separator": "infix=keresztül",
"ratio": "infix=hányados",
"ratio": "infix=arány",
"similar": "infix=hasonló",
"subset": "infix=részhalmaza",
"subset-or-equal": "infix=részhalmaza vagy egyenlő",
"succeeds": "infix=sikerül",
"succeeds": "infix=követi",
"such-that": "infix=úgy, hogy",
"superset": "infix=szuperhalmaza",
"superset-or-equal": "infix=szuperhalmaz vagy egyenlő",
"superset-or-equal": "infix=szuperhalmaza vagy egyenlő",
"tilde": "infix=tilde",
"times": "infix=szorzata",
"times": "infix=szorozva",
"union": "infix=unió",
"upwards-diagonal-ellipsis": "infix=felfelé átlós ellipszis",
"vertical-ellipsis": "infix=függőleges ellipszis",
Expand All @@ -270,9 +271,9 @@
"distance":"nofix=távolság; távolság: távolság",
"probability":"nofix=P: valószínűség",
"radius":"nofix=r: sugár",
"volume":"nofix=V: hangerő || function=",
"volume":"nofix=hangerő: hangerő || function=hangerő",
"exponential-e":"nofix=e",
"imaginary-i":"nofix=i",
"imaginary-i":"nofix=képzeletbeli én",
"differential-d":"nofix=d",
"golden-ratio":"nofix=aranymetszés",

Expand All @@ -290,11 +291,11 @@
# These are the parts of a formula that can be navigated to
"large-op": "base; lower limit; upper limit",
"mfrac": "numerator; denominator",
"fraction": "numerator; denominator",
"msqrt": "root",
"square-root": "root",
"fraction": "számláló; nevező",
"msqrt": "gyök",
"square-root": "gyök",
"mroot": "root; root index",
"root": "root; root index",
"root": "gyök; gyök index",
"msub": "base; subscript",
"sub": "base; subscript",
"logarithm-with-base": "base",
Expand Down
5 changes: 3 additions & 2 deletions tests/Languages/hu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ mod ClearSpeak {
mod SimpleSpeak {
mod functions;
mod large_ops;
// mod menclose;
mod menclose;
mod mfrac;
// mod mroot;
mod mroot;
mod msup;
mod sets;
mod geometry;
Expand All @@ -29,6 +29,7 @@ mod shared;
mod units;
mod chemistry;
mod alphabets;
mod definitions;
mod intent;
mod mtable;

16 changes: 8 additions & 8 deletions tests/Languages/hu/ClearSpeak/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ fn explicit_times_none_superscript() -> Result<()> {
<mo>)</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval",expr,
"c től d ig terjedő intervallum, nem tartalmazza a c elemet vagy d elemet")?;
"c től d ig terjedő intervallum, nem tartalmazza a(z) c elemet vagy d elemet")?;
return Ok(());

}
Expand All @@ -530,7 +530,7 @@ fn explicit_times_none_superscript() -> Result<()> {
<mo>)</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"c től d ig terjedő intervallum, tartalmazza a c elemet de nem tartalmazza a d elemet")?;
"c től d ig terjedő intervallum, tartalmazza a(z) c elemet de nem tartalmazza a(z) d elemet")?;
return Ok(());

}
Expand All @@ -545,7 +545,7 @@ fn parens_interval_open_closed() -> Result<()> {
<mo>]</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"c től d ig terjedő intervallum, nem tartalmazza a c elemet de tartalmazza a d elemet")?;
"c től d ig terjedő intervallum, nem tartalmazza a(z) c elemet de tartalmazza a(z) d elemet")?;
return Ok(());

}
Expand All @@ -560,7 +560,7 @@ fn parens_interval_closed_closed() -> Result<()> {
<mo>]</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"c től d ig terjedő intervallum, tartalmazza a c elemet és d elemet")?;
"c től d ig terjedő intervallum, tartalmazza a(z) c elemet és d elemet")?;
return Ok(());

}
Expand All @@ -573,7 +573,7 @@ return Ok(());
<mo>)</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"negatív végtelen től d ig terjedő intervallum, nem tartalmazza a d elemet")?;
"negatív végtelen től d ig terjedő intervallum, nem tartalmazza a(z) d elemet")?;
return Ok(());

}
Expand All @@ -586,7 +586,7 @@ return Ok(());
<mo>]</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"negatív végtelen től d ig terjedő intervallum, tartalmazza a d elemet")?;
"negatív végtelen től d ig terjedő intervallum, tartalmazza a(z) d elemet")?;
return Ok(());

}
Expand All @@ -601,7 +601,7 @@ fn parens_interval_open_open_infinity() -> Result<()> {
<mo>)</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"c től végtelen ig terjedő intervallum, nem tartalmazza a c elemet")?;
"c től végtelen ig terjedő intervallum, nem tartalmazza a(z) c elemet")?;
return Ok(());

}
Expand All @@ -616,7 +616,7 @@ fn parens_interval_closed_open_infinity() -> Result<()> {
<mo>)</mo></mrow>
</math>";
test_ClearSpeak("hu", "ClearSpeak_Paren", "Interval ",expr,
"c től végtelen ig terjedő intervallum, tartalmazza a c elemet")?;
"c től végtelen ig terjedő intervallum, tartalmazza a(z) c elemet")?;
return Ok(());

}
Expand Down
Loading
Loading