Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Hans Hagen via ntg-context

On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:


I confirm that this is a bug, which was not there in the version from mid Dec.


Not a bug, but new interface. You need:

\definemathmatrix[matrix]
  [align={1:right,2:left,3:left}]

It is also possible to say: align={all:middle}. Combination of the two don't 
seem to work.
basically we increment each element but a number sets the column so one 
can go to a specific column; empty (whatever non number will start again 
at zero)


Hans

-
  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] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Aditya Mahajan via ntg-context
On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:

> I confirm that this is a bug, which was not there in the version from mid 
> Dec. 

Not a bug, but new interface. You need:

\definemathmatrix[matrix]
 [align={1:right,2:left,3:left}]

It is also possible to say: align={all:middle}. Combination of the two don't 
seem to work.

Aditya
___
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] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Henning Hraban Ramm via ntg-context

Am 17.01.22 um 16:53 schrieb Joel via ntg-context:
I created a custom index that displays a list of "Important Dates" 
appearing in my book. It lists the year, a short description of what 
happened, and should show the page number.


I'm running into two errors though:

First, if the date is the same year, it is sorting alphabetically, 
example


\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

...will print the wrong one first in the index..

1912 - Another even happened
1912 - Yet another event happened.

Is there a way to manually tell it to display one first? I don't want to 
add visible month and day details, that would be even more confusing to 
the index as I have to print it in American order.


Second, when it compiles it is not printing the page number, instead 
prints "[Entry not flushed]".


-- Joel

Here is my minimum working example:


\defineregister[listdates][compress=yes]
\setupregister[listdates][style=sansbold, textstyle=slanted, n=1, 
pagenumber=yes]


\define[2]\dateis{%
     \listdates{#1~\emdash ~#2}%
}%

\starttext

\dateis{1900s+1911}{Some event happened}
\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

\startchapter[title=Important Dates]
     \placelistdates
\stopchapter

\stoptext


Change your definition of \dateis (or use an additional macro) to use 
the sort key of \index:


\index[1900s+191201]{January}
\index[1900s+191202]{February}

Hraban
___
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] \startcolumnset ... \stopcolumnset fatal error: return code 11

2022-01-17 Thread Ben Moon via ntg-context
I too get an error trying to run John’s code and my own (I found this after 
that wouldn’t work) on macOS. My error code is 1 rather than 11.

system  > ConTeXt  ver: 2022.01.15 17:32 LMTX  fmt: 2022.1.17  int: 
English/english

mtx-context | fatal error: return code: 1

Ben


___
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] How to achieve true double space text in ConTeXt?

2022-01-17 Thread Wolfgang Schuster via ntg-context

Joel via ntg-context schrieb am 17.01.2022 um 17:18:
I need to display one article within my book that is in double space, 
like what is a basic requirement in US colleges for turning in papers. 
Basically, I need readers to have lots of space above the text to be 
able to write some notes above every line.


This is a line of text.
% <-- here is the space between lines
% <-- this space here is as tall as a line of text.
% <-- here is the next space between lines
This is the next visible line of text.

The closest I can get is the "big" setting in `\setupinterlinespace`, 
but it isn't big enough. I've also tried manual measurements in cm, but 
I have no idea which setting is typographically good.


\setupinterlinespace[on, big]
     \startlinenumbering
     \input article
     \stoplinenumbering
\setupinterlinespace[off]

How can I achieve double space text in ConTeXt?


The \setupinterlinspace accepts also numbers to choose a multiple of the 
default distance or you pass a dimension where you set a fixed value for 
the distance between the baselines.


 begin example
\showgrid

\starttext

\samplefile{lorem}

\page

\start \setupinterlinespace[2]% 2 lines, also possible: 1.5, 3, ...
\samplefile{lorem}\par
\stop

\page

\start \setupinterlinespace[line=5.6ex]% also possible: 
\setupinterlinespace[5.6ex]

\samplefile{lorem}\par
\stop

\stoptext
 end example

Wolfgang
___
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] How to override ConTeXt-SBL titles, to make all titles everywhere capitalized?

2022-01-17 Thread Joey McCollum via ntg-context
I've avoided forcing capitalization in too many places in the SBL rendering
because there are often language-specific (or, within English, even
dialect-specific) differences regarding what should be capitalized. I think
I already enforce capitalization of the first word, though:

