* Proposal to fix #4831 * Next fix for #4831 * Initiate some CZ docs * Some more structure, still a workframe * My attempt to help with #4831 * Update tts_doc_cz.md * copy/paste error * Update tts_doc_cz.md * missed one number/qr.quot * Cosmetics * Consistency in parameters order * Nearly complete doc * Cosmetics to facilitate coding for non CZ devs * Fix integer+unit, cosmetics * Update tts_doc Radians and Mililiters are Male gender * Radian and Millimeter are Male (so i've been told) * Cosmetics * Invers pushUnitPrompt parameters as per bsongis request
This commit is contained in:
@@ -52,12 +52,12 @@ enum SwedishPrompts {
|
||||
#if defined(VOICE)
|
||||
|
||||
#if defined(CPUARM)
|
||||
#define SE_PUSH_UNIT_PROMPT(p, u) se_pushUnitPrompt((p), (u), id)
|
||||
#define SE_PUSH_UNIT_PROMPT(u, p) se_pushUnitPrompt((u), (p), id)
|
||||
#else
|
||||
#define SE_PUSH_UNIT_PROMPT(p, u) pushUnitPrompt((p), (u))
|
||||
#define SE_PUSH_UNIT_PROMPT(u, p) pushUnitPrompt((u), (p))
|
||||
#endif
|
||||
|
||||
I18N_PLAY_FUNCTION(se, pushUnitPrompt, int16_t number, uint8_t unitprompt)
|
||||
I18N_PLAY_FUNCTION(se, pushUnitPrompt, uint8_t unitprompt, int16_t number)
|
||||
{
|
||||
#if defined(CPUARM)
|
||||
if (number == 1)
|
||||
@@ -115,9 +115,9 @@ I18N_PLAY_FUNCTION(se, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
||||
number = qr.quot;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int16_t tmpNumber = number;
|
||||
|
||||
|
||||
if (number >= 1000) {
|
||||
PLAY_NUMBER(number / 1000, 0, 0);
|
||||
PUSH_NUMBER_PROMPT(SE_PROMPT_THOUSAND);
|
||||
@@ -134,9 +134,9 @@ I18N_PLAY_FUNCTION(se, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
||||
if (number >= 0) {
|
||||
PUSH_NUMBER_PROMPT(SE_PROMPT_ZERO + number);
|
||||
}
|
||||
|
||||
|
||||
if (unit) {
|
||||
SE_PUSH_UNIT_PROMPT(tmpNumber, unit);
|
||||
SE_PUSH_UNIT_PROMPT(unit, tmpNumber);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user