ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Opening quotes problem with context.
@ 2013-07-22 15:40 john Culleton
  2013-07-22 15:44 ` Wolfgang Schuster
  2013-07-24 14:58 ` David Rogers
  0 siblings, 2 replies; 10+ messages in thread
From: john Culleton @ 2013-07-22 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Did a fresh install of context etc. from the context site. I used this
test file:
-------------------------------
\starttext
``Hello world.'' And ``Goodbye world.''
\stoptext
%\bye
-----------------------------------------
The resulting pdf shows two left tick marks for opening quotes but the
closing quotes are proper curly quotes.

If I modify the file as follows:
-------------------------------
%\starttext
``Hello world.'' And ``Goodbye world.''
%\stoptext
\bye
---------------------------
and use luatex or pdftex from texlive the quotes are OK. 

I got similar results from context in texlive 2012 and texlive 2013.

What is the proper code for opening quotes in context?

I use slackware linux 14, the 64 bit version. 


-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-22 15:40 Opening quotes problem with context john Culleton
@ 2013-07-22 15:44 ` Wolfgang Schuster
  2013-07-23 16:10   ` Sietse Brouwer
  2013-07-24 14:58 ` David Rogers
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2013-07-22 15:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.07.2013 um 17:40 schrieb john Culleton <John@wexfordpress.com>:

> Did a fresh install of context etc. from the context site. I used this
> test file:
> -------------------------------
> \starttext
> ``Hello world.'' And ``Goodbye world.''
> \stoptext
> %\bye
> -----------------------------------------
> The resulting pdf shows two left tick marks for opening quotes but the
> closing quotes are proper curly quotes.
> 
> If I modify the file as follows:
> -------------------------------
> %\starttext
> ``Hello world.'' And ``Goodbye world.''
> %\stoptext
> \bye
> ---------------------------
> and use luatex or pdftex from texlive the quotes are OK. 
> 
> I got similar results from context in texlive 2012 and texlive 2013.
> 
> What is the proper code for opening quotes in context?

Use “quoted word” or \quotation{quoted word}.

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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-22 15:44 ` Wolfgang Schuster
@ 2013-07-23 16:10   ` Sietse Brouwer
  0 siblings, 0 replies; 10+ messages in thread
From: Sietse Brouwer @ 2013-07-23 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

John Culleton wrote:

>> I use slackware linux 14, the 64 bit version.
>> What is the proper code for opening quotes in context?

Wolfgang Schuster wrote:
> Use “quoted word” or \quotation{quoted word}.

Since you're using Linux: if you set your keyboard layout to `English
(international AltGr dead keys)`, your keyboard will behave like an
ordinary US keyboard, but you can use AltGr (right Alt) to get special
characters. Specifically, you can get

‘’ with AltGr + 9 and AltGr + 0
“” with AltGr + { and AltGr + }
«» with AltGr + [ and AltGr + ]

That might make the quotations easier to type, if you decide to input
them “literally” instead of \quotation{structurally}. The AltGr dead
keys keyboard is very nice in general, not least because it is
indistinguishable from a normal US keyboard under normal usage.

Cheers,
Sietse
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-22 15:40 Opening quotes problem with context john Culleton
  2013-07-22 15:44 ` Wolfgang Schuster
@ 2013-07-24 14:58 ` David Rogers
  2013-07-24 16:13   ` Wolfgang Schuster
  1 sibling, 1 reply; 10+ messages in thread
From: David Rogers @ 2013-07-24 14:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

john Culleton <John@wexfordpress.com> writes:

> Did a fresh install of context etc. from the context site. I used this
> test file:
> -------------------------------
> \starttext
> ``Hello world.'' And ``Goodbye world.''
> \stoptext
> %\bye
> -----------------------------------------
> The resulting pdf shows two left tick marks for opening quotes but the
> closing quotes are proper curly quotes.
>
> If I modify the file as follows:
> -------------------------------
> %\starttext
> ``Hello world.'' And ``Goodbye world.''
> %\stoptext
> \bye
> ---------------------------
> and use luatex or pdftex from texlive the quotes are OK. 
>
> I got similar results from context in texlive 2012 and texlive 2013.
>
> What is the proper code for opening quotes in context?