```
\starttexdefinition titleemph #1
  \emph{\Word{#1}}
\stoptexdefinition

\starttexdefinition titlequote #1
  \quotation{\Word{#1}}
\stoptexdefinition
```

If you want the behavior you've described, you can change \Word to \Words
in the lines above (in publ-imp-sbl.mkvi). I probably will leave the code
as-is, however, as it seems safer to expect the user to provide the desired
capitalization in the BibTeX file.

Joey

On Mon, Jan 17, 2022 at 11:03 AM Joel via ntg-context 
wrote:

> I am a few days from sending a document to a publisher, and using the
> Society of Biblical Literature style (via the macro ConTeXt-SBL) as it is
> very close to what I need, Chicago (numbers style) citations. One glaring
> difference I notice between the two styles is ConTeXt-SBL presents the
> titles of articles and books in lower case, but Chicago gives them in upper
> case (I think SBL should too, but maybe as my entire BibTeX file is
> lowercase, it is not). How can I tell ConTeXt to override the titles,
> everywhere they appear, so they are printed in uppercase? I've manually
> marked all of the words that should not be capitalized in my BiBTeX file as
> with \word{of} so they will ignore any instructions to become capitalized.
>
> --Joel
>
>
>
> ___
> 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
>
> ___
>
___
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
___


[NTG-context] three suggestions for the statistical-charts module

2022-01-17 Thread Pablo Rodriguez via ntg-context
Hi Tamara, Adriana and Tomáš,

this is my first sample using statistical-charts (I attach the CSV file):

\setupbodyfont[helvetica]
\usemodule[statistical-charts]
\starttext
\setupframed[dotslabels][loffset=1.1cc,
boffset=0.4cc]
\linechart[basic][yscale=.25, xscale=1,
distance=1,
xgridlinesdensity=1,
fillcolor=aquamarine,
line=yes, linecolor=shamrock,
dotscolor=shamrock,
dotswidth=5, dotslabels=yes,
axesunits=yes, xunit={Measurements},
yunit={Temperature}]%
[method=dataset, dsname=main, filename=\jobname.csv,
sep=;, cx={A2:A14},
cy=B2:B14]
\stoptext

I wonder whether this has been already proposed:

1. If the CSV file contains fields with quotes that the module reads,
compilation breaks. Would it be possible that quotes could be ignored by
the module?

2. Could you add an option to ignore the header (the first row), so that
then "cx=A" cwould work without problems?

3. I haven’t found your module in https://modules.contextgarden.net. I
think it would be great to have it there. Otherwise, users may not know
of its existence.

I have other questions, but this will be addressed in a next message.

Many thanks for your excellent work,

Pablo
Main;Secondary
15.6;16
14.8;14.8
16.4;15.7
14.8;14.8
13.9;13.8
15.1;14.7
13.5;13.7
13.3;13.6
14.9;13.9
13.6;13.9
13.6;12.8
15.6;14.4
13.8;13.7___
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] How to troubleshoot why my document begins with a blank page?

2022-01-17 Thread Wolfgang Schuster via ntg-context

Joel via ntg-context schrieb am 17.01.2022 um 17:11:
I created a book that strangely renders with an entirely blank page. 
There are tons and tons of macros, in dozens of files defined before the 
document starts, but the document itself starts quite simply with a 
title page set inside \startfrontmatter. How can I identify what types 
of preamble information would be causing an entire blank page to render 
before the document even begins?


This minimum working example won't show me the error, but it does show I 
simply have \starttext followed by my title and nothing is between that 
should be rendering an entire blank page.


It's possible you have something in your setups which produces text 
which isn't visible in the PDF because no font was loaded at this point, 
run my example below to see the effect.


To find the problem in your setup first create a new document where you 
use something simple like in my example as content but add you complete 
setups before \starttext. When this is done you can comment (or delete) 
parts of the setup until the empty page disappears.


 begin example
hidden text

\starttext

\startstandardmakeup
Text
\stopstandardmakeup

\stoptext
 end example

Wolfgang
___
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] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Aditya Mahajan via ntg-context
On Mon, 17 Jan 2022, Otared Kavian via ntg-context wrote:

