Voicefile: remove < and > from voice strings before speaking.
commit51f1fcbe26c91e1b2b40552827ea582def80d04f
authorDominik Riebeling <Dominik.Riebeling@gmail.com>
Thu, 26 Apr 2012 18:42:18 +0000 (26 20:42 +0200)
committerDominik Riebeling <Dominik.Riebeling@gmail.com>
Thu, 26 Apr 2012 19:19:56 +0000 (26 21:19 +0200)
tree8fecf90c21fd6a61fbaf51aae756a1f2cb129087
parentab01d5d8c29fb7f7163245a096e98e57bfe3e445
Voicefile: remove < and > from voice strings before speaking.

Some language files have the < and > characters the original string (like "<All
tracks>") has included in the voice strings. These characters cause the
generated wave file to not contain any samples with SAPI, causing an error when
Rockbox Utility tries to encode the file.

Since those characters don't make much sense in the voice string remove them
prior to speaking. Currently affected languages are basque, chinese-simp, and
russian, for which this fixes voicefile creation.

Change-Id: Iac7ccd7921ccfb5ddc33645239a1f8f7e639e5aa
rbutil/rbutilqt/base/voicefile.cpp