The "truly proper" code is \quotation{Hello world.} - that style is
guaranteed to work. (And, for instance, if you change context's language
to French, then \quotation{Bonjour monde.} will automatically give you
the correct style of French quotation marks without having to look up
how to type them; likewise for other languages.)

I think the problem of the two left tick marks may come from web browser
copy-and-paste. Special marks, especially the quotation marks,
apostrophes, and tick marks, are often mangled when converting to and
from HTML. When copying any program's code from a web page, watch out
for those marks, they've probably been mis-transcribed by the too-clever
HTML rendering.

-- 
David R
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-24 14:58 ` David Rogers
@ 2013-07-24 16:13   ` Wolfgang Schuster
  2013-07-27 14:29     ` john Culleton
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2013-07-24 16:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.07.2013 um 16:58 schrieb David Rogers <davidandrewrogers@gmail.com>:

> john Culleton <John@wexfordpress.com> writes:
> 
>> Did a fresh install of context etc. from the context site. I used this
>> test file:
>> -------------------------------
>> \starttext
>> ``Hello world.'' And ``Goodbye world.''
>> \stoptext
>> %\bye
>> -----------------------------------------
>> The resulting pdf shows two left tick marks for opening quotes but the
>> closing quotes are proper curly quotes.
>> 
>> If I modify the file as follows:
>> -------------------------------
>> %\starttext
>> ``Hello world.'' And ``Goodbye world.''
>> %\stoptext
>> \bye
>> ---------------------------
>> and use luatex or pdftex from texlive the quotes are OK. 
>> 
>> I got similar results from context in texlive 2012 and texlive 2013.
>> 
>> What is the proper code for opening quotes in context?
> 
> 
> The "truly proper" code is \quotation{Hello world.} - that style is
> guaranteed to work. (And, for instance, if you change context's language
> to French, then \quotation{Bonjour monde.} will automatically give you
> the correct style of French quotation marks without having to look up
> how to type them; likewise for other languages.)

There is nothing wrong by using „ “ ” « » etc. for quotations. When you
use \quotation etc. you don’t have to bother about the correct marks
for your language (you can also change them) but the code is easier to
read when you use the real signs.

> I think the problem of the two left tick marks may come from web browser
> copy-and-paste. Special marks, especially the quotation marks,
> apostrophes, and tick marks, are often mangled when converting to and
> from HTML. When copying any program's code from a web page, watch out
> for those marks, they've probably been mis-transcribed by the too-clever
> HTML rendering.

What John wrote is valid in plain TeX where fonts replaced `` and ''
with the proper characters in MkIV this feature was dropped because
you can use \quotation or write the characters in your text.

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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-24 16:13   ` Wolfgang Schuster
@ 2013-07-27 14:29     ` john Culleton
  2013-07-27 14:45       ` Wolfgang Schuster
                         ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: john Culleton @ 2013-07-27 14:29 UTC (permalink / raw)
  To: ntg-context

