> Mariusz Idzikowski wrote: >> >> I wonder if it would be possible to change the spell checking >> algorithm to recognize also the default and fixed language attributes >> defined in a DTD or schema? > > This is certainly technically possible. > > However this must be made an option (specified in the spellCheckOptions > configuration element; see > http://www.xmlmind.com/xmleditor/_distrib/doc/configure/spellCheckOptions.html) > as it has a negative impact (may be a slight one, if well-implemented) > on the performance of XMLmind XML Editor. >
Sure. That's reasonable. > >> I work with multilanguage documents in >> which the name of a particular element explicitly determines the >> language of its content. Adding a lang attribute and setting it to the >> correct language for each element is out of the question because of the >> size and complexity of the documents. It would be nice to set the >> language for each element once in the DTD. > > We understand your problem. However, you are the first customer to make > this request (which indeed makes sense), therefore we are sorry to > inform you that we do not plan to implement this feature in the near > future. > It's a pity. It would seem only natural that attributes defined as default or fixed should be processed in the same way as those explicitly provided in the document. Quote from the XML 1.0 Specification: "When an XML processor encounters an element without a specification for an attribute for which it has read a default value declaration, it must report the attribute with the declared default value to the application." ( http://www.w3.org/TR/2008/REC-xml-20081126/#sec-attr-defaults ) > As usual, you can always pay us to implement a feature. See > http://www.xmlmind.com/xmleditor/customization_service.html > > For example, a large US company paid us (a small part of the overall > development costs, as a generic feature is always made part of the > product) to implement the new "View|Display Images" submenu found in > latest XMLmind XML Editor v4.5.1. See > http://www.xmlmind.com/xmleditor/_distrib/doc/help/viewMenu.html > Problem is that, for the time being, I don't think I can afford to buy your services on top of the price I paid for the professional edition. Perhaps there are some other (corporate) clients who would be interested in sponsoring such a feature. Specifically, this could be of value to publishers or lexicographers using XXE to create dictionaries. They could easily introduce multi-language spellchecking to their editing process by being able to assign a language value to each dictionary element. For example (in an English-French dictionary DTD): <!ENTITY % SourceLanguage "en"> <!ENTITY % TargetLanguage "fr"> ... <!ATTLIST Headword xml:lang #FIXED %SourceLanguage; > <!ATTLIST Translation xml:lang #FIXED %TargetLanguage; > Anybody using XXE to edit dictionaries out there? Best wishes, Mariusz

