Re: [NTG-context] \placeinitial to account for quotation mark

2021-09-26 Thread Hans Hagen via ntg-context

On 9/25/2021 10:45 PM, Thangalin via ntg-context wrote:

Henri Menke provided a partial solution:

\defineinitial[two][method={first,auto}]
\setuphead[chapter][
   after={\placeinitial[two]},
   page=no,
]

\starttext
\chapter{Harriet Tubman}
"Every great dream begins with a dreamer. Always remember, you have within
you the strength, the patience, and the passion to reach for the stars to
change the world.
\chapter{Eleanor Roosevelt}
Great minds discuss ideas; average minds discuss events; small minds
discuss people.
\stoptext

However, the leading quotation mark is gobbled. Is there any generic way 
of detecting a leading quotation mark while keeping initial caps on the 
first character?

i'll send you something off-list to test

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placeinitial to account for quotation mark

2021-09-26 Thread Bruce Horrocks via ntg-context


> On 25 Sep 2021, at 21:45, Thangalin via ntg-context  
> wrote:
> 
> Henri Menke provided a partial solution:
> 
> \defineinitial[two][method={first,auto}]
> \setuphead[chapter][
>   after={\placeinitial[two]},
>   page=no,
> ]
> 
> \starttext
> \chapter{Harriet Tubman}
> "Every great dream begins with a dreamer. Always remember, you have within
> you the strength, the patience, and the passion to reach for the stars to
> change the world.
> \chapter{Eleanor Roosevelt}
> Great minds discuss ideas; average minds discuss events; small minds
> discuss people.
> \stoptext
> 
> However, the leading quotation mark is gobbled. Is there any generic way of 
> detecting a leading quotation mark while keeping initial caps on the first 
> character?
> 

Not really generic, and maybe not what you want, but there is this:

\chapter{Eleanor Roosevelt}
\setupinitial[text={"G}]
reat minds discuss ideas; average minds discuss events; small minds
discuss people.

—
Bruce Horrocks
Hampshire, UK

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placeinitial to account for quotation mark

2021-09-25 Thread Thangalin via ntg-context
Henri Menke provided a partial solution:

\defineinitial[two][method={first,auto}]
\setuphead[chapter][
  after={\placeinitial[two]},
  page=no,
]

\starttext
\chapter{Harriet Tubman}
"Every great dream begins with a dreamer. Always remember, you have within
you the strength, the patience, and the passion to reach for the stars to
change the world.
\chapter{Eleanor Roosevelt}
Great minds discuss ideas; average minds discuss events; small minds
discuss people.
\stoptext

However, the leading quotation mark is gobbled. Is there any generic way of
detecting a leading quotation mark while keeping initial caps on the first
character?

Thank you!
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___