New language option lowercaseSentence

When set in a language file, a period followed by a lower case letter is
detected as end of sentence. Normal behavior is to require a capital
letter.
This commit is contained in:
Juho Hiltunen
2021-04-05 19:29:18 +03:00
parent dbaf6d4012
commit c4740b3053
10 changed files with 59 additions and 2 deletions
+11
View File
@@ -26,6 +26,7 @@
- [phonemes](#phonemes)
- [dictionary](#dictionary)
- [dictrules](#dictrules)
- [lowercaseSentence](#lowercaseSentence)
- [replace](#replace)
- [stressRule](#stressrule)
- [stressLength](#stresslength)
@@ -385,6 +386,16 @@ language dictionary. They apply to rules in the language's `*_rules`
dictionary file and also its `*_list` exceptions list. See
[Text to Phoneme Translation](dictionary.md#conditional-rules).
### lowercaseSentence
lowercaseSentence <no arguments>
By default, a sentence end is detected if a period `.` is followed by an uppercase letter.
When lowercaseSentence is set, a period followed by a lowercase letter is also handled as end of sentence.
Note that other conditions, such as abbreviations, might override this setting.
### replace
replace <flags> <phoneme> <replacement phoneme>