Re: Unicodifying in Pandoc/highlighting-kate/Gitit

1 view
Skip to first unread message

Gwern Branwen

unread,
Jan 18, 2010, 9:34:49 AM1/18/10
to Gitit
On Wed, Oct 7, 2009 at 1:32 AM, Gwern Branwen <gwe...@gmail.com> wrote:
> I wonder if there's any HTML tech which could display one string (unicode)
> but if the user highlighted it, provide a different (original)? I asked in
> #haskell but nobody had a suggestion.

I know there's *some* way to do this, because this is exactly what
Google Translate does. If you translate a page, it appears as English,
but when you highlight it and copy it elsewhere, you get alternate
French & English sentences.

-------

But anyway, I've written a crude Unicodifying plugin. It turns out
that even just going character by character, you get pretty
serviceable Unicodifying; there are lots of errors that Yi's apparent
lexing avoids*, but it's a start.

* still haven't figured out how Yi does it. Yi.Char.Unicode isn't
imported anywhere!

--
gwern

xwd-126382474031930.png
xwd-126382474931942.png
xwd-126382476331952.png
utf-plugin.patch
Reply all
Reply to author
Forward
0 new messages