Sunday, October 4, 2015

Re: How do I print "special" characters?

2015-10-04 16:42 GMT+03:00 BC <bruce.armstrong@gmail.com>:
> When I do :hardcopy my printout is turning characters that appear correctly in the editor into gibberish. These are accented characters in Spanish words, and also fancy quotation marks and apostrophes (which I normally don't use but I was printing material that I'd pasted in from a word document) How can I fix this?

See :h 'printencoding': it is only possible if there is an encoding
file $VIMRUNTIME/print/{encoding}.ps with encoding which contains all
of the characters you want to print (you must set printencoding option
to this encoding name before printing) and this directory contains
only single-byte encodings AFAIK. It is probably better to use either
formatvim or tohtml Vim plugin to convert your file to something
highlighted (specifically formatvim supports LaTeX and HTML (and
anything else, but only if you are willing to write the backend),
tohtml supports only HTML), and then print the result.

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

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