Part of issue #199 — extend .replace rule to allow using groups of characters

This commit is contained in:
Valdis Vitolins
2018-07-09 20:27:51 +03:00
parent 52767d9c03
commit 9f0667de86
4 changed files with 199 additions and 23 deletions
+3 -3
View File
@@ -509,9 +509,9 @@ each language. The number fragments are given in the `*_list` file.
## Character Substitution
Character substitutions can be specified by using a `.replace` section
at the start of the `*_rules` file. In each line one character can be
replaced by one or two characters. (Source and target of replacement can consume
up to four bytes.) This substitution is done to a word _before_ word is searched
at the start of the `*_rules` file. In each line several characters can be
replaced by several other characters. (Source and target of replacement can consume
up to 40 bytes.) This substitution is done to a word _before_ word is searched
in `*_list` or `*_listx` file and translated using the spelling-to-phoneme rules.
Only the lower-case version of the characters needs to be specified. e.g.: