* [sup-talk] Want utf-8 ?
@ 2007-10-09 13:21 Pierre Baillet
2007-11-02 1:33 ` William Morgan
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Baillet @ 2007-10-09 13:21 UTC (permalink / raw)
Hi,
I quickly hacked utf-8 support in sup. My first modification aimed at
allowing Unicode alias in the contact manager. I succeeded in doing this and
also enabled utf-8 support in the inbox-mode (and probably in some other
place)...
How to ?
=======
- After installing ncurses, go to ~GEM_HOME/gems/ncurses-0.9.1 and apply
extconf.patch
- make, make install you now have a ncursesw ruby library
- again, go to ~GEM_HOME/gems/sup- 0.1/lib and apply patch sup.rb.patch
- run sup
sup should now display accented keys correctly in the inbox mode. move to
the contact manager 'C', go to some contact, press 'a' and type stuff with
accent (like "ch?rie"). The accent should display normally in the input
field AND in the contact manager.
the sup.rb patch only enforces a call to setlocale in order to take the
current user locale in account (needed for ncurses to display correctly
accented characters). All the rest is done via my ncurses patch (which I'm
about to suggest to the ncurses maintainer)
Please let me know how it goes for you !
--
Pierre Baillet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extconf.patch
Type: application/octet-stream
Size: 759 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup.rb.patch
Type: application/octet-stream
Size: 650 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0003.obj
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-02 1:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 13:21 [sup-talk] Want utf-8 ? Pierre Baillet
2007-11-02 1:33 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox