Are there any plans to support UTF8_STRING in Vim? It is pretty much the only way to copy/paste text between newer apps ( mozilla, etc) on X11....
679
Bram Moolenaar
Bram@...
Aug 8, 2002 7:25 pm
... It is in the todo list. It is unlikely that I implement this myself, thus it is waiting for someone to make a patch for it. -- hundred-and-one symptoms of...
680
Maiorana, Jason
jmaiorana@...
Aug 9, 2002 1:48 pm
ok, i got a bit done last night: Here's a patch to the file "gui_gtk_x11.c" that works for me. Im running an old X server, 3.x series, and gtk 1.2, but im...
681
Bram Moolenaar
Bram@...
Aug 9, 2002 1:57 pm
... Great. I'll try including this patch when I have some time (might be a while...). For the conversion, look in mbyte.c. The functions convert_setup() and ...
682
Maiorana, Jason
jmaiorana@...
Aug 9, 2002 3:55 pm
... one quick question: how do you determine which is the appropriate encoding to pass to "clip_yank_selection". It looks like the GDK functions all assume...
683
Bram Moolenaar
Bram@...
Aug 10, 2002 6:44 pm
... I dunno. You could try looking in the GTK documentation (but you probably end up looking in the source code...). ... The value of 'encoding39; defines the...
684
Maiorana, Jason
jmaiorana@...
Aug 12, 2002 7:42 pm
... Its says in their doc's that "gdk_text_property_to_text_list" converts from "compound text" the process's current locale. Vim however needs the text to be...
685
Glenn Maynard
glenn@...
Aug 12, 2002 8:15 pm
... Just pass p_enc. -- Glenn Maynard...
686
Maiorana, Jason
jmaiorana@...
Aug 15, 2002 5:54 pm
ok, done. Tested - works good for me. [ UTF8_STRING support for gvim gtk gui mode, does conversion to/from utf8 using p_enc, string_convert ] *patch attached ...
687
Maiorana, Jason
jmaiorana@...
Aug 15, 2002 5:57 pm
looks like the attachment was trimmed, ... +++ gui_gtk_x11.c Wed Aug 14 23:22:46 2002 @@ -83,7 +83,8 @@ SELECTION_STRING, SELECTION_TEXT, ...
688
Glenn Maynard
glenn@...
Aug 15, 2002 7:44 pm
... Don't forget to free cvrt with convert_setup(&cvrt, NULL, NULL); (or perhaps "", ""; I forget offhand.) It needs to close iconv, at least. -- Glenn...
689
Tony Mechelynck
antoine.mechelynck@...
Aug 15, 2002 10:44 pm
to start the gui from within the console (assuming a windowing environment ... HTH, Tony. ... From: "Maiorana, Jason" <jmaiorana@...> To:...
690
seer26@...
Aug 16, 2002 4:25 am
Well I was testing gvim's clipboard behavior I came across a small problem: gvim's cannot cut&paste between each other across disparate encodings. The problem...
691
Bram Moolenaar
Bram@...
Aug 16, 2002 8:12 am
... Good point. When two Vims use a different 'encoding39; then copy/paste between them won't work. ... Conversion between 'encoding39; and utf-8 will not always...
692
seer26@...
Aug 16, 2002 4:50 pm
thanks for the response bram, ... Hrm, I was under the impression that converting from non-unicode to unicode was always possible. And the reverse is possible ...
693
Glenn Maynard
glenn@...
Aug 16, 2002 9:10 pm
... Not all platforms Vim runs on have iconv. Of course, it's fine to use it as much as needed when it's available, but you can't depend on it. ... You can...
694
Tony Mechelynck
antoine.mechelynck@...
Aug 16, 2002 10:49 pm
I suppose you guys don't mind but sometimes Unicode-to-other conversion will give ambiguous, non-uniform or dubious results such as Greek eta becoming Latin y...
695
Glenn Maynard
glenn@...
Aug 16, 2002 11:16 pm
... Converting from Unicode to ISO-8859-7 converts Greek eta (U+0397) to Greek eta (0xC7). Converting from Unicode to ISO-8859-1 does the same thing to eta as ...
696
Tony Mechelynck
antoine.mechelynck@...
Aug 16, 2002 11:25 pm
Well, maybe not iconv then. (Guess I'm a little out of my depth in this ml.) Or is it some browsers trying to "improve" on non-available from-unicode ...
697
Glenn Maynard
glenn@...
Aug 16, 2002 11:34 pm
... Lynx has its own transliteration. It's poor to uselessness, in my experience. (I've only tried it with Japanese hiragana; that's an easy translit, though...
698
seer26@...
Aug 17, 2002 5:26 pm
When using vim/gvim vith EUC-JP or SJIS it doesnt seem to work: the japanese characters are not displayed, instead i see the the raw coding. Perhaps its...
699
Glenn Maynard
glenn@...
Aug 17, 2002 8:31 pm
... If you're using enc=euc-jp, try enc=utf-8 and just changing the fileencoding for the files you're editing. If you have iconv available, there should never...
700
ycchang
ycchang@...
Aug 18, 2002 8:31 am
Hi! As we know that Terminal.app (in Mac OS 10.1 ) is a UTF-8 aware terminal in default, and the multi-byte input method such as Chinese will output a ...
701
Bram Moolenaar
Bram@...
Aug 18, 2002 12:34 pm
... Yes, the font used must match 'encoding39;. There is no conversion between 'encoding39; and the font you use like there is for a terminal. ... Is this based...
702
Glenn Maynard
glenn@...
Aug 18, 2002 10:03 pm
In win32 gui_mch_draw_string: if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT) ExtTextOut(s_hdc, TEXT_X(col), TEXT_Y(row), foptions | ETO_IGNORELANGUAGE, ...
703
Maiorana, Jason
jmaiorana@...
Aug 19, 2002 5:35 pm
... exist me too :) ... in my ~/.vimrc i use: " set encoding=utf-8 " I had no problem opening any of those files: vim (6.1) stayed in utf-8, so that at least...
704
Bram Moolenaar
Bram@...
Aug 20, 2002 9:17 am
... It's all documented, but it's a bit complicated. This is required to make it work in all situations. You did read the docs for 'fileencodings'? It...
Ive finished with changing ui.c, starting from Noah's changes. http://members.telocity.com/~seer26/ui_utf8.diff With this change you can use "* "+ from a...
707
Bram Moolenaar
Bram@...
Aug 21, 2002 8:37 am
... Thanks. I would like to get some feedback on this patch. Does this work as expected on different systems? I wonder if we should also add a _VIM_UTF8_TEXT...