Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Alan Braslau via ntg-context
On Mon, 20 Feb 2023 16:02:30 +0100
"G.C.H.M. Verhaag via ntg-context"  wrote:

> Hi,
> 
> Yes Hraban it works outside in normal text flow. When I do e.g. 
> *{\InitialCapFont test in normal text flow}* the text '/test in
> normal text flow/' is rendered correctly in the Antykwa-Poltawskiego
> font.
> 
> Found out that the following does work with the *\placeinitial*
> command:
> 
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
>  
> sa 4]*
> 
> So something weird is happening I suppose!
> 
> Regards,
> Geert Verhaag

I use:

\setupinitial
 [font=Normal cp \measure{initial:n}]

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] horizontal space in CJK document

2023-02-20 Thread fv leung via ntg-context
Maybe the ideographic space U+3000 works.

在 2023年2月21日週二 03:42,Sylvain Hubert via ntg-context  寫道:

> Dear list,
>
> Does anyone know how to insert a horizontal space in a CJK document with
> \setscript[hanzi]?
>
> \setscript[hanzi]
> \definefontfamily[mainface][rm][notoserifcjkhk][]
> \setupbodyfont[mainface]
> \starttext
> 口口\hspace[big]口口   % with \setscript[hanzi], the \hspace is ignored
>
> \dorecurse{100}{口}  % without \setscript[hanzi], the line is not properly
> wrapped
> \stoptext
>
> Many thanks,
> Sylvain
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Jean-Pierre Delange via ntg-context
For \setuphead command, Taco's reference to Google Context shows this : 
https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0=setuphead=


For Japanese/Chinese CJK issues, see here : 
https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0=cjk=


Thank you very much Taco for unearthing this tool! I've been asking 
myself this nagging question for a long time about how to organize 
thehuge pool of answers to all these technical questions that ConTeXt 
contains.


It seems to me that last year someone had proposed on the mailing list 
to build a similar tool?


JP

Le 20/02/2023 à 16:46, Taco Hoekwater via ntg-context a écrit :



On 20 Feb 2023, at 16:21, Pablo Rodriguez via ntg-context  
wrote:

On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:

[...]
Btw, just in case if anyone shares this idea: is it possible to have a
zulip channel for ConTeXt? It's free for open source projects, has a
interface for existing mailing lists, and has a reasonable builtin
search engine, which could serve as another de-facto documentation,
considering the fact that very few of the massive useful use cases asked
in the mailing lists so far have been transcribed into official
documentations.

Hi Sylvain,

one main documentation source is the wiki.

Sorry, but I‘m afraid it is hard for me to understand how adding another
information source for ConTeXt is a gain.

I had almost forgotten this, but there is also a dedicated Google Search engine
that Mojca set up more than a decade ago:

   https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg

Some of the predefined urls may be obsolete now, I have not checked those in a 
while. Still, it seems to work quite well still, and it could be integrated 
with the wiki with a bit of effort, I guess.


Best wishes,
Taco

—
Taco Hoekwater  E:t...@bittext.nl
genderfluid (all pronouns)


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :https://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :https://contextgarden.net
___


--
Jean-Pierre Delange
Ancients
Professeur Agrégé de Philosophie (HC)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] horizontal space in CJK document

2023-02-20 Thread Sylvain Hubert via ntg-context
Dear list,

Does anyone know how to insert a horizontal space in a CJK document with
\setscript[hanzi]?

\setscript[hanzi]
\definefontfamily[mainface][rm][notoserifcjkhk][]
\setupbodyfont[mainface]
\starttext
口口\hspace[big]口口   % with \setscript[hanzi], the \hspace is ignored

\dorecurse{100}{口}  % without \setscript[hanzi], the line is not properly
wrapped
\stoptext

Many thanks,
Sylvain
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

> On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:
> > [...]
> > Btw, just in case if anyone shares this idea: is it possible to have a
> > zulip channel for ConTeXt? It's free for open source projects, has a
> > interface for existing mailing lists, and has a reasonable builtin
> > search engine, which could serve as another de-facto documentation,
> > considering the fact that very few of the massive useful use cases asked
> > in the mailing lists so far have been transcribed into official
> > documentations.
>
> Hi Sylvain,
>
> one main documentation source is the wiki.
>
> Sorry, but I‘m afraid it is hard for me to understand how adding another
> information source for ConTeXt is a gain.
>

