version 4, including all changes.
.
Rev |
Author |
# |
Line |
1 |
AristotlePagaltzis |
1 |
!!! Installing and Setting up NewZealand English Dictionary |
4 |
BruceKingsbury |
2 |
|
|
|
3 |
By default, OOo comes with installed dictionaries for US English, French and Spanish. |
1 |
AristotlePagaltzis |
4 |
|
3 |
BruceKingsbury |
5 |
Since OpenOffice.org 3.0, dictionary support can be added via the Extension manager. Packages are available from extensions.services.openoffice.org for [New Zealand English|http://extensions.services.openoffice.org/project/dict-en-nz-2008-12-03] and [New Zealand Maori|http://extensions.services.openoffice.org/project/maori-papakupu] |
|
|
6 |
|
|
|
7 |
In 2.x versions go to <i>File → Wizards → Install new dictionary</i> to use the OOoDic Autopilot. Click on “English”, press the "Start DicOOo" button, and use the dialog to download any needed dictionaries, hyphenations, or thesauri. |
1 |
AristotlePagaltzis |
8 |
|
|
|
9 |
Users of old versions (prior to 1.1.1) can [install dictionaries manually | http://homepage.ntlworld.com/garryknight/linux/oodict.html] (a tedious and longwinded process). |
|
|
10 |
|
|
|
11 |
!!! Converting OpenDocument Text documents to plaintext |
|
|
12 |
|
|
|
13 |
[odt2txt | http://www.freewisdom.org/projects/python-markdown/odt2txt.php] is a utility for converting [OpenOffice.org] word processor documents to plaintext files. To convert a large number of documents, use the following command: |
|
|
14 |
|
|
|
15 |
<verbatim> |
|
|
16 |
find -name '*.odt' -print0 | xargs -r0 bash -c 'for odt in "$@"; do odt2txt.py "$odt" > "${odt%.odt}.txt"; done' -- |
|
|
17 |
</verbatim> |
|
|
18 |
|
|
|
19 |
!!! Installing new fonts |
|
|
20 |
|
|
|
21 |
''Note: I don’t know how useful the following is. <tt>chkfontpath</tt> appears to be a RedHat-ism, and is possibly obsolete as well.'' —[AristotlePagaltzis] |
|
|
22 |
|
|
|
23 |
When loading, [OpenOffice.org] looks for TrueType or Type1 fonts in the following places: |
|
|
24 |
|
|
|
25 |
* In <tt>/usr/X11R6/lib/X11/fonts/Type1</tt> |
|
|
26 |
* In the output of the command <tt>chkfontpath</tt> |
|
|
27 |
* In the fontpath as returned by <tt>XGetFontPath()</tt> |
|
|
28 |
* In the directories listed in the EnvironmentVariable <tt>SAL_FONTPATH_PRIVATE</tt>, which is usually set to <tt>share/fonts/truetype</tt> below the installation path of [OpenOffice.org] by the <tt>soffice</tt> launcher |
|
|
29 |
|
|
|
30 |
This method to install fonts hooks into the output of <tt>chkfontpath</tt>. We’ll assume you have copied a font family called ''Foob Ar'' into <tt>/usr/share/fonts/foobar/</tt>. The following commands have to be issued as root. |
|
|
31 |
|
|
|
32 |
<verbatim> |
|
|
33 |
mkfontdir /usr/share/fonts/foobar |
|
|
34 |
chkfontpath -a /usr/share/fonts/foobar/ |
|
|
35 |
</verbatim> |
|
|
36 |
|
|
|
37 |
This creates a <tt>fonts.dir</tt> file in your font family directory, then adds the directory to <tt>chkfontpath</tt>’s list. Now retstart [OpenOffice.org] and your pretty new fonts should be available. You may like to change the default font under <i>Tools → Options → Text Document → Basic Fonts</i>. |
|
|
38 |
|
2 |
AristotlePagaltzis |
39 |
__See also__ the [OpenOffice.org Font FAQ | http://www.openoffice.org/FAQs/fontguide.html]. |
1 |
AristotlePagaltzis |
40 |
|
|
|
41 |
!! Using Windows fonts from a mount point |
|
|
42 |
|
|
|
43 |
To include the TrueType fonts from your MicrosoftWindows installation you need to create a font directory with SymLink~s to all the fonts on your Windows partition. Assuming the fonts are in <tt>C:\windows\fonts</tt> and the C: partition of Windows is mounted on <tt>/mnt/win_c</tt> in [Linux], you have to do the following (as root):'''' |
|
|
44 |
|
|
|
45 |
<verbatim> |
|
|
46 |
mkdir /usr/share/fonts/winfonts |
|
|
47 |
cd /mnt/win_c/windows/fonts |
|
|
48 |
ln -s *.ttf *.TTF /usr/share/fonts/winfonts |
|
|
49 |
cd /usr/share/fonts/winfonts |
|
|
50 |
ttmkfdir |
|
|
51 |
mkfontdir |
|
|
52 |
chkfontpath -a /usr/share/fonts/winfonts |
|
|
53 |
fc-cache |
|
|
54 |
</verbatim> |