In cmtex10.pfb we see dup 45 /minus put. How to change it to dup 45 /hyphen put? Is the following solution correct?
t1disasm `kpsewhich cmtex10.pfb` > cmtex10.pps
perl -i -pe 's!45 /minus!45 /hyphen!' cmtex10.pps
t1asm cmtex10.pps cmtex10.pfb
rm cmtex10.pps
This question is connected with this question.
minus? It is, after all, full of maths symbols. What you're doing looks like a hack to superficially gloss over an issue with the PDF viewer to me, rather than a solution to a problem, let alone a correct one. – cfr Mar 23 '16 at 02:03minusis part of the extended ASCII set covered by this font in MetaFont form. It is listed intset.mfwhich is one of the lists used in creating this font. So I thinkminusis correct. (I know somebody said it was an artefact of conversion to postscript, but I don't see any evidence for that.) If you want to change it, that's one thing, but there is nocorrectway to do it, because the glyph name is correct as far as I can see. (Or it is a bug in Knuth's design of CM.) – cfr Mar 23 '16 at 02:10batch modesounds Windowsesque.) – cfr Mar 23 '16 at 03:12tset.mfas an answer to this post: http://tex.stackexchange.com/questions/300239/incorrect-cmap-code-for-in-cmtex-font – Igor Liferenko Mar 23 '16 at 05:39cmtex10.pfbis determined fromtset.mf. Then from which file is determined glyph name ("hyphen") for code 45 incmtt10.pfb? – Igor Liferenko Mar 23 '16 at 13:23cmttand "minus" tocmtex" is intentional, and stems ultimately from the unicode/ascii conflation of the two in the code assignment. knuth wanted to provide an "extended ascii character set" withcmtex, and this wasn't a problem until the fonts were converted frommf` to type1. igor did send a report to ams tech-support, and i'm trying to work out a cogent answer. i'll post it here when it's a bit more settled. – barbara beeton Mar 29 '16 at 14:25