It's a gain exactly because it's not another information source. The posts
are synced. It's just a modern and imo better UI for the mailing list, with
more pleasant searching and tracking UX.


> Best,
>
> Pablo
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] [rendering svg warnings]

2023-02-20 Thread Floris van Manen via ntg-context

Putting together documents with an SVG image on each page.
Apparently while creating the m_k_i_v...pdf files, i get a lot of 
errors/warning, but the document turns out to be ok:

Running the latest context on Linux Pop!OS 22.04
Any hints?

.Floris

...
Setting _INKSCAPE_GC=disable as a workaround for broken libgc
/tmp/.mount_inkscawjPzkx/lib/x86_64-linux-gnu/libc.so.6: version 
`GLIBC_2.33' not found (required by 
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)

Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
Gtk-Message: 17:18:40.364: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:18:40.368: Failed to load module "canberra-gtk-module"
pages   > flushing realpage 48, userpage 1, subpage 48
Setting _INKSCAPE_GC=disable as a workaround for broken libgc
/tmp/.mount_inkscajyWpby/lib/x86_64-linux-gnu/libc.so.6: version 
`GLIBC_2.33' not found (required by 
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)

Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
Gtk-Message: 17:18:41.461: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:18:41.464: Failed to load module "canberra-gtk-module"
pages   > flushing realpage 49, userpage 1, subpage 49
Setting _INKSCAPE_GC=disable as a workaround for broken libgc
/tmp/.mount_inksca3k4Iq9/lib/x86_64-linux-gnu/libc.so.6: version 
`GLIBC_2.33' not found (required by 
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)

Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
Gtk-Message: 17:18:42.599: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:18:42.603: Failed to load module "canberra-gtk-module"
pages   > flushing realpage 50, userpage 1, subpage 50
...


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Taco Hoekwater via ntg-context


> On 20 Feb 2023, at 16:21, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:
>> [...] 
>> Btw, just in case if anyone shares this idea: is it possible to have a
>> zulip channel for ConTeXt? It's free for open source projects, has a
>> interface for existing mailing lists, and has a reasonable builtin
>> search engine, which could serve as another de-facto documentation,
>> considering the fact that very few of the massive useful use cases asked
>> in the mailing lists so far have been transcribed into official
>> documentations.
> 
> Hi Sylvain,
> 
> one main documentation source is the wiki.
> 
> Sorry, but I‘m afraid it is hard for me to understand how adding another
> information source for ConTeXt is a gain.

I had almost forgotten this, but there is also a dedicated Google Search engine
that Mojca set up more than a decade ago:

  https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg

Some of the predefined urls may be obsolete now, I have not checked those in a 
while. Still, it seems to work quite well still, and it could be integrated 
with the wiki with a bit of effort, I guess.


Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:
> [...] 
> Btw, just in case if anyone shares this idea: is it possible to have a
> zulip channel for ConTeXt? It's free for open source projects, has a
> interface for existing mailing lists, and has a reasonable builtin
> search engine, which could serve as another de-facto documentation,
> considering the fact that very few of the massive useful use cases asked
> in the mailing lists so far have been transcribed into official
> documentations.

Hi Sylvain,

one main documentation source is the wiki.

Sorry, but I‘m afraid it is hard for me to understand how adding another
information source for ConTeXt is a gain.

Best,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 16:02, G.C.H.M. Verhaag via ntg-context wrote:
> [...]
> Found out that the following does work with the *\placeinitial* command:
> 
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
>  sa 4]*
> 
> So something weird is happening I suppose!

Hi Geert,

if you only provide commands, it is really hard to tell what is going on.

Please, always provide complete samples (otherwise, most of the help is
figuring out what the issue is really about).

Best,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 15:30, G.C.H.M. Verhaag via ntg-context wrote:
> Hi,
> 
> Yes Hraban that worked! Thanks!
> 
> My next issue is adapting the font-family, because a want to use the
> *Antykwa-Poltawskiego* font|| as my initial. I tried the following:
> 
> *\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
> 
> Has anybody any idea why this doesn't work?

Hi Geert,

this works for me:

  \definefont[InitialCapFont][name:antpoltcondregular*default sa 4]
  %\setupinitial[style={\switchtobodyfont[helvetica]}]
  \setupinitial[color=red,distance=6pt,n=3, style=\InitialCapFont]

  \starttext
  \setinitial\input zapf
  \stoptext

BTW, I think there is an issue (that might be a bug), when either style
or font are in use, size is not automatically adapted.

Could anyone confirm with the commented line?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context

Hi,

Yes Hraban it works outside in normal text flow. When I do e.g. 
*{\InitialCapFont test in normal text flow}* the text '/test in normal 
text flow/' is rendered correctly in the Antykwa-Poltawskiego font.


Found out that the following does work with the *\placeinitial* command:

*\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default 
sa 4]*


So something weird is happening I suppose!

Regards,
Geert Verhaag___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
Thanks, Pablo and Bruce. Both solutions work well.

> I had similar issues with \section and only the Latin script was involved.

Btw, just in case if anyone shares this idea: is it possible to have a
zulip channel for ConTeXt? It's free for open source projects, has a
interface for existing mailing lists, and has a reasonable builtin search
engine, which could serve as another de-facto documentation, considering
the fact that very few of the massive useful use cases asked in the mailing
lists so far have been transcribed into official documentations.

On Mon, 20 Feb 2023 at 05:22, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

> On 2/19/23 20:34, Sylvain Hubert via ntg-context wrote:
> > Dear list,
> >
> > I have a long document (A4 * 170 pages) with some CJK fonts, where some
> > of the \subject{...} are placed at the end of the corresponding pages,
> > which looks awkward. How can one flush those last-line titles to the
> > next pages?
>
> Hi Sylvain,
>
> the hard part for the rest of us is figuring out what you may have on
> your screen.
>
> \setuphead[subject][before={\blank[preference]}] might help.
>
> Another approach would be \setuphead[subject][after={\blank[samepage,
> line]}].
>
> I mean, either you set a preference for breaking pages before \subject
> or you force \subject to be on the same page with next paragraph.
>
> Nothing prevents you from doing both.
>
> BTW, default values for before and after in \setuphead[subject] are
> \blank[2*big] and \blank (respectively [copied from strc-def.mkxl]).
>
> > Currently I don't have a MWE, as trivial filling-up with 1-2 pages of
> > \lipsum doesn't reproduce the problem. I'm optimistically asking without
> > MWE, but if it is necessary anyway, please tell me and I will obfuscate
> > the 170-page document and find a way to upload it.
>
> I hope it might help. It is not clear for me whether the CJK fonts are
> only for fragments in these languages or the main text is written in any
> of these languages.
>
> I had similar issues with \section and only the Latin script was involved.
>
> Again, I hope it might help,
>
> Pablo
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Henning Hraban Ramm via ntg-context

Am 20.02.23 um 15:30 schrieb G.C.H.M. Verhaag via ntg-context:

Hi,

Yes Hraban that worked! Thanks!

My next issue is adapting the font-family, because a want to use the 
*Antykwa-Poltawskiego* font|| as my initial. I tried the following:


*\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*

*\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*

Has anybody any idea why this doesn't work?


Did you confirm that \InitialCapFont works outside of that setup?

I recently used initials with a simple "font=Serif at 37pt,", and that 
worked. Maybe the operator "sa" doesn’t work in this context? (IDK)


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] \xmlmap errors when returning key-value

2023-02-20 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Hans Hagen
> via ntg-context
> Gesendet: Donnerstag, 16. Februar 2023 23:45
> An: Denis Maier via ntg-context 
> Cc: Hans Hagen 
> Betreff: Re: [NTG-context] Unexpected results with \xmlpos
> 
> On 2/16/2023 10:16 AM, Denis Maier via ntg-context wrote:
> > Hi,
> >
> > I’m getting unexpected results for \xmlpos
> >
> > With the example below, I was expecting to get the following positions:
> >
> > 1 2 3 4
> >
> > However the result is: 2 4 6 8, i.e. each time it’s exactly the double.
> >
> > What am I missing?
> 
> that there are spaces between elements .. you can try:
> 
> \xmlmatch {#1}
> 
> instead
> 
> Hans

Thanks, that does the trick.

However, now I get an error when I try to return a key-value setting via 
xmlmap, see below. Any hints why this does not work

\xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft}
\xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright}

as opposed to:

\xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft}
\xmlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright}

?

Best,
Denis

\startbuffer[test]




   
  
  
  
  
   
   
  
 asdf
 bsdf
 csdf
 dsdf
  
   
   
  
 a
 b
 c
 d
  
   



\stopbuffer

\startxmlsetups xml:test
\xmlsetsetup{\xmldocument}{document}{xml:*}
\xmlsetsetup{#1}{table-wrap}{xml:table-wrap}
\xmlsetsetup{#1}{table}{xml:table}
\stopxmlsetups

\xmlregistersetup{xml:test}

\xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft}
\xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright}

\xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft}
\xmlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright}

\startxmlsetups xml:table:colgroup
\xmlfilter {#1} {/col/command(xml:table:colgroup:col)} % gives errors
%\xmlfilter {#1} {/col/command(xml:table:colgroup:colvar)} % works
\stopxmlsetups

\startxmlsetups xml:table:colgroup:colvar
  \setupTABLE[c][\xmlmatch 
{#1}][align=\xmlvalue{colgroupalignvar}{\xmlatt{#1}{style}}{lefttoright}]
\stopxmlsetups

\startxmlsetups xml:table:colgroup:col
  \setupTABLE[c][\xmlmatch 
{#1}][\xmlvalue{colgroupalign}{\xmlatt{#1}{style}}{align=lefttoright}]
\stopxmlsetups

\startxmlsetups xml:document
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:table-wrap
\startplacetable
\xmlflush{#1}
\stopplacetable
\stopxmlsetups

\startxmlsetups xml:table
  \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)}
  \bTABLE
\xmlfilter{#1}{/thead/command(xml:table:thead)}
\xmlfilter{#1}{/tbody/command(xml:table:tbody)}
  \eTABLE
\stopxmlsetups

\startxmlsetups xml:table:thead
\bTABLEhead
\xmlfilter{#1}{/tr/command(xml:table:thead:tr)}
\eTABLEhead
\stopxmlsetups

\startxmlsetups xml:table:thead:tr
\bTR
\xmlfilter{#1}{/th/command(xml:table:thead:tr:th)}
\eTR
\stopxmlsetups

\startxmlsetups xml:table:thead:tr:th
\bTH
\xmlflush{#1}
\eTH
\stopxmlsetups

\startxmlsetups xml:table:tbody 
\bTABLEbody\xmlfilter{#1}{/tr/command(xml:table:tbody:tr)}\eTABLEbody
\stopxmlsetups

\startxmlsetups xml:table:tbody:tr
\bTR\xmlfilter{#1}{/td/command(xml:table:tbody:tr:td)}\eTR
\stopxmlsetups

\startxmlsetups xml:table:tbody:tr:td
\bTC \xmlflush{#1} \eTC 
\stopxmlsetups


\starttext
  \xmlprocessbuffer{test}{test}{}
\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context

Hi,

Yes Hraban that worked! Thanks!

My next issue is adapting the font-family, because a want to use the 
*Antykwa-Poltawskiego* font|| as my initial. I tried the following:


*\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*

*\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*

Has anybody any idea why this doesn't work?

Regards,

Geert Verhaag
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Henning Hraban Ramm via ntg-context

Am 20.02.23 um 10:39 schrieb G.C.H.M. Verhaag via ntg-context:

*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*

doesn't seem to work! Is this as expected behaviour or a possible issue?


The color key generally takes color _names_, i.e. color=MyColor
I didn’t check if it works with \setupinitial.

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context

Hi,

Unfortunately it doesn't help Keith, sorry!

I tried to solve it like this:

*\color[MyColor]{\placeinitial{K}}*

A bit overkill but it works!

Anyway, thanks for your suggestion!

Regards,

Gerard Verhaag
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Keith McKay via ntg-context

Would state=start within \setupinitial[...] help?

Best Wishes

Keith McKay

On 20/02/2023 09:39, G.C.H.M. Verhaag via ntg-context wrote:


Hi,

Thanks for your suggestion Alan! I've been using lettrine all the 
time, without knowing it was actually obsolete, sorry!


I'm now trying the \placeinitial command but coloring like:

*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*

doesn't seem to work! Is this as expected behaviour or a possible issue?

Regards,

Gerard Verhaag


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :https://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :https://contextgarden.net
__
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context

Hi,

Thanks for your suggestion Alan! I've been using lettrine all the time, 
without knowing it was actually obsolete, sorry!


I'm now trying the \placeinitial command but coloring like:

*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*

doesn't seem to work! Is this as expected behaviour or a possible issue?

Regards,

Gerard Verhaag
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___