Printing Postscript from vim

I have a problem printing in postscript from Vim.

I use utf-8 encoding with Czech characters such as "ščřž", but at the output I get a question mark up, and not the correct character.

vim --version

VIM - Vi IMproved 7.2

+ Iconv + multi_byte + Subscription

printer settings:

set printoptions = paper: A4, duplex: off, mapping: n, syntax: n

printer font: courier

+3
source share
2 answers

Rkulla, . , , 'printencoding' vim (utf-8) 'latin1', - . , .

( ) vim printencoding = utf-8 : hardcopy . : 1) printfont = utf-8 2) = utf-8 3) fileencoding = utf-8. , PostScript. - (, ) / ( GUI) lp/lpr, ( , ). , ASCII, PostScript .   Vim printexpr : printexpr = system (' lpr'. (& printdevice == ''? '': '-P'. & printdevice). ''. v: fname_in). delete (v: fname_in) + v: shell_error.   , . Unix/Linux. printexpr a2ps, enscript .

+1

, . TrueType . , Courier ASCII.

: h printencoding :

"printencoding" VIM , 'encoding' ( VIM | + multi_byte | 8- ), . VIM , "latin1" . "encoding" , VIM ( "printencoding" latin1). latin1, , VIM | + iconv | . , . , , . Mac , VMS, HPUX EBCDIC . 1252 Windows OS/2.

0
source

Source: https://habr.com/ru/post/1739275/


All Articles