summaryrefslogtreecommitdiffstats
path: root/lib/kotext/kohyphen/kohyphentest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/kohyphen/kohyphentest.cpp')
-rw-r--r--lib/kotext/kohyphen/kohyphentest.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/kotext/kohyphen/kohyphentest.cpp b/lib/kotext/kohyphen/kohyphentest.cpp
index 0f083631e..5a0d3ac0e 100644
--- a/lib/kotext/kohyphen/kohyphentest.cpp
+++ b/lib/kotext/kohyphen/kohyphentest.cpp
@@ -6,6 +6,7 @@
#include <tqstringlist.h>
#include <tdeapplication.h>
+#include <tdecmdlineargs.h>
#include "kohyphen.h"
#include <kdebug.h>
@@ -40,7 +41,8 @@ void check_hyphenation( const TQStringList& tests, const TQStringList& results,
int main (int argc, char ** argv)
{
- TDEApplication app(argc, argv, "KoHyphenator test");
+ TDECmdLineArgs::init(argc, argv, "kohyphentest", "KoHyphenator test", 0, 0, true);
+ TDEApplication app;
try {
hypher = KoHyphenator::self();
@@ -54,8 +56,12 @@ int main (int argc, char ** argv)
TQStringList::ConstIterator it, itres;
//testing Czech language, this text is in UTF-8!
- TQStringList cs_tests = TQStringList() << "Žluťoučký" << "kůň" << "úpěl" <<
- "ďábelské" << "ódy";
+ TQStringList cs_tests;
+ cs_tests << TQString::fromLocal8Bit("Žluťoučký")
+ << TQString::fromLocal8Bit("kůň")
+ << TQString::fromLocal8Bit("úpěl")
+ << TQString::fromLocal8Bit("ďábelské")
+ << TQString::fromLocal8Bit("ódy");
for ( it = cs_tests.begin(); it != cs_tests.end() ; ++it )
kdDebug() << (*it) << " hyphenates like this: " << hypher->hyphenate((*it), "cs") << endl;