Home Forums General XMetaL Discussion Using xml:lang Values to Control Spell Checking Reply To: Using xml:lang Values to Control Spell Checking

Derek Read

Reply to: Using xml:lang Values to Control Spell Checking

OK, so here's the deal. The “internal” values for Canadian English and Canadian French aren't what I thought they were (my long post a couple of posts ago is still basically correct except for these two values). They are “en-ce” and “fr-cf”.

So, if you want to use the scripting workaround mentioned previously and…

…the document you are loading into XMAX is entirely Canadian French then run this script in On_DTD_Open_Complete:

[code]// XMetaL Script Language JSCRIPT:
var docType = ActiveDocument.doctype;
docType.addAttribute(“yourDocumentRootElement”,”xml:lang”,”xml:lang”,0,3,”fr-cf”);[/code]

…the document you are loading into XMAX is entirely Canadian English then run this script in On_DTD_Open_Complete:
[code]// XMetaL Script Language JSCRIPT:
var docType = ActiveDocument.doctype;
docType.addAttribute(“yourDocumentRootElement”,”xml:lang”,”xml:lang”,0,3,”en-ce”);[/code]

Reply

Products
Downloads
Support