Support matching any length strings in the replacement rules.

This commit is contained in:
Reece H. Dunn
2018-07-24 22:32:39 +01:00
parent 98e9122dfc
commit 86bbc257b0
3 changed files with 22 additions and 10 deletions
+5 -5
View File
@@ -509,11 +509,11 @@ 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
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.:
at the start of the `*_rules` file. In each line multiple _source_ characters
can be replaced by one or two characters. 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.:
.replace
ô   ő   // (Hungarian) allow the use of o-circumflex instead of o-double-accute