ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Dumb quotes and dashes, globally and in verbatim text
@ 2010-12-21 11:14 Philipp A.
  2010-12-21 11:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp A. @ 2010-12-21 11:14 UTC (permalink / raw)
  To: ConTeXt Mainling List


[-- Attachment #1.1: Type: text/plain, Size: 672 bytes --]

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?

[-- Attachment #1.2: Type: text/html, Size: 696 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dumb quotes and dashes, globally and in verbatim text
  2010-12-21 11:14 Dumb quotes and dashes, globally and in verbatim text Philipp A.
@ 2010-12-21 11:26 ` Wolfgang Schuster
  2010-12-21 14:19   ` Philipp A.
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-21 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 931 bytes --]


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



[-- Attachment #1.2: Type: text/html, Size: 1404 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dumb quotes and dashes, globally and in verbatim text
  2010-12-21 11:26 ` Wolfgang Schuster
@ 2010-12-21 14:19   ` Philipp A.
  2010-12-21 15:35     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp A. @ 2010-12-21 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 498 bytes --]

2010/12/21 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

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

[-- Attachment #1.2: Type: text/html, Size: 957 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dumb quotes and dashes, globally and in verbatim text
  2010-12-21 14:19   ` Philipp A.
@ 2010-12-21 15:35     ` Wolfgang Schuster
  2010-12-22 12:13       ` Philipp A.
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-21 15:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dumb quotes and dashes, globally and in verbatim text
  2010-12-21 15:35     ` Wolfgang Schuster
@ 2010-12-22 12:13       ` Philipp A.
  2010-12-22 15:52         ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp A. @ 2010-12-22 12:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 682 bytes --]

2010/12/21 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> 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

[-- Attachment #1.2: Type: text/html, Size: 974 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Dumb quotes and dashes, globally and in verbatim text
  2010-12-22 12:13       ` Philipp A.
@ 2010-12-22 15:52         ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-22 15:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.12.2010 um 13:13 schrieb Philipp A.:

> i now found out that the simplefonts module cuses this:

I’ll fix this, \setmonofont use the wrong font features.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-22 15:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21 11:14 Dumb quotes and dashes, globally and in verbatim text Philipp A.
2010-12-21 11:26 ` Wolfgang Schuster
2010-12-21 14:19   ` Philipp A.
2010-12-21 15:35     ` Wolfgang Schuster
2010-12-22 12:13       ` Philipp A.
2010-12-22 15:52         ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).