Re: [NTG-context] Adjusting parameters for a single page

2021-05-10 Thread Hans Hagen

On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch wrote:

Hi everyone,

I know it is possible to make local changes by enclosing text in \start 
\stop pairs to make local changes. Then, there are also commands that 
only affect the next/current paragraph, such as \looseness.


But is there a similar mechanism for page-layout changes? For example 
your penalty settings allow widows and orphans, but on one particular 
page you want to change the penalties. Or, you use \setupalign[height], 
but on one page you want to use \setupalign[bottom] instead. Is there a 
way to do this ?
it works per paragraph so then you need to adapt it for a specific 
paragraph


when the par starts, the properties are stored (in lmtx it's configured 
that way); you can change properties in the middle of a paragraph but 
then you need to explicitly freeze them, as demonstrated in the examples 
below; tracing will show you all stored properties


(default tex behaviour is that the last setting counts which can be 
somewhat unexpected)


\starttext
\tracingoutput1 \tracingonline1
\pretolerance9000 test \pretolerance8000 test \par
\pretolerance9000 test \pretolerance7000 \updateparagraphproperties 
test \par
\pretolerance9000 test \pretolerance6000 
\snapshotpar\frozentolerancecode test \par

\stoptext

the log shows ...

\par[newgraf][16=1,17=1],  pretolerance 9000, 
\par[newgraf][16=1,17=1],  pretolerance 7000, 
\par[newgraf][16=1,17=1],  pretolerance 6000, 

now, as you probably don't want to be persistent you can group:

\def\MyHack
  {\bgroup
   \pretolerance5000
   \snapshotpar\frozentolerancecode
   \egroup}

test \MyHack test

works ok because the snapshotting applies to the current paragraph (it's 
actually described in some manual)


so, basically, you have a lot of control, all together some 36 
parameters (pablo probably loves the somewhat secret on the fly 
adjustspacing step, stretch and shrink tweakability)


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] Tracking overfull/underfull vboxes, widows/orphans

2021-05-10 Thread denis.maier
Hi,
some time ago Hans has added these trackers for overfull/underfull hboxes:


I'm wondering if there is something similar for vertical boxes?
I've found these trackers:
builders.vspacing
builders.vpacking
builders.page_vspacing
builders.collect_vspacing

But I don't really understand what they do. (Yes, I've tried them.)
Maybe someone can shed some light on this ? (RTFM is a perfectly fine answer, 
just need to know which manual...)

Then, would it be possible to add a tracker for widows/orphans?  (Or even for 
prevented widows/orphans ?)

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
___


Re: [NTG-context] KeenWrite 2.0

2021-05-10 Thread Thangalin
Running from the command-line requires the full edition of Liberica JDK,
which includes JavaFX. See:

https://github.com/DaveJarvis/keenwrite#other
https://bell-sw.com/pages/downloads/?version=java-16

Other OpenJDK versions do not include JavaFX. (JavaFX can be installed
separately for other OpenJDK versions, but it's a bit of a pain.) The
decision to remove JavaFX from the default Java distribution kind of pulled
the rug out from under a number of projects.

https://dave.autonoma.ca/blog/2020/06/29/write-once-build-anywhere/

Cheers!

On Mon, May 10, 2021 at 5:34 AM Hans Hagen  wrote:

> On 5/10/2021 11:46 AM, Floris van Manen wrote:
> >
> >
> > On 10/05/2021 07:40, Thangalin wrote:
> >> https://github.com/DaveJarvis/keenwrite#download
> >> 
> >>
> >> Stay safe everyone!
> >
> >
> > When launching from
> >
> > Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP
> > Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
> >
> > I get a warning:
> >
> > $ keenwrite.bin
> > OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> > and will be removed in a future release.
> on windoes:
>
>  >java.exe --illegal-access=permit -jar keenwrite.jar
> OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> and will be removed in a future release.
> KeenWrite version 2.0.0
> Copyright 2016-2021 White Magic Software, Ltd.
> Portions copyright 2015-2020 Karl Tauber.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javafx/beans/property/ReadOnlyProperty
>  at com.keenwrite.Launcher.main(Launcher.java:27)
> Caused by: java.lang.ClassNotFoundException:
> javafx.beans.property.ReadOnlyProperty
>  at
>
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
>  at
>
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
>  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
>  ... 1 more
>
>
>
___
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] KeenWrite 2.0

2021-05-10 Thread Thangalin
Thanks Floris.

https://github.com/DaveJarvis/keenwrite#other

