[NTG-context] new beta

2019-12-05 Thread Hans Hagen

Hi,

I uploaded a new lmtx beta. Hopefully the installer works ok as I redid 
some of the "zip" related code (simpler, smaller binary too). FWIW, the 
luametatex codebase is now pretty close to okay, but of course there can 
be bugs, but nothing thay can't be solved fast.


Given some earlier discussions on the list, I wonder about running 
context in containers and (behind the screens) web applications. Is 
there anything needed, mostly in the support scripts I guess, that can 
make that more comfortable / efficient / etc?


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] hz / expansion

2019-12-05 Thread Pablo Rodriguez
On 12/2/19 6:52 PM, Hans Hagen wrote:
> Hi,
>
> The latest lmtx has a new feature: expansion control independent of font
> specific settings.
> [...]
> Maybe it's useful (I hardly use expansion myself). Hopefully there are
> no side effects.

Many thanks for the new implementation, Hans.

Using beta from 2019.12.02 18:28 for LMTX in Windows, I get only the
left margin justified with this sample:

\definefontfeature[default][default][expansion=quality]
\setupalign[hz]
\starttext
\input zapf
\stoptext

I cannot reproduce the issue in Linux. I’m afraid I don’t have access to
other computers.

Is this a real bug or is my distribution 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] new beta

2019-12-05 Thread Otared Kavian
Hi Hans,

Thanks for the new features and the new release.
I could download the new installer  for MacOS which installs the latest version 
but it cannot make the formats ending with the error message which I copy below.

Best regards: OK
PS: this is the error message when installing:

tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
control sequence

 ...ansion :\currentexpansion }{\adjustspacingstep 
  \expansionparameter \c!ste...
\define_expansion ...i \the \everydefineexpansion 
  \let \currentexpansion \sa...
 \syst_helpers_triple_empty_two_nop 
\par 
l.99 
   




The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.


resolvers   | formats |
resolvers   | formats | binary path  : 
/context-osx-64/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex
resolvers   | formats | lua startup file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
resolvers   | formats | run time : 0.494 seconds
resolvers   | formats | return value : error
resolvers   | formats |
system  | total runtime: 0.567 seconds of 0.623 seconds


> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
> of the "zip" related code (simpler, smaller binary too). FWIW, the luametatex 
> codebase is now pretty close to okay, but of course there can be bugs, but 
> nothing thay can't be solved fast.
> 
> Given some earlier discussions on the list, I wonder about running context in 
> containers and (behind the screens) web applications. Is there anything 
> needed, mostly in the support scripts I guess, that can make that more 
> comfortable / efficient / etc?
> 
> 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
> ___

___
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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-05 Thread Pablo Rodriguez
On 12/5/19 9:23 AM, Hans Hagen wrote:
> On 12/4/2019 10:19 PM, Pablo Rodriguez wrote:
>> [...]
>> I hope we might switch to Windows 10 in the no so near future .
> - if you use tex, use fonts that are put in the tex tree, the only
> guarantee you have for continuity.
> > - i checked a few versions of that font on an old windows xp vm and it
> works ok ... so does your company ever update the machines?

Hi Hans,

I wonder whether my issue with the fonts might be caused by my ConTeXt
distribution (such as the one with expansion, reported some ).

Windows is updated with security patches (or whichever the name might be).

If I try to explain to the IT people that a font is misbehaving and an
application (I don’t even try to explain what ConTeXt actually is [they
won’t understand]) cannot recognize it, they will reply that the
application is wrong. Because of that, I’m not even trying to explain
what is wrong with the font at all.

In my previous company, I remember a guy (which had as slightly idea of
what TeX was [he used LaTeX for his PhD decades ago]) with a strong
background in computer science. He was impressed that I “developed” a
system with no coding knowledge, but he objected that ConTeXt wasn’t
standard software (the standard for him was OpenOffice.org). I replied
that the standard was in the output PDF documents (which were PDF/A-3a).
(I didn’t mention that working with OOo was a real pain and that trying
to write conditionals with document merging was extremely annoying for me.)

Many thanks for your help and your new betas,

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
___


[NTG-context] PDF/A-3a attachment support query

2019-12-05 Thread Rik Kabel

Hello list,

The following document fails PDF/A-3a validation. It passes without the 
attachment.


   \setuplanguage   [en]
   \setuptagging    [state=start]
   \setupinteraction    [state=start]
   \setupbackend    [format={pdf/a-3a},profile={default_gray.icc},
  intent={ISO coated v2 300\letterpercent\space
   (ECI)}]
   \setupstructure  [state=start,method=auto]
   \setupcolors [pagecolormodel=auto,start=yes,rgb=no,cmyk=no]
   \setupbodyfont   [Palatino,10pt]
   \starttext

  Attaching a plain text file.

   % \attachment    [file=test.tex,
   % type={text/plain;charset=UTF-8}]
   % The \ConTeXt\ source code for this document is attached here.
  \attachment    [file=testa.pdf,
  type={application/pdf}]
  A successfully validated pdf/a-3a file is attached here.

   \stoptext

pdf-online reports:

   Validating file "test.pdf" for conformance level pdfa-3a
   The key F is required but missing.
   The appearance dictionary doesn't contain an entry.
   File specification 'testa.pdf' not associated with an object.
   The document does not conform to the requested standard.
   The document doesn't conform to the PDF reference (missing required
   entries, wrong value types, etc.).
   The document contains hidden, invisible, non-viewable or
   non-printable annotations.
   The document contains annotations or form fields with ambigous or
   without appropriate appearances.
   The document does not conform to the PDF/A-3a standard.
   Done.

