cainteoir-engine
cainteoir-engine copied to clipboard
Make number parsing locale aware
At the moment tts/context_analysis.cpp
only handles numbers of the form nnnnn
. That is, it does not handle numbers of the form:
`n,nnn,nnn` -- e.g. US numbers
`n nnn nnn` -- e.g. Swedish numbers
`n.nnn.nnn` -- e.g. German numbers
This should really be handled in tts/text_reader.cpp
which should be passed a "digit separator" character. Doing it this way allows tts/text_reader.cpp
to produce a single number
token.
This should be done based on the associated document language.