Skip to content
Merged
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

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Rules/Languages/it/SharedRules/calculus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
replace:
- test:
if: "$Verbosity='Verbose'"
then: [t: "divergence"] # phrase('divergence' from the mean)
else: [t: "div"] # phrase('divergence' from the mean)
- t: "of" # phrase(systems 'of' linear equations)
then: [T: "divergenza"] # phrase('divergence' from the mean)
else: [T: "div"] # phrase('divergence' from the mean)
- T: "di" # phrase(systems 'of' linear equations)
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
Expand All @@ -18,7 +18,7 @@
tag: curl
match: "."
replace:
- t: "curl of" # phrase(the 'curl of' a field)
- t: "rotore di" # phrase(the 'curl of' a field)
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
Expand All @@ -31,7 +31,7 @@
- test:
if: "$Verbosity!='Terse'"
then: [t: "gradient of"] # phrase('divergence' from the mean)
else: [t: "del"] # phrase('divergence' from the mean)
else: [t: "del"] #. phrase('divergence' from the mean)
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
Expand Down
36 changes: 18 additions & 18 deletions Rules/Languages/it/SharedRules/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,17 @@
if: "$Verbosity!='Terse'"
then: [T: ""] # phrase("'the' root of x")
- T: "simbolo di radice"
- T: "radice di x " # phrase("the root of x 'with index' 5")
- T: "con indice" # phrase("the root of x 'with index' 5")
- x: "*[1]"
- pause: short
- test:
if: "$Verbosity!='Terse'"
then: [T: "radice"] # phrase("the root 'of' x")
then: [T: "di"] # phrase("the root 'of' x")
- x: "*[2]"
- pause: short
- test:
if: "not(IsNode(*[2],'leaf'))"
then: [T: "radice di x "] # phrase("root of x 'end root symbol'")
then: [T: "fine simbolo di radice"] # phrase("root of x 'end root symbol'")