My understanding is that 3-a should support both pdf and non-pdf 
attachments. This fails in a similar manner with both pdf/a-3a-validated 
files and with plain text files. I also tested with verapdf, and it also 
rejected the document with an attachment.


Is this my error, or is it not yet supported?

--
Rik Kabel


___
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] Textbackground inside Layer?

2019-12-05 Thread Jon Wong
\setupwhitespace[line] % A line's spacing between paragraphs.

\starttext

\definetextbackground[InfoText][
  location=paragraph, frame=on]

\definelayer[testlayer]
\setlayer[testlayer][x=1cm,y=3cm]{%
  \startInfoText
  \stopInfoText
}
\flushlayer[testlayer]

\stoptext

Doesn’t work. Only works if I put text inside the layer.
___
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] new beta

2019-12-05 Thread Otared Kavian
Dear Hans,

The problem I described in my previous message comes indeed from 
\defineexpansion which is not defined.
Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is the 
four lines:

\defineexpansion
  [\c!step=1,
   \c!stretch=40,
   \c!shrink=20]

I could remake the format with version 2019.12.05 18:59. Then lmtx works fine 
as far as my files are concerned, but I don't know if there are side effects…
(However, once the format is made, if I uncomment those lines then lmtx works 
fine, but clearly one cannot make again the format)

Best regards: OK

> On 5 Dec 2019, at 20:28, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thanks for the new features and the new release.
> I could download the new installer  for MacOS which installs the latest 
> version but it cannot make the formats ending with the error message which I 
> copy below.
> 
> Best regards: OK
> PS: this is the error message when installing:
> 
> tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
> control sequence
> 
>  ...ansion :\currentexpansion }{\adjustspacingstep 
>  \expansionparameter \c!ste...
> \define_expansion ...i \the \everydefineexpansion 
>  \let \currentexpansion \sa...
>  \syst_helpers_triple_empty_two_nop 
>\par 
> l.99 
> 
> 
> 
> 
> 
> The control sequence at the end of the top line of your error message was 
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
> 
> 
> resolvers   | formats |
> resolvers   | formats | binary path  : 
> /context-osx-64/tex/texmf-osx-64/bin
> resolvers   | formats | format path  : 
> /context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
> resolvers   | formats | luatex engine: luametatex
> resolvers   | formats | lua startup file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
> resolvers   | formats | context file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
> resolvers   | formats | run time : 0.494 seconds
> resolvers   | formats | return value : error
> resolvers   | formats |
> system  | total runtime: 0.567 seconds of 0.623 seconds
> 
> 
>> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
>> 
>> Hi,
>> 
>> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
>> of the "zip" related code (simpler, smaller binary too). FWIW, the 
>> luametatex codebase is now pretty close to okay, but of course there can be 
>> bugs, but nothing thay can't be solved fast.
>> 
>> Given some earlier discussions on the list, I wonder about running context 
>> in containers and (behind the screens) web applications. Is there anything 
>> needed, mostly in the support scripts I guess, that can make that more 
>> comfortable / efficient / etc?
>> 
>> 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
>> ___
> 

___
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] new beta

2019-12-05 Thread Vladimir Lomov
Hello,
** Otared Kavian  [2019-12-06 04:23:28 +0100]:

> Dear Hans,
 
> The problem I described in my previous message comes indeed from
> \defineexpansion which is not defined.  Upon commenting out the lines
> 95--98 in the file « hand-ini.mkxl » that is the four lines:
 
> \defineexpansion
>   [\c!step=1,
>\c!stretch=40,
>\c!shrink=20]

That's strange. I indeed see these lines in 'hand-ini.mkxl' but I could
recreate format without problem on my Linux box (Archlinux x86_64), even
after clearing the cache and doing

  $ mtxrun --generate ; context --make