> Hi Hans and Mikael,
> 
> While investigating the latest version regarding the math environment, I 
> found that the alignments are not correct.
> Here is an example:
> 
> % begin bug-alignment.tex
> \definemathmatrix[alignedcases]
>   [align={right,left,left},
>   distance=3pt,
>   left={\left\{},
>   right={\right.},
>   style=\displaystyle]
> \starttext
> 
> \placeformula[eq:1]
> \startformula
> \startalignedcases
> \NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
> \Omega\times (0,+\infty) \NR
> \NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
> \partial \Omega\times (0,+\infty)\NR
> \NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
> \stopalignedcases
> \stopformula
> 
> \stoptext
> % end bug-alignment.tex

I confirm that this is a bug, which was not there in the version from mid Dec. 
It appears that the align key does not have any effect. Here's a simpler 
example:

\definemathmatrix[matrix]
[align={right,left,left}]
\starttext

\startformula
  \startmatrix
 \NC ABC\NC ABC\NC ABC\NR
 \NC AA \NC AA \NC AA \NR
   \stopmatrix
\stopformula

\stoptext



Aditya
___
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
___


[NTG-context] How to achieve true double space text in ConTeXt?

2022-01-17 Thread Joel via ntg-context
I need to display one article within my book that is in double space, like what 
is a basic requirement in US colleges for turning in papers. Basically, I need 
readers to have lots of space above the text to be able to write some notes 
above every line.

This is a line of text.
% <-- here is the space between lines
% <-- this space here is as tall as a line of text.
% <-- here is the next space between lines
This is the next visible line of text.

The closest I can get is the "big" setting in `\setupinterlinespace`, but it 
isn't big enough. I've also tried manual measurements in cm, but I have no idea 
which setting is typographically good.

\setupinterlinespace[on, big]
    \startlinenumbering
    \input article
    \stoplinenumbering
\setupinterlinespace[off]

How can I achieve double space text in ConTeXt?
--Joel
___
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
___


[NTG-context] How to troubleshoot why my document begins with a blank page?

2022-01-17 Thread Joel via ntg-context
I created a book that strangely renders with an entirely blank page. There are 
tons and tons of macros, in dozens of files defined before the document starts, 
but the document itself starts quite simply with a title page set inside 
\startfrontmatter. How can I identify what types of preamble information would 
be causing an entire blank page to render before the document even begins?

This minimum working example won't show me the error, but it does show I simply 
have \starttext followed by my title and nothing is between that should be 
rendering an entire blank page.
--Joel
My minimum working example is here:

\definemakeup[titlepage][align=middle]

\definealternativestyle[titlestyle][\ss\bfd][]
\definealternativestyle[subtitlestyle][\ss\bfb][]
\definealternativestyle[authorstyle][\ss\tfa][]

\starttext % <-- there is no code between \starttext and \startfrontmatter 
below.
    \startfrontmatter
        \startmakeup[titlepage]
            \titlestyle{My story}
            \blank[big]
            \subtitlestyle{\date}
            \blank[big]
            \authorstyle{My name}
        \stopmakeup
    \stopfrontmatter

    \input knuth

\stoptext
___
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
___


[NTG-context] How to override ConTeXt-SBL titles, to make all titles everywhere capitalized?

2022-01-17 Thread Joel via ntg-context
I am a few days from sending a document to a publisher, and using the Society 
of Biblical Literature style (via the macro ConTeXt-SBL) as it is very close to 
what I need, Chicago (numbers style) citations. One glaring difference I notice 
between the two styles is ConTeXt-SBL presents the titles of articles and books 
in lower case, but Chicago gives them in upper case (I think SBL should too, 
but maybe as my entire BibTeX file is lowercase, it is not). How can I tell 
ConTeXt to override the titles, everywhere they appear, so they are printed in 
uppercase? I've manually marked all of the words that should not be capitalized 
in my BiBTeX file as with \word{of} so they will ignore any instructions to 
become capitalized.

--Joel


___
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
___


[NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

While investigating the latest version regarding the math environment, I found 
that the alignments are not correct.
Here is an example:

% begin bug-alignment.tex
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\starttext

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\stoptext
% end bug-alignment.tex

Best regards: Otared
___
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
___


[NTG-context] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Joel via ntg-context
I created a custom index that displays a list of "Important Dates" appearing in 
my book. It lists the year, a short description of what happened, and should 
show the page number.

I'm running into two errors though:

First, if the date is the same year, it is sorting alphabetically, example

\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

...will print the wrong one first in the index..

1912 - Another even happened
1912 - Yet another event happened.

Is there a way to manually tell it to display one first? I don't want to add 
visible month and day details, that would be even more confusing to the index 
as I have to print it in American order.

Second, when it compiles it is not printing the page number, instead prints 
"[Entry not flushed]".

-- Joel

Here is my minimum working example:


\defineregister[listdates][compress=yes]
\setupregister[listdates][style=sansbold, textstyle=slanted, n=1, 
pagenumber=yes]

\define[2]\dateis{%
    \listdates{#1~\emdash ~#2}%
}%

\starttext

\dateis{1900s+1911}{Some event happened}
\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

\startchapter[title=Important Dates]
    \placelistdates
\stopchapter

\stoptext
___
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
___


[NTG-context] Simpleslides and LMTX

2022-01-17 Thread Otared Kavian via ntg-context
Hi Aditya and Thomas,

Following the hint given by Thomas about fixing the behaviour of the visual 
counter in the simpleslides module, I tried all the possible styles and found 
that once the PageNumber is changed into RealPageNumber in the 
s-simpleslides-*.tex
style files. All the styles work fine unless three of them which I describe 
below.
I don’t know how the modules are maintained on the wiki or elsewhere, but if 
you wish I can send you privately the files where I have changed PageNumber to 
RealPageNumber so that the simpleslides module can be used ot of the box with 
LMTX.

Best regards: Otared
PS: Here are the issues with the three styles which don’t work properly:

• BigNumber: for the style to be typeset,  one has to modify the part where 
BigNumberFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
%\endLUATEX

Then the file « example.tex » can be typeset, but the big numbers shown are 
always 1.

• Embossed: for the style to be typeset, one has to modify the part where 
EmbossedFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym [Embossed] [name:texgyreherosbold]
%\endLUATEX

• SideToc: the file example.tex can be typeset with this style, but all pages 
come out in black… the text cannot be seen.

___
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] XML, dealing with whitespace

2022-01-17 Thread Denis Maier via ntg-context
Hi Wolfgang,

Von: Wolfgang Schuster 
Gesendet: Samstag, 15. Januar 2022 20:28
An: mailing list for ConTeXt users ; Denis Maier via 
ntg-context 
Cc: Maier, Denis Christian (UB) 
Betreff: Re: [NTG-context] XML, dealing with whitespace

Denis Maier via ntg-context schrieb am 15.01.2022 um 13:04:

Hi all,

I have sources that look like this:

%


   Bla Bla Bla
   
  
 Bla
  , Bla Bla.

%

Typesetting this with context gives me a spurious space after the underlined 
Bla in italics.

There is no spurious space, the line break is just converted to a space and I 
see no reason why this shouldn't happen. To remove space before or after 
certain parts of text within a paragraph you can use the \removeunwantedspace 
and \ignorespaces commands.

Yes, it's absolutely true. From tex's point of view, the space is not spurious. 
It's absolutely adaquate to treat the newline as a space here.

As I've outlined in my original post the problem occurs because xslt adds these 
indentations here. FWIW, I finally found this solution, which seems has been 
added to xslt 3.0 (after being available as a saxon extension: there's a new 
attribute  on xsl:output that can be used to control this:

(https://www.saxonica.com/documentation9.5/xsl-elements/output.html)

So, the solution to my problem is this:



Denis



 begin example
\starttexdefinition RemovePreceding #1
\removeunwantedspaces
#1
\stoptexdefinition

\starttexdefinition RemoveFollowing #1
#1
\ignorespaces
\stoptexdefinition

\starttext

Bla \RemovePreceding{Bla} Bla

Bla \RemoveFollowing{Bla} Bla

\stoptext
 end example

When only  following spaces are a problem a better alternative to \ignorespace 
is \autoinsertnextspace which checks the following token which ensures there is 
space when the next character is punctuation.

 begin example
\starttexdefinition Italic #1
\emphasized{#1}
\autoinsertnextspace
\stoptexdefinition

\starttexdefinition Underbar #1
\underbar{#1}
\stoptexdefinition

\starttext

Bla Bla Bla

\Underbar{\Italic{Bla} , Bla Bla.}

\stoptext
 end example

Wolfgang
___
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
___