4D v 16.6 I have the following dictionaries installed in the Hunspell folder
(.dic and .aff) on both Mac and Windows:
da_DK, en_GB, en_US, es_ES, fr-modern, nb_NO, nn_NO og pt_BR
Out of those I have personally installed da_DK, nb_NO and nn_NO. The rest is
installed by 4D as standard dictionaries.
Using SPELL GET DICTIONARY LIST I get the following list on Windows (as
expected):
da_DK, en_GB, en_US, es_ES, fr-modern, nb_NO, nn_NO, pt_BR
And on Windows I can use SPELL SET CURRENT DICTIONARY("nb_NO.dic") to load
nb_NO in text field using form event: On load. It works but the name on the
dictionary is "Unknown". The other dictionaries have a proper/correct name.
Using SPELL GET DICTIONARY LIST I get the following list on Mac:
nb, en_GB, en, en_CA, en_AU, en_IN, en_SG, en_JP, da, de, es, fr, it, nl,
pl, pt_BR, pt_PT, fi, sv, tr, ru, ko.
This does not reflect the dictionaries installed in the Hunspell folder.
On Mac I cannot use SPELL SET CURRENT DICTIONARY("nb_NO.dic") to load nb_NO
in text field using form event: On load.
For test purpose I use a Listbox with the following methods:
Case of
: (Form event=On Load)
ARRAY LONGINT(langID;0)
ARRAY TEXT(dicName;0)
ARRAY TEXT(langDesc;0)
SPELL GET DICTIONARY
LIST(langID;dicName;langDesc)
: (Form event=On Clicked)
C_TEXT($dicName)
$dicName:=dicName{dicName}
SPELL SET CURRENT DICTIONARY($dicName)
End case
And to test the current dictionary I use a button with the method:
$curLangCode:=SPELL Get current dictionary
$countryName:=langDesc{Find in array(langID;$curLangCode)}
ALERT("Current dictionary: "+$countryName)
Looking at the dictionaries ID numbers on Windows compared to Mac: fr,
en_US, da_DK, nb_NO and es_ES are not the same. Only pt_BR and en_GB are the
same. On Mac nn_NO do not load. And on Mac fr and nb_NO have the same
dictionary ID number.
I can use the listbox to change dictionaries on both Mac and Windows and can
get nb_NO to work on Mac using this procedure. (On Mac I get Spanish when I
click ko). nn_NO do not load in the listbox on Mac.
I cannot change to nb_NO (or nn_NO) using buttons on Mac with the following
methods:
SPELL SET CURRENT DICTIONARY("nb_NO.dic")
SPELL SET CURRENT DICTIONARY("nb_NO")
SPELL SET CURRENT DICTIONARY("nn_NO.dic")
SPELL SET CURRENT DICTIONARY("nn_NO")
I get english (USA)using buttons on Mac with the following methods:
SPELL SET CURRENT DICTIONARY("en_GB.dic")
SPELL SET CURRENT DICTIONARY("en_GB")
The above appears to be the same in v17.2
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************