[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Copying to unicode.
From: |
Andreas Politz |
Subject: |
Re: Copying to unicode. |
Date: |
Wed, 08 Dec 2010 15:34:23 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
"Steven W. Orr" <steveo@syslang.net> writes:
> People send me stuff from Outlook all the time. I sometimes want to
> copy some of the text to a file I'm editing in emacs. The text
> displays fine in emacs, but what I really want to do is to set myself
> up so that *funny* characters end up being pasted in using unicode.
>
> I see that there's something called the
> nonascii-translation-table. I'm looking for low-hanging fruit. Has
> anyone already written something cool that translates funny characters
> to keep me in unibyte? Examples would be:
>
> Open or close double quotes ==> " ( \042 )
> enspace, mspace, etc ==> ' ' ( \040 )
> Funny single quotes ==> ' ( \047 )
> etc...
>
> Anyone? Or is this a dumb idea?
>
> Thanks.
Take a look at the variable `interprogram-paste-function'. All you
really have to do is using it's value (a function) to obtain the
clipboard and return some modified string, according to your needs.
-ap
- Re: Copying to unicode.,
Andreas Politz <=