Hi list!

I have a three-part question.

First, when using \placeinitial, how would you detect whether the first
character is a quotation mark, and, if so, override the setupinitial to use
m=2?

Second, when using m=2 to capture a quotation mark, how would you change
the font size of only the quotation mark, leaving the font size for the
remaining characters the same?

Third, can this be accomplished using setupinitial alone? Such as:

\setupinitial[
  quotefont=\SmallerFont,
  quotecolour=\QuoteColour,
]

A few typographic examples of what I'd like to accomplish:

Re: https://i.ibb.co/7rJYBS6/initial-Matching-Quotes.gif
Re: https://i.ibb.co/Hz8v5w4/atlantips-drop-caps-and-quotation-marks-10.png

My understanding of what exists in ConTeXt:

\starttext
\startchapter
  % This detaches the quotation mark from the paragraph, which looks
strange.
  \placeinitial
  "We held ConTeXt in high esteem."
\stopchapter

\startchapter
  % This looks great.
  \placeinitial
  \input knuth
\stopchapter

\startchapter
  % I'd like to eliminate this next line.
  \setupinitial[m=2]

  % The quotation mark is a drop cap, albeit too big.
  \placeinitial
  "We held ConTeXt in high esteem."
\stopchapter

\startchapter
  % I'd like to eliminate this next line.
  \setupinitial[m=1]

  % The setups are reinitialized, which in theory should not be needed.
  \placeinitial
  \input knuth
\stopchapter
\stoptext

Here's how I'd like to typeset the document (using setupinitial alone):

\setupinitial[
  % When a quotation mark is detected, the given font is applied to it.
  quotefont=\SmallerFont,
  % Not necessary, but could be useful to other people?
  quotecolour=\QuoteColour,
]

\starttext
\startchapter
  % The quotation mark gets attached and applies the smaller font size.
  \placeinitial
  "We held ConTeXt in high esteem."
\stopchapter

\startchapter
  % Only captures the first letter, because no quotation mark is present.
  \placeinitial
  \input knuth
\stopchapter
\stoptext

Is this possible? If so, how?

Thank you!
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to