On 09/06/10 07:43, Jürgen Krämer wrote:
Hi,
Linda W wrote:
I am trying to edit Japanese characters intermixed with latin
characters in some text saved with Firefox.
It displays ok in both the command line version on linux and X, and
paste works ok on the command line / terminal version on linux. Paste
doesn't work for extended characters while it does for normal
characters. But that's it. I haven't had any luck getting them to
display correctly on Windows.
have you set 'guifont' to a font that includes kana and kanji? You can
use MS Mincho or MS Gothic.
Regards,
Jürgen
...or MingLiU, which was my favourite CJK font when I was on Windows.
See also:
http://vim.wikia.com/wiki/Working_with_Unicode
http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI
which I wrote at a time when I used double-boot between Windows and
Linux. What I have *not* tried, however, is running a Windows system and
an X11 display at the same time.
Copy & paste ought to work between "Firefox for Windows" and "gvim for
Windows running in UTF-8" (if correctly set, see the first wiki link
above), they represent the data the same way. Between an X11 program and
a "Windows" program (in either direction) it might happen that the one
is trying to use UTF-8 while the other thinks it's UTF-16le or UCS-2le,
and if that's the case, all hell may break loose. If BMP characters
(U+0000 to U+FFFF) can be pasted but not higher ones, then maybe one
program is using UTF-16le (with surrogate codepoints to represent
codepoints above U+FFFF by means of two 16-bit words each) while the
other one uses UCS-2le (with no understanding of surrogates). In that
case you are perhaps using an obsolete version of the latter program --
for the record, the current "stable" version of Firefox is Firefox 3.6.3
and can be had by browsing to http://www.getfirefox.com/ while gvim
needs to be at version 7.1.116 or higher to _display_ codepoints higher
than U+FFFF (it could _edit_ them all right even before that version,
but they were displayed as question marks or such).
Best regards,
Tony.
--
5 out of 4 people have trouble with fractions.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php