That's a known issue due to Java's transition to a modular architecture. It
means that a third-party library is using reflection to access behaviour in
a Java class that was designed to be off-limits. Starting from Java 9,
these types of reflection calls have been deprecated. In this particular
case, it's fine, but this third-party library needs to be updated soon.

Cheers!

On Mon, May 10, 2021 at 2:47 AM Floris van Manen  wrote:

>
>
> On 10/05/2021 07:40, Thangalin wrote:
> > https://github.com/DaveJarvis/keenwrite#download
> > 
> >
> > Stay safe everyone!
>
>
> When launching from
>
> Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP
> Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
>
> I get a warning:
>
> $ keenwrite.bin
> OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> and will be removed in a future release.
>
>
>
> ___
> 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] Adjusting parameters for a single page

2021-05-10 Thread denis.maier
Hi everyone,

I know it is possible to make local changes by enclosing text in \start \stop 
pairs to make local changes. Then, there are also commands that only affect the 
next/current paragraph, such as \looseness.
But is there a similar mechanism for page-layout changes? For example your 
penalty settings allow widows and orphans, but on one particular page you want 
to change the penalties. Or, you use \setupalign[height], but on one page you 
want to use \setupalign[bottom] instead. Is there a way to do this ?

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] underscore hyphenation and hz

2021-05-10 Thread Pablo Rodriguez
Hans,

I’m afraid that underscore hyphenation has issues with font expansion:

  \startluacode
  function document.addfunnyhyphen(tfmdata)
  local underscore = utf.byte("_")
  local char   = tfmdata.characters[underscore]
  if not char then return end
  tfmdata.characters[0xFE000]   = {
  width= 0,
  height   = 0,
  depth= 0,
  commands = {
  { "right", -char.width },
  { "down", char.depth },
  { "slot", 1, underscore },
  }
  }
  end


  utilities.sequencers.appendaction("aftercopyingcharacters",
  "after","document.addfunnyhyphen")

  local shared = {
  start  = 1,
  length = 1,
  before = utf.char(0xFE000),
  after  = nil,
  left   = false,
  right  = false,
  }

  local all = table.setmetatableindex({ }, function(t,k)
  return shared
  end)

  languages.hyphenators.traditional.installmethod("sha",
  function(dictionary,word,n)
  return all
  end)
  \stopluacode

  \definehyphenationfeatures
 [sha]
 [characters=all,
  alternative=sha,
  righthyphenchar="FE000]

  \definefontfeature
[default]
[default]
[expansion=quality]

  \setupalign[hz]
  \sethyphenationfeatures[sha]%
  \setuphyphenation[method=traditional]%

  \starttext
\hsize\zeropoint
abcde
  \stoptext

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] underscore hyphenation not working

2021-05-10 Thread Pablo Rodriguez
On 5/10/21 9:36 AM, Hans Hagen wrote:
> [...]
> but at the cost of runtime you can try \setupbackend [space=yes]

It works perfectly fine, but not with font expansion:

  \definefontfeature
[default]
[default]
[expansion=quality]
  \setupalign
[hz]

  \setuppapersize[A6]
  \setupbodyfont[pagella]
  \setupbackend [space=yes]
  \starttext
\input zapf
  \stoptext

  Com i ng back t o t he use o f ty pe f aces i n
  e l ec tr on i c pub li sh i ng : man y o f t he new
  ty pog r aphe r s r ece iv e t he ir know l edge and
  i n f o r ma ti on abou t t he r u l es o f ty pog r a -
  ph y fr om books , fr om compu t e r maga -
  z i nes o r t he i ns tr uc ti on manua l s wh i ch
  t he y ge t w it h t he pu r chase o f a PC o r so ft-
  wa r e . T he r e i s no t so much bas i c i ns tr uc -
  ti on , as o f now , as t he r e was i n t he o l d
  da y s , show i ng t he d iff e r ences be t ween
  good and bad ty pog r aph i c des i gn . Man y
  peop l e a r e j us t f asc i na t ed b y t he ir PC ' s
  tri cks , and t h i nk t ha t a w i de ly -- p r a i sed
  p r og r am , ca ll ed up on t he sc r een , w ill
  make e v e ryt h i ng au t oma ti c fr om now on .

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] KeenWrite 2.0

2021-05-10 Thread Hans Hagen

On 5/10/2021 11:46 AM, Floris van Manen wrote:



On 10/05/2021 07:40, Thangalin wrote:
https://github.com/DaveJarvis/keenwrite#download 



