Re: [NTG-context] \setbreakpoints[compound] with numbers

2020-09-18 Thread Denis Maier

Am 17.09.2020 um 19:07 schrieb Hans Hagen:

On 9/17/2020 4:54 PM, Denis Maier wrote:

Hi,

In the texts I'm currently typesetting, I occassionaly have to deal 
with ISBNs. So, e.g. 978-3-123456-78-9


\setbreakpoints[compound] does not enable automatic linebreaks after 
or before the hyphens. Is there a way to deal with this? Perhaps 
something similar like \hyphenatedurl{} or an extended version of 
\setbreakpoints.


(I currently use zero-width spaces, so I got rid of ISBNs in the 
margins, but a more automatic solution would be great.)


\unexpanded\def\isbnnumber#1%
   {\cldcontext{string.gsub("#1","-","\\automaticdiscretionary")}}

\hsize 1mm \isbnnumber{123-456}


Thanks.
___
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] \setbreakpoints[compound] with numbers

2020-09-17 Thread Hans Hagen

On 9/17/2020 4:54 PM, Denis Maier wrote:

Hi,

In the texts I'm currently typesetting, I occassionaly have to deal with 
ISBNs. So, e.g. 978-3-123456-78-9


\setbreakpoints[compound] does not enable automatic linebreaks after or 
before the hyphens. Is there a way to deal with this? Perhaps something 
similar like \hyphenatedurl{} or an extended version of \setbreakpoints.


(I currently use zero-width spaces, so I got rid of ISBNs in the 
margins, but a more automatic solution would be great.)


\unexpanded\def\isbnnumber#1%
  {\cldcontext{string.gsub("#1","-","\\automaticdiscretionary")}}

\hsize 1mm \isbnnumber{123-456}

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


[NTG-context] \setbreakpoints[compound] with numbers

2020-09-17 Thread Denis Maier

Hi,

In the texts I'm currently typesetting, I occassionaly have to deal with 
ISBNs. So, e.g. 978-3-123456-78-9


\setbreakpoints[compound] does not enable automatic linebreaks after or 
before the hyphens. Is there a way to deal with this? Perhaps something 
similar like \hyphenatedurl{} or an extended version of \setbreakpoints.


(I currently use zero-width spaces, so I got rid of ISBNs in the 
margins, but a more automatic solution would be great.)


Best,
Denis
___
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] \setbreakpoints[compound] and numbers

2020-05-19 Thread Peter Münster
Hi,

How could I get breaking lines with numbers please?

Example:

\setbreakpoints[compound]
\setuplayout[width=1mm]
\starttext
xxx/xxx % line break is ok here
xx1/xxx % I would like a linebreak here too
\stoptext

TIA for any help,
-- 
   Peter
___
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] \setbreakpoints[compound] not working?

2020-02-25 Thread Pablo Rodriguez
On 2/25/20 8:56 PM, Wolfgang Schuster wrote:
> On Tue, 25 Feb 2020 20:43:59 +0100 Pablo Rodriguez wrote:
>> [...]
>> I mean, line isn’t broken after any "/".
>>
>> Is this a bug in MkXL (and MkIV) or am I missing something?
>
> The break happpens only when letters are on the left and right side
> but not for numbers.

Many thanks for your fast reply, Wolfgang.

I didn’t have the need to line break with numbers before.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] \setbreakpoints[compound] not working?

2020-02-25 Thread Wolfgang Schuster
On Tue, 25 Feb 2020 20:43:59 +0100
Pablo Rodriguez  wrote:

> Dear list,
> 
> I cannot get this working:
> 
> \setuppapersize[A9]
> \setupbodyfont[26pt]
> \setbreakpoints[compound]
> \starttext
> 1989/3242/CEE\\
> 2009/3926/UE\\
> \stoptext
> 
> I mean, line isn’t broken after any "/".
> 
> Is this a bug in MkXL (and MkIV) or am I missing something?

The break happpens only when letters are on the left and right side but not for 
numbers.

\setbreakpoints[compound]

\starttext

\hsize=1pt

xxx/yyy

111/222

\stoptext

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
___


[NTG-context] \setbreakpoints[compound] not working?

2020-02-25 Thread Pablo Rodriguez
Dear list,

I cannot get this working:

