Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291031 Details for
Bug 427824
Review Request: tmispell-voikko - An Ispell compatible front-end for spell-checking modules
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to support Voikko (tmispell) in legacy KSpell
kdelibs-3.5.8-kspell-tmispell.patch (text/plain), 5.54 KB, created by
Kevin Kofler
on 2008-01-08 02:32:00 UTC
(
hide
)
Description:
Patch to support Voikko (tmispell) in legacy KSpell
Filename:
MIME Type:
Creator:
Kevin Kofler
Created:
2008-01-08 02:32:00 UTC
Size:
5.54 KB
patch
obsolete
>diff -ur kdelibs-3.5.8-kspell-hunspell/kdeui/ksconfig.cpp kdelibs-3.5.8-kspell-tmispell/kdeui/ksconfig.cpp >--- kdelibs-3.5.8-kspell-hunspell/kdeui/ksconfig.cpp 2007-12-22 01:45:47.000000000 +0100 >+++ kdelibs-3.5.8-kspell-tmispell/kdeui/ksconfig.cpp 2008-01-08 03:10:31.000000000 +0100 >@@ -1,7 +1,7 @@ > /* This file is part of the KDE libraries > Copyright (C) 1997 David Sweet <dsweet@kde.org> > Copyright (C) 2000-2001 Wolfram Diestel <wolfram@steloj.de> >- Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> >+ Copyright (C) 2007-2008 Kevin Kofler <Kevin@tigcc.ticalc.org> > > This library is free software; you can redistribute it and/or > modify it under the terms of the GNU Library General Public >@@ -151,6 +151,7 @@ > clientcombo->insertItem( i18n("Hspell") ); > clientcombo->insertItem( i18n("Zemberek") ); > clientcombo->insertItem( i18n("Hunspell") ); >+ clientcombo->insertItem( i18n("Voikko") ); > connect( clientcombo, SIGNAL (activated(int)), this, > SLOT (sChangeClient(int)) ); > glay->addMultiCellWidget( clientcombo, 4, 4, 1, 2 ); >@@ -241,6 +242,11 @@ > dictcombo->clear(); > dictcombo->insertItem( i18n("Turkish") ); > sChangeEncoding( KS_E_UTF8 ); >+ } else if ( iclient == KS_CLIENT_VOIKKO ) { >+ langfnames.clear(); >+ dictcombo->clear(); >+ dictcombo->insertItem( i18n("Finnish") ); >+ sChangeEncoding( KS_E_UTF8 ); > } > else if ( iclient == KS_CLIENT_ASPELL ) > getAvailDictsAspell(); >@@ -402,6 +408,11 @@ > dictcombo->clear(); > langfnames.append(""); > dictcombo->insertItem( i18n("Turkish") ); >+ } else if ( iclient == KS_CLIENT_VOIKKO ) { >+ langfnames.clear(); >+ dictcombo->clear(); >+ langfnames.append(""); >+ dictcombo->insertItem( i18n("Finnish") ); > } > else if ( iclient == KS_CLIENT_ASPELL ) > getAvailDictsAspell(); >@@ -723,6 +734,11 @@ > box->insertItem( i18n("Turkish") ); > langfnames.append(""); > sChangeEncoding( KS_E_UTF8 ); >+ } else if ( iclient == KS_CLIENT_VOIKKO ) { >+ box->clear(); >+ box->insertItem( i18n("Finnish") ); >+ langfnames.append(""); >+ sChangeEncoding( KS_E_UTF8 ); > } else if ( iclient == KS_CLIENT_ASPELL ) { > box->clear(); > langfnames.append(""); // Default >diff -ur kdelibs-3.5.8-kspell-hunspell/kdeui/ksconfig.h kdelibs-3.5.8-kspell-tmispell/kdeui/ksconfig.h >--- kdelibs-3.5.8-kspell-hunspell/kdeui/ksconfig.h 2007-12-22 01:35:25.000000000 +0100 >+++ kdelibs-3.5.8-kspell-tmispell/kdeui/ksconfig.h 2008-01-08 03:10:27.000000000 +0100 >@@ -1,6 +1,6 @@ > /* This file is part of the KDE libraries > Copyright (C) 1997 David Sweet <dsweet@kde.org> >- Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> >+ Copyright (C) 2007-2008 Kevin Kofler <Kevin@tigcc.ticalc.org> > > This library is free software; you can redistribute it and/or > modify it under the terms of the GNU Library General Public >@@ -63,7 +63,8 @@ > KS_CLIENT_ASPELL=1, > KS_CLIENT_HSPELL=2, > KS_CLIENT_ZEMBEREK=3, >- KS_CLIENT_HUNSPELL=4 >+ KS_CLIENT_HUNSPELL=4, >+ KS_CLIENT_VOIKKO=5 > }; > > /** >diff -ur kdelibs-3.5.8-kspell-hunspell/kdeui/kspell.cpp kdelibs-3.5.8-kspell-tmispell/kdeui/kspell.cpp >--- kdelibs-3.5.8-kspell-hunspell/kdeui/kspell.cpp 2007-12-22 02:26:29.000000000 +0100 >+++ kdelibs-3.5.8-kspell-tmispell/kdeui/kspell.cpp 2008-01-08 03:19:35.000000000 +0100 >@@ -2,7 +2,7 @@ > Copyright (C) 1997 David Sweet <dsweet@kde.org> > Copyright (C) 2000-2001 Wolfram Diestel <wolfram@steloj.de> > Copyright (C) 2003 Zack Rusin <zack@kde.org> >- Copyright (C) 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> >+ Copyright (C) 2007-2008 Kevin Kofler <Kevin@tigcc.ticalc.org> > > This library is free software; you can redistribute it and/or > modify it under the terms of the GNU Library General Public >@@ -186,10 +186,14 @@ > *proc << "hunspell"; > kdDebug(750) << "Using hunspell" << endl; > break; >+ case KS_CLIENT_VOIKKO: >+ *proc << "tmispell"; >+ kdDebug(750) << "Using voikko(tmispell)" << endl; >+ break; > } > > // Hunspell doesn't need all of these options, but it'll ignore those it doesn't understand. >- if ( ksconfig->client() == KS_CLIENT_ISPELL || ksconfig->client() == KS_CLIENT_ASPELL || ksconfig->client() == KS_CLIENT_HUNSPELL ) >+ if ( ksconfig->client() == KS_CLIENT_ISPELL || ksconfig->client() == KS_CLIENT_ASPELL || ksconfig->client() == KS_CLIENT_HUNSPELL || ksconfig->client() == KS_CLIENT_VOIKKO ) > { > *proc << "-a" << "-S"; > >@@ -200,15 +204,18 @@ > //Not sure what they did, but the preferred spell checker > //on that platform is aspell anyway, so use -H untill I'll come > //up with something better. >- *proc << "-H"; >+ if ( ksconfig->client() == KS_CLIENT_VOIKKO ) >+ *proc << "-h"; >+ else >+ *proc << "-H"; > break; > case TeX: > //same for aspell and ispell > *proc << "-t"; > break; > case Nroff: >- //only ispell and hunspell support >- if ( ksconfig->client() == KS_CLIENT_ISPELL || ksconfig->client() == KS_CLIENT_HUNSPELL ) >+ //aspell doesn't support >+ if ( ksconfig->client() != KS_CLIENT_ASPELL ) > *proc << "-n"; > break; > case Text: >@@ -230,7 +237,10 @@ > } > > >- if (trystart<2) >+ if ( ksconfig->client() == KS_CLIENT_VOIKKO ) { >+ *proc << "-dsuomi"; >+ } >+ else if (trystart<2) > { > if (! ksconfig->dictionary().isEmpty()) > { >@@ -298,7 +308,7 @@ > default: > break; > } >- } else if ( trystart<1 ) { >+ } else if ( ksconfig->client() != KS_CLIENT_VOIKKO && trystart<1 ) { > switch ( ksconfig->encoding() ) > { > case KS_E_LATIN1:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 427824
: 291031