On Wed, 24 Jul 2013 18:13:18 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> 
> Am 24.07.2013 um 16:58 schrieb David Rogers
> <davidandrewrogers@gmail.com>:
> 
> > john Culleton <John@wexfordpress.com> writes:
> > 
> >> Did a fresh install of context etc. from the context site. I used
> >> this test file:
> >> -------------------------------
> >> \starttext
> >> ``Hello world.'' And ``Goodbye world.''
> >> \stoptext
> >> %\bye
> >> -----------------------------------------
> >> The resulting pdf shows two left tick marks for opening quotes but
> >> the closing quotes are proper curly quotes.
> >> 
> >> If I modify the file as follows:
> >> -------------------------------
> >> %\starttext
> >> ``Hello world.'' And ``Goodbye world.''
> >> %\stoptext
> >> \bye
> >> ---------------------------
> >> and use luatex or pdftex from texlive the quotes are OK. 
> >> 
> >> I got similar results from context in texlive 2012 and texlive
> >> 2013.
> >> 
> >> What is the proper code for opening quotes in context?
> > 
> > 
> > The "truly proper" code is \quotation{Hello world.} - that style is
> > guaranteed to work. (And, for instance, if you change context's
> > language to French, then \quotation{Bonjour monde.} will
> > automatically give you the correct style of French quotation marks
> > without having to look up how to type them; likewise for other
> > languages.)
> 
> There is nothing wrong by using „ “ ” « » etc. for quotations. When
> you use \quotation etc. you don’t have to bother about the correct
> marks for your language (you can also change them) but the code is
> easier to read when you use the real signs.
> 
> > I think the problem of the two left tick marks may come from web
> > browser copy-and-paste. Special marks, especially the quotation
> > marks, apostrophes, and tick marks, are often mangled when
> > converting to and from HTML. When copying any program's code from a
> > web page, watch out for those marks, they've probably been
> > mis-transcribed by the too-clever HTML rendering.
> 
> What John wrote is valid in plain TeX where fonts replaced `` and ''
> with the proper characters in MkIV this feature was dropped because
> you can use \quotation or write the characters in your text.
> 
> Wolfgang
> _
Understood. But when dealing with fiction with many quotations this is
a lot of extra keying with no corresponding benefit. And writing the
actual characters in one's text is not all that easy either. The
original plain TeX method is not dependent on a particular keyboard or
the use of dead keys etc.

