Re: [NTG-context] nbsp in XML (S01E01)

2021-04-23 Thread Jano Kula
Hello, the first episode was more dramatic than expected, seem to be a good series. On Thu, Apr 22, 2021 at 11:36 AM Hans Hagen wrote: > On 4/21/2021 8:17 PM, Jano Kula wrote: > > > Does unicode nbsp have fixed with in ctx? > > sometimes ... but you just uncovered an old bug > if attr >= 1

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-22 Thread Hans Hagen
On 4/21/2021 8:17 PM, Jano Kula wrote: Does unicode nbsp have fixed with in ctx? sometimes ... but you just uncovered an old bug if attr >= 1 or attr <= 3 then -- flushright someplace should be if attr >= 1 and attr <= 3 then -- flushright Hans

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread Taco Hoekwater
Hi, > On 21 Apr 2021, at 23:09, Jano Kula wrote: > > On Wed, Apr 21, 2021 at 8:37 PM Hans van der Meer wrote: >> Why tilde is displayed? > > Wouldn't the simple answer not be: because XML is not TeX? You are never going back to “TeX mode”: the preprocessor converts XML into *other* XML. An

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread mf
Try this: %\xmltexentity{nbsp}{\nobreakspace} \xmlsetentity{nbsp}{ } % U+00A0 NBSP between braces %\xmlsetentity{nbsp}{ } % U+0020 normal space between braces \startbuffer[doc] Temperature 20 °C 20 °C 20 °C 20 °C average. Altitude 6000 m 6000 m 6000 m 6000 m average.

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread denis.maier
Re tilde: maybe the answer is in the entities section of the xml mkiv manual. Denis Von: ntg-context im Auftrag von Jano Kula Gesendet: Mittwoch, 21. April 2021 23:09:55 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] nbsp in XML

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread Jano Kula
On Wed, Apr 21, 2021 at 8:37 PM Hans van der Meer wrote: > Why tilde is displayed? > > > Wouldn't the simple answer not be: because XML is not TeX? > I see your point for tilde: with finalizers in mind I was already in the stomach, while mouth was looking at the menu. Teaser for S01E02: finalize

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread Hans van der Meer
> Why tilde is displayed? Wouldn't the simple answer not be: because XML is not TeX? dr. Hans van der Meer > On 21 Apr 2021, at 20:17, Jano Kula wrote: > > Dear list, > > first episode of series on nbsp of XML in lmtx. > Unfortunately, not that catchy as Netflix. > > Used XML input has two

[NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread Jano Kula
Dear list, first episode of series on nbsp of XML in lmtx. Unfortunately, not that catchy as Netflix. Used XML input has two types of non-breakable space: - unicode character - html entitity (in fact an ugly output of HTML editor) HTML is preprocessed with ctx preprocessor (great feature!