[PATCH] emacspeak: exclude '[' from the Dectalk command
Dmitri Paduchikh
dpaduchikh на gmail.com
Вс Фев 24 10:10:02 MSK 2013
---
emacspeak/LineParser.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/emacspeak/LineParser.cpp b/emacspeak/LineParser.cpp
index b45d27a..be1ed4d 100644
--- a/emacspeak/LineParser.cpp
+++ b/emacspeak/LineParser.cpp
@@ -120,11 +120,13 @@ void LineParser::q(const std::string& s)
addItem(TextItem(z, pitch, m_rate, m_volume));
if (i < s.length() && s[i] == '[')
{
+ // We have Dectalk control sequence
z.erase();
+ i++; // skip '['
while(i < s.length() && s[i] != ']')
z += s[i++];
processDectalkCommand(z, pitch);
- i++;
+ i++; // skip ']'
} //dectalk commands processing;
} //while(s[i]);
}
--
1.8.1.4
Подробная информация о списке рассылки Homeros