Author Topic: Unicode Pim Terminal Apps  (Read 5449 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« on: March 05, 2007, 09:45:37 am »
It's great to see Wellswang compile rxvt-unicode that can take unicode characters, besides gtkterm2.

I did get xim input working in these terminals. However, the question is whether there is any terminal applications for PIM that can do that.

I tried calcurse and a couple others, but even though they can run under these terminals, they don't seem to like unicodes, let alone xim input.

Is there any working terminal PIM applications that can work with unicode and xim under pdaX?

So far I am only aware of gvim, but it is still too complicated and not so intuitive to me as a non-hacker and non-programmer.

Any good suggestions? I bet many CJK users are also seeking something like this.
 
« Last Edit: March 05, 2007, 09:46:37 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #1 on: March 05, 2007, 10:16:15 am »
Further googling a bit I came across this which looks very promising:

http://blog.kanru.info/archives/category/linux/

Sorry, it's in Chinese, just because it's talking about using Xft in the GTK interface of Emacs 22!  

So I wonder if anyone can verify if the emacs package for pdaX can do this. If yes, I will definitely go for it, and, I promise a noob-free guide on "using emac for pim under pdaX" for the dummies (like me) here.
Am I already going too far?

[EDIT]
Found another one on compiling (in English!):  
http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs
Looks good. Will give it a go when leaving from work late tonight.
« Last Edit: March 05, 2007, 10:35:53 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #2 on: March 05, 2007, 11:18:31 am »
Quote
Further googling a bit I came across this which looks very promising:

http://blog.kanru.info/archives/category/linux/

Sorry, it's in Chinese, just because it's talking about using Xft in the GTK interface of Emacs 22! 

So I wonder if anyone can verify if the emacs package for pdaX can do this. If yes, I will definitely go for it, and, I promise a noob-free guide on "using emac for pim under pdaX" for the dummies (like me) here.
Am I already going too far?

[EDIT]
Found another one on compiling (in English!):   
http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs
Looks good. Will give it a go when leaving from work late tonight.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155404\"][{POST_SNAPBACK}][/a][/div]

I already compiled and use XftGnuEmacs. Everything works quite well except the file size is too big.

- yonggun
« Last Edit: March 05, 2007, 11:19:39 am by 2or0 »
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #3 on: March 08, 2007, 12:36:36 pm »
Hi 2or0,

Could you upload the package and show me how to compile XftGnuEmacs?

I've tried to compiled from the cvs source.
At first I ran into /usr/lib/crt1.o not found error when "make bootstrap"
Then I learned from a newsgroup posting a hint that the crt*.o stuff now go to the new locations in the compiler. This is fixed after changing the paths in the xterm.h
But then I ran into errors when it comes to the gtk stuff.
First it said gtk.h and gdkx.h are not found (they seem to be specified correctly in src/Makefile. Then I changed them into full paths. And I got tons of syntax errors when "make bootstrap" was reading the headers. What to do?  
Many thanks!

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #4 on: March 09, 2007, 01:53:08 am »
Quote
Am I already going too far?
If you want to run emacs in a terminal you don't need the xft  branch,
you don't even need to build with X at all for what it's worth.

about pim in emacs, have a look at "planner" and at "org-mode". (and bbdb for addresses)
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #5 on: March 09, 2007, 05:36:47 am »
Quote
Quote
Am I already going too far?
If you want to run emacs in a terminal you don't need the xft  branch,
you don't even need to build with X at all for what it's worth.

about pim in emacs, have a look at "planner" and at "org-mode". (and bbdb for addresses)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Hey, thanks pgas.    
The reason I wanna use XftGnuEmacs is that there is unicode support, which means in principle I can use xim to handle CJK stuff in emacs.
It seems the current emacs 21 does not have unicode support, so even if i run in under, let say, unicode-rxvt or gtkterm2, I am not sure if i can get unicode working.
But correct me if am wrong (i reall wish I am    )

I just don't feel like wasting so much time again fiddling with this and that and finally feeling tired and giving up all the effort.

And this is what all I want to do:

Planner mode + Planner brower  

[img]http://www003.upp.so-net.ne.jp/quasi/red/planner-browser/sampleimage.png\" border=\"0\" class=\"linked-image\" /]

[a href=\"http://www003.upp.so-net.ne.jp/quasi/red/planner-browser/planner-browser-en.html]http://www003.upp.so-net.ne.jp/quasi/red/p...browser-en.html[/url]
« Last Edit: March 09, 2007, 05:38:20 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #6 on: March 09, 2007, 05:54:37 am »
emacs21 supports unicode,
emacs22 has better support for unicode

I believe the unicode xft branch uses unicode internally, which doesn't mean emacs22
doesn't support unicode.

Note, that I am not an expert about these subjects, you can find more infos there:
http://www.emacswiki.org/cgi-bin/wiki.pl?UniCode


and in any case, if you only want to use it in a terminal you can use  --with-x=no

(I think some people might  give you better answers on this on #emacs@irc.freenode.net)
« Last Edit: March 09, 2007, 05:56:41 am by pgas »
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #7 on: March 09, 2007, 08:25:35 am »
Quote
emacs21 supports unicode,
emacs22 has better support for unicode
I believe the unicode xft branch uses unicode internally, which doesn't mean emacs22
doesn't support unicode.
Note, that I am not an expert about these subjects, you can find more infos there:
http://www.emacswiki.org/cgi-bin/wiki.pl?UniCode
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155818\"][{POST_SNAPBACK}][/a][/div]

Thanks for the pointer. From what i read there emacs21 has (rather) limited unicode support; emacs22 still cannot handle unicode characters like CJK correctly.... which means I may have to fall back on xftgnuemacs again.
I will give it one more try to compile without gtk (perhaps x too) support. Will post my result later today.  
« Last Edit: March 09, 2007, 08:25:59 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

tanjian2

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Unicode Pim Terminal Apps
« Reply #8 on: March 09, 2007, 08:35:37 am »
Quote
Quote
emacs21 supports unicode,
emacs22 has better support for unicode
I believe the unicode xft branch uses unicode internally, which doesn't mean emacs22
doesn't support unicode.
Note, that I am not an expert about these subjects, you can find more infos there:
http://www.emacswiki.org/cgi-bin/wiki.pl?UniCode
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Thanks for the pointer. From what i read there emacs21 has (rather) limited unicode support; emacs22 still cannot handle unicode characters like CJK correctly.... which means I may have to fall back on xftgnuemacs again.
I will give it one more try to compile without gtk (perhaps x too) support. Will post my result later today.  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155833\"][{POST_SNAPBACK}][/a][/div]

Have you tried talking to the guy here [a href=\"http://www.focv.com/ipkg/]Zaurus emacs[/url]? Seems he has emacs running with lots of Japanese font support - albeit on a Sharp ROM ...
« Last Edit: March 09, 2007, 08:36:18 am by tanjian2 »
SL-C3000(Spitz) - pdaXii13 5.5alpha + sound enhanced kernel - MD in 1 great big partition -  Ambicom CF Wifi + USB Ethernet  and NOW Zubuntu on a 4Gb SD

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #9 on: March 09, 2007, 10:08:43 am »
Nice! That should work as it doesn't seem to use any qtopia stuff. I will try it out after I'm done with my trial build.

[EDIT]
hmmm ... seems i was getting too excited. His pdf readme says the x11 version depends on X/Qt. Perhaps the terminal mode still works. let's see ...  
« Last Edit: March 09, 2007, 10:11:21 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

deckard73

  • Newbie
  • *
  • Posts: 33
    • View Profile
Unicode Pim Terminal Apps
« Reply #10 on: March 09, 2007, 02:21:29 pm »
Hello

I compiled emacs-cvs by myself and did a set-input-method japanese inside emacs.
After that I can use hiragana, katakana, kanji in emacs buffer. emacs edict works fine.
You need a japanese font, too!

One problem (bug) exists. Some characters disappear if I move the cursor around. If the cursor is again over the character it appears again. Strange. I use the gtk version of emacs. But same for other toolkits.
On PC same works very well without the above mentioned bug

Hope this info helps
Enno

Quote
Nice! That should work as it doesn't seem to use any qtopia stuff. I will try it out after I'm done with my trial build.

[EDIT]
hmmm ... seems i was getting too excited. His pdf readme says the x11 version depends on X/Qt. Perhaps the terminal mode still works. let's see ... 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155840\"][{POST_SNAPBACK}][/a][/div]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #11 on: March 09, 2007, 02:38:34 pm »
Quote
Hello

I compiled emacs-cvs by myself and did a set-input-method japanese inside emacs.
After that I can use hiragana, katakana, kanji in emacs buffer. emacs edict works fine.
You need a japanese font, too!

One problem (bug) exists. Some characters disappear if I move the cursor around. If the cursor is again over the character it appears again. Strange. I use the gtk version of emacs. But same for other toolkits.
On PC same works very well without the above mentioned bug

Hope this info helps
Enno

[div align=\"right\"][a href=\"index.php?act=findpost&pid=155852\"][{POST_SNAPBACK}][/a][/div]

Great. Thanks. So could you show me how to compile with gtk enabled?  
I was building it again for around 3 hours (still make bootstrap). Things seem to go well (without gtk but stilll with x). Unfortunately i left my PSP power pack at home and the make sucked up almost all the juice... So gotta go home tonight and start over again. This time will do it with overclocking.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

deckard73

  • Newbie
  • *
  • Posts: 33
    • View Profile
Unicode Pim Terminal Apps
« Reply #12 on: March 11, 2007, 01:58:18 pm »
Hi

[/quote]

Great. Thanks. So could you show me how to compile with gtk enabled?  
I was building it again for around 3 hours (still make bootstrap). Things seem to go well (without gtk but stilll with x). Unfortunately i left my PSP power pack at home and the make sucked up almost all the juice... So gotta go home tonight and start over again. This time will do it with overclocking.
[/quote]

I did it with padXrom Version 1.1.0beta1

check out emacs-cvs sources. Then ...
 
If I remember right a

./configure --prefix=/mnt/card/local/ --with-x-toolkit=gtk
make
make install

did the job

It takes a long time!

bye
Enno

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Unicode Pim Terminal Apps
« Reply #13 on: March 11, 2007, 05:32:46 pm »
Thanks, Enno.
A little update:
Alright, now XftGnuEmacs seems to compile with gtk... (Earlier on I tried to compile without gtk and it went through.)
It took me quite a bit of time to figure out what was going on.
Basically the tons of errors are due to the wrong pointers in many headers to the freetype, gtk, gdk and glib headers.
I just did a quick and dirty trick by making symlinks of all the required headers in  /opt/native/.../armv5tel-cacko-linux/include/
Now I can only wait for a few more hours to see what happens next ...
« Last Edit: March 11, 2007, 05:33:35 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

deckard73

  • Newbie
  • *
  • Posts: 33
    • View Profile
Unicode Pim Terminal Apps
« Reply #14 on: March 12, 2007, 12:28:30 pm »
Quote
Thanks, Enno.
A little update:
Alright, now XftGnuEmacs seems to compile with gtk... (Earlier on I tried to compile without gtk and it went through.)
It took me quite a bit of time to figure out what was going on.
Basically the tons of errors are due to the wrong pointers in many headers to the freetype, gtk, gdk and glib headers.
I just did a quick and dirty trick by making symlinks of all the required headers in  /opt/native/.../armv5tel-cacko-linux/include/
Now I can only wait for a few more hours to see what happens next ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155970\"][{POST_SNAPBACK}][/a][/div]

Oops. I forgot to mention the symlink problem. Its half a year ago I compiled emacs. So I didnt remember. I use planner-mode, too. Changed some of the special keys to get the full power of shortcuts. I also started a translation of the planner manual into german. 25 percent done so far. Hard work, less time

On the other hand, I dislike some planner internals. It should not have data doubling. Remember DRY-principle. But working with is fun. This tool is great.

bye
Enno