Stay safe everyone!



When launching from

Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP 
Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux


I get a warning:

$ keenwrite.bin
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.

on windoes:

>java.exe --illegal-access=permit -jar keenwrite.jar
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.

KeenWrite version 2.0.0
Copyright 2016-2021 White Magic Software, Ltd.
Portions copyright 2015-2020 Karl Tauber.
Exception in thread "main" java.lang.NoClassDefFoundError: 
javafx/beans/property/ReadOnlyProperty

at com.keenwrite.Launcher.main(Launcher.java:27)
Caused by: java.lang.ClassNotFoundException: 
javafx.beans.property.ReadOnlyProperty
at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 1 more


-
  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] \prime is too high

2021-05-10 Thread Hans Hagen

On 5/10/2021 1:41 PM, Otared Kavian wrote:

Hi Jairo,

Indeed \prime seems a littl ebit too high, but using the apostrophe sign for 
derivation gives the expected result:


\starttext
$s''$ or $s’$ is fine but not $s^{\prime}$.
\stoptext

(Using LMTX version 2021.05.09 17:14).
Don't put primes in supscripts (primes in tex are actually a mess and 
what we have now evolved over years so i don't want to touch it ... 
maybe at some poin ti'll fix the fonts (using vf features)).  In old 
school tex (fonts) primes are raised (the ' is made active), in new 
school fonts primes are already raised. There we also need to handle 
double, triple, quadruple primes, input as sequence or as direct 
characters. And i'm not even talking of primed nuclei followed by scripts.


$s^\prime$

-
  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] \prime is too high

2021-05-10 Thread Otared Kavian
Hi Jairo,

Indeed \prime seems a littl ebit too high, but using the apostrophe sign for 
derivation gives the expected result:


\starttext
$s''$ or $s’$ is fine but not $s^{\prime}$.
\stoptext

(Using LMTX version 2021.05.09 17:14).

Best regards: Otared


> On 9 May 2021, at 02:46, Jairo A. del Rio  wrote:
> 
> The following:
> 
> \starttext
> $s''$ %or $s^{\prime}$
> \stoptext
> 
> gives a too high symbol in ConTeXt LMTX 2021.05.06 23:35. ConTeXt MkIV isn't 
> affected for such an issue.
> 
> Jairo
> ___
> 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] KeenWrite 2.0

2021-05-10 Thread Floris van Manen



On 10/05/2021 07:40, Thangalin wrote:
https://github.com/DaveJarvis/keenwrite#download 



Stay safe everyone!



When launching from

Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP 
Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux


I get a warning:

$ keenwrite.bin
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.



___
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] one quick remark about textext.dflt (vs textext.dlft)

2021-05-10 Thread Hans Hagen

On 5/9/2021 8:01 PM, Garulfo wrote:

Hi all,

one remark, I was expecting to be allowed to use textext.dlft
but finally the appropriate command appears to be textext.dflt
which require to switch F and L letters.

Is it on purpose ?
would it make sense to have a dlft version to match  LeFT ?

dflt == default

-
  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] Update setpath to set the path

2021-05-10 Thread Hans Hagen

On 5/10/2021 9:18 AM, Thangalin wrote:


One of the benefits of context minimals is that you can install
multiple versions in parallel, which allows the user to update
frequently without the risk of breaking something for long-term
projects. Specifically, you can keep a "frozen" version of context
for long-term projects and install a newer version in parallel for
newer projects.


For sure! My environment looks as follows:

export CONTEXT_HOME=/opt/context
export PATH="$PATH:...:$CONTEXT_HOME/tex/texmf-linux-64/bin:..."

The /opt/context directory is a symbolic link, which eases switching 
between versions: I seldom have to change the environment variables 
settings.


So, your suggestions should be included as a separate script and not
as part of the default. Then there is the question of providing an
uninstall script as well...


Using a ConTeXt-specific environment variable (e.g., LMTX_HOME) would 
make uninstalling a matter of removing it from the PATH and registry (on 
Windows, anyway). Here are the current instructions:


https://github.com/DaveJarvis/keenwrite/blob/master/docs/typesetting.md#windows 



Is there a way we can eliminate steps 3 - 6 for Windows installs?
if one starts up mtxrun or context with a fully quallified path it will 
work ok (because it then knows where it sits in the tex tree), like


c:\data\context\tex\texmf-win64\bin\mtxrun --script context ...

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] underscore hyphenation not working

2021-05-10 Thread Hans Hagen

On 5/10/2021 8:42 AM, Pablo Rodriguez wrote:

On 5/9/21 7:46 PM, Hans Hagen wrote:

[...]
you can also retest the advance


It works fine now.

A minor issue happens with SumatraPDF-3.1.2 (aside from font advance):


Works fine with 3.3.13 here. (btw, if after decades of pdf viewers still 
don't handle this well, i suppose it will never be okay, maybe because 
it's not that important to copy/paste)


Coming back to the use of typefaces in
electronic publishing: many of the new
typographers receive their knowledge and
information about the rules of typogra-
phy from books, from computer maga-
zines or the instruction manuals which
they get with the purchase of a PC or soft-
ware. There is not so much basic instruc-
tion, as of now, as there was in the old
days, showing the differences between good
and bad typographic design. Many peo-
ple are just fascinated by their PC's tricks,
and think that a widely--praised program,
called up on the screen, will make every-
thing automatic from now on.

but at the cost of runtime you can try \setupbackend [space=yes]

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] Update setpath to set the path

2021-05-10 Thread Thangalin
> One of the benefits of context minimals is that you can install multiple
> versions in parallel, which allows the user to update frequently without
> the risk of breaking something for long-term projects. Specifically, you
> can keep a "frozen" version of context for long-term projects and install a
> newer version in parallel for newer projects.
>

For sure! My environment looks as follows:

export CONTEXT_HOME=/opt/context
export PATH="$PATH:...:$CONTEXT_HOME/tex/texmf-linux-64/bin:..."

The /opt/context directory is a symbolic link, which eases switching
between versions: I seldom have to change the environment variables
settings.

So, your suggestions should be included as a separate script and not as
> part of the default. Then there is the question of providing an uninstall
> script as well...
>

Using a ConTeXt-specific environment variable (e.g., LMTX_HOME) would make
uninstalling a matter of removing it from the PATH and registry (on
Windows, anyway). Here are the current instructions:

https://github.com/DaveJarvis/keenwrite/blob/master/docs/typesetting.md#windows

Is there a way we can eliminate steps 3 - 6 for Windows installs?
___
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] Update setpath to set the path

2021-05-10 Thread Aditya Mahajan
On Sun, 9 May 2021, Thangalin wrote:

> Thoughts on updating the setpath.bat file to persist setting the path?
> 
> Here's an updated version that sets the system environment variable while
> preserving the existing unexpanded PATH value:
> 
> [] 
>
> The reason for this change is because the Windows installation instructions
> (on the wiki) are incomplete: technically, the user must run setpath.bat
> for each new session. 

This is how setuptex works on linux as well. 

> This implies that any third-party program that wants
> to make use of ConTeXt on Windows would have to communicate said fact to
> the user, or let the user set the full path to ConTeXt within the
> third-party program. Both of these can be avoided by persisting the PATH
> setting across sessions.

One of the benefits of context minimals is that you can install multiple 
versions in parallel, which allows the user to update frequently without the 
risk of breaking something for long-term projects. Specifically, you can keep a 
"frozen" version of context for long-term projects and install a newer version 
in parallel for newer projects. 

So, your suggestions should be included as a separate script and not as part of 
the default. Then there is the question of providing an uninstall script as 
well...

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] underscore hyphenation not working

2021-05-10 Thread Pablo Rodriguez
On 5/9/21 7:46 PM, Hans Hagen wrote:
> [...]
> you can also retest the advance

It works fine now.

A minor issue happens with SumatraPDF-3.1.2 (aside from font advance):

  \setuppapersize[A6]
  \definefontfamily[mainface][rm]
  [TeX Gyre Pagella]
  \setupbodyfont[mainface]
  \starttext
\input zapf
  \stoptext

Lines 3, 7, 10, 12 and 13 lack spaces between words:

  Coming back to the use of typefaces in
  electronic publishing: many of the new
  typographersreceivetheirknowledgeand
  information about the rules of typogra-
  phy from books, from computer maga-
  zines or the instruction manuals which
  theygetwiththepurchaseofaPCorsoft-
  ware. There is not so much basic instruc-
  tion, as of now, as there was in the old
  days,showingthedifferencesbetweengood
  and bad typographic design. Many peo-
  plearejustfascinatedbytheirPC'stricks,
  andthinkthatawidely--praisedprogram,
  called up on the screen, will make every-
  thing automatic from now on.

Although this only happens with SumatraPDF, it would be great to have
standard spacing (otherwise searching is impossible).

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
___