gives me working context (lmtx).

> I could remake the format with version 2019.12.05 18:59. Then lmtx
> works fine as far as my files are concerned, but I don't know if there
> are side effects… (However, once the format is made, if I uncomment
> those lines then lmtx works fine, but clearly one cannot make again
> the format)

I tried two examples with lmtx and they typeset fine.

> Best regards: OK

[...]

---
WBR, Vladimir Lomov

-- 
There is grandeur in this view of life, with its several powers, having been
originally breathed into a few forms or into one; and that, whilst this planet
has gone cycling on according to the fixed law of gravity, from so simple a
beginning endless forms most beautiful and most wonderful have been, and are
being, evolved.
-- Darwin


signature.asc
Description: PGP signature
___
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] Impacts Project

2019-12-05 Thread Thangalin
Hi list!

Thank you for helping to answer so many questions and remove so many
roadblocks with my project. The result is a photobook written in
Markdown, piped through pandoc to generate ConTeXt code, then stylized
using a series of .tex files.

The coolest ConTeX part, IMO, is the orange dot in the timeline. Using
MetaPost, the date for the timeline is read directly from the
document, then plotted relative to the \overlaywidth. Changing the
date in the Markdown document winds up repositioning the timeline dot
automagically.

https://impacts.to/

The book is going to be released under a CC BY 4.0 license, including
all the source code necessary to generate the book. Meanwhile, if
anyone is interested in nabbing a copy of the PDF, let me know
(preferably via the web form).

Again, my sincerest gratitude, this project would have been a much
more time-consuming and arduous journey without your generous help.
___
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] new beta

2019-12-05 Thread Wolfgang Schuster

Otared Kavian schrieb am 06.12.2019 um 04:23:

Dear Hans,

The problem I described in my previous message comes indeed from 
\defineexpansion which is not defined.
Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is the 
four lines:

\defineexpansion
   [\c!step=1,
\c!stretch=40,
\c!shrink=20]

I could remake the format with version 2019.12.05 18:59. Then lmtx works fine 
as far as my files are concerned, but I don't know if there are side effects…
(However, once the format is made, if I uncomment those lines then lmtx works 
fine, but clearly one cannot make again the format)


You Luametatex binary is too old which missed the new \adjustspacingstep 
command shown in the error message from your previous mail.


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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-05 Thread Hans Hagen

On 12/4/2019 10:19 PM, Pablo Rodriguez wrote:

On 12/3/19 10:14 PM, Hans Hagen wrote:

On 12/3/2019 8:37 PM, Pablo Rodriguez wrote:

[...]
I’m afraid a new font is not an option for me at work.

But there are better (unicode) versions available on windows, why nmot
use those then (as wolfgang pointed out).


Many thanks for your reply, Hans.

I would use the Unicode versions at home (if I had a Windows license),
but at work it is problematic even to ask for free fonts.

My company may be to strict with these policies, but I don’t think it is
a total exception in this matter.

I hope we might switch to Windows 10 in the no so near future .
- if you use tex, use fonts that are put in the tex tree, the only 
guarantee you have for continuity
- i checked a few versions of that font on an old windows xp vm and it 
works ok ... so does your company ever update the machines?


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: \adjustspacing=1 does not disable expansion

2019-12-05 Thread Hans Hagen

On 12/5/2019 1:39 AM, Henri Menke wrote:

It actually seems as if the documentation of LuaTeX is wrong here,
because the behaviour of `\adjustspacing=1' is compatible with
`\pdfadjustspacing=1` in pdfTeX.  From the pdfTeX manual:

     When \pdfadjustspacing is set to 1, font expansion is applied after
     TeX’s normal paragraph breaking routines have broken the paragraph
     into lines. In this case, line breaks are identical to standard TeX
     behavior.

So maybe just copy this paragraph to the LuaTeX manual.

ok.

btw, Level 1 is rather useless and was more a variant to the at that 
time bitmap generated instances (which was the original idea: generate 
new fonts with mfm but that mode was dropped). Context doesn't support 
level 1 at all.


-
  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] LMTX install issue

2019-12-05 Thread Hans Hagen

On 12/5/2019 6:11 AM, Otared Kavian wrote:

Hi all,

I cannot update to the latest lmtx, using the install.sh downloaded from
http://www.pragma-ade.com/install.htm
more precisely the version for MacOS from
http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip

I keep getting the version from 2019.11.29 21:58.

What is going on?

No clue ... I'll make new zips later today.

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] Using ConTeXt with LuaTeX variants

2019-12-05 Thread Jairo A. del Rio
Hi. How do I build the format? I try

context --make

ANd nothing special happens. How do I set up the new engine. Thank you in
advance.
___
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
___