- name: simple-sub
Expand Down Expand Up @@ -413,7 +413,7 @@
if: count(*)=1
then: [T: "riga"] # phrase(the table with 1 'row')
else: [T: "righe"] # phrase(the table with 3 'rows')
- T: "e " # phrase(the table with 3 rows 'and' 4 columns)
- T: "e" # phrase(the table with 3 rows 'and' 4 columns)
- x: "count(*[1]/*)"
- test:
if: "count(*[1]/*)=1"
Expand Down Expand Up @@ -484,7 +484,7 @@
then: [T: "rettangolo", pause: short] # phrase(the 'box' around the expression)
- test:
if: ".[contains(@notation,'roundedbox')]"
then: [T: "ellisse", pause: short] # phrase(the 'round box' around the expression)
then: [T: "rettangolo arrotondato", pause: short] # phrase(the 'round box' around the expression)
- test:
if: ".[contains(@notation,'circle')]"
then: [T: "cerchio", pause: short] # phrase(the 'circle' around the expression)
Expand All @@ -509,11 +509,11 @@
then:
- test:
if: ".[contains(@notation,'updiagonalstrike') and contains(@notation,'downdiagonalstrike')]"
then: [spell: "'x'", pause: short] # seems better to say 'x cross out' than 'up diagonal, down diagonal cross out'
then: [spell: "x", pause: short] # seems better to say 'x cross out' than 'up diagonal, down diagonal cross out'
else:
- test:
if: ".[contains(@notation,'updiagonalstrike')]"
then: [T: "diagonale", pause: short] # phrase(the line runs 'up diagonal')
then: [T: "diagonale verso l'alto", pause: short] # phrase(the line runs 'up diagonal')
- test:
if: ".[contains(@notation,'downdiagonalstrike')]"
then: [T: "diagonale verso il basso", pause: short] # phrase(the line runs 'down diagonal')
Expand All @@ -527,16 +527,16 @@
- pause: short
- test:
if: ".[contains(@notation,'uparrow')]"
then: [T: "freccia in alto", pause: short] # phrase(direction is shown by the 'up arrow')
then: [T: "freccia verso l'alto", pause: short] # phrase(direction is shown by the 'up arrow')
- test:
if: ".[contains(concat(' ', normalize-space(@notation), ' '), ' downarrow ')]"
then: [T: "freccia in basso", pause: short] # phrase(the trend is shown by the 'down arrow')
then: [T: "freccia verso il basso", pause: short] # phrase(the trend is shown by the 'down arrow')
- test:
if: ".[contains(@notation,'leftarrow')]"
then: [T: "freccia a sinistra", pause: short] # phrase(the 'left arrow' indicates going back)
then: [T: "freccia verso sinistra", pause: short] # phrase(the 'left arrow' indicates going back)
- test:
if: ".[contains(concat(' ', normalize-space(@notation), ' '), ' rightarrow ')]"
then: [T: "freccia a destra", pause: short] # phrase(the 'right arrow' indicates moving forward)
then: [T: "freccia verso destra", pause: short] # phrase(the 'right arrow' indicates moving forward)
- test:
if: ".[contains(@notation,'northeastarrow')]"
then: [T: "freccia verso nord -est", pause: short] # phrase(direction is indicated by the 'northeast arrow')
Expand All @@ -545,22 +545,22 @@
then: [T: "freccia verso sud -est", pause: short] # phrase(direction is shown by the 'southeast arrow')
- test:
if: ".[contains(concat(' ', normalize-space(@notation), ' '), ' southwestarrow ')]"
then: [T: "freccia verso sud -ovest", pause: short] # phrase(direction is shown by the 'southwest arrow')
then: [T: "freccia verso sud-ovest", pause: short] # phrase(direction is shown by the 'southwest arrow')
- test:
if: ".[contains(@notation,'northwestarrow')]"
then: [T: "freccia verso nord -ovest", pause: short] # phrase(direction is shown by the 'northwest arrow')
- test:
if: ".[contains(@notation,'updownarrow')]"
then: [T: "alto è indicato dalla ", pause: short] # phrase(upward movement is indicated by the 'double ended vertical arrow')
then: [T: "freccia verticale a doppia estremità", pause: short] # phrase(upward movement is indicated by the 'double ended vertical arrow')
- test:
if: ".[contains(@notation,'leftrightarrow')]"
then: [T: "freccia orizzontale a doppia estremità", pause: short] # phrase(progress is indicated by the 'double ended horizontal arrow')
- test:
if: ".[contains(@notation,'northeastsouthwestarrow')]"
then: [T: "freccia diagonale a doppia estremità", pause: short] # phrase(trend is indicated by the 'double ended up diagonal arrow')
then: [T: "freccia diagonale verso l'alto a doppia estremità", pause: short] # phrase(trend is indicated by the 'double ended up diagonal arrow')
- test:
if: ".[contains(@notation,'northwestsoutheastarrow')]"
then: [T: "freccia diagonale a doppia estremità", pause: short] # phrase(trend is indicated by the 'double ended down diagonal arrow')
then: [T: "freccia diagonale verso il basso a doppia estremità", pause: short] # phrase(trend is indicated by the 'double ended down diagonal arrow')
- test:
if: ".[contains(@notation,'actuarial')]"
then: [T: "simbolo attuariale", pause: short] # phrase(the 'actuarial symbol' represents a specific quantity)
Expand All @@ -569,7 +569,7 @@
then: [T: "simbolo fattoriale arabo", pause: short] # phrase(the 'arabic factorial symbol' represents a factorial operation)
- test:
if: ".[contains(@notation,'phasorangle')]"
then: [T: "angolo di phasor", pause: short] # phrase(the 'phasor angle' is used to measure electrical current)
then: [T: "angolo di fase", pause: short] # phrase(the 'phasor angle' is used to measure electrical current)
- test:
if: ".[contains(@notation,'longdiv') or not(@notation) or normalize-space(@notation) ='']" # default
then: [T: "simbolo della divisione lunga", pause: short] # phrase(the 'long division symbol' indicates a long division calculation)
Expand All @@ -579,7 +579,7 @@
- T: "racchiudono" # phrase(parentheses are 'enclosing' part of the equation)
- test:
if: "*[self::m:mtext and text()=' ']"
then: [T: "c'è uno "] # otherwise there is complete silence # phrase(there is a 'space' between the words)
then: [T: "spazio"] # otherwise there is complete silence # phrase(there is a 'space' between the words)
else: [x: "*"]
- test:
if: "$Impairment = 'Blindness' and ( $SpeechStyle != 'SimpleSpeak' or not(IsNode(*[1], 'leaf')) )"
Expand Down Expand Up @@ -656,7 +656,7 @@
- pause: short
- insert:
nodes: "*"
replace: [t: "virma", pause: auto] # phrase(f of x 'comma' y)
replace: [T: "virgola", pause: auto] # phrase(f of x 'comma' y)

