google translate

F10 aspel at ukr.net
Sun Jun 27 22:18:12 CEST 2010


Thanks to all
I created a new project on googlecode
http://code.google.com/p/urxvt-gt/


Raph I added your idea.


On Sun, Jun 27, 2010 at 03:06:25PM +0200, Raph wrote:
> On Sat, Jun 26, 2010 at 09:31:16PM +0300, F10 wrote:
> > I have made simple script
> > http://pastebin.org/360502 , save as /usr/lib/urxvt/perl/gt
> > 
> > .Xresources
> > URxvt.keysym.C-M-e: perl:gt:true
> > URxvt.gt_lang.dst: ru
> > URxvt.gt_lang.src: en
> > 
> > urxvt -pe gt
> > Select some words and press Ctrl+Alt+e
> > 
> > but it won't work with cyrrilic.
> > any ideas?
> Quite a nice extension.
> I think it would be even nicer to do something like :
> URxvt.keysym.C-M-e: perl:gt:en-ru
> URxvt.keysym.C-M-r: perl:gt:ru-en
> So we don't need 2 more Xresources. Perl would just have to split $cmd
> in on_user_command() and pass them to gt_upload().
> 
> Alson using locale_decode() I still get html entities like (
> Maybe decode_entities() from HTML::Entities would be a better alternative.
> 
> Thanks for sharing.
> 
> Raph
> 
-- 
Only one 0_o




More information about the rxvt-unicode mailing list