Re: [Groff] U+0027, U+002D, and U+0060 in code examples?

2012-05-06 Thread Deri James
On Sunday 06 May 2012 12:01:02 Werner LEMBERG wrote: > Ideally, there should be a proper ToUnicode cmap in the PDF so that > copy and paste gives good results. On the PostScript side, it should > be theoretically possible to use the `GlyphNames2Unicode' dictionary > (an undocumented Adobe Distille

Re: [Groff] U+0027, U+002D, and U+0060 in code examples?

2012-05-06 Thread Werner LEMBERG
> * When using -Tps and converting to PDF, copy&paste will produce > U+2212 for the minus sign ('\-' input) and > U+002D for the hyphen ('-' input). > (I tried it with KDE's konqueror-embedded PDF viewer.) > But copy&paste from PDF always needs postprocessing: In particular, >

Re: [Groff] U+0027, U+002D, and U+0060 in code examples?

2012-05-06 Thread Bruno Haible
Ivan Shmakov wrote: > > But a hyphens looks nicer when it is thin; \[u2012] achieves this. > > What you really want to do is to change your groff input so that it > > uses > > > * - for hyphens, > > * \- for minus signs. > > > \fBiconv \-f ISO\-8859\-1 \-t UTF\-8\fP > > converts input from