- name: default-text
# unknown leaf -- just speak the text -- could be a literal intent
Expand Down
58 changes: 29 additions & 29 deletions Rules/Languages/it/SharedRules/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
- bookmark: "*[1]/@id"
- test:
- if: "*[1][text()='ℂ']"
then: [T: "numeri complessi"] # phrase('complex numbers' consist of two parts)
then: [T: "numeri complessi"] # phrase('complex numbers' consist of two parts)
- else_if: "*[1][text()='ℕ']"
then: [T: "numeri naturali"] # phrase('natural numbers' are numbers from 1 to infinity)
then: [T: "numeri naturali"] # phrase('natural numbers' are numbers from 1 to infinity)
- else_if: "*[1][text()='ℚ']"
then: [T: "numeri razionali"] # phrase('rational numbers' are the fraction of 2 integers)
then: [T: "numeri razionali"] # phrase('rational numbers' are the fraction of 2 integers)
- else_if: "*[1][text()='ℝ']"
then: [T: "numeri reali"] # phrase('real numbers' can be both positive and negative)
then: [T: "numeri reali"] # phrase('real numbers' can be both positive and negative)
- else_if: "*[1][text()='ℤ']"
then: [T: "numeri interi"] # phrase(positive 'integers' are natural numbers above 0)
then: [T: "numeri interi"] # phrase(positive 'integers' are natural numbers above 0)
else: [x: "*[1][text()]"] # shouldn't happen

- name: dimension-number-sets
Expand Down Expand Up @@ -150,7 +150,7 @@
if: "$Verbosity!='Terse'"
then:
- T: "la" # phrase('the' square root of 25 equals 5)
- T: "punto" # phrase(a decimal 'point' indicates the fraction component of a number)
- T: "punto" # phrase(a decimal 'point' indicates the fraction component of a number)
- x: "*[1]"
- T: "virgola" # phrase(use a 'comma' to divide large numbers or as a decimal point)
- x: "*[2]"
Expand All @@ -162,12 +162,12 @@
- test:
if: "$Verbosity='Terse'"
then: [T: "valore assoluto"] # phrase(the 'absolute value' of a number represents its distance from 0)
else: [t: "il valore assoluto di"] # phrase('the absolute value of' a number represents its distance from 0)
else: [T: "il valore assoluto di"] # phrase('the absolute value of' a number represents its distance from 0)
- x: "*[1]"
- test:
if: "IsNode(*[1], 'leaf') or $Impairment != 'Blindness'"
then: [pause: short]
else: [pause: short, t: "end assolute value", pause: short] # phrase(show 'end absolute value' position)
else: [pause: short, T: "fine valore assoluto", pause: short] # phrase(show 'end absolute value' position)

- name: negative
tag: negative
Expand Down Expand Up @@ -261,7 +261,7 @@
then_test:
if: "$Verbosity='Terse'"
then: [T: "lim inf"]
else: [T: "limite inferio"]
else: [T: "limite inferiore"]
- else: [x: "*[1]"]
- T: "per" # phrase(the limit 'as' x approaches 1)
- x: "*[2]"
Expand Down Expand Up @@ -315,7 +315,7 @@
- test:
if: "$Verbosity='Verbose'"
then: [T: "fine pedice"] # phrase(this is the 'end subscript' position)
else: [T: "fine apice"] # phrase(this is the 'end sub' position)
else: [T: "fine pedice"] # phrase(this is the 'end sub' position)
- pause: short
else_test:
if: "*[2][self::m:mi]" # need a pause in "x sub k prime" so the prime is not associated with the 'k'
Expand All @@ -325,7 +325,7 @@
then_test:
if: "$Verbosity='Verbose'"
then: [T: "apice"] # phrase(a 'superscript' number indicates raised to a power)
else: [t: "super"] # phrase(this is a 'super' set of numbers)
else: [T: "sopra"] # phrase(this is a 'super' set of numbers)
- x: "*[3]"
- pause: short

