// set paths to the aspell executable windows_executable = "C:\Program Files\Aspell\bin\aspell.exe"; unix_executable = "aspell"; // what encoding do we use (utf-8 where possible) if ( cfMajorVersion gte 6 ) { encoding = "utf-8"; } else { encoding = "iso8859-1"; } // get aspell language from cf locale // note: I'm assuming that the java locale can be used as the aspell language as long as relevant dictionary installed cfLocale = getLocale(); if ( len(cfLocale) eq 2 ) { // we just have a language code, that'll do grand aspell_lang = cfLocale; } else if ( reFind("^[a-zA-Z]{2}_[a-zA-Z]{2}",cfLocale) ) { // java locale, remove any variant info from the locale, we just want the language and country codes aspell_lang = left(cfLocale,5); } else { // old skool cf locale from CF6.1 or before (e.g. English (UK)) - convert to jvm locale stJavaLocales = structNew(); stJavaLocales.zh_CH = "Chinese (China)"; stJavaLocales.zh_HK = "Chinese (Hong Kong)"; stJavaLocales.zh_TW = "Chinese (Taiwan)"; stJavaLocales.nl_BE = "Dutch (Belgian)"; stJavaLocales.nl_NL = "Dutch (Standard)"; stJavaLocales.en_AU = "English (Australian)"; stJavaLocales.en_CA = "English (Canadian)"; stJavaLocales.en_NZ = "English (New Zealand)"; stJavaLocales.en_GB = "English (UK)"; stJavaLocales.en_US = "English (US)"; stJavaLocales.fr_BE = "French (Belgian)"; stJavaLocales.fr_CA = "French (Canadian)"; stJavaLocales.fr_FR = "French (Standard)"; stJavaLocales.fr_CH = "French (Swiss)"; stJavaLocales.de_AT = "German (Austrian)"; stJavaLocales.de_DE = "German (Standard)"; stJavaLocales.de_CH = "German (Swiss)"; stJavaLocales.it_IT = "Italian (Standard)"; stJavaLocales.it_CH = "Italian (Standard)"; stJavaLocales.ja_JP = "Japanese"; stJavaLocales.ko_KR = "Korean"; stJavaLocales.no_NO = "Norwegian (Bokmal)"; stJavaLocales.no_NO = "Norwegian (Nynorsk)"; stJavaLocales.pt_BR = "Portuguese (Brazilian)"; stJavaLocales.pt_PT = "Portuguese (Standard)"; stJavaLocales.es_MX = "Spanish (Mexican)"; stJavaLocales.es_ES = "Spanish (Modern)"; stJavaLocales.es_ES = "Spanish (Standard)"; stJavaLocales.sv_SE = "Swedish"; aKeys = structFindValue(stJavaLocales,cfLocale); if ( arrayIsEmpty(aKeys) ) { aspell_lang = "en_US"; } else { aspell_lang = aKeys[1]["key"]; aspell_lang = lCase(left(aspell_lang,2)) & "_" & uCase(right(aspell_lang,2)); } } ]+>", " ", "all")>