ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] enhancing documentation: initials
@ 2024-03-04 15:40 Henning Hraban Ramm
  0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2024-03-04 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, I tried to figure out what the "method" parameter of \setupinitial 
does – it changes the handling of quotation marks at the beginning of 
the text. It’s defined in context/base/mkiv/typo-drp.lua

But I found no difference between first, last, and none; just "auto" 
includes the mark in the initial, and it works only with a few 
languages, e.g. English and French, but not e.g. German or Dutch:

"""
\mainlanguage[de]
\setuppapersize[A6]
\setupinitial[n=2,color=orange,]

\starttext
\start
\setupinitial[method=first]
\placeinitial \quotation{Keine andere Kunst hat mehr Berechtigung, ihren 
Blick auf die zukünftigen Jahrhunderte zu richten als die 
Typographie.}\wordright{Giambattista Bodoni}
\stop

\start
\setupinitial[method=last]
\placeinitial \quotation{Nationalökonomie ist, wenn die Leute sich 
wundern, warum sie kein Geld haben.}\wordright{Kurt Tucholsky}
\stop

\start
\setupinitial[method=auto]
\placeinitial \quotation{Der Mensch wird auf natürlichem Wege 
hergestellt, doch empfindet er dies als unnatürlich und spricht nicht 
gern davon.}\wordright{Kurt Tucholsky}
\stop

\start
\setupinitial[method=none]
\placeinitial \quotation{Keine andere Kunst hat mehr Berechtigung, ihren 
Blick auf die zukünftigen Jahrhunderte zu richten als die 
Typographie.}\wordright{Giambattista Bodoni}
\stop

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-05 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04 15:40 [NTG-context] enhancing documentation: initials Henning Hraban Ramm

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