diff options
Diffstat (limited to 'tdespell2/plugins')
24 files changed, 40 insertions, 61 deletions
diff --git a/tdespell2/plugins/CMakeLists.txt b/tdespell2/plugins/CMakeLists.txt index 062d033d2..d7971e4bb 100644 --- a/tdespell2/plugins/CMakeLists.txt +++ b/tdespell2/plugins/CMakeLists.txt @@ -9,12 +9,6 @@ # ################################################# -if( WITH_ASPELL ) - add_subdirectory( aspell ) -endif(WITH_ASPELL) - -if( WITH_HSPELL ) - add_subdirectory( hspell ) -endif(WITH_HSPELL) - -add_subdirectory( ispell ) +tde_conditional_add_subdirectory( WITH_ASPELL aspell ) +tde_conditional_add_subdirectory( WITH_HSPELL hspell ) +tde_conditional_add_subdirectory( WITH_ISPELL ispell ) diff --git a/tdespell2/plugins/aspell/CMakeLists.txt b/tdespell2/plugins/aspell/CMakeLists.txt index 9ae66d01b..7a6d1276b 100644 --- a/tdespell2/plugins/aspell/CMakeLists.txt +++ b/tdespell2/plugins/aspell/CMakeLists.txt @@ -26,7 +26,11 @@ link_directories( ##### other data ################################ -install( FILES tdespell_aspell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE tdespell_aspell.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdespell2-desktops +) #### tdespell_aspell ############################## diff --git a/tdespell2/plugins/aspell/tdespell_aspell.desktop b/tdespell2/plugins/aspell/tdespell_aspell.desktop index a4753609d..0103e49c7 100644 --- a/tdespell2/plugins/aspell/tdespell_aspell.desktop +++ b/tdespell2/plugins/aspell/tdespell_aspell.desktop @@ -12,10 +12,3 @@ X-TDE-PluginInfo-Depends= X-TDE-PluginInfo-License=LGPL X-TDE-PluginInfo-EnabledByDefault=true Name=ASpell -Name[bn]=এ-স্পেল -Name[hi]=आ-स्पैल -Name[it]=Aspell -Name[ne]=ए स्पेल -Name[sv]=Aspell -Name[ta]=psதேர்ந்தெடு -Name[te]=ఏస్పెల్ diff --git a/tdespell2/plugins/aspell/tdespell_aspellclient.h b/tdespell2/plugins/aspell/tdespell_aspellclient.h index 1384b0242..9a71bfa69 100644 --- a/tdespell2/plugins/aspell/tdespell_aspellclient.h +++ b/tdespell2/plugins/aspell/tdespell_aspellclient.h @@ -33,7 +33,7 @@ using KSpell2::Dictionary; class ASpellClient : public KSpell2::Client { - Q_OBJECT + TQ_OBJECT public: ASpellClient( TQObject *parent, const char *name, const TQStringList & /* args */ ); ~ASpellClient(); diff --git a/tdespell2/plugins/hspell/CMakeLists.txt b/tdespell2/plugins/hspell/CMakeLists.txt index 960b54ff4..4a234b274 100644 --- a/tdespell2/plugins/hspell/CMakeLists.txt +++ b/tdespell2/plugins/hspell/CMakeLists.txt @@ -26,7 +26,11 @@ link_directories( ##### other data ################################ -install( FILES tdespell_hspell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE tdespell_hspell.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdespell2-desktops +) #### tdespell_hspell ############################## diff --git a/tdespell2/plugins/hspell/tdespell_hspell.desktop b/tdespell2/plugins/hspell/tdespell_hspell.desktop index 9663b81c2..f890a1ad4 100644 --- a/tdespell2/plugins/hspell/tdespell_hspell.desktop +++ b/tdespell2/plugins/hspell/tdespell_hspell.desktop @@ -12,7 +12,3 @@ X-TDE-PluginInfo-Depends= X-TDE-PluginInfo-License=LGPL X-TDE-PluginInfo-EnabledByDefault=true Name=HSpell -Name[bn]=এইচ-স্পেল -Name[ne]=एच स्पेल -Name[sv]=Hspell -Name[te]=హెచ్ స్పెల్ diff --git a/tdespell2/plugins/hspell/tdespell_hspellclient.h b/tdespell2/plugins/hspell/tdespell_hspellclient.h index 00a89749e..a18928900 100644 --- a/tdespell2/plugins/hspell/tdespell_hspellclient.h +++ b/tdespell2/plugins/hspell/tdespell_hspellclient.h @@ -37,7 +37,7 @@ using KSpell2::Dictionary; class HSpellClient : public KSpell2::Client { - Q_OBJECT + TQ_OBJECT public: HSpellClient( TQObject *parent, const char *name, const TQStringList & /* args */ ); ~HSpellClient(); diff --git a/tdespell2/plugins/ispell/CMakeLists.txt b/tdespell2/plugins/ispell/CMakeLists.txt index 62b12a1a1..ed673137b 100644 --- a/tdespell2/plugins/ispell/CMakeLists.txt +++ b/tdespell2/plugins/ispell/CMakeLists.txt @@ -25,7 +25,11 @@ link_directories( ##### other data ################################ -install( FILES tdespell_ispell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE tdespell_ispell.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdespell2-desktops +) #### tdespell_ispell ############################## diff --git a/tdespell2/plugins/ispell/correct.cpp b/tdespell2/plugins/ispell/correct.cpp index a417ee777..759aa5965 100644 --- a/tdespell2/plugins/ispell/correct.cpp +++ b/tdespell2/plugins/ispell/correct.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/good.cpp b/tdespell2/plugins/ispell/good.cpp index 42ba79515..cb01548a3 100644 --- a/tdespell2/plugins/ispell/good.cpp +++ b/tdespell2/plugins/ispell/good.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/hash.cpp b/tdespell2/plugins/ispell/hash.cpp index 07693c14f..038f671af 100644 --- a/tdespell2/plugins/ispell/hash.cpp +++ b/tdespell2/plugins/ispell/hash.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/ispell.h b/tdespell2/plugins/ispell/ispell.h index 587defc07..d7e60d658 100644 --- a/tdespell2/plugins/ispell/ispell.h +++ b/tdespell2/plugins/ispell/ispell.h @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/ispell_checker.cpp b/tdespell2/plugins/ispell/ispell_checker.cpp index 387997444..d3dd324d3 100644 --- a/tdespell2/plugins/ispell/ispell_checker.cpp +++ b/tdespell2/plugins/ispell/ispell_checker.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* tdespell2 - adopted from Enchant * Copyright (C) 2003 Dom Lachowicz * Copyright (C) 2004 Zack Rusin <zack@kde.org> @@ -55,6 +54,9 @@ typedef struct str_ispell_map } IspellMap; static const char *ispell_dirs [] = { +#ifdef ISPELL_LIBDIR + ISPELL_LIBDIR, +#else "/usr/" SYSTEM_LIBDIR "/ispell", "/usr/lib/ispell", "/usr/local/" SYSTEM_LIBDIR "/ispell", @@ -62,6 +64,7 @@ static const char *ispell_dirs [] = { "/usr/local/share/ispell", "/usr/share/ispell", "/usr/pkg/lib", +#endif 0 }; static const IspellMap ispell_map [] = { diff --git a/tdespell2/plugins/ispell/ispell_checker.h b/tdespell2/plugins/ispell/ispell_checker.h index 84faa34f9..d70d30082 100644 --- a/tdespell2/plugins/ispell/ispell_checker.h +++ b/tdespell2/plugins/ispell/ispell_checker.h @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* tdespell2 - adopted from Enchant * Copyright (C) 2003 Dom Lachowicz * Copyright (C) 2004 Zack Rusin <zack@kde.org> diff --git a/tdespell2/plugins/ispell/ispell_def.h b/tdespell2/plugins/ispell/ispell_def.h index b3d149c43..f837b1104 100644 --- a/tdespell2/plugins/ispell/ispell_def.h +++ b/tdespell2/plugins/ispell/ispell_def.h @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/lookup.cpp b/tdespell2/plugins/ispell/lookup.cpp index 773cd88cb..7489253da 100644 --- a/tdespell2/plugins/ispell/lookup.cpp +++ b/tdespell2/plugins/ispell/lookup.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* tdespell2 - adopted from enchant * Copyright (C) 2003 Dom Lachowicz * Copyright (C) 2004 Zack Rusin <zack@kde.org> diff --git a/tdespell2/plugins/ispell/makedent.cpp b/tdespell2/plugins/ispell/makedent.cpp index ebe128dd3..5ed72215a 100644 --- a/tdespell2/plugins/ispell/makedent.cpp +++ b/tdespell2/plugins/ispell/makedent.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * @@ -234,7 +233,7 @@ ichar_t * icharcpy P ((ichar_t * out, ichar_t * in)); int icharlen P ((ichar_t * str)); int icharcmp P ((ichar_t * s1, ichar_t * s2)); int icharncmp P ((ichar_t * s1, ichar_t * s2, int n)); -#endif /* ICHAR_IS_CHAR */ +#endif /*static int has_marker;*/ @@ -344,7 +343,7 @@ int ISpellChecker::addvheader ( struct dent *dp) dp->flagfield |= (ALLCAPS | MOREVARIANTS); return 0; } -#endif /* NO_CAPITALIZATION_SUPPORT */ +#endif /* ** Combine and resolve the entries describing two capitalizations of the same @@ -501,7 +500,7 @@ ISpellChecker::stringcharlen (char *bufp, int canonical) #ifdef SLOWMULTIPLY static char * sp[MAXSTRINGCHARS]; static int inited = 0; -#endif /* SLOWMULTIPLY */ +#endif char * bufcur; char * stringcur; int stringno; @@ -516,7 +515,7 @@ ISpellChecker::stringcharlen (char *bufp, int canonical) for (stringno = 0; stringno < MAXSTRINGCHARS; stringno++) sp[stringno] = &hashheader.stringchars[stringno][0]; } -#endif /* SLOWMULTIPLY */ +#endif lowstringno = 0; highstringno = m_hashheader.nstrchars - 1; dupwanted = canonical ? 0 : m_defdupchar; @@ -525,17 +524,17 @@ ISpellChecker::stringcharlen (char *bufp, int canonical) stringno = (lowstringno + highstringno) >> 1; #ifdef SLOWMULTIPLY stringcur = sp[stringno]; -#else /* SLOWMULTIPLY */ +#else stringcur = &m_hashheader.stringchars[stringno][0]; -#endif /* SLOWMULTIPLY */ +#endif bufcur = bufp; while (*stringcur) { #ifdef NO8BIT if (((*bufcur++ ^ *stringcur) & 0x7F) != 0) -#else /* NO8BIT */ +#else if (*bufcur++ != *stringcur) -#endif /* NO8BIT */ +#endif break; /* ** We can't use autoincrement above because of the @@ -551,9 +550,9 @@ ISpellChecker::stringcharlen (char *bufp, int canonical) m_laststringch = m_hashheader.stringdups[stringno]; #ifdef SLOWMULTIPLY return stringcur - sp[stringno]; -#else /* SLOWMULTIPLY */ +#else return stringcur - &m_hashheader.stringchars[stringno][0]; -#endif /* SLOWMULTIPLY */ +#endif } else --stringcur; @@ -564,12 +563,12 @@ ISpellChecker::stringcharlen (char *bufp, int canonical) highstringno = stringno - 1; else if ((*bufcur & 0x7F) > (*stringcur & 0x7F)) lowstringno = stringno + 1; -#else /* NO8BIT */ +#else if (*--bufcur < *stringcur) highstringno = stringno - 1; else if (*bufcur > *stringcur) lowstringno = stringno + 1; -#endif /* NO8BIT */ +#endif else if (dupwanted < m_hashheader.dupnos[stringno]) highstringno = stringno - 1; else @@ -847,7 +846,7 @@ icharncmp (ichar_t *s1, ichar_t *s2, int n) return *s1 - *s2; } -#endif /* ICHAR_IS_CHAR */ +#endif /* * \param istate diff --git a/tdespell2/plugins/ispell/msgs.h b/tdespell2/plugins/ispell/msgs.h index e3f30220c..4e4bc1265 100644 --- a/tdespell2/plugins/ispell/msgs.h +++ b/tdespell2/plugins/ispell/msgs.h @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/sp_spell.h b/tdespell2/plugins/ispell/sp_spell.h index 9e1d7b903..1539716e2 100644 --- a/tdespell2/plugins/ispell/sp_spell.h +++ b/tdespell2/plugins/ispell/sp_spell.h @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * diff --git a/tdespell2/plugins/ispell/tdespell_ispell.desktop b/tdespell2/plugins/ispell/tdespell_ispell.desktop index 8042d6708..be95ac1a3 100644 --- a/tdespell2/plugins/ispell/tdespell_ispell.desktop +++ b/tdespell2/plugins/ispell/tdespell_ispell.desktop @@ -12,11 +12,3 @@ X-TDE-PluginInfo-Depends= X-TDE-PluginInfo-License=LGPL X-TDE-PluginInfo-EnabledByDefault=true Name=ISpell -Name[bn]=আই-স্পেল -Name[hi]=आई-स्पैल -Name[it]=Ispell -Name[ne]=आई स्पेल -Name[sv]=Ispell -Name[ta]=psதேர்ந்தெடு -Name[te]=ఐస్పెల్ -Name[tg]=psselect diff --git a/tdespell2/plugins/ispell/tdespell_ispellclient.h b/tdespell2/plugins/ispell/tdespell_ispellclient.h index 7deee7de8..b15453bd3 100644 --- a/tdespell2/plugins/ispell/tdespell_ispellclient.h +++ b/tdespell2/plugins/ispell/tdespell_ispellclient.h @@ -33,7 +33,7 @@ using KSpell2::Dictionary; class ISpellClient : public KSpell2::Client { - Q_OBJECT + TQ_OBJECT public: ISpellClient( TQObject *parent, const char *name, const TQStringList & /* args */ ); ~ISpellClient(); diff --git a/tdespell2/plugins/ispell/tdespell_ispelldict.cpp b/tdespell2/plugins/ispell/tdespell_ispelldict.cpp index 089fabc9d..3e23320ed 100644 --- a/tdespell2/plugins/ispell/tdespell_ispelldict.cpp +++ b/tdespell2/plugins/ispell/tdespell_ispelldict.cpp @@ -1,4 +1,4 @@ -/** +/* * tdespell_aspelldict.cpp * * Copyright (C) 2003 Zack Rusin <zack@kde.org> diff --git a/tdespell2/plugins/ispell/tdespell_ispelldict.h b/tdespell2/plugins/ispell/tdespell_ispelldict.h index 12b628c49..e5ff62f9e 100644 --- a/tdespell2/plugins/ispell/tdespell_ispelldict.h +++ b/tdespell2/plugins/ispell/tdespell_ispelldict.h @@ -1,4 +1,4 @@ -/** +/* * tdespell_ispelldict.h * * Copyright (C) 2003 Zack Rusin <zack@kde.org> diff --git a/tdespell2/plugins/ispell/tgood.cpp b/tdespell2/plugins/ispell/tgood.cpp index 859eee62f..d8ea11c87 100644 --- a/tdespell2/plugins/ispell/tgood.cpp +++ b/tdespell2/plugins/ispell/tgood.cpp @@ -1,4 +1,3 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* enchant * Copyright (C) 2003 Dom Lachowicz * |