On 3 Aug 2016, at 9:54, Hussein Shafie wrote:
Your feature request is of course a legitimate one, but I don't think
we need to enhance XMLmind XML Editor to solve your problem:
1) The language being used when the root element of a document has no
"lang" or "xml:lang" attribute is specified once for all in he "Check
Spelling" dialog box.
See "Default language" combobox in
http://www.xmlmind.com/xmleditor/_distrib/doc/help/checkSpellingDialog.html
Thanks for that link - it is indeed helpful. But I will also point out
that my feature request was related not how to regulate the spelling
checker’s default behavior but to the (xml:)lang attribute. I
mentioned the spelling checker just as an example of what the current
behavior leads to. The issues are related but not same thing. As well,
even if I had been eager to solve the problem via the spell checker, the
solution is no perfect: First and foremost the method (currently)
requires that a dictionary for the language you use is available in the
spelling checker. If it isn’t then the spelling checker does not allow
you to select it as your preferred language. By contrast, when I specify
the language at root element level, spelling stops if the dictionary
isn’t available. My (theoretical) issue with the spellchecker method
is that it kind of works against the "mind of XML" - which is to fix it
at (xml:)lang attribute level.
2) Please consider creating custom document templates in which you
have explicitly added xml:lang="nn" to the root element of the
document.
This can be done *very* *easily* from within XMLmind XML Editor.
Tutorial: Custom document templates,
http://www.xmlmind.com/xmleditor/_tutorial/document_template/index.html
Reference:
* "Options → Customize Configuration → Save Document as Template",
http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html#saveAsTemplateAction
* The "Save Document As Template" dialog box,
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.app.part.SaveAsTemplateAction.Prompt.html
Thanks for this. This is a saver. (Even if I hope my wish gets
implemented) I will definitely do this.
--
leif halvard silli
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support