Re: [NTG-context] where to break a long header

2021-06-06 Thread Hans Hagen

On 6/6/2021 3:34 PM, Steffen Wolfrum wrote:

This minimal I ran with «ConTeXt  ver: 2021.06.04 17:28 MKI» and got two PDF 
files:
One «test.pdf» as expected and one called «test-pdf-keep.pdf».

What's the reason behind this double feature?

see thread of a few days ago


-
  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] Hyphenation again

2021-06-06 Thread Hans Hagen

On 6/6/2021 6:29 PM, Rik Kabel wrote:


On 6/6/2021 12:11, Steffen Wolfrum wrote:

Hi,

yet another strange thing: «ap-plic-»

See code below, Steffen


\mainlanguage[en]

\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext





Am 09.10.2020 um 16:38 schrieb Denis Maier:

Hi,
another weird thing:
In this example I use  \startexceptions to set hyphenation exceptions:

```
\mainlanguage[en]
\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]

\starttext
\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated
\stoptext
```

What am I missing?

Best,
Denis


When I edit this example with Vim, I see, in part:

\startexceptions[en]
appli-ca<200b>ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca<200b>ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca<200b>ble
obli-gated
\stopexceptions

So it seems that the answer remains the same from when Denis posted a 
similar question a few months ago.


indeed, i just wasted an hour figuring out that there is some non letter 
in there; so there will never be a match (exception words get simplified 
to a key that is used in the lookup .. a \zwj or \zwnj can be used if 
needed but in the meantime there is a more sophisticated mechanism


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] Hyphenation again

2021-06-06 Thread Rik Kabel


On 6/6/2021 12:11, Steffen Wolfrum wrote:

Hi,

yet another strange thing: «ap-plic-»

See code below, Steffen


\mainlanguage[en]

\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext





Am 09.10.2020 um 16:38 schrieb Denis Maier :

Hi,
another weird thing:
In this example I use  \startexceptions to set hyphenation exceptions:

```
\mainlanguage[en]
\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]

\starttext
\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated
\stoptext
```

What am I missing?

Best,
Denis


When I edit this example with Vim, I see, in part:

   \startexceptions[en]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

   \startexceptions[de]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

   \startexceptions[it]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

So it seems that the answer remains the same from when Denis posted a 
similar question a few months ago.


--
Rik

___
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] Hyphenation again

2021-06-06 Thread Steffen Wolfrum
Hi,

yet another strange thing: «ap-plic-»

See code below, Steffen


\mainlanguage[en]

\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext




> Am 09.10.2020 um 16:38 schrieb Denis Maier :
> 
> Hi,
> another weird thing:
> In this example I use  \startexceptions to set hyphenation exceptions: 
> 
> ```
> \mainlanguage[en]
> \startexceptions[en]
> appli-ca​ble
> obli-gated
> \stopexceptions
> 
> \setuplayout[width=1cm]
> 
> \starttext
> \currentmainlanguage
> 
> \currentlanguage
> 
> \hyphenatedword{applicable}
> 
> applicable
> 
> \hyphenatedword{obligated}
> 
> obligated
> \stoptext
> ```
> 
> What am I missing?
> 
> 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
> ___

___
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] where to break a long header

2021-06-06 Thread Steffen Wolfrum
This minimal I ran with «ConTeXt  ver: 2021.06.04 17:28 MKI» and got two PDF 
files:
One «test.pdf» as expected and one called «test-pdf-keep.pdf».

What's the reason behind this double feature?

Steffen



> Am 05.06.2021 um 10:14 schrieb Wolfgang Schuster 
> :
> 
> denis.ma...@ub.unibe.ch schrieb am 05.06.2021 um 08:16:
>> \startsection[title={A very \\ long title},list={A very long title}]
> 
> Be careful with spaces before and after \\. In the table of contents \\ is 
> converted to a space and in the worst case you get three spaces instead of 
> one.
> 
> \starttext
> 
> \placecontent
> 
> \section{First section \\ with a line break}
> 
> \section{Second section\\ with a line break}
> 
> \section{Third section \\with a line break}
> 
> \section{Fourth section\\with a line break}
> 
> \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
> ___

___
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] names of cached images

2021-06-06 Thread Hans Hagen

On 6/6/2021 1:16 PM, Jano Kula wrote:

Hello list,

usingconversion=gray.pdf in lmtx the cached images' names have some 
string in their name. I thought it's a name of random sequence of luatex 
cache, but the string is the same on other machines and I don't know, 
where it comes from. mkiv used to have m_k_i_v_ string there.


hacker.pdf = source image
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win

MWE
\starttext
\externalfigure[hacker]
     [cache=./,
     conversion=gray.pdf]
\stoptext

Is it intended behavior?
sure, something like that is always intended; it's an md5 of a hash of 
all relevant parameters so that when you change one (say the resolution) 
we now that we need to update


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] names of cached images

2021-06-06 Thread Jano Kula
Hello list,

using conversion=gray.pdf in lmtx the cached images' names have some string
in their name. I thought it's a name of random sequence of luatex cache,
but the string is the same on other machines and I don't know, where it
comes from. mkiv used to have m_k_i_v_ string there.

hacker.pdf = source image
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win

MWE
\starttext
\externalfigure[hacker]
[cache=./,
conversion=gray.pdf]
\stoptext

Is it intended behavior?

Thanks,
Jano
___
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
___