summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/hadifix
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/plugins/hadifix')
-rw-r--r--kttsd/plugins/hadifix/SSMLtoTxt2pho.xsl2
-rw-r--r--kttsd/plugins/hadifix/hadifixconfigui.ui.h8
-rw-r--r--kttsd/plugins/hadifix/hadifixproc.cpp4
-rw-r--r--kttsd/plugins/hadifix/initialconfig.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/kttsd/plugins/hadifix/SSMLtoTxt2pho.xsl b/kttsd/plugins/hadifix/SSMLtoTxt2pho.xsl
index afa9b43..5a81c8f 100644
--- a/kttsd/plugins/hadifix/SSMLtoTxt2pho.xsl
+++ b/kttsd/plugins/hadifix/SSMLtoTxt2pho.xsl
@@ -113,7 +113,7 @@
</xsl:variable>
<!-- Look for first period and space and extract corresponding substring from original. -->
<xsl:choose>
- <xsl:when test="tqcontains($tmp, '. ')">
+ <xsl:when test="contains($tmp, '. ')">
<xsl:value-of select="substring($paragraph, 1, string-length(substring-before($tmp, '. '))+2)"/>
</xsl:when>
<xsl:otherwise>
diff --git a/kttsd/plugins/hadifix/hadifixconfigui.ui.h b/kttsd/plugins/hadifix/hadifixconfigui.ui.h
index cc6632c..ff9d381 100644
--- a/kttsd/plugins/hadifix/hadifixconfigui.ui.h
+++ b/kttsd/plugins/hadifix/hadifixconfigui.ui.h
@@ -53,14 +53,14 @@ void HadifixConfigUI::init () {
void HadifixConfigUI::addVoice (const TQString &filename, bool isMale) {
if (isMale) {
- if (!maleVoices.tqcontains(filename)) {
+ if (!maleVoices.contains(filename)) {
int id = voiceCombo->count();
maleVoices.insert (filename, id);
voiceCombo->insertItem (male, filename, id);
}
}
else {
- if (!femaleVoices.tqcontains(filename)) {
+ if (!femaleVoices.contains(filename)) {
int id = voiceCombo->count();
femaleVoices.insert (filename, id);
voiceCombo->insertItem (female, filename, id);
@@ -93,7 +93,7 @@ TQString HadifixConfigUI::getVoiceFilename() {
int curr = voiceCombo->currentItem();
TQString filename = voiceCombo->text(curr);
- if (defaultVoices.tqcontains(curr))
+ if (defaultVoices.contains(curr))
filename = defaultVoices[curr];
return filename;
@@ -103,7 +103,7 @@ bool HadifixConfigUI::isMaleVoice() {
int curr = voiceCombo->currentItem();
TQString filename = getVoiceFilename();
- if (maleVoices.tqcontains(filename))
+ if (maleVoices.contains(filename))
return maleVoices[filename] == curr;
else
return false;
diff --git a/kttsd/plugins/hadifix/hadifixproc.cpp b/kttsd/plugins/hadifix/hadifixproc.cpp
index 3e4b4ee..ad2cf21 100644
--- a/kttsd/plugins/hadifix/hadifixproc.cpp
+++ b/kttsd/plugins/hadifix/hadifixproc.cpp
@@ -377,9 +377,9 @@ HadifixProc::VoiceGender HadifixProc::determineGender(TQString mbrola, TQString
else {
if (output != 0)
*output = speech.stdOut;
- if (speech.stdOut.tqcontains("female", false))
+ if (speech.stdOut.contains("female", false))
result = FemaleGender;
- else if (speech.stdOut.tqcontains("male", false))
+ else if (speech.stdOut.contains("male", false))
result = MaleGender;
else
result = NoGender;
diff --git a/kttsd/plugins/hadifix/initialconfig.h b/kttsd/plugins/hadifix/initialconfig.h
index 62ff659..1db8eb2 100644
--- a/kttsd/plugins/hadifix/initialconfig.h
+++ b/kttsd/plugins/hadifix/initialconfig.h
@@ -100,7 +100,7 @@ TQStringList findVoices(TQString mbrolaExec, const TQString &hadifixDataPath) {
// 2b) search near the hadifix data path
info.setFile(hadifixDataPath + "../../mbrola");
TQString mbrolaPath = info.dirPath (true) + "/mbrola";
- if (!list.tqcontains(mbrolaPath))
+ if (!list.contains(mbrolaPath))
list += mbrolaPath;
// 2c) broaden the search by adding subdirs (with a depth of 2)