Expand All @@ -351,7 +351,7 @@
- bookmark: "@id"
- test:
if: "$Verbosity='Terse'"
then: [T: "tan è il rapporto tra l"] # phrase(the 'tan' is the ratio of the opposite to the adjacent side of a right-angled triangle)
then: [T: "tan"] # phrase(the 'tan' is the ratio of the opposite to the adjacent side of a right-angled triangle)
else: [T: "tangente"] # phrase(a 'tangent' is a straight line that touches a curve)
- name: sec
tag: mi
Expand Down Expand Up @@ -433,7 +433,7 @@
- bookmark: "@id"
- test:
if: "$Verbosity='Terse'"
then: [T: "fcotangH"] # phrase('cotanch' is shorthand for hyperbolic cotangent)
then: [T: "cotanH"] # phrase('cotanch' is shorthand for hyperbolic cotangent)
else: [T: "cotangente iperbolica"] # phrase(the 'hyperbolic cotangent' is a mathematical function)
- name: exponential
tag: mi
Expand All @@ -442,7 +442,7 @@
- bookmark: "@id"
- test:
if: "$Verbosity='Terse'"
then: [T: "esp"] # phrase('exp' means exponential function)
then: [T: "exp"] # phrase('exp' means exponential function)
else: [T: "esponenziale"] # phrase('exponential' function)
- name: covariance
tag: mi
Expand Down Expand Up @@ -471,7 +471,7 @@
then: [T: "log"] # phrase(the 'log' function is used in mathematics)
- else_if: "$Verbosity='Terse'"
then: [spell: "'ln'"]
else: [T: "log naturale"] # phrase(the 'natural log' function is used in mathematics)
else: [T: "logaritmo naturale"] # phrase(the 'natural log' function is used in mathematics)
else:
- test:
if: "$Verbosity!='Terse' and not(log_is_simple)"
Expand All @@ -481,7 +481,7 @@
then: [T: "log"] # phrase(the 'log' function is used in mathematics)
- else_if: "$Verbosity='Terse'"
then: [spell: "'ln'"]
else: [t: "log natural"] # phrase(the 'natural log' function is used in mathematics)
else: [T: "logaritmo naturale"] # phrase(the 'natural log' function is used in mathematics)
- T: "di" # phrase(5 is the square root 'of' 25)
- pause: short
- x: "*[3]"
Expand All @@ -494,7 +494,7 @@
- test:
if: "$Verbosity!='Terse'"
then: [T: "la"] # phrase('the' square root of 25 equals 5)
- T: "base log" # phrase(the 'log base' is often base 10)
- T: "base del logaritmo" # phrase(the 'log base' is often base 10)
- x: "*[1]"

- name: log-base-power
Expand All @@ -505,7 +505,7 @@
- test:
if: "$Verbosity!='Terse'"
then: [T: "la"] # phrase('the' square root of 25 equals 5)
- T: "log base" # phrase(the 'log base' is often base 10)
- T: "base del logaritmo" # phrase(the 'log base' is often base 10)
- x: "*[1]"
- pause: medium
- test:
Expand All @@ -516,7 +516,7 @@
else: # don't bother with special cases as this isn't likely to happen
- T: "elevato alla" # phrase(x 'raised to the' second power)
- x: "*[2]"
- T: "potenza" # phrase(x raised to the second 'power')
- T: "potenza" # phrase(x raised to the second 'power')
- pause: short

