Pupeno wrote:
> Yes, this is KDE (Kubuntu to be precise).

Actually, for me inserting text from clipboard in UTF-8 works well (I have
UTF-8 locale though, maybe that's the difference) -- it comes to LyX in
ISO-8859-2.

However, character conversion of clipboard in KDE are really trivial:

prelozeno=$(dcop klipper klipper getClipboardContents \
        | iconv -f utf8 -t iso-8859-2)
dcop klipper klipper setClipboardContents $prelozeno

(you may need to use -s and -c -- iconv(1) is your friend)

Play with it, make script out of it and attach the script to some key
shortcut in KDE (Control Center/Regional & Accessibility/Keyboard
shortcuts). You may also need to set correctly IFS variable (read in
bash(1) about that one; maybe unsetting is what's needed? -- just in case
your multi-line and multi-paragraph texts get mangled).

Best,

Matěj
-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: [EMAIL PROTECTED]
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
He inherited some good instincts from his Quaker forebears, but
by diligent hard work, he overcame them.
      -- James Reston
         (about Richard Nixon)


Reply via email to