[asterisk-bugs] [Asterisk 0015626]: [patch] Vietnamese support for SayNumber() function.
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Dec 30 16:30:25 CST 2009
The following issue has been ASSIGNED.
======================================================================
https://issues.asterisk.org/view.php?id=15626
======================================================================
Reported By: dinhtrung
Assigned To: qwell
======================================================================
Project: Asterisk
Issue ID: 15626
Category: Applications/NewFeature
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
Target Version: 1.8
Asterisk Version: SVN
JIRA: SWP-409
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-07-31 15:31 CDT
Last Modified: 2009-12-30 16:30 CST
======================================================================
Summary: [patch] Vietnamese support for SayNumber() function.
Description:
Hi, I have successfully add another function for Vietnamese : SayNumber().
There are some minor changes in the way we Vietnamese speak numbers.
For examples:
- 1050 = 1 + thousand + 0 + hundred + 50 (in English : 1 + thousand + 50).
I used the file 0-hundred.wav for this.
- 1007 = 1 + thousand + 0 + hundred + odd + 7 (the file odd.wav can have
another meaning, not only on the contrary with "even". We usually add "odd"
if the number has 2 "0" in the middle, like 2008, 3004... I used the file
0-hundred-odd.wav for this.
- For the last number, if it's a 5, then if the number before it is not a
0, we will use another word for it. E.g, 25 is not 20 + 5, but 20 + 5l. So
is 15, 35, 45, 55... But 05 is 5. So I add another sound file named 5l.wav
here to separate this.
I hope this will help Asterisk better support Vietnamese.
Sorry for my bad English.
======================================================================
----------------------------------------------------------------------
(0115870) svnbot (reporter) - 2009-12-30 16:30
https://issues.asterisk.org/view.php?id=15626#c115870
----------------------------------------------------------------------
Repository: asterisk
Revision: 237050
U trunk/apps/app_voicemail.c
A trunk/doc/lang/vietnamese.ods
U trunk/main/say.c
------------------------------------------------------------------------
r237050 | qwell | 2009-12-30 16:30:22 -0600 (Wed, 30 Dec 2009) | 17 lines
Add app_voicemail and say.c support for Vietnamese.
Also add an XXX comment that I'm baffled nobody has ever complained about.
We
say "first message", and then we go into language-specific stuff where we
proceed to say..."first message".
(closes issue https://issues.asterisk.org/view.php?id=15053)
Reported by: dinhtrung
Patches:
vietnamese.ods uploaded by dinhtrung (license 776)
app_voicemail.c.diff uploaded by dinhtrung (license 776)
(closes issue https://issues.asterisk.org/view.php?id=15626)
Reported by: dinhtrung
Patches:
say.c.diff uploaded by dinhtrung (license 776)
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=237050
Issue History
Date Modified Username Field Change
======================================================================
2009-12-30 16:30 svnbot Checkin
2009-12-30 16:30 svnbot Note Added: 0115870
2009-12-30 16:30 svnbot Status ready for testing =>
assigned
======================================================================
More information about the asterisk-bugs
mailing list