Saturday, September 22, 2018

Re: No Cyrlillic text in CP866

Hello, Tony, and many thanks for your reply.

> Yeah, I've made encoding issues in Vim a kind of
> "specialty" of mine, ever since I came to Vim,
> found that it supported UTF-8 (which, unbeknownst
> to me, was a sort of novelty at the time) tried to
> understand what the help said about it, succeeded,
> and wrote a FAQ chapter and a few wiki pages which
> IIRC Bram later used to fill up the already exist-
> ing multibyte documentation.

It is my heretic opinion that Unicode is an overhead
in many cases, including Russian-English texts non
meant for noble typography (with ligatures and ad-
vanced punctuation). Fixed-width character sents,
especially 8-bit ones, super easy to work with,
whereas with Unicode one has to rely on third-party
libraries because efficient implementation is no
easy matter. Although this argument does not apply
to the case in question, I always try to follow the
rule of using the simlest solution possible, which
is why I have tried to configure Vim internally to
use the native character set of my terminal. It
turned out more difficult than using Unicode all-
through whenever possible and converting while read-
ing and writing.

> I have absolutely no experience with CP866, the
> mixed Cyrillic/Latin texts that I write (e.g. the
> dictionary accessed, among others, at
> http://users.skynet.be/antoine.mechelynck/slovarj/ru-fr.abbrev.html
> -- letters А "ah" to part of С "es" already exist)
> are in UTF-8, and my reasoned opinion in this mat-
> ter is that even to read and write files in CP866,
> Windows-1251 or KOI8-R, our friend Антон Шепелев
> ;-) should set 'encoding' to UTF-8 near the top of
> his vimrc (defining the *internal* charset used by
> Vim to be the Universal one) while converting when
> reading and writing by means of 'fileencodings'
> (plural) (q.v.) when possible and of 'fileencod-
> ing' (singular) (see :help ++enc) when necessary.

I believe it the standard setup, and am using it,
but I wonder if Vim can be made to work with bilin-
gual texts in

:set encoding=cp866

When I thus set it, it displays correctly everying
that has been typed theretofre, but shows nothing
when I type in Russian in this mode. Look like a
problem with interpreting the keypresses...

> and assuming "of course" that either Vim is com-
> piled with +iconv, or it is compiled with
> +iconv/dyn and there is an iconv.dll or libi-
> conv.dll where Vim can find it

Yes, mine has it.

> See https://vim.wikia.com/wiki/Working_with_Uni-
> code for more information. Don't miss it! It is a
> little verbose but it should clarify the difficult
> parts which undoubtedly exist in the above para-
> graph.

And I will. Thanks again for so detailed an answer,
Tony.

--
() ascii ribbon campaign -- against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: