Difference between revisions of "Extension Dictionaries"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Already provided configuration entries)
(Already provided configuration entries)
Line 7: Line 7:
  
  
*Spellchecker entry
+
*Spell checker entry
 
A spell checker needs to make an entry stating it's implementation
 
A spell checker needs to make an entry stating it's implementation
 
name and the format name of the data files it can use in the
 
name and the format name of the data files it can use in the
Line 21: Line 21:
 
             </prop>
 
             </prop>
 
         </node>
 
         </node>
 +
 +
        ... entries for other spell checkers ...
 
     </node>
 
     </node>
 
</node>
 
</node>
Line 34: Line 36:
 
             </prop>
 
             </prop>
 
         </node>
 
         </node>
 +
 +
        ... entries for other hyphenators ...
 
     </node>
 
     </node>
 
</node>
 
</node>
Line 46: Line 50:
 
             </prop>
 
             </prop>
 
         </node>
 
         </node>
 +
 +
        ... entries for other thesauri ...
 
</node>
 
</node>
 
</pre>
 
</pre>
  
 
=Required entries=
 
=Required entries=

Revision as of 16:34, 25 February 2008

Problem with current dictionary.lst file

In order to get rid of the problems involved with the dictionary.lst file at upgrade (see issue 72559) we have to forsake the use of it and provide the necessary information about dictionaries in the configuration.

Already provided configuration entries

  • Spell checker entry

A spell checker needs to make an entry stating it's implementation name and the format name of the data files it can use in the Linguistic.xcu. For the current Hunspell implementation in CWS tl41 it will look like:

<node oor:name="ServiceManager">
    <node oor:name="SpellCheckers">
        <node oor:name="org.openoffice.lingu.MySpellSpellChecker" oor:op="fuse">
            <prop oor:name="SupportedDictionaryFormats" oor:type="oor:string-list">
                <value>DICT_SPELL</value>
            </prop>
        </node>

        ... entries for other spell checkers ...
    </node>
</node>
  • Hyphenator entry
<node oor:name="ServiceManager">
    <node oor:name="Hyphenators">
        <node oor:name="org.openoffice.lingu.LibHnjHyphenator" oor:op="fuse">
            <prop oor:name="SupportedDictionaryFormats" oor:type="oor:string-list">
                <value>DICT_HYPH</value>
            </prop>
        </node>

        ... entries for other hyphenators ...
    </node>
</node>
  • Thesaurus entry
<node oor:name="ServiceManager">
        <node oor:name="org.openoffice.lingu.new.Thesaurus" oor:op="fuse">
            <prop oor:name="SupportedDictionaryFormats" oor:type="oor:string-list">
                <value>DICT_THES</value>
            </prop>
        </node>

        ... entries for other thesauri ...
</node>

Required entries

Personal tools