From ea354c06fe6058295944bc97412b1a5da6f38046 Mon Sep 17 00:00:00 2001 From: Valdis Vitolins Date: Fri, 29 Dec 2017 12:31:06 +0200 Subject: [PATCH] doc: updated description about tr_languages.c file --- docs/add_language.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/add_language.md b/docs/add_language.md index f0c2fb47..a72adf0d 100644 --- a/docs/add_language.md +++ b/docs/add_language.md @@ -270,14 +270,12 @@ such as: * Default rules for which syllable of a word has the main stress. * Relative lengths and amplitude of vowels in stressed and unstressed syllables. * Which intonation tunes to use. -* Rules for speaking numbers. +* Rules for speaking numbers. -The function `SetTranslator()` at the start of the source code file -`tr_languages.c` recognizes the language code and sets the appropriate -options. For a new language, you would add its language code and the -required options in `SetTranslator()`. However, this may not be necessary -during testing because most of the options can also be set in the voice -file in espeak-ng-data/lang (see [Voices](voices.md)). +Most of these options can be set in the voice file in espeak-ng-data/lang folder (see [Voices](voices.md)). +However some advanced options may be needed to add in source code in the function `SelectTranslator()` +of thee [tr_languages.c](https://github.com/espeak-ng/espeak-ng/blob/master/src/libespeak-ng/tr_languages.c) +file. ## Compiling Rules File for Debugging