229
edits
Line 97: | Line 97: | ||
* etc, etc. | * etc, etc. | ||
= Phraseology customization = | |||
You can customize the phraseology by editing the "''phraseology.xml''" file.<br /> | You can customize the phraseology by editing the "''phraseology.xml''" file.<br /> | ||
There you can find groups of tags like: | There you can find groups of tags like: | ||
Line 108: | Line 108: | ||
. . . . </syntaxhighlight> | . . . . </syntaxhighlight> | ||
which will be read as a single sentence (''"Hello world. It is a good day to fly. "'').</br> | which will be read as a single sentence (''"Hello world. It is a good day to fly. "'').</br> | ||
=== Literals === | |||
Those in the example above are literal sentences that you can change by the strings you want. | Those in the example above are literal sentences that you can change by the strings you want. | ||
{{note | | {{note | | ||
* You should not include either " or ' . | * You should not include either " or ' . | ||
* Punctuation is meaningfull. }} | * Punctuation is meaningfull. }} | ||
=== Substitutions === | |||
Strings starting by '''%''' will call some '''property value'''. | Strings starting by '''%''' will call some '''property value'''. | ||
In the example above replace "'''day'''" by "'''% /sim/startup/time-offset-type'''". </br> | In the example above replace "'''day'''" by "'''% /sim/startup/time-offset-type'''". </br> | ||
Line 119: | Line 119: | ||
{{note | | {{note | | ||
* The called property must be a string.}} | * The called property must be a string.}} | ||
=== Concatenation === | |||
Strings starting by '''~''' will append the sentence with another one.</br> | Strings starting by '''~''' will append the sentence with another one.</br> | ||
Try this: | Try this: | ||
Line 131: | Line 131: | ||
. . . . </syntaxhighlight>when calling ''foo'' you should hear ''"Have a nice fly, <your-callsign> , "'' </br> | . . . . </syntaxhighlight>when calling ''foo'' you should hear ''"Have a nice fly, <your-callsign> , "'' </br> | ||
=== Word Replacement === | |||
If you find that the word ''Wind'' is not pronounced clearly, you can change it by ''Winnded'' or similar to increase its intelligibility..</br> | If you find that the word ''Wind'' is not pronounced clearly, you can change it by ''Winnded'' or similar to increase its intelligibility..</br> | ||
Better? Fine, but what about the message on the screen? | Better? Fine, but what about the message on the screen? | ||
Line 142: | Line 142: | ||
Besides that, you can call the ''spoken_atc.say()'' function at runtime to check your customization.<br /> | Besides that, you can call the ''spoken_atc.say()'' function at runtime to check your customization.<br /> | ||
=== spoken_atc.say() function === | |||
You can ... [TODO] | You can ... [TODO] | ||
edits