Next: ``SPEAKER''
Up: ``sable-elements''
Previous: ``SABLE''
  Contents
The language-tag now works with german and english. Speakers of another
language may easily be added.
Possible values
- for spanish are:
- for english are:
- for german are:
whereas ``sable_init_func'', ``set_ttw_functions'' and
``restore_ttw_functions'' have to be adjusted for the spanish
language.
Just a few things to be done to add other languages (see speaker-tag):
- ``init-function'':
- another branch has to be added to the cond-statement equivalent
to the ``german-branch''
- in ``sable_init_globals'', another branch has to be added to
the cond-statement equivalent to the ``german-branch''
- ``restore_ttw_functions'':
- another branch has to be added to the cond-statement
equivalent to the ``german-branch''
- ``set_ttw_functions'':
- another branch has to be added to the cond-statement
equivalent to the ``german-branch''
How the language-tag works:
- opening of the language-tag:
- xxml_synth
- current language is pushed on the sable_language_stack
- set back token_to_words-function of current language (at the
moment only distinguished between german and non-german) using
``restore_ttw_functions''
- selection of the new language
- set token_to_words on sable_token_to_words because this is
overwritten in the setting of english voices
- set german_token_to_words on sable_token_to_words (after saving
german_token_to_words in sable_previous_token_to_words) if language
of chosen voice is german
using ``set_ttw_functions''
set english_token_to_words on sable_token_to_words (after saving
english_token_to_words in sable_previous_token_to_words) if language
of chosen voice is not german
using ``set_ttw_functions''
- sable_setup_voice_params
- closing of the language-tag:
- xxml_synth
- set back token_to_words-function of current language (at the
moment only distinguished between german and non-german) using
``restore_ttw_functions''
- pop last language from stack
- evaluate current speaker
- set token_to_words on sable_token_to_words because this is
overwritten in the setting of english voices
- set german_token_to_words on sable_token_to_words (after saving
german_token_to_words in sable_previous_token_to_words) if current
language is german
using ``set_ttw_functions''
set english_token_to_words on sable_token_to_words (after saving
english_token_to_words in sable_previous_token_to_words) if current
language is not german
using ``set_ttw_functions''
Next: ``SPEAKER''
Up: ``sable-elements''
Previous: ``SABLE''
  Contents
Gregor Moehler
2001-07-17