aboutsummaryrefslogtreecommitdiffstats
path: root/developer.html
blob: 60be91a51bea0885a9cd63c66fdfdb882f501c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <title>Build instructions for the Norwegian spell checking system</title>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  <link rev="made" href="mailto:i18n-no&#64;lister&#46;ping&#46;uio&#46;no">
  <link rel="top" href="http://no.speling.org/">
  <meta name="Language" content="en">
  <meta name="Author"
        content="Petter Reinholdtsen,Torstein Dybvad">
  <link rel="stylesheet" href="http://developer.skolelinux.no/skl-ren_css.css" type="text/css">
</head>

<body>

  <div class="hbar"></div>

  <div class="menu">
  <a href="/">spell-norwegian</a><br>
  </div>

  <div class="body">

  <h1>Build instructions for the Norwegian spell checking system</h1>

<h2>Getting the source</h2>

<p>A source tarball is available
<a href="https://alioth.debian.org/projects/spell-norwegian/">from
alioth</a>, and the latest development version is available from CVS.
See the Alioth project page for download instructions.</p>

<h2>Build dependencies</h2>

<p>The build is using binaries from ispell to generate the list of
base words with affixes based on a list of words and frequency
information.  This is the source for the other spell checking systems.
To speed up this build, ssed is used instead of the slow GNU sed.</p>

<p>To generate aspell and myspell files, one first need ispell and
then aspell or myspell.</p>

<h2>Building and installing the ispell/aspell/myspell data files</h2>

<p>There are four useful 'top level' makefile targets; <tt>words</tt>,
<tt>ispell</tt>, <tt>myspell</tt> and <tt>aspell</tt>.  Each of these
have install targets as well; <tt>install-words</tt>,
<tt>install-ispell</tt>, <tt>install-myspell</tt> and
<tt>install-aspell</tt>.  In addition there are install targets for
the scripts (<tt>install-scripts</tt>) and documentation
(<tt>install-doc</tt>).  The <tt>DESTDIR</tt> variable is supposed for
convenience.  All of the build and install targets can be called with
nb and nn variants, for example <tt>install-ispell-nb</tt> to only
install the nb version.</p>

<p>So, to build and install the myspell dictionary, this is the
command:

<blockquote><pre>
make install-myspell DESTDIR=/some/path
</pre></blockquote>

<h2>Building the tarball and distribution files</h2>

The tarball is generated using the <tt>dist</tt> makefile target.  It
is best to use the <tt>distcheck</tt> target instead to do a test
build of the generated tarball to check if all the required files are
included.  This target will also generate a package for OpenOffice.org
(<Tt>no_NO-<em>version</em>.zip</tt>) as well as the
<tt>spell-norwegian-<em>version</em>.tar.gz</tt> tarball.

<blockquote><pre>
make distcheck
</pre></blockquote>

<h2>Old instructions</h2>

<p>Short information for building the word list with cvs checkout.

<p>Steps for building wordlists.

<p>Download ispell.3.2.06<br>
Untar ispell package<br>
Patch with ispell patch from cvs<br>
copy files for cvs into languages/norsk folder inside ispell folder.<br>
build ispell. (ispell is a bit tricky to build some times, check out
the Readme file included in the ispell-tarball)<br>
go to languages/norsk folder<br>
make -f Makefile.new myspell-dist<br>
make -f Makefile.new aspell-dist<br>
the aspell tar.bz2 files are aspell wordlists<br>
and myspell files are there.<br>
<br>
To make the ispell files type<br>
<br>
make all<br>
<br>
this will make the nynorsk.hash and bokmal.hash ispell files.

  </div>

  <div class="hbar"></div>
</body>
</html>