Commit Graph

26 Commits

Author SHA1 Message Date
Richard Heck
1b1f8dd235 Audit all the LASSERT calls, and try to do something sensible at
each failure.

There are several places I was not sure what to do. These are marked
by comments beginning "LASSERT:" so they can be found easily. At the
moment, they are at:

Author.cpp:105: // LASSERT: What should we do here?
Author.cpp:121: // LASSERT: What should we do here?
Buffer.cpp:4525:        // LASSERT: Is it safe to continue here, or should we just return?
Cursor.cpp:345:         // LASSERT: Is it safe to continue here, or should we return?
Cursor.cpp:403:         // LASSERT: Is it safe to continue here, or should we return?
Cursor.cpp:1143:                // LASSERT: There have been several bugs around this code, that seem
CursorSlice.cpp:83:     // LASSERT: This should only ever be called from an InsetMath.
CursorSlice.cpp:92:     // LASSERT: This should only ever be called from an InsetMath.
LayoutFile.cpp:303:                     // LASSERT: Why would this fail?
Text.cpp:995:           // LASSERT: Is it safe to continue here?
2013-04-25 17:27:10 -04:00
Jean-Marc Lasgouttes
14e01a92a4 Rename Path.h to PathChanger.h (actual name of the class) 2013-02-06 11:51:06 +01:00
Lars Gullik Bjønnes
6b2232a29c src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
Stephan Witt
c91e2c59f4 #7884 add check for missing dictionaries when spell check starts and popup a message box to tell the user this problem if there are no dictionaries; add /usr/share/myspell for hunspell dictionary lookup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40568 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-04 22:02:07 +00:00
Stephan Witt
e309590df8 #7660 with aspell backend split words on hard hyphens to check parts separately because hyphen is not allowed to be part of a word - neither in regular nor in personal dictionary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39395 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-31 13:27:39 +00:00
Stephan Witt
1ffc210d0d care for a change of accept_compound and reconfigure the aspell backend accordingly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39363 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-22 09:01:08 +00:00
Stephan Witt
9b7b6ded7c #7660 report failures on add-to-session with LYXERR
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39362 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-21 19:55:10 +00:00
Stephan Witt
e755729f68 #7170 simplify the hunspell dictionary lookup; use Language::lang() instead of Language::id() as speller index
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37727 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-18 11:54:14 +00:00
Stephan Witt
4ba2c362cb #7170 add id() method for language; add variety of language to hunspell dictionary lookup; use dicts as subdirectory to search for in system_support and user_support directories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37716 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-17 17:09:06 +00:00
Stephan Witt
a2287675d2 #7043 add the implementation of a persistent personal word list for LyX spell checker, aspell and hunspell backend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36661 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-02 18:52:31 +00:00
Stephan Witt
dec437fbac add cache of spell checker results to speed up native speller engine on macosx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35362 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 05:24:04 +00:00
Jean-Marc Lasgouttes
e4f2484cb5 Implement LFUN_SPELLING_REMOVE (patch from switt)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:10:40 +00:00
Jean-Marc Lasgouttes
a174f43bc5 Fix nasty memory bug signalled by valgrind while looking at another bug.
The string passed to Aspell has been already released, since it is the return value of a function. This problem does NOT exist in branch.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34745 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-02 12:41:14 +00:00
Stephan Witt
32dc99100a #6767 fix another crash in hasDictionary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34670 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-15 08:35:41 +00:00
Stephan Witt
94c113d24f #6767 fix the crash when given language is not supported
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34656 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-14 19:33:43 +00:00
Stephan Witt
f6071af49d avoid preprocessor macros for path constants
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34610 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-06 19:10:10 +00:00
Stephan Witt
042e8bb4d0 consolidate dictionary lookup of spellchecker and thesaurus, prepare builtin distribution of dictionaries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34540 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-29 14:36:51 +00:00
Pavel Sanda
62ca7f3ae5 Proper camel case for FileName.absFilename
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:09 +00:00
Stephan Witt
fb43bbbf6c tiger support on mac snow leopard, include Qt4 frameworks, smart build script with parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34132 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-14 13:22:00 +00:00
Stephan Witt
4c859c9835 add support for private aspell framework for mac os
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34098 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 22:56:12 +00:00
Jürgen Spitzmüller
5c59e8c7cb * Spellchecker dialog:
- mark languages that can be spell checked.
* Thesaurus dialog:
	- mark languages that have a thesaurus dictionary.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33405 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-10 08:10:31 +00:00
Jürgen Spitzmüller
707935ab23 * store the full Language in WordLangTuple.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33378 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 11:26:49 +00:00
Jürgen Spitzmüller
4506ec88ab * Add support for aspell language varieties.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33085 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-18 17:02:05 +00:00
Abdelrazak Younes
1f53de6592 SpellChecker work:
* Move suggestion searching out of check() and onto suggest().
* Cleanup a bit AspellChecker
* Begin Hunspell support (not tested and does not link yet)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30824 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-02 09:17:32 +00:00
Abdelrazak Younes
96e456d864 * Pimpl AspellChecker internal salsa...
* set eolstyle for HunspellChecker.*


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30816 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-01 17:48:33 +00:00
Abdelrazak Younes
2bab03e557 I forgot to rename those in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30814 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-01 17:25:49 +00:00