\setuppapersize[A9]
\setupbodyfont[26pt]
\setbreakpoints[compound]
\starttext
1989/3242/CEE\\
2009/3926/UE\\
\stoptext

I mean, line isn’t broken after any "/".

Is this a bug in MkXL (and MkIV) or am I missing something?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] \setbreakpoints[compound] inserts spurious hyphen

2019-01-28 Thread Alan Braslau
On Mon, 28 Jan 2019 22:05:07 +1300
Henri Menke  wrote:

> This was falsely
> reported as an issue with the btx system on TeX.SX.
> https://tex.stackexchange.com/q/472041

Indeed, the mailing list, not stackexchange, is the place to report problems 
encountered in using ConTeXt ...

Alan
___
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] \setbreakpoints[compound] inserts spurious hyphen

2019-01-28 Thread Hans Hagen

On 1/28/2019 10:05 AM, Henri Menke wrote:

Dear list,

When \setbreakpoints is set to the method compound, it inserts a
spurious hyphen on the next line, see MWE below.  This was falsely
reported as an issue with the btx system on TeX.SX.
https://tex.stackexchange.com/q/472041


it's what one gets when there is no space between .( ... i'll add an 
extra check but of course now someone will complain about that


(one can of course temporary disable the mechanism in some cases)


\setupbodyfont[palatino,14pt]
\setbreakpoints[compound]
\starttext
Antique astronomy was gradually replaced
by the logic of counting.(Eastwood)
\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
___




--

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

[NTG-context] \setbreakpoints[compound] inserts spurious hyphen

2019-01-28 Thread Henri Menke
Dear list,

When \setbreakpoints is set to the method compound, it inserts a
spurious hyphen on the next line, see MWE below.  This was falsely
reported as an issue with the btx system on TeX.SX.
https://tex.stackexchange.com/q/472041

Cheers, Henri

---

\setupbodyfont[palatino,14pt]
\setbreakpoints[compound]
\starttext
Antique astronomy was gradually replaced
by the logic of counting.(Eastwood)
\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
___

Re: [NTG-context] frac opentype feature broken by \setbreakpoints[compound]

2017-02-14 Thread Hans Hagen

On 2/13/2017 4:47 PM, MF wrote:

Hello list,
I found an interference between the "frac" opentype feature and
\setbreakpoints[compound], which make the former fail when you have a
numerator more than 2 digit wide.

I found it with Adobe Garamond Premier Pro: with
\setbreakpoints[compound], when the fraction had a 3-digit (or more)
numerator, the denominator stayed high as the numerator (like a
superscript).

Here I replaced Garamond Premier Pro with the freely available "Lato"
font, to let you reproduce the problem.
The outcome is different, but still erroneous:
\setbreakpoints[compound] makes ConTeXt ignore the "frac" feature at
all.

Please try this:

\definefontfeature[frac][frac=yes]
\definefontfamily[default][rm][lato][features=frac]
\setupbodyfont[default,rm,11pt]

\setbreakpoints[compound]

\starttext

\addff{frac} 1/3, 1/100, 1/1000, {\setbreakpoints[reset]1633/100},
2345/12.

\stoptext

A workaround is a local \setbreakpoints[reset] limited to the fraction.


i'll add this:

\definefontfeature[f:fractions][frac=yes]

\definealternativestyle [fractions]  [\setfractions\resetbreakpoints] 
[\setfractions\resetbreakpoints]


\unexpanded\def\setfractions{\doaddfeature{f:fractions}}


\addff{frac} 1/3, 1/100, 1/1000, {\resetbreakpoints 1633/100}, 2345/12.

\fractions{1/3, 1/100, 1/1000, 1633/100, 2345/12}.


Keep in mind that often the fractions feature sis incomplete and can 
even give weird side effects when applied to a whole stretch of text so 
limiting the scope is wise anyway


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
___

[NTG-context] frac opentype feature broken by \setbreakpoints[compound]

2017-02-13 Thread MF
Hello list,
I found an interference between the "frac" opentype feature and
\setbreakpoints[compound], which make the former fail when you have a
numerator more than 2 digit wide.

I found it with Adobe Garamond Premier Pro: with
\setbreakpoints[compound], when the fraction had a 3-digit (or more)
numerator, the denominator stayed high as the numerator (like a
superscript).

