Browse Source

More details about rule implementation and caveats

master
Valdis Vitolins 8 years ago
parent
commit
fd30bdf026
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      docs/dictionary.md

+ 9
- 5
docs/dictionary.md View File

those two groups is used. those two groups is used.


`~` Letter in letter group means, that there can be no letter in this group `~` Letter in letter group means, that there can be no letter in this group
at the beginning or end of the word.
at the beginning or end of the word.
Beware of [issue #196](https://github.com/espeak-ng/espeak-ng/issues/196).


_For example:_ _For example:_


``` ```
_) a A // "a" at the start of a word _) a A // "a" at the start of a word
a (CC A // "a" followed by two consonants a (CC A // "a" followed by two consonants
a (C% A // "a" followed by a double consonant (the same letter twice)
a (C% A // "a" followed by a double consonant (the same letter twice) (befare of [bug #195](https://github.com/espeak-ng/espeak-ng/issues/195))
a (/% A // "a" followed by a percent sign a (/% A // "a" followed by a percent sign
%C) a A // "a" preceded by a double consonants %C) a A // "a" preceded by a double consonants
@@) bi bI // "bi" preceded by at least two syllables @@) bi bI // "bi" preceded by at least two syllables
|-------------|-------------| |-------------|-------------|
| `+` | Force an increase in the score in this rule by 20 points (may be repeated for more effect). | | `+` | Force an increase in the score in this rule by 20 points (may be repeated for more effect). |
| `<` | Force a decrease in the score in this rule by 20 points (may be repeated for more effect). | | `<` | Force a decrease in the score in this rule by 20 points (may be repeated for more effect). |
| `J_xxx` | Skip letters of current word till to the end, and check starting `xxx` letters for the next word. |
| `Jxxx` | (If `_` is set, skip letters of current word till to the end and) check starting `xxx` letters for the next word. |
| `S<number>` | This number of matching characters are a standard suffix, remove them and retranslate the word. | | `S<number>` | This number of matching characters are a standard suffix, remove them and retranslate the word. |
| `P<number>` | This number of matching characters are a standard prefix, remove them and retranslate the word. | | `P<number>` | This number of matching characters are a standard prefix, remove them and retranslate the word. |
| `Lnn` | `nn` is a 2-digit decimal number in the range 01 to 20 Matches with any of the letter sequences which have been defined for letter group `nn` | | `Lnn` | `nn` is a 2-digit decimal number in the range 01 to 20 Matches with any of the letter sequences which have been defined for letter group `nn` |


e.g. e.g.


_) un (i ju: // ... except in words starting "uni"
_) un (inP2 ,Vn // ... but it is for words starting "unin"
_) un (i ju: // ... except in words starting "uni"
_) un (inP2 ,Vn // ... but it is for words starting "unin"
a (J_get u // for `ada get` will say `uda get`
a (Jset e // for `ada set` will say `ade set`



`S` and `P` must be at the end of the \<post\> string. `S` and `P` must be at the end of the \<post\> string.



Loading…
Cancel
Save