[asterisk-dev] Re: trunk r26527 - /trunk/configs/say.conf.sample

Tony Mountifield tony at softins.clara.co.uk
Thu May 11 02:54:58 MST 2006


I think a couple of extra lines might be needed in the German
number syntax, and a couple of supporting changes. See below:

In article <20060510153037.C31DDA92B78 at abita.digium.internal>,
 <svn-commits at lists.digium.com> wrote:
> Author: rizzo
> Date: Wed May 10 10:30:37 2006
> New Revision: 26527
> 
> URL: http://svn.digium.com/view/asterisk?rev=26527&view=rev
> Log:
> german syntax for numbers from christian richter
> 
> 
> Modified:
>     trunk/configs/say.conf.sample
> 
> Modified: trunk/configs/say.conf.sample
> URL:
> http://svn.digium.com/view/asterisk/trunk/configs/say.conf.sample?rev=26527&r1=26526&r2=26527&view=diff
> ==============================================================================
> --- trunk/configs/say.conf.sample (original)
> +++ trunk/configs/say.conf.sample Wed May 10 10:30:37 2006
> @@ -27,7 +27,7 @@
>  ;
>  ; Processing occurs as follows:
>  ; If the format is empty, or there is no format, the entire
> -; string is matched agains one of the pattern on the left hand side.
> +; string is matched against one of the pattern on the left hand side.
>  ; On the first match, the various comma-separated components on the right
>  ; hand side are pronounced, as follows:
>  ; + a component starting with a prefix: (i.e. with a ':' in it)
> @@ -148,3 +148,24 @@
>      _time::. => date:IMp:${SAY}
>  
>  
> +[de](date-base,digit-base)
> +    _[n]um:0. => num:${SAY:1}
> +    _[n]um:X => digits/${SAY}
> +    _[n]um:1X => digits/${SAY}
> +    _[n]um:[2-9]0 => digits/${SAY}
> +    _[n]um:[2-9][2-9] => digits/${SAY:1}-and, digits/${SAY:0:1}0
> +    _[n]um:1XX => digits/ein, digits/hundred, num:${SAY:1}
> +    _[n]um:[2-9]XX => digits/${SAY:0:1}, digits/hundred, num:${SAY:1}
> +    _[n]um:1XXX => digits/ein, digits/thousand, num:${SAY:1}
> +    _[n]um:[2-9]XXX => digits/${SAY:0:1}, digits/thousand, num:${SAY:1}
> +    _[n]um:XXXXX => num:${SAY:0:2}, digits/thousand, num:${SAY:2}

Add these?
+    _[n]um:100XXX => digits/ein, digits/hundred, digits/thousand, num:${SAY:3}
+    _[n]um:1XXXXX => digits/ein, digits/hundred, num:${SAY:1}

And change these:
> +    _[n]um:X00XXX => digits/${SAY:0:1}, digits/hundred, digits/thousand, num:${SAY:3}
> +    _[n]um:XXXXXX => digits/${SAY:0:1}, digits/hundred, num:${SAY:1}

To this?
+    _[n]um:[2-9]00XXX => digits/${SAY:0:1}, digits/hundred, digits/thousand, num:${SAY:3}
+    _[n]um:[2-9]XXXXX => digits/${SAY:0:1}, digits/hundred, num:${SAY:1}

> +    _[n]um:1XXXXXX => digits/eine, digits/million, num:${SAY:1}
> +    _[n]um:[2-9]XXXXXX => digits/${SAY:0:1}, digits/millions, num:${SAY:1}
> +    _[n]um:XXXXXXXX => num:${SAY:0:1}, digits/millions, num:${SAY:2}
> +
> +    _datetime::. => date:AdBY 'digits/at' IMp:${SAY}
> +    _date::. => date:AdBY:${SAY}
> +    _time::. => date:IMp:${SAY}
> +
> 

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list