Dumb quotes and dashes, globally and in verbatim text
so i want to use ' and -- in my code, which is embedded via \starttyping \stoptyping, but that’s impossible. context replaces -- with – and ' with ’. that’s wrong. i need to be able to tell context it shouldn’t do any “smart” stuff, since i’m smart enough to press the ’-key if i want the character ’. so what i ask for: 1. we should change the standard behavior of context to “don’t replace --, ' and whatnot in verbatim areas” 2. we should be able to trigger this globally, for people who have a useful keyboard layout and can type “special” characters as fast as ascii. is the latter already built in somehow?
Am 21.12.2010 um 12:14 schrieb Philipp A.:
so i want to use ' and -- in my code, which is embedded via \starttyping \stoptyping, but that’s impossible. context replaces -- with – and ' with ’. that’s wrong. i need to be able to tell context it shouldn’t do any “smart” stuff, since i’m smart enough to press the ’-key if i want the character ’.
so what i ask for: we should change the standard behavior of context to “don’t replace --, ' and whatnot in verbatim areas” we should be able to trigger this globally, for people who have a useful keyboard layout and can type “special” characters as fast as ascii. is the latter already built in somehow?
Make a example where this occurs, in the following example all dashes are correct in the typing environment with mkii and mkiv. \starttext \startlines - -- --- \stoplines \starttyping - -- --- \stoptyping \stoptext Wolfgang
2010/12/21 Wolfgang Schuster
Make a example where this occurs, in the following example all dashes are correct in the typing environment with mkii and mkiv.
\starttext
\startlines - -- --- \stoplines
\starttyping - -- --- \stoptyping
\stoptext
Wolfgang
ok, sorry, \type{--} doesn’t work. (i thought i used the environment, but i only used the macro) it should work in \type, too, though.
Am 21.12.2010 um 15:19 schrieb Philipp A.:
ok, sorry, \type{--} doesn’t work. (i thought i used the environment, but i only used the macro)
it should work in \type, too, though.
For mkii you need the texnansi encoding for the fonts, mkiv has no problems with \type but haven’t told which engine you use neither did you provide a full example. Run this and you will get the correct output for \type: \usetypescript[modern][texnansi] \setupbodyfont[modern] \starttext - \type{-} -- \type{--} --- \type{---} \stoptext Wolfgang
2010/12/21 Wolfgang Schuster
For mkii you need the texnansi encoding for the fonts, mkiv has no problems with \type but haven’t told which engine you use neither did you provide a full example.
Run this and you will get the correct output for \type:
\usetypescript[modern][texnansi] \setupbodyfont[modern] \starttext - \type{-} -- \type{--} --- \type{---} \stoptext
Wolfgang
i use mkiv, specifically the version you get via ./first-setup.sh --extras="t-simplefonts,t-tikz" i now found out that the simplefonts module cuses this: \usemodule[simplefonts] \starttext \type{--} \stoptext
participants (2)
-
Philipp A.
-
Wolfgang Schuster