google translate
Raph
gibboris at gmail.com
Sun Jun 27 15:06:25 CEST 2010
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
More information about the rxvt-unicode
mailing list