-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
84 lines (47 loc) · 1.76 KB
/
INSTALL.txt
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
Installing ``Products.CJKSplitter``
===================================
Installing via ``easy_install``
-------------------------------
1. In your virtualenv::
$ bin/easy_install Products.CJKSplitter
2. Restart zope.
Installing via ``zc.buildout``
------------------------------
1. Add ``Products.CJKSplitter`` to the eggs for your Zope instance.
2. Re-run ``bin/buildout``.
3. Restart zope.
Installing manually
-------------------
1. Unpack the tarball.
2. Move / copy / link the 'Products/CJKSplitter' subdirectory into
Zope's Products dir
3. Restart zope.
CJK native encodings(non-utf8) support
--------------------------------------
If you are using python 2.4 and above, CJK encodings are supported by
default. Or,
- If you are use linux, you should install the extra-encoding package:
http://cjkpython.i18n.org/
- If you use Windows, then you can choose ZopeChinaPak:
http://www.zope.org/Members/panjunyong/ZopeChinaPak
Add to the catalog
------------------
1. Add a ZCTextIndex Lexicon, selecting the ``CJKSplitter`` splitter.
2. Add a ZCTextIndex, and select the Lexicon created in step 1.
Upgrading an existing ZCTextIndex
---------------------------------
1. Examine the index in the ZMI to determine the name of the lexicon it
uses, e.g. ``text_lexicon``
2. Rename the existing lexicon, e.g. from ``text_lexicon`` to
``text_lexicon-ASIDE``.
3. Create a new lexicon with the original name (``text_lexicon``), choosing
the ``CJKSplitter`` splitter.
4. Re-index the index(es) which used the lexicon.
5. Once you have verified that the new lexicon works, delete the one
you renamed in step 2.
Upgrade
-------
0.1 to 0.5
you should reindex all the ZCTextIndex in your catalog
0.2 to 0.5
no exta upgrade needed. (not tested)