- name: multi-line
Expand Down Expand Up @@ -627,7 +627,7 @@
- T: "per 1 colonna" # phrase(the 2 'by 1 column' matrix)
- test:
if: "$ClearSpeak_Matrix = 'Vector' or $ClearSpeak_Matrix = 'EndVector'"
then: [T: "vettoriale"] # phrase(the 2 by 2 'vector')
then: [T: "vettore"] # phrase(the 2 by 2 'vector')
else: [T: "matrice"] # phrase(the 2 by 2 'matrix')
- pause: long
- x: "*/*"
Expand All @@ -645,7 +645,7 @@
variables: [IsColumnSilent: true()]
match: "*[self::m:mtr][count(*) = 1]"
replace:
- T: "the" # phrase('the' 2 by 2 matrix M)
- T: "la" # phrase('the' 2 by 2 matrix M)
- x: "count(*)"
- T: "per 1 colonna" # phrase(the 2 'by 1 column' matrix)
- test:
Expand All @@ -667,13 +667,13 @@
- count(*[1]/*)<=3 and # at least two cols
- IsNode(*/*/*,'simple') # IsNode() returns true if all the nodes are simple
replace:
- T: "la matrice 1 di" # phrase('the 1 by' 2 matrix)
- T: "1 per" # phrase('the 1 by' 2 matrix)
- x: count(*/*)
- T: "righe" # phrase(the 1 by 4 'row' matrix)
- test:
if: "$ClearSpeak_Matrix = 'Vector' or $ClearSpeak_Matrix = 'EndVector'"
then: [T: "il 1 per"] # phrase('the 1 by' 2 row 'vector')
else: [T: "la 1 per"] # phrase('the 1 by' 2 'matrix')
then: [T: "il vettore 1 per"] # phrase('the 1 by' 2 row 'vector')
else: [T: "la matrice 1 per"] # phrase('the 1 by' 2 'matrix')
- pause: long
- x: "*/*"
- test:
Expand All @@ -683,7 +683,7 @@
- test:
if: $ClearSpeak_Matrix = 'EndMatrix'
then: [T: "matrice"] # phrase(the 2 by 2 'matrix')
else: [T: "vettoriale"] # phrase(the 2 by 1 'vector')
else: [T: "vettore"] # phrase(the 2 by 1 'vector')

- name: default-row-matrix
tag: matrix
Expand Down Expand Up @@ -743,7 +743,7 @@
replace:
- T: "la" # phrase('the' 1 by 2 matrix M)
- x: "count(*)"
- T: "di" # phrase(the 1 'by' 2 matrix)
- T: "per" # phrase(the 1 'by' 2 matrix)
- x: "count(*[self::m:mtr][1]/*)"
- test:
if: "self::m:determinant"
Expand Down Expand Up @@ -984,9 +984,9 @@
- if: ".='s'"
then: [T: "solido"] # phrase(Boron is a 'solid' in its natural state)
- else_if: ".='l'"
then: [T: "acqua è un "] # phrase(water is a 'liquid')
then: [T: "liquido"] # phrase(water is a 'liquid')
- else_if: ".='g'"
then: [T: "idrogeno è un "] # phrase(hydrogen is a 'gas' )
then: [T: "gas"] # phrase(hydrogen is a 'gas' )
else: [T: "acquosa"] # phrase(an 'aqueous' solution is contained in water)
- pause: short

Expand Down Expand Up @@ -1024,7 +1024,7 @@
then_test:
if: "$Verbosity='Terse'"
then: [T: "forma"] # phrase(hydrogen and oxygen 'forms' water )
else: [T: "idrogeno e "] # phrase(hydrogen and oxygen 'reacts to form' water)
else: [T: "reagisce a formare"] # phrase(hydrogen and oxygen 'reacts to form' water)
- else_if: ".='⇌' or .='\u1f8d2'"
then: [T: "è in equilibrio con"] # phrase(a reactant 'is in equilibrium with' a product)
- else_if: ".='\u1f8d4'"
Expand Down
4 changes: 2 additions & 2 deletions Rules/Languages/it/SharedRules/linear-algebra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if: "$Verbosity='Verbose'"
then:
- T: "la" # phrase('the' square root of 25 equals 5)
- T: "trace" # phrase('trace' of a matrix)
- T: "traccia" # phrase('trace' of a matrix)
- test:
if: "$Verbosity!='Terse'"
then:
Expand Down Expand Up @@ -97,7 +97,7 @@
if: "$Verbosity='Verbose'"
then:
- T: "la" # phrase('the' square root of 25 equals 5)
- T: "l" # phrase('homomorphism' indicates similarity of form)
- T: "omomorfismo" # phrase('homomorphism' indicates similarity of form)
- test:
if: "$Verbosity!='Terse'"
then:
Expand Down
Loading