Sonnet
Go to the documentation of this file.
26 #include <QtCore/QTextCodec>
28 using namespace Sonnet;
33 int int_error = hspell_init( &m_speller, HSPELL_OPT_DEFAULT );
34 if ( int_error == -1 ) {
35 kDebug() <<
"HSpellDict::HSpellDict: Init failed";
37 codec = QTextCodec::codecForName(
"iso8859-8-i" );
48 hspell_uninit( m_speller );
53 kDebug() <<
"HSpellDict::check word = " << word;
55 QByteArray wordISO = codec->fromUnicode( word );
57 int correct = hspell_check_word ( m_speller,
63 if( hspell_is_canonic_gimatria( wordISO ) != 0 )
75 hspell_trycorrect( m_speller, codec->fromUnicode( word ), &cl );
76 for( n_sugg = 0; n_sugg < corlist_n( &cl ); n_sugg++){
77 qsug.append( codec->toUnicode( corlist_str( &cl, n_sugg) ) );
87 kDebug() <<
"HSpellDict::storeReplacement: Sorry, cannot.";
94 kDebug() <<
"HSpellDict::addToPersonal: Sorry, cannot.";
101 kDebug() <<
"HSpellDict::addToSession: Sorry, cannot.";
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:18:57 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.