Zim

did pyzim support chinese traditional

Bug #573480 reported by Alex Tu
This bug report is a duplicate of:  Bug #572805: chinese path or filename supported. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
New
Undecided
Unassigned

Bug Description

Hello, I am a chinese user.
I found pyzim could not support chinese index.
If I use chinese index, and error occor like below:
http://picasaweb.google.com.tw/lh/photo/APAFILAtvVnLj0ZzJrlHsA?feat=directlink

And search function could not search chinese term.

So, I guess pyzim does not support chinese. Right?

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 573480] [NEW] did pyzim support chinese traditional

On Sun, 2010-05-02 at 06:33 +0000, CCTU wrote:
> Hello, I am a chinese user.
> I found pyzim could not support chinese index.
> If I use chinese index, and error occor like below:
> http://picasaweb.google.com.tw/lh/photo/APAFILAtvVnLj0ZzJrlHsA?feat=directlink
>
> And search function could not search chinese term.
>
> So, I guess pyzim does not support chinese. Right?

In principle all languages should be supported. However we only support
UTF-8 encoding at the moment. Work to support other encodings still
needs to be done.

Regards,

Jaap

Revision history for this message
Alex Tu (alextu) wrote :

Thanks for your answer.
I found chinese index could work fine in Ubuntu with pyzim.
It seems like chinese encode in Ubuntu is UTF-8.

So I guess if I could change encoding to UTF-8 when edit index, chinese index may work in windows XP with pyzim.
But I don't know how to change input encoding in pyzim.
Could you teach me how to try this?

But even chinese index could work in Ubuntu with pyzim, chinese search still failed.
I could not understand why search function could work in Ubuntu.

Revision history for this message
Alex Tu (alextu) wrote :

sorry I forgot to descript my environment.

In windows XP:
I install pyzim-0.46 on http://www.glump.net/software/zim
This version could not support chinese index.
But I try pyzim-0.44, it seem support chinese index.
This is my tarball of pyzim-0.44 I used.
http://dl.dropbox.com/u/2495108/zim-0.44.tar.gz

In Ubuntu:
I try pyzim-0.46 and it work fine with chinese index.

Revision history for this message
Alex Tu (alextu) wrote :

Attach my test note,
there is a chinese index "中文測試" under "root_eng" index.
http://dl.dropbox.com/u/2495108/TestNotes.rar

And this index could show up normally in Ubuntu with pyzim-0.46.
There is a snapshot.
http://picasaweb.google.com/lh/photo/slJ_PdDja3bZo9ZIRmzHow?feat=directlink

But in windows xp and open the same note by pyzim-0.46, I could not find that chinese index in index window.

I assume that, if this note could be open in Ubuntu and show chinese index normally, this note index should be saved by utf-8 encoding.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

I think this is a duplicate of the bug #572805.

Revision history for this message
Alex Tu (alextu) wrote :

Thanks for your kindly response.
But here is an issue when I excute python code in windows.

I follow README file and install
gtk+-2.16.6
python-2.6.5
python-gtk-2.16.0
python-gobject-2.20.0

When I excute D:\zim-0.46>test.py
It cause an error and response:

WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
Traceback (most recent call last):
  File "D:\zim-0.46\test.py", line 326, in <module>
    main()
  File "D:\zim-0.46\test.py", line 169, in main
    test = loader.loadTestsFromName(name)
  File "C:\Python26\lib\unittest.py", line 584, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'applications'

Is there any more I need to do?

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

@CCTU: this is a generic error when running the test. May or may not be related to the bug report above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.