-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathREADME
176 lines (135 loc) · 5.08 KB
/
README
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
SILPA
==========
SILPA - Indian Language computing platform which provides a web interface
for different Indian language computing python modules. This is hosted at
http://silpa.org.in
This is a new SILPA platform a.k.a restructuring is in progress. I'm trying to
use Flask microframe work and Jinja2 templating system. Additionally modules
are moved out of the original SILPA code thus providing a way for developer to
develop a python module without bothering about internals of SILPA itself.
System Dependencies
===================
`Pango` and `cairo` can not be installed with pip and need to be installed
from your platform’s packages. `lxml` and `CFFI` can, but you’d still need
their own dependencies. This section lists system packages for lxml or
CFFI when available, the dependencies otherwise. lxml needs `libxml2`
and `libxslt`, CFFI needs `libffi`. On Debian, the package names with
development files are `libxml2-dev`, `libxslt1-dev` and `libffi-dev`.
###Debian 7.0 Wheezy or newer, Ubuntu 11.10 Oneiric or newer:
```shell
sudo apt-get install python-dev python-pip python-lxml libcairo2 \
libpango1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info
```
####Debian 6.0 Squeeze, Ubuntu 10.04 Lucid:
GDK-PixBuf is part of GTK+, which also depends on cairo and Pango.
```shell
sudo apt-get install python-dev python-pip python-lxml libgtk2.0-0 libffi-dev
```
###Fedora
```shell
sudo yum install python-devel python-pip python-lxml cairo pango gdk-pixbuf2\
libffi-devel
```
###Archlinux
```shell
sudo pacman -S python-pip python-lxml cairo pango gdk-pixbuf2
```
###Mac OS X
####With Macports
```shell
sudo port install py27-pip py27-lxml cairo pango gdk-pixbuf2 libffi
```
####With Homebrew:
```shell
brew install python cairo pango gdk-pixbuf libxml2 libxslt libffi
```
VirtualEnv Instructions
=======================
If you are on Mac OS X or Linux, chances are that one of the following
two commands will work for you:
```shell
$ sudo easy_install virtualenv
```
or even better:
```shell
$ sudo pip install virtualenv
```
One of these will probably install virtualenv on your system. Maybe it
can be even in your package manager. If you use Ubuntu, try:
```shell
$ sudo apt-get install python-virtualenv
```
Once you have virtualenv installed, just fire up a shell and create
your own environment.
```shell
$ git clone [email protected]:Project-SILPA/Silpa-Flask.git
$ cd Silpa-Flask
$ virtualenv --system-site-packages silpa
New python executable in silpa/bin/python
Installing distribute............done.
```
Now, whenever you want to work on a project, you only have to activate
the corresponding environment. On OS X and Linux, do the following:
```shell
$ . silpa/bin/activate
```
If you are a Windows user, the following command is for you:
```shell
$ silpa\scripts\activate.bat
```
Either way, you should now be using your virtualenv (notice how the
prompt of your shell has changed to show the active environment).
Now you can just enter the following command to get Flask installed in
your virtualenv:
```shell
$ pip install Flask
```
The following modules are available for SILPA:
* [Soundex ](https://github.com/Project-SILPA/soundex)
* [ApproxSearch](https://github.com/Project-SILPA/inexactsearch)
* [Transliteration](https://github.com/Project-SILPA/Transliteration)
* [Spellchecker](https://github.com/Project-SILPA/spellchecker)
* [Hyphenation](https://github.com/Project-SILPA/Hyphenation)
* [Chardetails](https://github.com/Project-SILPA/chardetails)
* [Payyans](https://github.com/Project-SILPA/payyans)
* [Text Similarity](https://github.com/Project-SILPA/text-similarity)
* [N Gram](https://github.com/Project-SILPA/indicgram)
* [Silpa Sort](https://github.com/Project-SILPA/ucasort)
* [Indic Stemmer](https://github.com/Project-SILPA/indicstemmer)
* [Katpayadi Numbers](https://github.com/Project-SILPA/Katapayadi)
* [shingling](https://github.com/Project-SILPA/shingling)
* [Indic-fortune](https://github.com/Project-SILPA/indicfortune) now renamed silpa-fortune
* [scriptrender](https://github.com/Project-SILPA/scriptrender)
Modules to be used with SILPA can be configured in the silpa.conf
file. Modules marked 'yes' should be installed before running SILPA
Here is a module installation example for Soundex. Repeat this for
other modules.
```shell
mkdir modules
cd modules
git clone [email protected]:Project-SILPA/soundex.git
cd Soundex
python setup.py install
```
Now you can start SILPA by running
```shell
$ python silpa.py
```
You can access SILPA at http://localhost:5000
If SILPA was running during a module installation, you will need to
restart the server by killing and running `python silpa.py` again.
How to Contribute?
==========
Your help is most welcome. You can do following to help me
1. ~~Help me separate out modules from original SILPA~~
2. Use it and report bugs
3. Help me update docs
4. ~~Get a new design for SILPA~~
TODO
==========
1. ~~Serve Documentation and other pages through Flask and implement Jinja2~~
2. ~~Get remaining modules of SILPA get their templates~~
3. Provide RESTful API for all modules
Known Bugs
===========
1. ~~Hyphenate module breaks it needs guesslanguage module~~