1 |
|
2005-07-01 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
First step towards unicode. With this roughly we're at step 1 |
4 |
|
string_representation.txt |
5 |
|
|
6 |
|
* Doc/technotes/string_representation.txt: New. Document how |
7 |
|
strings are represented in Thuban and how to get to a Unicode |
8 |
|
Thuban. |
9 |
|
|
10 |
|
* Thuban/__init__.py (set_internal_encoding) |
11 |
|
(unicode_from_internal, internal_from_unicode): New. The first few |
12 |
|
functions for the internal string representation |
13 |
|
|
14 |
|
* Thuban/UI/about.py (unicodeToLocale): Removed. Use |
15 |
|
internal_from_unicode instead. |
16 |
|
|
17 |
|
* Thuban/UI/__init__.py (install_wx_translation): Determine the |
18 |
|
encoding to use for the internal string representation. Also, |
19 |
|
change the translation function to return strings in internal |
20 |
|
representation even on unicode builds of wxPython |
21 |
|
|
22 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): Decode |
23 |
|
filenames too. |
24 |
|
(SessionLoader.start_clrange): Use check_attrs to decode and check |
25 |
|
the attributes. |
26 |
|
|
27 |
|
* Thuban/Model/xmlreader.py (XMLReader.encode): Use |
28 |
|
internal_from_unicode to convert unicode strings. |
29 |
|
|
30 |
|
* Thuban/Model/xmlwriter.py (XMLWriter.encode): Use |
31 |
|
unicode_from_internal when applicable |
32 |
|
|
33 |
|
* test/runtests.py (main): New command line option: |
34 |
|
internal-encoding to specify the internal string encoding to use |
35 |
|
in the tests. |
36 |
|
|
37 |
|
* test/support.py (initthuban): Set the internal encoding to |
38 |
|
latin-1 |
39 |
|
|
40 |
|
* test/test_load.py (TestSingleLayer.test, TestClassification.test) |
41 |
|
(TestLabelLayer.test): Use the internal string representation when |
42 |
|
dealing with non-ascii characters |
43 |
|
|
44 |
|
* test/test_load_1_0.py (TestSingleLayer.test) |
45 |
|
(TestClassification.test, TestLabelLayer.test): Use the internal |
46 |
|
string representation when dealing with non-ascii characters |
47 |
|
|
48 |
|
* test/test_load_0_9.py (TestSingleLayer.test) |
49 |
|
(TestClassification.test): Use the internal string representation |
50 |
|
when dealing with non-ascii characters |
51 |
|
|
52 |
|
* test/test_load_0_8.py (TestUnicodeStrings.test): Use the |
53 |
|
internal string representation when dealing with non-ascii |
54 |
|
characters |
55 |
|
|
56 |
|
* test/test_save.py (XMLWriterTest.testEncode) |
57 |
|
(SaveSessionTest.testClassifiedLayer): Use the internal string |
58 |
|
representation when dealing with non-ascii characters where |
59 |
|
applicable |
60 |
|
|
61 |
2005-06-30 Bernhard Herzog <[email protected]> |
2005-06-30 Bernhard Herzog <[email protected]> |
62 |
|
|
63 |
* test/runtests.py: Untabify. |
* test/runtests.py: Untabify. |