ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Quotation mark in drop caps
@ 2024-07-07 20:29 Thangalin
  2024-07-10  7:10 ` [NTG-context] " Thangalin
  0 siblings, 1 reply; 8+ messages in thread
From: Thangalin @ 2024-07-07 20:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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!

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

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

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

end of thread, other threads:[~2024-07-11  8:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-07 20:29 [NTG-context] Quotation mark in drop caps Thangalin
2024-07-10  7:10 ` [NTG-context] " Thangalin
2024-07-10  7:25   ` Hans Hagen via ntg-context
2024-07-10  8:56     ` Thangalin
2024-07-10  9:34       ` Hans Hagen via ntg-context
2024-07-10 23:55         ` Thangalin
2024-07-11  6:35           ` vm via ntg-context
2024-07-11  8:06             ` Thangalin

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