mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-07 15:24:02 +00:00
[1.48.02]
Don't speak single letters as Roman Numbers (this is a fix needed for lang=pt). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@373 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-1
@@ -1,5 +1,5 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005 to 2013 by Jonathan Duddington *
|
||||
* Copyright (C) 2005 to 2014 by Jonathan Duddington *
|
||||
* email: jonsd@users.sourceforge.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
@@ -1167,6 +1167,9 @@ int TranslateRoman(Translator *tr, char *word, char *ph_out, WORD_TAB *wtab)
|
||||
if(((tr->langopts.numbers & NUM_ROMAN_CAPITALS) && !(wtab[0].flags & FLAG_ALL_UPPER)) || IsDigit09(word[-2]))
|
||||
return(0); // not '2xx'
|
||||
|
||||
if(word[1] == ' ')
|
||||
return(0); // only one letter, don't speak as a Roman Number
|
||||
|
||||
word_start = word;
|
||||
while((c = *word++) != ' ')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user