Here I replaced Garamond Premier Pro with the freely available "Lato"
font, to let you reproduce the problem.
The outcome is different, but still erroneous:
\setbreakpoints[compound] makes ConTeXt ignore the "frac" feature at
all.

Please try this:

\definefontfeature[frac][frac=yes]
\definefontfamily[default][rm][lato][features=frac]
\setupbodyfont[default,rm,11pt]

\setbreakpoints[compound]

\starttext

\addff{frac} 1/3, 1/100, 1/1000, {\setbreakpoints[reset]1633/100},
2345/12.

\stoptext

A workaround is a local \setbreakpoints[reset] limited to the fraction.

Best regards,
Massi
___
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] \setbreakpoints[compound] in tables

2014-04-04 Thread Philipp A.
hi, when inputting table data using \processdatabasefile, my initial
\setbreakpoints[compound] seems to have no effect.

is there a way to make it work?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \setbreakpoints[compound] in tables

2014-04-04 Thread Hans Hagen

On 4/4/2014 2:55 PM, Philipp A. wrote:

hi, when inputting table data using \processdatabasefile, my initial
\setbreakpoints[compound] seems to have no effect.

is there a way to make it work?


no example .. no answer

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [***SPAM***] \setbreakpoints[compound] does not work

2012-03-25 Thread Steffen Wolfrum
Hi,

is there a reason why hyphenation of compound Lwk-Maut does not work in 
following example?


\showframe
\mainlanguage[de]
\setbreakpoints[compound]

\setnumber[footnote][114]

\starttext

test
{\startfootnote[ftn115]
siehe Schlussbericht der zuständigen Bund-Länder-Arbeitsgruppe 
„Verkehrsverlagerungen info Lkw-Maut“, BT-Dr16/298 v.~13.\,12.\,2005, 2, 3.
\stopfootnote}. 

\stoptext

Steffen
(vers. 2012.03.13)
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [***SPAM***] \setbreakpoints[compound] does not work

2012-03-25 Thread Hans Hagen

On 25-3-2012 13:34, Steffen Wolfrum wrote:

\showframe
\mainlanguage[de]
\setbreakpoints[compound]

\setnumber[footnote][114]

\starttext

test
{\startfootnote[ftn115]
siehe Schlussbericht der zuständigen Bund-Länder-Arbeitsgruppe 
„Verkehrsverlagerungen info Lkw-Maut“, BT-Dr16/298 v.~13.\,12.\,2005, 2, 3.
\stopfootnote}.

\stoptext


It's something that is still not settled: what to reset when page 
building happens cq. we're in 'forget' mode. Anyhow, we can (stepwise) 
make some features global:


in typo-brk.mkiv:

\definesystemattribute[breakpoint][public,global]



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [***NOSPAM***] \setbreakpoints[compound] does not work

2012-03-25 Thread Steffen Wolfrum

Am 25.03.2012 um 17:05 schrieb Hans Hagen:

 On 25-3-2012 13:34, Steffen Wolfrum wrote:
 \showframe
 \mainlanguage[de]
 \setbreakpoints[compound]
 
 \setnumber[footnote][114]
 
 \starttext
 
 test
 {\startfootnote[ftn115]
 siehe Schlussbericht der zuständigen Bund-Länder-Arbeitsgruppe 
 „Verkehrsverlagerungen info Lkw-Maut“, BT-Dr16/298 v.~13.\,12.\,2005, 2, 3.
 \stopfootnote}.
 
 \stoptext
 
 It's something that is still not settled: what to reset when page building 
 happens cq. we're in 'forget' mode. Anyhow, we can (stepwise) make some 
 features global:
 
 in typo-brk.mkiv:
 
 \definesystemattribute[breakpoint][public,global]


thanks for this fast help!

st.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setbreakpoints

2010-03-04 Thread James Fisher
*tumbleweed*

On Wed, Mar 3, 2010 at 11:09 PM, Vyatcheslav Yatskovsky 
yatskov...@gmail.com wrote:

 Hi Wolfgang,

 To be serious, what  \setbreakpoints[] do? I want to wikify this command.

 Vyatcheslav

 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setbreakpoints

2010-03-03 Thread Vyatcheslav Yatskovsky

Hi Wolfgang,

To be serious, what  \setbreakpoints[] do? I want to wikify this command.

Vyatcheslav
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___