Using Spellcheck in NeoOffice

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 18:49, 22 October 2006 (edit)
Lorinda (Talk | contribs)
(Using a Macro)
← Previous diff
Current revision (20:05, 16 October 2013) (edit) (undo)
Sardisson (Talk | contribs)
(add and above now that we're well post-10.5)
 
(65 intermediate revisions not shown.)
Line 1: Line 1:
-'''''N.B.''' This article covers the steps required to activate writing tools in '''NeoOffice 2.0 Alpha and later'''; for the steps to use in '''NeoOffice 1.2.2 and earlier''', see [[Activating Dictionaries in NeoOffice 1.x]] instead.''+==Spellcheck and Writing Tools in NeoOffice==
-NeoOffice will correctly configure your preferences to use the language tools (spell check, thesaurus, etc.) for the language that is set as the default in the System Preferences when you launch NeoOffice, provided you have the appropriate writing tools installed. +NeoOffice will correctly configure your preferences to use the language tools (spellcheck, thesaurus, etc.) for the language and region that are set as the defaults in the International pane of the System Preferences when you first launch NeoOffice, provided you have the appropriate writing tools installed.
-Note that '''all the writing tools''' (dictionary, thesaurus, hyphenation) '''may not be available for all languages'''; some languages may have only one (usually the dictionary), and some may not have any tools at all.+NeoOffice 3.x will automatically use the native Mac OS X spelling dictionaries if they match the language of the text to be checked. See [[Troubleshooting Spellcheck#Issues_with_Locale_Variants_of_Languages|Issues with Locale Variants of Languages]] for more details.
-If you want the '''NeoOffice user interface''' (and in some cases the Help) to be in your native language, you must '''install the appropriate [http://planamesa.com/neojava/download.php#installlanguages language pack]''' separately; see [[Changing the Language of the User Interface]] for more information.+However, if you add a word to the dictionary in NeoOffice, it will be added to your NeoOffice user dictionary, <code>~/Library/Preferences/NeoOffice-3.0/user/wordbook/standard.dic</code> (where ~ represents your home folder), not your Mac OS X user dictionary. See [[Exporting the Word List from a User Dictionary]] for information on syncing the contents of '''standard.dic''' to your Mac OS X user dictionary.
-==Activating the Writing Tools for Your Preferred Language==+NeoOffice also ships with a very limited number of OpenOffice.org writing tools (spelling dictionary, thesaurus, hyphenation), with many of the dictionaries and thesauri formerly found in NeoOffice 2.x omitted; if your language is not supported by the Mac OS X spelling system nor by the OpenOffice.org dictionaries shipped in NeoOffice, see [[Adding Additional Dictionaries]] for information on installing writing tools for your language. (If you want to disable unnecessary writing tools, see [[Adding Additional Dictionaries#Disabling Writing Tools for Unnecessary Languages|Disabling Writing Tools for Unnecessary Languages]].)
-NeoOffice 2.0 ships with the same set of writing tools that the standard build of OpenOffice.org supplies (see the list below). Other writing tools can be downloaded and activated as described later in this section. In some cases, NeoOffice 2.0 can also use the tools you installed in NeoOffice 1.x. +
-US English, UK English, Austrian German, Swiss German, and German all have the dictionary, thesaurus, and hyphenation pre-installed in NeoOffice 2.0. Dictionaries for Hungarian (also hyphenation), Italian (also hyphenation), Dutch (also hyphenation), Swahili, and Thai, thesauruses for Czech and Slovak, and hyphenation for Danish and Russian are also included. +On Mac OS X 10.5 and above, NeoOffice also includes support for the Mac OS X grammar checker (which on 10.5 supports only US English and only a limited subset of English grammar, at that); this can be activated by opening the {{Menu|Tools}} menu, selecting the {{menu|Add-Ons}} sub-menu, and choosing one of the options from the {{menu|Check Grammar}} sub-menu.
-In NeoOffice 2.0 Alpha, the download and activation of writing tools uses the standard cross-platform OpenOffice.org Dictionary Wizard method. Choose '''Install new dictionaries…''' from the '''Wizards''' submenu of the '''File''' menu, then follow the steps in the wizard.+===Additional Information about Spellcheck and Writing Tools===
-Because the writing tools authors and their communities are always updating these tools, you should run the Dictionary Wizard even if your language's writing tools were pre-installed (or if you upgraded from NeoOffice 1.x).+* [[Adding Additional Dictionaries]]
 +** Explains various methods of adding dictionaries that NeoOffice can use, as well as how to disable unused writing tools
 +* [[Selecting the Dictionary to be Used in a Document or Section]]
 +** Explains how to make sure NeoOffice is using the correct dictionary and provides methods for automating the process
 +* [[Exporting the Word List from a User Dictionary]]
 +** Explains how to get the contents out of the NeoOffice user dictionary
 +* [[Troubleshooting Spellcheck]]
 +** Lists solutions to common problems with spell-checking
 +* [[Activating Dictionaries and Configuring Spellcheck in NeoOffice 2.x]]
 +** Spellcheck-related instructions for NeoOffice 2.x
 +* [[Activating Dictionaries in NeoOffice 1.x]]
 +** Spellcheck-related instructions for NeoOffice 1.x
 +<!-- do we want these descriptions, or just the article titles? -->
-===Note for users of non-US or non-UK English (and possibly other languages with regional variants)===+==Changing the language of the NeoOffice user interface==
 +NeoOffice uses the topmost language in the list in the International pane of the System Preferences to determine the interface language. If you want the '''NeoOffice user interface''' (and in some cases the Help) to be in your native language, you must '''install the appropriate [http://www.neooffice.org/neojava/download.php#installlanguages language pack]''' separately.
-The new language tools system in NeoOffice 2.0 no longer maps other English variants to the US or UK English tools; you must install the dictionary, etc., for your language to have working writing tools. If you upgraded from NeoOffice 1.x, your list of installed writing tools was preserved and may now be incorrect and cause problems. You can safely delete <tt>~/Library/Preferences/NeoOffice-2.x/user/wordbook/dictionary.lst</tt> to fix potential problems.+For details on using an interface language other than the one specified in the System Preferences, consult [[Changing the Language of the User Interface]].
- +
-===Installing Third-Party Dictionaries===+
-Due to licensing problems and other issues, there may be dictionaries for some languages that are not available via the dictionary wizard. If you find a dictionary for your language in either Hunspell (preferred) or MySpell format, it is possible to use this dictionary with NeoOffice.+
- +
-To install the downloaded dictionary (in .zip format), +
-# Quit NeoOffice if it is running+
-# Copy the zip file into NeoOffice's <tt>share/dict/ooo</tt> folder+
-#* <tt>cp ''foo.zip'' /Applications/NeoOffice.app/Contents/share/dict/ooo</tt>+
-# Unzip the dictionary+
-#* <tt>unzip /Applications/NeoOffice.app/Contents/share/dict/ooo/''foo.zip''</tt>+
-# Add the new dictionary to the master <tt>dictionary.lst</tt>+
-#* <tt>open -a TextEdit /Applications/NeoOffice.app/Contents/share/dict/ooo/dictionary.lst</tt>+
-## Add a new line at the end of the file, in the format: <tt>DICT ''ab'' ''CD'' ''foo_bar''</tt>+
-##* <tt>ab</tt> is the [http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt ISO language code] for your locale, e.g. ''en'' for an English-speaking locale+
-##* <tt>CD</tt> is the [http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html ISO country code] for your locale, e.g. ''AU'' for Australia+
-##* <tt>foo_bar</tt> is the "root name" of the <tt>.dic</tt> and <tt>.aff</tt> files, e.g. ''en_australia'' for our hypothetical <tt>en_australia.dic</tt> and <tt>en_australia.aff</tt> (you can find this name by watching the output of the unzip command in step 3 above)+
-## Save the modified <tt>dictionary.lst</tt> (making sure it remains plain text if you use TextEdit)+
-# Restart NeoOffice and enjoy your new dictionary!+
-:See the [http://lingucomponent.openoffice.org/manual_instal.html OpenOffice.org manual installation instructions] for more information.+
- +
-====Known Sources of Third-Party Dictionaries====+
- +
-* [ftp://foolab.org/pub/software/arspell/ Foolab]: Arabic (عربي) [early version, only 71,000 words]+
-* [http://www.ivrix.org.il/projects/arabic/ Ivrix Project]: Arabic (عربي) [very large list, based on Buckwalter but converted by a non-Arabic speaker; reported to be slow and consume 200 MB of RAM]+
-* [http://hunspell.sourceforge.net/ Hunspell SourceForge Project]: Amharic (አማርኛ), Azerbaijani (Azərbaycanca), Bengali (বাংলা), Kashubian (Kaszëbsczi), Persian (فارسی), Hindi (हिंदी), Mongolian (Монгол), Marathi (मराठी), Oriya (ଓଡ଼ିଆ), Punjabi (ਪੰਜਾਬੀ), Tamil (தமிழ்), Uzbek (Ўзбекча), Vietnamese (Việt ngữ),+
- +
-==Enabling Writing Tools for Additional Languages==+
- +
-To install and activate writing tools for additional languages in NeoOffice 2.0 Alpha, simply repeat the steps in the previous section for any additional languages you wish to use.+
- +
-==Selecting the Dictionary to be Used in a Document or Section==+
- +
-If you have multiple languages and dictionaries enabled, you can control which dictionary is used in a document (or section thereof) by setting the appropriate preferences. +
- +
-To set the language of an entire document, select '''Preferences…''' from the '''NeoOffice''' menu, then click the "plus in a box" next to '''Language Settings''' to expand that section. Next select the '''Languages''' item and set the "Default languages for documents" as desired (either for all new documents, or for the current document only with the appropriate checkbox).+
- +
-To set the the language of a particular section of text, select the text and choose '''Character...''' from the '''Format''' menu; set the appropriate language via the appropriate '''Language''' box in the '''Font''' tab.+
- +
-'''Be sure to set the language of the document and/or each section of text appropriately or spell-check will not work.'''+
- +
-===Automation===+
- +
-====Using a Macro====+
-[[User:yoxi|yoxi]] provides this tip for creating a macro to automate the process of changing between languages:+
- +
-#Select some text, then click on the '''Record Macro''' button in the top buttonbar. (If there isn't one there, Click on the '''Tools''' menu choose '''Macros''' and then select '''Record Macro'''). A "Stop Recording" floating button will appear. +
-#Under the '''Format''' menu, choose '''Character''' and then choose the "Font" tab in the panel that comes up. In the '''Language''' dropdown, choose your first language, e.g. English (UK), and then click on '''OK'''. +
-#Now click on the "Stop Recording" floater – the "Macro" dialog will appear. Enter a meaningful name in the "Macro Name" field, top left, such as LangEnUK, and click on "Save". +
-#Repeat the steps above, but choosing your second language, e.g. German (Germany), and assigning the second macro another name e.g. LangDeDE or whatever. +
-#Now to assign the keys: Under the '''Tools''' menu choose '''Configure...''' and then click on the "Keyboard" tab. Scroll down to the keystroke you want to assign, e.g. Cmd-shift-G for German (I know -D makes more sense, but that's already being used – though you can overwrite this assignment if you don't need a shortcut for right-to-left typing). +
-#In the "Category" panel bottom left, scroll down to "NeoOffice BASIC", then click on the "+" to open the folder, then do the same with "Standard" within that folder, and click on "Module1" within "Standard". Then in the "Function" panel to its right, click on the macro you named, i.e. LangDeDE, then click on the "Modify" button above right to assign that macro to the keystroke you highlighted earlier. +
-#Repeat the above step with the second keystroke and the second macro, and then click on "OK". +
-#'tis done! Now when you select text and do cmd-shift-G, that text will be assigned German (Germany) language - ditto with cmd-shift-E and English (UK). +
- +
-If you use more than two languages, you could write a more sophisticated macro with a list of language codes/numbers (the OOo BASIC uses numbers for language codes), so you could hit e.g. cmd-shift-L on the selected text and just enter a language code in a popup box and it would do the rest.+
- +
-<!--Edited by --[[User:Lorinda|Lorinda]] 11:23, 21 October 2006 (CDT) to add to the Wiki. For the original post on trinity, [http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&p=10013#10013 click here]+
--->+
- +
-====Using Styles and Templates====+
-[[User:rays|rays]] offers an alternative solution using styles and the [[Editing Default Styles and Using Templates|default template styles]] in [http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&p=25116#25116 this post on trinity].+
- +
-===Troubleshooting===+
-Sometimes this process gets convoluted; there is a [http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=1357 trinity thread] that attempts to walk through troubleshooting why language (and thus dictionary) settings "don't stick" sometimes.+
- +
-==Changing the language of the NeoOffice user interface==+
-NeoOffice uses the topmost language in the list in the International pane of the System Preferences to determine the interface language. For details on using an interface language other than the one specified in the System Preferences, consult [[Changing the Language of the User Interface]].+
 +{{botlangbarEN|[[Fr:Installer_des_Dictionnaires|Français]] [[It:Attivare_i_dizionari_e_configurare_il_controllo_ortografico|Italiano]]}}
[[Category:Tips and Hints]][[Category:NeoOffice]] [[Category:Tips and Hints]][[Category:NeoOffice]]

Current revision

Spellcheck and Writing Tools in NeoOffice

NeoOffice will correctly configure your preferences to use the language tools (spellcheck, thesaurus, etc.) for the language and region that are set as the defaults in the International pane of the System Preferences when you first launch NeoOffice, provided you have the appropriate writing tools installed.

NeoOffice 3.x will automatically use the native Mac OS X spelling dictionaries if they match the language of the text to be checked. See Issues with Locale Variants of Languages for more details.

However, if you add a word to the dictionary in NeoOffice, it will be added to your NeoOffice user dictionary, ~/Library/Preferences/NeoOffice-3.0/user/wordbook/standard.dic (where ~ represents your home folder), not your Mac OS X user dictionary. See Exporting the Word List from a User Dictionary for information on syncing the contents of standard.dic to your Mac OS X user dictionary.

NeoOffice also ships with a very limited number of OpenOffice.org writing tools (spelling dictionary, thesaurus, hyphenation), with many of the dictionaries and thesauri formerly found in NeoOffice 2.x omitted; if your language is not supported by the Mac OS X spelling system nor by the OpenOffice.org dictionaries shipped in NeoOffice, see Adding Additional Dictionaries for information on installing writing tools for your language. (If you want to disable unnecessary writing tools, see Disabling Writing Tools for Unnecessary Languages.)

On Mac OS X 10.5 and above, NeoOffice also includes support for the Mac OS X grammar checker (which on 10.5 supports only US English and only a limited subset of English grammar, at that); this can be activated by opening the Tools menu, selecting the Add-Ons sub-menu, and choosing one of the options from the Check Grammar sub-menu.

Additional Information about Spellcheck and Writing Tools

Changing the language of the NeoOffice user interface

NeoOffice uses the topmost language in the list in the International pane of the System Preferences to determine the interface language. If you want the NeoOffice user interface (and in some cases the Help) to be in your native language, you must install the appropriate language pack separately.

For details on using an interface language other than the one specified in the System Preferences, consult Changing the Language of the User Interface.


This article in other languages: Français Italiano
Personal tools