mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-23 12:05:47 +00:00
Support matching any length strings in the replacement rules.
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user