google translate
Benjamin R. Haskell
rxvt-unicode at benizi.com
Sun Jun 27 08:38:17 CEST 2010
On Sat, 26 Jun 2010, F10 wrote:
> I have made simple script http://pastebin.org/360502 , save as
> /usr/lib/urxvt/perl/gt
I called it google-translate instead, and put it in my ~/.urxvt/
directory.
> .Xresources
> URxvt.keysym.C-M-e: perl:gt:true
> URxvt.gt_lang.dst: ru
> URxvt.gt_lang.src: en
>
> urxvt -pe gt
Instead of '-pe gt', I added these to my .Xdefaults:
URxvt*perl-lib: /home/bhaskell/.urxvt
URxvt*perl-ext-common: default,google-translate
> Select some words and press Ctrl+Alt+e
>
> but it won't work with cyrrilic.
> any ideas?
Your commented-out code was close. I think you want locale_decode
instead of locale_encode.
Here's the diff: http://pastebin.org/pastebin.php?diff=361368
--
Best,
Ben
More information about the rxvt-unicode
mailing list