mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Simple spelling checker using the Hunspell library.
Currently the checker is only exposed through the script function check_spelling_word, which returns true if the word is spelled correctly. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1261 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -26,6 +26,7 @@ void init_script_image_functions(Context& ctx);
|
||||
void init_script_editor_functions(Context& ctx);
|
||||
void init_script_export_functions(Context& ctx);
|
||||
void init_script_english_functions(Context& ctx);
|
||||
void init_script_spelling_functions(Context& ctx);
|
||||
void init_script_construction_functions(Context& ctx);
|
||||
|
||||
/// Initialize all built in functions for a context
|
||||
@@ -36,6 +37,7 @@ inline void init_script_functions(Context& ctx) {
|
||||
init_script_editor_functions(ctx);
|
||||
init_script_export_functions(ctx);
|
||||
init_script_english_functions(ctx);
|
||||
init_script_spelling_functions(ctx);
|
||||
init_script_construction_functions(ctx);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ Variable string_to_variable(const String& s) {
|
||||
if (it == variables.end()) {
|
||||
#ifdef _DEBUG
|
||||
variable_names.push_back(s);
|
||||
assert(s == cannocial_name_form(s)); // only use cannocial names
|
||||
#endif
|
||||
Variable v = (Variable)variables.size();
|
||||
variables.insert(make_pair(s,v));
|
||||
|
||||
Reference in New Issue
Block a user