code of Vim vs. function of OS ?

34 views
Skip to first unread message

mita putnik

unread,
Nov 8, 2019, 10:59:34 AM11/8/19
to vim_dev
Hi, all,
Prompt pls. 

1) Who - your code of text editor or function of operations system - interpret the control codes 0x00 till 0x1f (e.g. LineFeed 0x0a)? If these codes have glyphs in .ttf-files, and we wanna see these glyphs in text editor, changes should be done in text editor or in system function?

2) The same question for control codes 0x80 till 0x9f.

3) Opposite question: who interpret code 0x20 (Space) as mark to bring text to new line? To change code of Space to another one (e.g. to 0x49), where changes should be done?

4) To interpret code of old regular letter (e.g. 0x48) as control code (e.g. as LineFeed), where changes should be done?

5) For symbols 0x00 till 0x7f, what are the ways to use 7-bits encoding table with classical .ttf-files without converting text into 8-bits encoding?

P.S.
Reasons of questions:

(regular letters are 0x00 till 0x46, control codes 0x47 till 0x7f)

mita putnik

unread,
Nov 9, 2019, 6:22:36 AM11/9/19
to vim_dev
hm, can anybody prompt?

Gary Johnson

unread,
Nov 11, 2019, 2:48:17 PM11/11/19
to vim_dev
On 2019-11-08, mita putnik wrote:
> Hi, all,
> Prompt pls. 
>
> 1) Who - your code of text editor or function of operations system - interpret
> the control codes 0x00 till 0x1f (e.g. LineFeed 0x0a)? If these codes have
> glyphs in .ttf-files, and we wanna see these glyphs in text editor, changes
> should be done in text editor or in system function?
>
> 2) The same question for control codes 0x80 till 0x9f.

I don't know much about this because I seldom have issues with
displaying characters, but I might be able to help a little.

If you want Vim to emit the actual code for a character instead of
emitting some translation (as, for example, emitting the byte 0x04
rather than the ASCII pair ^D), you can add that character to the
'isprint' option. See

:help 'isprint'

You may have a problem displaying linefeed the way you want because
Vim does its own end-of-line processing and doesn't emit linefeeds
in a buffer. See

:help 'list'
:help 'listchars'

> 3) Opposite question: who interpret code 0x20 (Space) as mark to bring text to
> new line? To change code of Space to another one (e.g. to 0x49), where changes
> should be done?
>
> 4) To interpret code of old regular letter (e.g. 0x48) as control code (e.g. as
> LineFeed), where changes should be done?

If I understand your question correctly, I think you could do this
sort of transformation using the +conceal feature.

> 5) For symbols 0x00 till 0x7f, what are the ways to use 7-bits encoding table
> with classical .ttf-files without converting text into 8-bits encoding?

No idea.

Regards,
Gary

Reply all
Reply to author
Forward
0 new messages