I think I will encapsulate the "\quotation" method in a macro like
\def\qq{\\quotation\{}
or similar. Two keystrokes are better than  nine.

I note that the plain TeX version of closing quotes, '' still works.
Would it be that hard to make the opening quotes of `` still work? 

Not every change is an improvement, IMO.

John Culleton 
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-27 14:29     ` john Culleton
@ 2013-07-27 14:45       ` Wolfgang Schuster
  2013-07-27 14:47       ` Mojca Miklavec
  2013-07-27 14:53       ` Marco Patzer
  2 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2013-07-27 14:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.07.2013 um 16:29 schrieb john Culleton <John@wexfordpress.com>:

> I think I will encapsulate the "\quotation" method in a macro like
> \def\qq{\\quotation\{}
> or similar. Two keystrokes are better than  nine.

Use \delimitedtext[qq][quotation] to create a new quote command.

> I note that the plain TeX version of closing quotes, '' still works.
> Would it be that hard to make the opening quotes of `` still work? 

You’re wrong the output of '' looks correct but it isn’t as you can see in
the following example. When you write ' context replaces it with ’ which
is together with -- and --- one of the remaining fake ligatures which
can be enabled with the “tlig=yes” in \definefontfeature.


\starttext

\type{''} = ''

\type{”} = ”

\stoptext

> Not every change is an improvement, IMO.


One could misuse the translate module for this but I really suggest to move
forward and use direct input of “ and ” or \quotation{…}.

\usemodule[translate]

\translateinput[``][“]
\translateinput[''][”]

\enableinputtranslation

\starttext

``text''

\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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-27 14:29     ` john Culleton
  2013-07-27 14:45       ` Wolfgang Schuster
@ 2013-07-27 14:47       ` Mojca Miklavec
  2013-07-27 15:09         ` Mojca Miklavec
  2013-07-27 14:53       ` Marco Patzer
  2 siblings, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2013-07-27 14:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Jul 27, 2013 at 4:29 PM, john Culleton wrote:
> On Wed, 24 Jul 2013 18:13:18 +0200 Wolfgang Schuster wrote:
>
> I think I will encapsulate the "\quotation" method in a macro like
> \def\qq{\\quotation\{}
> or similar. Two keystrokes are better than  nine.
>
> I note that the plain TeX version of closing quotes, '' still works.

It doesn't. You get two apostrophes (which usually happen to look like
a double quotation mark).

> Would it be that hard to make the opening quotes of `` still work?

No. See tlig and trep in tex/context/base/font-otc.lua.

Actually, I see no reason for not adding another font feature (maybe
called "+knuth", "+legacy" or "+cmr") which would be disabled by
default and could be activated by user.

Mojca
___________________________________________________________________________________
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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-27 14:29     ` john Culleton
  2013-07-27 14:45       ` Wolfgang Schuster
  2013-07-27 14:47       ` Mojca Miklavec
@ 2013-07-27 14:53       ` Marco Patzer
  2 siblings, 0 replies; 10+ messages in thread
From: Marco Patzer @ 2013-07-27 14:53 UTC (permalink / raw)
  To: ntg-context


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

On 2013–07–27 john Culleton wrote:

> I think I will encapsulate the "\quotation" method in a macro like
> \def\qq{\\quotation\{}
> or similar. Two keystrokes are better than  nine.

I'd suggest to use the auto complete feature of your editor. When
reading the source after six months “\qq” makes you wonder what it
does, if you use “\quotation” is obvious.

> I note that the plain TeX version of closing quotes, '' still works.
> Would it be that hard to make the opening quotes of `` still work? 
> 
> Not every change is an improvement, IMO.

I always tried to avoid those pesky TeX quotes. From looking at the
screen it's hard to tell which characters you're actually dealing
with. And when you figured that it's two grave accents, it's still a
challenge to tell which quote it'll actually print in the PDF.

What about having your editor automatically replace `` by “ or
\quotation{ and likewise '' by ” or }?

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 10+ messages in thread

* Re: Opening quotes problem with context.
  2013-07-27 14:47       ` Mojca Miklavec
@ 2013-07-27 15:09         ` Mojca Miklavec
  0 siblings, 0 replies; 10+ messages in thread
From: Mojca Miklavec @ 2013-07-27 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Jul 27, 2013 at 4:47 PM, Mojca Miklavec wrote:
>
>> I note that the plain TeX version of closing quotes, '' still works.
>
> It doesn't. You get two apostrophes (which usually happen to look like
> a double quotation mark).

I need to add that converting character 27 (') into apostrophe was
considered a crucial functionality, so it was kept. Nobody can imagine
getting the proper apostrophe on keyboard and its use is very common.

On the other hand many languages use different quotation marks and
using ``these'' is completely "americanocentric". On top,
auto-replacement lead to inability to typeset the actual backtick (`)
when it's needed. So yes, getting rid of `` replaced by quotation by
default *was* an improvement.

If you are worried about the number of strokes you can always
configure your keyboard to give the quotation marks by pressing
alt-gr+something (an equivalent effort of typing an uppercase letter).
Or you can define
    \def\q#1{\quotation{#1}}
The big advantage of \quotation{...} is that it automatically gives
you the right quotation marks for the active language. And for me it's
also convenient that I can easily switch which quotation marks are
used (both guilemets and "double comma-style" are allowed in our
grammar, and I sometimes change my mind about which ones should be
used in the middle of the project). Or I could change the quoted text
to become italic.

Mojca

PS: I'm sometimes mad at what TeX did. Every (La)TeX user read a
(La)TeX tutorial at some point and nowadays probably 80% users in my
country still use "\v{c}" (not being aware that they could type the
Unicode characters the same way as they do in Word), either the wrong
font encoding (OT1; without proper hyphenation and with weirdly
composed glyphs) or the bitmap fonts, and the grammatically incorrect
version of ``quotes''. This is what they learnt from manuals. In
ConTeXt UTF-8 just works and \quotation{...} is a lot better than
those weird ``artefacts''.
___________________________________________________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2013-07-27 15:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22 15:40 Opening quotes problem with context john Culleton
2013-07-22 15:44 ` Wolfgang Schuster
2013-07-23 16:10   ` Sietse Brouwer
2013-07-24 14:58 ` David Rogers
2013-07-24 16:13   ` Wolfgang Schuster
2013-07-27 14:29     ` john Culleton
2013-07-27 14:45       ` Wolfgang Schuster
2013-07-27 14:47       ` Mojca Miklavec
2013-07-27 15:09         ` Mojca Miklavec
2013-07-27 14:53       ` Marco Patzer

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