Re: [NTG-context] Install Problems with 64 bit ARM Linux

2020-11-28 Thread luigi scarso
On Sat, Nov 28, 2020 at 11:18 AM Hans Hagen  wrote:

> looks nice (specs and such) indeed, maybe as a next tablet (i haven't
> tested tex on the very old nexus in a while); probably a little faster
> than the rpi 4
>

these also look interesting
 e.g.
https://tinker-board.asus.com/prod_tinker-board-2s.html

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

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 6:10 PM Hans Hagen  wrote:

> On 11/26/2020 6:07 PM, luigi scarso wrote:
> >
> >
> > Il Gio 26 Nov 2020, 18:00 Hans Hagen  > <mailto:j.ha...@xs4all.nl>> ha scritto:
> >
> > On 11/26/2020 5:10 PM, luigi scarso wrote:
> >  >
> >  >
> >  > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>
> >  > <mailto:j.ha...@xs4all.nl <mailto:j.ha...@xs4all.nl>>> wrote:
> >  >
> >  >   Of course, if they care about luatex cs support they
> >  > could send an M1 mini to Mojca for the compile farm for some
> real
> >  > testing.
> >  >
> >  >
> >  > very likely luatex will run full native on M1 on next texlive,
> > following
> >  > http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>
> >  > <http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>>
> > that's with universal binaries (as happened before when apple
> switched
> > from powerpc to intel)
> >
> >
> > Full native:
> > """
> > Full native Arm support will arrive with MacTeX-2021 next spring.
> > """
>
> sure, but by using a unversal bin:
>

it's not bad,  13MB (or less, due the shared data) vs 6.5MB for downloading
is  still acceptable for the user.
Of course for the provider it doubles the space, but I fear that this
cannot be avoided for the next five years.

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

2020-11-26 Thread luigi scarso
Il Gio 26 Nov 2020, 18:00 Hans Hagen  ha scritto:

> On 11/26/2020 5:10 PM, luigi scarso wrote:
> >
> >
> > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> >   Of course, if they care about luatex cs support they
> > could send an M1 mini to Mojca for the compile farm for some real
> > testing.
> >
> >
> > very likely luatex will run full native on M1 on next texlive, following
> > http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>
> that's with universal binaries (as happened before when apple switched
> from powerpc to intel)


Full native:
"""
Full native Arm support will arrive with MacTeX-2021 next spring.
"""

--
luigi

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

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  wrote:

>  Of course, if they care about luatex cs support they
> could send an M1 mini to Mojca for the compile farm for some real testing.
>

very likely luatex will run full native on M1 on next texlive, following
http://www.tug.org/mactex/aboutarm.html

-- 
luigi
___
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] Guit meeting 2020

2020-09-11 Thread luigi scarso
GuIT (Gruppo Utilizzatori Italiani di TeX, official Italian TUG) is pleased
to announce the GuITmeeting 2020, the 17th edition of the Italian
conference on TeX, LaTeX and digital typography.


The conference, organized by GuIT and  Sissa Medialab srl of Trieste, will
be held online on the 31st of October 2020. Attending the conference is
free of charge and it does not require registration. A link to follow the
oral presentations will be published shortly on the conference official
page.

Authors willing to give an oral presentation are kindly requested to send
their proposals in the form of a full article (in English or Italian) to
arstexn...@guitex.org by the 18th of October 2020. Notification of
acceptance will be sent by the 25th of October 2020. The accepted papers
will be published, after a peer-review process, in the autumn issue of
ArsTeXnica, the Italian journal of TeX, LaTeX. The LaTeX template for
preparing the article and further details can be found at
www.guitex.it/en/collabora-autori

We look forward to hearing from you!

https://www.guitex.org/home/en/guit-meeting-2020

A note about peer-review:
at
https://www.anvur.it/attivita/classificazione-delle-riviste/classificazione-delle-riviste-ai-fini-dellabilitazione-scientifica-nazionale/elenchi-di-riviste-scientifiche-e-di-classe-a/

under
A. Elenco delle riviste scientifiche
at
area 10 (Scienze dell'antichità, filologico-letterarie e storico-artistiche
/ Antiquities, philology, literary studies, art history)

and

area 11 (Scienze storiche, filosofiche, pedagogiche e psicologiche /
History, philosophy, education sciences).

there is a list of scientific journals, and there also  ARS TEXNICA
Articles are considered valid starting from 1 january 2016.


-- 
luigi
___
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] Commands with arguments before in ConTeXt

2020-06-29 Thread luigi scarso
On Sun, Jun 28, 2020 at 10:48 PM Jairo A. del Rio 
wrote:

> I've read the following is not possible in TeX
>
> \def#1\macro{blabla#1}
>
> where arguments come before. The only partial exceptions are commands like
> \atop or \over, which are in fact primitives. Is there a way to do this in
> ConTeXt?
>
>
you can build a lpeg and parse the your "extended tex" source, obtaining a
valid tex source.


-- 
luigi
___
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] Installing on arm64

2020-06-10 Thread luigi scarso
On Wed, Jun 10, 2020 at 9:07 PM Hans Hagen  wrote:

> On 6/10/2020 7:47 PM, luigi scarso wrote:
> >
> >
> > On Wed, Jun 10, 2020 at 7:27 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> > On 6/10/2020 7:07 PM, Lutz Haseloff wrote:
> >  > I think, there is simply no rule for aarch64 in install.sh
> >  >
> >  > I now patched it in a better way.
> >
> > ok
> >
> >  > The binaries for aarch64 work like a charm on my device, a Samsung
> >  > Galaxy A50 Smartphone.
> > Does that really work well? I suppose the cpu and mem is ok, but how
> > about the disk. How do you edit on such a device?
> >
> >
> > doable from years already...
> > use termux
> > https://play.google.com/store/apps/details?id=com.termux=it
> > to run and  compile,
> > to cross-compile  you need to setup a tool chain for android using ndk.
> sure, i remember running a binary on the nexus made by harald years ago
> but i think i had to root the device first
>

no need to root  the device with termux.

-- 
luigi
___
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] Installing on arm64

2020-06-10 Thread luigi scarso
On Wed, Jun 10, 2020 at 7:27 PM Hans Hagen  wrote:

> On 6/10/2020 7:07 PM, Lutz Haseloff wrote:
> > I think, there is simply no rule for aarch64 in install.sh
> >
> > I now patched it in a better way.
>
> ok
>
> > The binaries for aarch64 work like a charm on my device, a Samsung
> > Galaxy A50 Smartphone.
> Does that really work well? I suppose the cpu and mem is ok, but how
> about the disk. How do you edit on such a device?
>

doable from years already...
use termux
https://play.google.com/store/apps/details?id=com.termux=it
to run and  compile,
to cross-compile  you need to setup a tool chain for android using ndk.

-- 
luigi
___
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] Checking existence of a macro (control sequence) by Lua

2020-05-27 Thread luigi scarso
On Thu, May 28, 2020 at 12:43 AM  wrote:

> Off-topic:
your email are always marked as spam by my gmail . Are you sure that your
address setup is ok  ?

-- 
luigi
___
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 in \doifinset

2020-05-27 Thread luigi scarso
On Wed, May 27, 2020 at 11:28 PM Pablo Rodriguez  wrote:

>
> Without commas, lists are harder both to read and to write (at least, to
> me).
>
>

what about

\starttext
\startTEXpage[offset=1em]
\doifinsetelse{i7}{%
i4,%
i5,%
i7,%
}
{yes}{no}
\stopTEXpage
\stoptext

here seems to work.
-- 
luigi
___
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] METAPOST: How do I get this 'max' cutafter to work?

2020-04-22 Thread luigi scarso
On Wed, Apr 22, 2020 at 9:30 AM Taco Hoekwater  wrote:

>
> In contrast, intersectionpoint finds the first intersection on the
> non-reversed paths, which
> is the base of the arrowhead.
>
>
IIrc ,  it's the first in shuffle order

@ Incidentally, if the given cubics intersect more than once, the process
just sketched will not necessarily find the lexicographically smallest pair
$(t_1,t_2)$. The solution actually obtained will be smallest in ``shuffled
order''; i.e., if $t_1=(.a_1a_2\ldots a_{16})_2$ and
$t_2=(.b_1b_2\ldots b_{16})_2$, then we will minimize
$a_1b_1a_2b_2\ldots a_{16}b_{16}$, not
$a_1a_2\ldots a_{16}b_1b_2\ldots b_{16}$.
Shuffled order agrees with lexicographic order if all pairs of solutions
$(t_1,t_2)$ and $(t_1',t_2')$ have the property that $t_1___
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] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread luigi scarso
On Thu, Apr 16, 2020 at 9:08 AM Henning Hraban Ramm  wrote:

>
>
> > Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
>
> I’m using a Python script to convert DOCX to ConTeXt.


c# under linux is also a valid option.

-- 
luigi
___
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] Luatex 1.12.0 announcement.

2020-03-30 Thread luigi scarso
==
LuaTeX 1.12.0 2020-03-15
==

This is the release for TeX live 2020.
--shell-restricted now forbids loading of dso (dll/so object)
Scaled virtual font
Aadditional primitives  \eTeXglue[stretch|shrink]order for querying order
the etex way.
Extra features runtoks
tex.getmodenames() (as these can differ per engine/version)
Permit nested runtoks in more complex situations of nesting (HH)
More accurate and correct test for tex.[set|get]math
Minor clean-up and bugs fixed

-- 
luigi
___
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] Quizz

2020-03-17 Thread luigi scarso
On Tue, Mar 17, 2020 at 9:40 AM Hans Hagen  wrote:

>
> I have no problem coming up with additional styles of code for remote
> learning and student support but it has to have some 'direction' and not
> be too random.
>
>
one constrain could be "it works under google chrome > Version
79.0.3945.130"
At least some it's some  grade of cross platforms, as  chrome seems to be
quite ubiquitous .
Kind of least common denominator.

-- 
luigi
___
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] Quizz

2020-03-16 Thread luigi scarso
On Mon, Mar 16, 2020 at 11:14 AM Hans Hagen  wrote:

> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
> > Hi,
> > With the Coronavirus pandemic, my school will close like all the others.
> > We chose to work with Microsoft Teams. I know how to file Math exercises
> > written with ConteXt and export to pdf format. Is it possible with
> > ConteXt to create interactive Quizz?
> it should be doable (in the past we've made those with choice, fill in
> etc questions) but one problem with pdf is that there has been
> introduced some restrictions, for instance one cannot save in the reader
> so one then need to run a server that picks up the filled in stuff and
> regenerates a pdf file ... no big deal but i must admit that i don't
> have that code (if at all) around in loadable module form
>

In google chrome this seems to work, apart the choice fields (the choice
selected has the red frame but  it has  no mark inside):
https://martin-thoma.com/images/2012/02/pdf-form.pdf

-- 
luigi
___
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] Quick question about dual output pdf and epub

2020-03-04 Thread luigi scarso
On Wed, Mar 4, 2020 at 9:51 AM Hans Hagen  wrote:

>
> (in the meantime i actually gave away my ebook reader ... now i wait
> till color shows up in e-ink which might give me a reason to play a bit
> more)
>
>
https://news.lenovo.com/pressroom/press-releases/lenovo-unveils-preview-worlds-first-foldable-pc-thinkpad-x1-family/

>
sound quite interesting 

-- 
luigi
___
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] Unicode 13 – save the \dodo!

2020-02-05 Thread luigi scarso
On Wed, Feb 5, 2020 at 10:38 AM Arthur Reutenauer <
arthur.reutena...@normalesup.org> wrote:

>
>   Just for the record: it is not true at all that Unicode is “mostly
> emojis” nowadays.  Even today, the vast majority of characters added
> each year is 90% non-emoji.  I make this point at every ConTeXt meeting
> I attend, but it really seems nobody is listening ;-)
>

 I was.


-- 
luigi
___
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] Transparency in PNGs becomes black in PDF/X

2019-12-20 Thread luigi scarso
On Fri, Dec 20, 2019 at 11:00 AM Peter Rolf  wrote:

> Hi Hraban,
>
> PDF/X-1a:2001 doesn't support transparency. You have to use PDF/X-4(p)
> for that (the first X variant that supports transparency).
> PDF/A-2|3 may also be an option. These formats also support transparency.
>
>
> Peter
>
>
confirmed, this is ok.

\setupbackend[format=PDF/X-4p]

\starttext
\externalfigure[esel_kl.png]
\stoptext

>


-- 
luigi
___
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: Segmentation fault

2019-12-11 Thread luigi scarso
On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen  wrote:

> On 12/11/2019 12:03 AM, luigi scarso wrote:
> > I guess that we have to check if catcodetable -1 is already defined...
> i already sent you a patch, probbaly also ok for trunk
>

Committed revision 7235.
-- 
luigi
___
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: Segmentation fault

2019-12-11 Thread luigi scarso
On Wed, Dec 11, 2019 at 1:28 AM Henri Menke  wrote:

> In this case I wanted to generate the thin space (\,).  My expectation
> (which worked elsewhere) was that full expansion will turn "\string\\,"
> into "\\," where the two backslashes have catcode 12 and will not be
> expanded further.  Then the Lua string will turn the escape sequence \\
> into a single backslash, therefore ending up with \, in the Lua string.
>
>


\directlua{token.set_macro("foo","\relax")}
(gdb) x/7c str
0x59376c18: 13 '\r' 101 'e' 108 'l' 97 'a'  120 'x' 32 ' '  0 '\000'
(gdb) p lstr
$24 = 6
where \foo is
 \foo=macro:
->#!.

vs
\directlua{token.set_macro("foo",[==[\relax]==])}
(gdb) x/8c str
0x59376ea8: 92 '\\' 114 'r' 101 'e' 108 'l' 97 'a'  120 'x' 32 ' '  0
'\000'
(gdb) p lstr
$25 = 7
\foo=macro:
->\relax .

Another example is
\directlua{token.set_macro("foo","\medskip")}\show\foo
which gives the error:   invalid escape sequence near '"^^Kskip \m'.
vs
\directlua{token.set_macro("foo",[==[\medskip]==])}\show\foo
 which gives
\foo=macro:
->\vskip \medskipamount .

Your example:
\directlua{token.set_macro("foo","\string\\,")}\show\foo
gives
(gdb) x/3c str
0x593765a8: 92 '\\' 44 ','  0 '\000'
(gdb) p lstr
$29 = 2
 \foo=macro:
->BAD,.

vs
\directlua{token.set_macro("foo",[==[\,]==])}\show\foo
(gdb) x/20c str
0x59376908: 92 '\\' 109 'm' 115 's' 107 'k' 105 'i' 112 'p' 32 ' '  92
'\\'
0x59376910: 116 't' 104 'h' 105 'i' 110 'n' 109 'm' 117 'u' 115 's' 107
'k'
0x59376918: 105 'i' 112 'p' 32 ' '  0 '\000'
(gdb) p lstr
$31 = 19
 \foo=macro:
->\mskip \thinmuskip .


-- 
luigi
___
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: Segmentation fault

2019-12-10 Thread luigi scarso
On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen  wrote:

> On 12/11/2019 12:03 AM, luigi scarso wrote:
> >
> >
> > On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  > <mailto:henrime...@gmail.com>> wrote:
> >
> > Dear devs,
> >
> > The example below crashes LuaTeX with a segmentation fault.  It is
> > reproducible
> > with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built
> > 7226 from
> > source with --debugopt to get a backtrace, which can be found below
> > as well.
> >
> > Cheers, Henri
> >
> > ---
> >
> > \directlua{token.set_macro(-1, "foo","\string\\,")}
> > \show\foo
> > \foo
> > \bye
> >
> >
> > I guess that we have to check if catcodetable -1 is already defined...
> i already sent you a patch, probbaly also ok for trunk
>


yes, seen



> but one needs to be careful as fo rinstance \string\foo is seen as
> oo so often one also needs to escape properly
>

 I always start with  [==[ ... ]==]  ie
\directlua{token.set_macro(-1, [==[foo]==],[==[\string\\,]==])}
 gdb reports this [==[\string\\,]==] string as
 ","
which is an array of char of length 3 ie {'\\','\\',','}

With \directlua{token.set_macro(-1, [==[foo]==],"\string\\,")}
gdb reports "\\,"
ie {'\\','\,'}

I always check which one is the correct one...

-- 
luigi
___
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: Segmentation fault

2019-12-10 Thread luigi scarso
On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  wrote:

> Dear devs,
>
> The example below crashes LuaTeX with a segmentation fault.  It is
> reproducible
> with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built 7226
> from
> source with --debugopt to get a backtrace, which can be found below as
> well.
>
> Cheers, Henri
>
> ---
>
> \directlua{token.set_macro(-1, "foo","\string\\,")}
> \show\foo
> \foo
> \bye
>

I guess that we have to check if catcodetable -1 is already defined...

--
luigi
___
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: Segmentation fault

2019-12-10 Thread luigi scarso
On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  wrote:

> Dear devs,
>
> The example below crashes LuaTeX with a segmentation fault.  It is
> reproducible
> with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built 7226
> from
> source with --debugopt to get a backtrace, which can be found below as
> well.
>
>
confirmed, we will see asap
(btw,  I use --debug ie CFLAGS="-g -O0" because it's hard to follow the
flow of optimized code)


-- 
luigi
___
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] PDF/A-3a attachment support query

2019-12-06 Thread luigi scarso
On Fri, Dec 6, 2019 at 4:26 PM Peter Rolf  wrote:

>
> So we have only basic support for "PDF/A-3a", the more advanced features
> of that format are not supported yet. The main problem here is the
> lacking PDF/A documentation (ISO pay wall).
>

A complete installation of verapdf  has  a very detailed "documentation"
(sort of, it's embedded in the code) based on the ISO standard.

--
luigi
___
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] NewComputerModern

2019-11-24 Thread luigi scarso
https://ctan.org/pkg/newcomputermodern

"""
This is a new assembly of Computer Modern fonts plus glyphs for non latin
alphabets which are considered compatible in style to CM fonts.

The fonts contain Latin and accented Latin letters and combinations, Greek
(monotonic and polytonic), and Cyrillic.

"""



-- 
luigi
___
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] R module

2019-11-24 Thread luigi scarso
On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan  wrote:

> On Sat, 23 Nov 2019, Fabrice L wrote:
> > Thanks for your answer. I did not know about the filter module. I had a
> > look; the module is powerful… but complex to install.
>
> Why do you say so? If you are using context-minimals, then this can be
> installed like any other module. If you are using texlive, then can be
> installed using tlmgr.
>

I argue that talking of a ffi binding of R is out-of-question ...

-- 
luigi
___
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] ConTeXt as a service

2019-11-23 Thread luigi scarso
On Sat, Nov 23, 2019 at 1:02 PM Henning Hraban Ramm  wrote:

>
> Don’t exaggerate. Or maybe your company didn’t think about which tags are
> really necessary.
> A proper configuration that doesn’t allow nonsense, even if users paste
> text from Word documents, is not such a big effort.
>
> I can’t remember which JS editor I used >10 years ago for the editorial
> system of a city magazine, but I remember I only allowed a few tags
> (authors weren’t allowed to use font and color settings) and also run a
> HTML cleaner before saving. It was an effort until it worked, but not that
> much.
>

another link:
https://coko.foundation/
https://coko.foundation/product-suite/

-- 
luigi
___
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] error, no format found with name: cont-en, aborting

2019-11-13 Thread luigi scarso
On Wed, Nov 13, 2019 at 3:11 PM Henning Hraban Ramm  wrote:

> contextjit or context —jit doesn’t work any more. Use just context.
>

I have just updated mkiv
mtx-context | current version: 2019.11.12 23:58
and contextjit  works.

-- 
luigi
___
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] MKIV: error, no format found with name: cont-en, aborting

2019-11-13 Thread luigi scarso
sent from
cont...@rik.users.panix.com
Note from admin: the email is in defer state because
"Message body is too big: 159549 bytes with a limit of 100 KB"
I have kept the initial part.

"
Dear list,

Since the 20191029 update I have not been able to create a document via
MKIV, suffering from the subject error message (error, no format found
with name: cont-en, aborting).

I have tried cache clearing, regeneration, and complete fresh installs.
None work. I suspect it is something on my system, but cannot think of a
relevant change except possibly a Win10-64 system update.

Attached is the log from the latest install try (with filenames of
copied files removed).

LMTX has no problems.

All suggestions welcome.

-- 
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] Luatex 1.11.1 announcement

2019-10-28 Thread luigi scarso
==
LuaTeX 1.11.1 2019-10-28
==

First release of luahbtex / luajithbtex,
luatex / luajittex with harfbuzz.
Small bug fixes, code clean up and a couple of new primitives
to match eTeX.
A new callback lua.getcodepage()  for diagnostic purposes.
*** DROPPED the   "page_objnum_provider" callback, replaced with
"page_order_index". ***
See ChangeLog and the manual.

-- 
luigi
___
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] ConTeXt groups supports "Public Money, Public Code"

2019-10-23 Thread luigi scarso
On Wed, Oct 23, 2019 at 12:14 PM Henning Hraban Ramm  wrote:

> Hi all,
>
> the previous board of your ConTeXt group decided to support the campaign
> of Free Software Foundation Europe, “Public Software? Public Code!” (see
> https://publiccode.eu/), and we finally got confirmed.
>
>
the site say
PUBLIC MONEY PUBLIC CODE
(as in the subject)
not
“Public Software? Public Code!”


-- 
luigi
___
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] columns and footnotes

2019-10-21 Thread luigi scarso
On Mon, Oct 21, 2019 at 8:24 AM Henning Hraban Ramm  wrote:

> Hi again,
> I’m testing columns again, and before I publish an article on the subject,
> I’d like to check with you.
> Best, Hraban
>

Hi Hraban,
the attachment are  >100K,  I have made an exception but please try to stay
under 100K next time.

-- 
luigi
___
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] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread luigi scarso
On Sun, Oct 20, 2019 at 12:22 PM Hans Hagen  wrote:

> On 10/20/2019 11:11 AM, Damien Thiriet wrote:
> > Hi,
> >
> >
> > As I wrote yesterday, I have crashes on LTMX, openbsd6.5-amd64.
> > LTMX version:
>


> > Bus error (core dumped)
>

could be pplib related
Can you check also luatex mkiv ?


-- 
luigi
___
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] PDF viewer poll

2019-10-16 Thread luigi scarso
>
> mupdf started simple but I think it also grew in a weird
> direction (large codebase, some reflow I think, a strange epub
> substandard support, etc .. all pretty useless to me and I'm not sure
> how optional it it ... so no longer as lightweight as it could be ...)
>

mupdf-1.16.1-source/build/release$ du -sh platform resources source
thirdparty
524K platform
42M resources
7.2M source
6.6M thirdparty

where resources is a directory with 155 fonts compressed and embedded into
the exe.
Following (the quite old) pdf this  should be configurable
https://ghostscript.com/~robin/mupdf_explored.pdf
(ch. 18)

I guess that mupdf's targets are windows/mac/Linux/Android but as a  base
tool (eg ebook reader make senses on Android).

License is AGPL
https://mupdf.com/license.html
like GPL plus
"""
Network Use – However, AGPL also has some conditions even if you are not
distributing the software. For example, if you are using the software on
your own company's equipment, but you are making the functionality of the
software available to users interacting with it remotely through a computer
network, and you make any change to the software, you must make the source
code for your changed version available to users of the software. Take care
to ensure that during network deployment that there is no code change that
could invoke the source code availability obligation. This special
requirement of AGPL is in Section 13; see the GNU web site for more details.

Bottom line, if you distribute our software, or make the functionality of
the software available to users interacting with it remotely through a
computer network, you must share your source code.
"""

and also the "Corresponding Source " subsection.


-- 
luigi
___
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] PDF viewer poll

2019-10-15 Thread luigi scarso
On Sun, Oct 13, 2019 at 12:43 PM Henning Hraban Ramm  wrote:

> Hi, I’d like to update my list of (usable!) PDF viewers.
>

A recent android tablet 10" with HD display is quite ok with Adobe Reader
and  several others apps ( eg foxit pdf reader)
EBookDroid is another app  pdf +djvu reader ,  also quite ok to read a pdf
on screen.

-- 
luigi
___
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] PDF viewer poll

2019-10-15 Thread luigi scarso
On Tue, Oct 15, 2019 at 10:21 AM Hans Hagen  wrote:

> > Most of my PDF debugging is done using 'mutool clean’ (especially with
> the -d switch) and textmate / diff.
> qpdf also has something like that (with comments of where the objects
> come from)


it's the qdf export : pdf -> qdf -> (edit qdf)  -> pdf


-- 
luigi
___
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] Error: your system "Linux aarch64" is not supported yet.

2019-09-27 Thread luigi scarso
On Fri, Sep 27, 2019 at 7:20 AM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

>  (But I
> could use the binaries from TL as a starting point.)
>
>
well, something that works is better than nothing but of course one can
always install a scheme from texlive.


> That's either cross-compiling, but probably easier to simply put some
> proper hardware in place, so that we can also run the test suite.
>
> I was thinking of getting hold of another Raspberry and trying to
> install a 64-bit system on it. Or maybe dig out my super old Pine64
> and build on that one.


ubuntu 64bit is ok on rpi3 & rpi3b+
You can try A64 form olimex, also ok with ubuntu 64bit.
And of course the rpi4.



-- 
luigi
___
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] Error: your system "Linux aarch64" is not supported yet.

2019-09-26 Thread luigi scarso
..but aarch is in texlive already from  while ...

-- 
luigi
___
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] formatting index entries: alphabetical order in Unicode

2019-09-13 Thread luigi scarso
On Fri, Sep 13, 2019 at 12:20 PM Robert Zydenbos 
wrote:

> On 22. Aug 2019, at 18:17, Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
>
> > A PDF with the wrong sorting order doesn't help when you can't show a
> working minimal example to reproduce the problem.  When you need more
> control about the sorting order of the index you should switch to MkIV
> which has more options.
> >
> > Wolfgang
>
> When ConTeXt MkIV (rather: LuaTeX) supports Indic fonts, I'll gladly do
> that. :-)
>


luahbtex (in texlive 2020) has harfbuzz embedded .

-- 
luigi
___
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] Convert SVG to MetaPost

2019-08-12 Thread luigi scarso
On Mon, Aug 12, 2019 at 12:11 PM Jon Wong  wrote:

> Hi all,
>
> Is it possible to convert SVG to MetaPost?
>
> Currently, I have Bash scripts in my workflow to invoke Inkscape
> (converting SVG to PDF). I don’t like to allow shell access to TeX.
>
> If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files
> instead of SVG files. That will do away with having to convert SVG into PDF
> (via Inkscape).
>
>
you can check pstoedit
http://www.calvina.de/pstoedit/pstoedit.htm

it can convert postscript to metapost.
So svg->pdf->ps->mp seems to be possible.
Of course, I am not sure if it fits in  your workflow.

-- 
luigi
___
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] grid+formulas: bug or expected behavior?

2019-07-26 Thread luigi scarso
Hi Luca,
the size of your  message was a bit over the 100KByte limit of the mailing
list, but I have made an exception and approved it .
But (everybody) please stay under 100KByte, space is a precious resource.

-- 
luigi
___
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] [OT] veraPDF v1.14

2019-07-18 Thread luigi scarso
https://www.pdfa.org/verapdf-1-14-released/

-- 
luigi
___
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] [OT] rasperry 4

2019-06-26 Thread luigi scarso
On Mon, Jun 24, 2019 at 2:30 PM luigi scarso  wrote:

> just seen
> https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
>
> I would like to know your impressions
>
> --
> luigi
>

more benchmarks
https://www.tomshardware.com/reviews/raspberry-pi-4-b,6193.html
-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 3:31 PM Rudolf Bahr  wrote:

> On Tue, Jun 25, 2019 at 10:15:29AM +1200, Henri Menke wrote:
> > On 25/06/19 12:30 AM, luigi scarso wrote:
> > > just seen
> > > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> > >
> > > I would like to know your impressions
> >
> > Does it still need proprietary binary blobs in the kernel?  Probably
> > yes, so it is as useless as all the models before because it can only
> > run their custom Raspbian distro.
>
>
>
> To this I asked my linux group in Freiburg and got following answer
> in German from Tomas (tuxteam.de):
>
> --
> Die Antwort darauf ist komplizierter, als es einem lieb sein kann :-)
>
> "Blob" hat da nämlich unterschiedliche Bedeutungen (vermutlich lässt
> sich die Liste verlängern):
>
>  (1) zum einen, nicht-freie Treiber, die direkt im Adressraum des Linux
>kernels ausgeführt werden (strenggenommen verletzen sie die GPL,
>aber die Linux-community ist da... "tolerant" [1]
>
>  (2) dann ist die eng verwandte "Cousine", die im Kernel zwar einen
>freien "Treiber" hat, der aber nur eine Hülle ist, die die eigentliche
>Arbeit an ein Programm in user space delegiert, das proprietär ist
>
>  (3) schliesslich ist es so, dass der Broadcom BCM28xx (oder BCM27xx) [2]
>nicht "nur eine ARM CPU" ist, sondern ganz viele verschiedene
>Subsysteme umfasst (im Jargon ist das ein SoC, ein "System on a Chip").
>Jedes dieser Subsysteme hat vielleicht einen, vielleicht mehrere
>Prozessoren, am prominentesten beim Raspi ist wohl der
> Grafik-Coprozessor
>(VideoCore IV), der auch zum Booten des ganzen Systems zuständig ist.
>Auch die wollen Code, der auch als Blobs in Erscheinung treten kann,
>die der Linux-Kernel einfach nur durchreicht.
>
> Also: ohne (3) gibt es beim Raspi nicht mal Booten ;-)
>
> Meines Wissens ist Raspi in (1) und (2) weitgehend "sauber" (Korrekturen
> erwünscht!), (3) ist allerdings weitaus schwieriger (es gibt m.W. aber
> auch Leute, die an dessen reverse engineering dran sind).
>
> Broadcom selbst scheint, nach anfänglichem Zögern, diesen Anstrengungen
> freundlich gegenüberzustehen.
>
> Dies alles mit etwas Fehlermarge, da ich schon lange nicht mehr
> reingeschaut habe. Ergänzungen also willkommen (dann lerne ich auch
> was bei ;-)
>
> lg
>
> [1] Ein Thema für sich, an dem, wie mensch sich das auch denken
>kann, so einige Kontroversen entstehen.
>
> [2] https://en.wikipedia.org/wiki/Raspberry_Pi
> -
>
> If anybody is interested I would try to translate it.
>
>


sure

-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 9:15 AM luigi scarso  wrote:

>
>
> https://wiki.ubuntu.com/ARM/RaspberryPi
> 18.04.2 both 32bit and 64bit work
>
>
I mean in raspberry 3B & 3B+,
pi4 is slightly different :
https://www.element14.com/community/docs/DOC-92641/l/raspberry-pi-4-model-b-frequently-asked-questions-faq
but I expect that ubuntu will run ok
-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 12:15 AM Henri Menke  wrote:

> On 25/06/19 12:30 AM, luigi scarso wrote:
> > just seen
> > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> >
> > I would like to know your impressions
>
> Does it still need proprietary binary blobs in the kernel?


dunno


>
> so it is as useless as all the models before because it can only
> run their custom Raspbian distro.
>


https://wiki.ubuntu.com/ARM/RaspberryPi
18.04.2 both 32bit and 64bit work

-- 
luigi
___
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] [OT] rasperry 4

2019-06-24 Thread luigi scarso
just seen
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

I would like to know your impressions

-- 
luigi
___
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] Tagged PDF Best Practice Guide: Syntax

2019-06-14 Thread luigi scarso
https://www.pdfa.org/resource/tagged-pdf-best-practice-guide-syntax/

-- 
luigi
___
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] No menu bar option for Adobe Reader

2019-05-01 Thread luigi scarso
On Sun, Apr 28, 2019 at 10:38 PM Paul Schalck  wrote:

> @luigi: Version 11. I know, it isn't supported anymore since October 2017.
>



https://linuxconfig.org/how-to-install-latest-adobe-acrobat-reader-dc-on-ubuntu-18-04-bionic-beaver-linux-with-wine
seems to work,
I have installed
AcroRdrDC1901020099_en_US.exe
and opened a couple of files.

-- 
luigi
___
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] No menu bar option for Adobe Reader

2019-04-28 Thread luigi scarso
On Sun, Apr 28, 2019 at 9:42 PM Paul Schalck  wrote:

>
>  I use Acrord because I'm used to it and because I think it still has the
> best subpixel rendering, at least in the Linux world (with Wine). Mozilla's
> PDF.js comes close though.
>

 which version of adobe reader are you using?

-- 
luigi
___
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] luatex crash around page 1000

2019-04-12 Thread luigi scarso
On Fri, Apr 12, 2019 at 8:03 AM Akira Kakuto  wrote:

> > mtx-context | fatal error: return code: -1073741571
>
> I suspect that may be a limitation in 32bit binary.
> Try to install 64bit ConTeXt if you are using 32bit one
> and your OS is 64bit.
>
>

The other chance is the inclusion of a  pdf with an unusual image.

-- 
luigi
___
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] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 10:52 AM Hans Hagen  wrote:

> as currently the variable is isn't used we can also comment it
>
>
>
seems so
I have commented the line, and all formats and the plain test run.


-- 
luigi
___
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] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 5:56 AM Henri Menke  wrote:

>
> Dear list,
>
> Something has changed in MetaFun and it can no longer be used in plain
> LuaTeX,
> with neither of
>
> luatex test.tex
> mtxrun --script plain test.tex
>
> This is the error:
>
> >> LUATEXFUNCTIONALITY
> >> "mp.print(LUATEXFUNCTIONALITY)"
> ! Equation cannot be performed (numeric=string).
>
> MWE is below, as always.
>
> Cheers, Henri
>
> ---
>
> \directlua{
> local mpkpse = kpse.new(arg[0], "mpost")
>
> local function finder(name, mode, ftype)
> if mode == "w" then
> return name
> else
> return mpkpse:find_file(name,ftype)
> end
> end
>
> local mpx = mplib.new {
> find_file = finder
> }
> local ret = mpx:execute[[
> boolean mplib ; mplib := true ;
> input metafun.mp ;
> ]]
>
> print(ret.log)
> }
> \bye
>
>
in mp-mlib.mpiv it seems that we should have
string  LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;
instead of
numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;

Now I have
tex/texmf-context/metapost/context/base/mpiv$ grep -r LUATEXFUNCTIONALITY
mp-mlib.mpiv:%numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;
mp-mlib.mpiv:string  LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;

and your example looks ok.

-- 
luigi
___
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] (huge thanks) attaching files from links

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 10:09 PM Pablo Rodriguez  wrote:

>
> PS: I wonder whether ConTeXt/LuaTeX might do my laundry, the dishes,
> home cleaning or cooking... .
>

Yes ---  it's called IoT

https://meeting.contextgarden.net/2018/abstracts.shtml

ConTeXt: unexpected usage
Hans Hagen
The development of ConTeXt (with LuaTeX) is a continuous process and is
driven by user demands, changes in the ecosystem, like fonts, but also by
personal needs. Because we’re not talking of macros alone but also of a
rather large library of Lua code, I can also run applications on top of
LuaTeX with ConTeXt supporting them one way or another. In this talk I will
discuss how I abuse the system in domotica.


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 8:40 PM Pablo Rodriguez  wrote:

> On 3/4/19 7:33 PM, luigi scarso wrote:
> > [...]
> >  what does
> > $ luatex --credits
> > say ?
>
> $ luatex --credits
> This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev)
> [...]
> Development id: 7075
>

ok , older.
The next one should  be  luatex 1.10 ,  but I dont know exactly when.


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 7:27 PM Pablo Rodriguez  wrote:

> On 3/4/19 7:12 PM, luigi scarso wrote:
> > [...]
> > Sorry for the impatience (the feature is essential for me): when
> could
> > be the new version expected a beta or stable version of the ConTeXt
> > Suite?
> >
> > r7090 | luigi.sca...@gmail.com <mailto:luigi.sca...@gmail.com> |
> > 2019-02-28 23:52:43 +0100 (Thu, 28 Feb 2019) | 1 line
> >
> > fixed a bug in SHS512 -- trunk
> >
> > Could be that it's  already in beta --- can you check  ?
>
> I have just checked and it isn’t there.
>

 what does
$ luatex --credits
say ?
-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 6:48 PM Pablo Rodriguez  wrote:

> On 3/4/19 4:34 PM, luigi scarso wrote:
> > On Thu, Feb 28, 2019 at 10:37 PM Hans Hagen wrote:
> >
> > On 2/28/2019 6:46 PM, Pablo Rodriguez wrote:
> > > Dear list,
> >
> > > Could anyone tell me what I am missing here?
> > it's bug in the engine ... as a workaround you can uncomment th etop
> > lines in util-sha and fall back on pure lua
> >
> > it should be fixed  now.
>
> Many thanks for the fix, Luigi.
>
> Sorry for the impatience (the feature is essential for me): when could
> be the new version expected a beta or stable version of the ConTeXt Suite?
>
> Many thanks for your help,
>
>


r7090 | luigi.sca...@gmail.com | 2019-02-28 23:52:43 +0100 (Thu, 28 Feb
2019) | 1 line

fixed a bug in SHS512 -- trunk

Could be that it's  already in beta --- can you check  ?


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Thu, Feb 28, 2019 at 10:37 PM Hans Hagen  wrote:

> On 2/28/2019 6:46 PM, Pablo Rodriguez wrote:
> > Dear list,
>
> > Could anyone tell me what I am missing here?
> it's bug in the engine ... as a workaround you can uncomment th etop
> lines in util-sha and fall back on pure lua
>
>
it should be fixed  now.


-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:01 PM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

> On Fri, 1 Mar 2019 at 08:50, luigi scarso wrote:
>
> > ( forget the time, it's a zero-optimized binary (fast to compile))
>
> It takes even longer for me with the binary from the distribution.
>

I know, but  we use the minimals  as checkpoint;
on that platform 47.547 seconds for standard luatex means that something is
(profoundly) wrong.



-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 8:16 AM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

> On Fri, 1 Mar 2019 at 07:39, Mojca Miklavec wrote:
> > On Fri, 1 Mar 2019 at 00:14, Henri Menke wrote:
> > >
> > > Dear list,
> > >
> > > I just installed TeX Live 2019 pretest and running context --make
> fails with
> > ,
> > The latest ConTeXt has just been included yesterday and should be
> > available since today (some time after the usual nightly update cca. 5
> > hours ago + delays to finish the build and sync the mirrors).
> >
> > So please retry.
>
> Here's my attempt of compiling
> doc/context/sources/general/manuals/luatex/luatex.tex
>
> fonts   > defining > font with asked name 'dejavusansmono' is
> not found using lookup 'name'
> fonts   > defining > unknown font 'dejavusansmono', loading aborted
> fonts   > defining > unable to define 'dejavusansmono' as
> 'dejavu-10pt-tt-tf-0--0'
> ! error:  (linebreak): invalid list tail, probably missing
> gluemtx-context | fatal error: return code: 1
>
>



> The first hint is that we should probably include more font
> dependencies in ConTeXt scheme. I can take care of that if you have
> further suggestions (other than dejavu).
>
>
just to be sure in my minimal with latest zip
$> context luatex
 mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.1 with functionality level
7088, banner: this is luatex, version 1.10.0 (tex live 2019)
mkiv lua stats  > control sequences: 53180 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 441 MB
(ctx: 437 MB), hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 21.608 seconds, 294 processed pages, 294 shipped
pages, 13.606 pages/second
system  | total runtime: 47.547 seconds

( forget the time, it's a zero-optimized binary (fast to compile))

In general: at every new release I have complains about "how deadly slow is
texlive  installation".
On the other side , some  could wonder why *DejaVu* are not installed by
default regardless of  engine/scheme.


-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:17 AM Henri Menke  wrote:

> Hm, it looks like the macro code hasn't been updated from 2018 yet, because
> after fixing isfile it crashes when trying to load the old pdfe library.
>
>
seems so.
I have just tested luatex 1.10 against the latest zip and it's all ok.

-- 
luigi
___
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] A strange request...

2019-02-20 Thread luigi scarso
On Wed, Feb 20, 2019 at 5:23 PM Willi Egger  wrote:

> Hi all,
>
> I am siting with a project of making a “dwarsligger”, you know these
> books, printed on bible-thin-printing paper, which are about  12 x 8 cm.
> One opens them while holding them ‘landscape’ with the spine on the top…
>
> Now there is of course a little struggle with the page numbering. The
> reading page consists out of the even page together with the following
> uneven page. It is easy to print on the uneven page a page number, however
> this will result in uneven page numbers only throughout the book.
>
> My question is, whether there is an algorithm to print page numbers as
> follows:
>
>
> 1  2  3  4  5  6  7  8  9 (this is the ordinary numbering)
> 1 2 3 4 5 (this is the requested numbering)
>
> Does someone have an idea how to solve this?
>
> Any hints are most appreciated!
>
> Pickup n>=0, and find q and  r such
n = 2q + r,r = 0 or r=1

It's not clear if you have 6 what you want to print (3 or 4 ?)
but playing with that formula can help you .
In many times, it's better to start from zero, so it could be that you
have to translate your input sequence by adding -1
and the output sequence by adding +1 .



>
-- 
luigi
___
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] Macro in a macro with optional argument

2019-02-12 Thread luigi scarso
On Tue, Feb 12, 2019 at 8:27 AM Pierre-Francois Bonnefoi <
bonnefoi...@gmail.com> wrote:

> Hello,
>
> I try to define automatically some macros to include cliparts in my TikZ
> drawings and I've defined the following macro :
>
> \def\clipart#1#2{%
> \expandafter\def\csname tk#1\endcsname{\dosingleempty\expandafter\csname
> dotk#1\endcsname}%
> \expandafter\def\csname
> dotk#1\endcsname[##1]{\iffirstargument\image{cisco/#1}{##1}\else\image{cisco/#1}{#2}\fi}
> }
>
> \clipart{pc}{.8} % defines the macro \tkpc to include the picture
> "cisco/pc"
>
> The issue arises when I use the newly defined \tkpc : the argument is not
> optional and I have to put \kpc[.5] for example.
> To add insult to injury, the value passed in argument is ignored also :
> \iffirtargument return always false...
>
> Do you have any idea ?
>
> Best regards,
> Pierre-François.
>

could be that  \dosingleempty sees \expandafter ?
try
\expandafter\def\csname tk#1\endcsname{\dosingleempty{\expandafter\csname
dotk#1\endcsname}}%

-- 
luigi
___
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] Luatex 1.09.2 announcement

2019-01-30 Thread luigi scarso
==
LuaTeX 1.09.2 2019-01-19
==

This is a transitional release to LuaTeX 1.10 for TeX Live 2019




The LuaTeX team
___
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 logo proposal

2019-01-30 Thread luigi scarso
On Wed, Jan 30, 2019 at 10:15 AM Floris van Manen  wrote:

> If TeX and Context are about typesetting beautiful readable typography,
> the logos as presented do not reflect that thought per se.
> At first glance is is a pile of incoherent letters and colours.
> e.g. difficult to read and memorise.
>


perhaps a gradient on background can suggest the right orientation of
reading.

-- 
luigi
___
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] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 10:47 AM Henri Menke  wrote:

> On 1/21/19 10:40 PM, luigi scarso wrote:
> > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke 
> wrote:
> >
> >> Dear list,
> >>
> >> When I process the short MetaFun example
> >>
> >> beginfig(1)
> >> draw textext("MetaFun") ;
> >> endfig;
> >> end
> >>
> >> with plain MetaFun, i.e.
> >>
> >> mpost '' test.mp
> >>
> >>
> >  what does
> > $> mpost -mem=metafun '\relax; tracingall; input test.mp;'
> > say ?
>
> Log is attached.
>

hm.

# cat test.mp
hobbiestextext := true;
beginfig(1)
draw textext("MetaFun") ;
endfig;
end

# mpost -interaction=batchmode -mem=metafun '\relax;   input test.mp;'

# gs test.1

You should see the text at the bottom left.  It seems that there is a
string _s_  not initialized.

-- 
luigi
___
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] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke  wrote:

> Dear list,
>
> When I process the short MetaFun example
>
> beginfig(1)
> draw textext("MetaFun") ;
> endfig;
> end
>
> with plain MetaFun, i.e.
>
> mpost '' test.mp
>
>
 what does
$> mpost -mem=metafun '\relax; tracingall; input test.mp;'
say ?

-- 
luigi
___
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] LuaTeX manual is broken

2019-01-18 Thread luigi scarso
On Fri, Jan 18, 2019 at 9:33 AM Henri Menke  wrote:

> Dear devs,
>
> The LuaTeX manual hosted at
> http://www.pragma-ade.nl/general/manuals/luatex.pdf is broken.  All the
> pages are offset in all the viewers I tested.  I tried:
>
> - Evince 3.28.4 (uses cairo 1.15.10)
> - PDF.js 2.0.943
> - Foxit 2.4.4.0911
> - muPDF 1.12.0
>

confirmed.

-- 
luigi
___
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] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 12:11 PM Henning Hraban Ramm  wrote:

>
>  a Lua pairs table, the order can be arbitrary.
>

sure ,  the *default*  __pairs gives pseudo-arbitrary order, but you can
always use metatable:
--
-- test.lua
--
local _c,_t=0,{}
local t = {}
setmetatable(t, {
   __newindex = function(tbl, k, v)
  _c=_c+1
  _t[_c]=k
  rawset(tbl, k, v)
   end,

  __pairs = function(tbl)
  local i = 1
  return function(tbl,k)
k = _t[i]
i=i+1
return k,tbl[k]
  end, tbl,nil
end,
})


t['a']= 'aaa'
t['3a']= '3aa'
t['b']= 'baa'
t['2b']= '2ba'
t['c']= 'caa'
t['2c']= '2ca'
t['d']= 'daa'
t['2d']= '2da'
t['e']= 'eaa'
t['2e']= '2ea'


for k,v in pairs(t) do print(k,v) end



$ mtxrun --script test.lua
a aaa
3a 3aa
b baa
2b 2ba
c caa
2c 2ca
d daa
2d 2da
e eaa
2e 2ea

--
luigi
___
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] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 10:27 AM Schmitz Thomas A. <
thomas.schm...@uni-bonn.de> wrote:

>
>
> > On 10. Jan 2019, at 01:08, Hans Hagen  wrote:
> >
> > it all depends on use ... if you can be more specific ...
>
> Hans, Luigi,
>
> thanks for your hints on list sorting - they are appreciated, but I’ve
> been there many many times: it’s impossible to be more specific because
> numbering can be unexpectedly weird. Combinations of Greek and Roman
> letters, sometimes (for historic reasons) even lines that are out of
> numeric sequence. I’ve tried to catch these exceptions in sort functions,
> only to have to add even more ifs and buts when I was processing the next
> author. And I’m pretty sure that the solution is not in sorting a table
> index: the correct sequence is already in the source, it just has to be
> preserved. What I do now, in a nutshell: I have tables such as
>
> sections = { “1”, “2”, “2a” }
>
> words = { [“1”] = { “a”, “b” },
>   [“2a”] = { “c”, “d” } }
>
> so I can iterate through ipairs(sections) in sequence and pick up the word
> lists for each section. In the greater scheme of things, as Hraban pointed
> out: if there were an “ordered table” structure in Lua, this is precisely
> what it would do behind the scenes; it would just make it easier for the
> user.
>

the point is that I believe that is also doable in lua...
maybe could be helpful to have a significative example in python, ton see
if we can mimic it in lua  ?

-- 
luigi
___
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] final thoughts on experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 8:57 PM Thomas A. Schmitz 
wrote:

>
> One final thought: one limitation that I still find cumbersome to work
> around is the fact that associative arrays ("pairs" in Lua speak) do not
> have an order. When I analyze my texts, I want book numbers, chapters,
> paragraphs preserved in the order in which they are read (entered into
> the table). In many cases, it is not possible (or extremely awkward) to
> sort these numbers, since chapters may be numbered something like 2, 2a,
> 3, 3α, 3β etc. python has the OrderedDict() in its collections module.
> In Lua, the best I could find was entering the chapter numbers into an
> array (ipair) and then retrieve it from there. Maybe there is a better way?
>
>
table.sort (list [, comp])
Sorts list elements in a given order, in-place, from list[1] to
list[#list]. If comp is given, then it must be a function that receives two
list elements and returns true when the first element must come before the
second in the final order (so that, after the sort, i < j implies not
comp(list[j],list[i])). If comp is not given, then the standard Lua
operator < is used instead

-- 
luigi
___
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] further experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 9:47 AM Hans Hagen  wrote:

>
> so you need:
>
> require "char-ini"
>
> local s = "Ä"
>
>
also

if not characters then
require("char-ini")
end
local s = "Ä"
print(characters.uccode(s))

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

2019-01-07 Thread luigi scarso
On Mon, Jan 7, 2019 at 6:47 PM Weber, Matthias  wrote:

>
> I still don’t know what’s going on with PDF inclusion. The ones that cause
> trouble are kind of old (from 2005), and I could “upgrade”
>
>  fixing it now
-- 
luigi
___
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] graphics

2018-12-13 Thread luigi scarso
On Thu, Dec 13, 2018 at 4:45 PM Alan Braslau 
wrote:

> Of course, it is:
>
> double jn(int n,double x);
>
> and
>
> vardef jn(expr n, x) = scantokens(lua("mp.quoted( ffi.C.jn(" & decimal n &
> "," & decimal x & "))")) enddef ;
>
> Alan
>
> (shows that I have yet to use jn ;-)
>

I often use this as reference
source/texk/web2c/luatexdir/luaffi/test.lua

-- 
luigi
___
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] graphics

2018-12-07 Thread luigi scarso
On Fri, Dec 7, 2018 at 9:06 AM Mikael P. Sundqvist  wrote:

> On Tue, Dec 4, 2018 at 6:03 PM Hans Hagen  wrote:
> >
> > Hi,
> >
> > As most mechanism are reasonable okay now we can look into what future
> > versions of ConteXt should provide in terms of functionality. The
> > (luatex) engine is also more of less finished or at least stable in
> > terms of functionality.
> >
> > One possible area of further development is graphics so I'd like to know
> > if there are (reasonable) demands for more graphics support using
> > metapost. Alan and I are on-and-off working on some extensions and one
> > of the things we discuss is visualization of data. The question is of
> > course what should be done in the lua/mp/tex combination and what
> > externally but the combination has some advantages. There has been
> > presentations and discussions at the last meeting and graphics is always
> > a nice topic, and also kind of rewarding in terms of development.
> >
> > Of course other demands can be formulated too, but these then need to
> > come with well defined descriptions (or mockup examples).
> >
> > 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
> >
> ___
>
> Hi,
>
> I don't know if what I describe below is along the lines you ask for,
> but here comes two wishes:
>
> 1) Full support for drawing implicit curve plots. For some curves,
> like a lemniscate
> (https://en.wikipedia.org/wiki/Lemniscate_of_Bernoulli) one can easily
> succeed by using a parametrisation, but sometimes one end up with
> equations and to find a parametrisation might be difficult (not to say
> impossible).

sure, see  eg
https://math.stackexchange.com/questions/904782/is-there-a-general-way-to-parameterize-all-implicit-functions


-- 
luigi
___
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] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:54 AM Procházka Lukáš Ing.  wrote:

> Hello Luigi,
>
> BTW:  Ctx tells me "attempt to call a nil value (global 'report')" on
> "report("unknown file %a",fileone)" - do I have to enable/load something?
>
> should be something like
 local report = logs.reporter("my application")

-- 
luigi
___
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] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing.  wrote:

> Hello,
>
> I'm using the following code, mentioned here some time ago, to get some
> info about PDF:
>
> 
> \startluacode
> figures.getinfo = function(name, page)
>  if type(name) == "string" then
>  name = { name = name, page = page }
>  end
>  if name.name then
>  local data = figures.push(name)
>
>  --figures.identify()
> local ok, res = pcall(figures.identify)
> print(">>1", ok, res)
>
>  --figures.check()
> local ok, res = pcall(figures.check)
> print(">>2", ok, res)
>
>  figures.pop()
>  return data
>  end
> end
>
> local data = figures.getinfo("NonExisting.pdf")
>
> \stopluacode
> 
>
> The problem is that once the PDF file doesn't exist, the function causes
> ConTeXt to exit, even when I enclose 'figure.check()' into the 'pcall' (to
> be handled like try/catch mechanism).
>
> Is there a way so that the function 'figures.getinfo()' does't exit
> ConTeXt, it just returns 'nil', or even gives info which directories (or
> even which file types) were searched?
>
> TIA.
>
> something like that (untested), eventaully to be wrapped  in a your
function
local fileone = "NonExisting.pdf"
local data
if not lfs.isfile(fileone) then
report("unknown file %a",fileone)
else
 data = figures.getinfo("NonExisting.pdf")
end

-- 
luigi
___
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] color check

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen  wrote:

> while experimenting with the sample transparency color code
>
>
> \definecolor [transparentred]  [r=1,t=.5,a=1]
> \definecolor [transparentblue] [b=1,t=.5,a=1]
> \definecolor [solidyellow]  [y=1,t=1,a=1]
>
> \starttext
>
> \startTEXpage
> ~This is some sample text that goes behind the rectangles\hskip-80mm
> \blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
> \blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
>
> \blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
> \blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
> \stopTEXpage
>
> \stoptext
>
>
>
> i get the intended result.
>
>
> if i change the yellow t value to .99
> \definecolor [solidyellow]  [y=1,t=0.99,a=1]
> some green layer pops up.
>
>
> as this is all about software, there is a reason to this.
> it cold be the OSX preview program too, of course.
> can someone explain to me ?
> :-)
>
> here is ok under ubuntu
Can you convert pdf to png ? This should show almost the same png.

You can also prepend
\nopdfcompression
and post the pdf.

\nopdfcompression
\definecolor [transparentred]  [r=1,t=.5,a=1]
\definecolor [transparentblue] [b=1,t=.5,a=1]
\definecolor [solidyellow]  [y=1,t=1,a=1]

\starttext

\startTEXpage
\definecolor [solidyellow]  [y=1,t=1,a=1]
~This is some sample text that goes behind the rectangles\hskip-80mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
\stopTEXpage


\startTEXpage
\definecolor [solidyellow]  [y=1,t=0.99,a=1]
~This is some sample text that goes behind the rectangles\hskip-80mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
\stopTEXpage


\stoptext

-- 
luigi
___
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] graphics

2018-12-05 Thread luigi scarso
On Wed, Dec 5, 2018 at 1:37 PM Hans Hagen  wrote:

> On 12/5/2018 10:14 AM, Henri Menke wrote:
> > ConTeXt already comes with a full XML parser. SVG is XML. It would be
> > nice if it was possible to render some subset of SVG.
> So what subset? ... Doing some shapes etc is doable but doing all is
> over the top
>
and of course some  will never be enough... never ending story.
The sad story with svg is that is an all-or-nothing thing  .

-- 
luigi
___
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] graphics

2018-12-05 Thread luigi scarso
On Wed, Dec 5, 2018 at 10:15 AM Henri Menke  wrote:

> ConTeXt already comes with a full XML parser. SVG is XML. It would be
> nice if it was possible to render some subset of SVG.
>
In the mean time, I think we should also consider
 Headless Chromium for SVG -> PDF (with --print-to-pdf )
(together with inkscape)
-- 
luigi
___
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] PDF/A no longer compliant?

2018-11-30 Thread luigi scarso
On Fri, Nov 30, 2018 at 7:17 AM luigi scarso  wrote:

>
>
> On Fri, Nov 30, 2018 at 2:28 AM Rik Kabel 
> wrote:
>
>> On 11/4/2018 07:27, luigi scarso wrote:
>>
>>
>>
>> On Fri, Nov 2, 2018 at 7:06 PM Rik Kabel 
>> wrote:
>>
>>>
>>>
>> it should be fixed in the next beta.
>>
>>
>> I am afraid it is not fixed. The compilation of the wiki example now
>> fails with:
>>
>> lua error   > lua error on line 12 in file
>> c://Users/micro/Projects/TeX/ConTeXt/pdfa.tex:
>> ...ce0dde776fb1556f32e\formats\luajittex/lpdf-ini-macro.lua:236: attempt
>> to call global 'pdfsetomitcidset' (a nil value)
>>
>>
>> typo
>
> $ diff -u lpdf-ini.lua.orig lpdf-ini.lua
> --- lpdf-ini.lua.orig 2018-11-30 07:13:21.120218873 +0100
> +++ lpdf-ini.lua 2018-11-30 07:13:37.459920498 +0100
> @@ -233,7 +233,7 @@
>  end
>
>  function lpdf.setomitcidset(v)
> -return pdfsetomitcidset(v)
> +return pdf.setomitcidset(v)
>  end
>
>  do
>
> --
> luigi
>

better
$ diff -u lpdf-ini.lua.orig lpdf-ini.lua
--- lpdf-ini.lua.orig 2018-11-30 07:13:21.120218873 +0100
+++ lpdf-ini.lua 2018-11-30 10:02:57.250980666 +0100
@@ -233,7 +233,7 @@
 end

 function lpdf.setomitcidset(v)
-return pdfsetomitcidset(v)
+return setomitcidset(v)
 end

 do

-- 
luigi
___
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] PDF/A no longer compliant?

2018-11-29 Thread luigi scarso
On Fri, Nov 30, 2018 at 2:28 AM Rik Kabel 
wrote:

> On 11/4/2018 07:27, luigi scarso wrote:
>
>
>
> On Fri, Nov 2, 2018 at 7:06 PM Rik Kabel 
> wrote:
>
>>
>>
> it should be fixed in the next beta.
>
>
> I am afraid it is not fixed. The compilation of the wiki example now fails
> with:
>
> lua error   > lua error on line 12 in file
> c://Users/micro/Projects/TeX/ConTeXt/pdfa.tex:
> ...ce0dde776fb1556f32e\formats\luajittex/lpdf-ini-macro.lua:236: attempt
> to call global 'pdfsetomitcidset' (a nil value)
>
>
> typo

$ diff -u lpdf-ini.lua.orig lpdf-ini.lua
--- lpdf-ini.lua.orig 2018-11-30 07:13:21.120218873 +0100
+++ lpdf-ini.lua 2018-11-30 07:13:37.459920498 +0100
@@ -233,7 +233,7 @@
 end

 function lpdf.setomitcidset(v)
-return pdfsetomitcidset(v)
+return pdf.setomitcidset(v)
 end

 do

-- 
luigi
___
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] Sources of Tutorial.text.pdf

2018-11-28 Thread luigi scarso
On Thu, Nov 29, 2018 at 8:10 AM Tommaso Gordini 
wrote:

> Thank you, Willi!
>
> I hope my ConTeXt guide will be a great work.
>
> "L'arte di scrivere in ConTeXt " -- where *you* are the author
(make a nice pair with
https://www.amazon.it/Larte-scrivere-LaTeX-Unintroduzione-LaTeX/dp/8854818097
)

here in Padua Luigi Scarso also lives, with whom I have known for years.
>
>
it's also the hometown of Enrico Gregorio
https://www.latex-project.org/news/2018/10/16/new-kids/

-- 
luigi
___
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] Subformula numbering

2018-11-26 Thread luigi scarso
On Mon, Nov 26, 2018 at 8:40 AM adrien Licari 
wrote:

> Hi everyone,
>
> I can't get cases subformula to work properly. My MWE, inspired from the
> wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is :
>
> \starttext\placeformula\startformula
> \startcases
>   \NC x = a \NR[+]
>   \NC y = b \NR[+]
> \stopcases\stopformula\stoptext
>
> This only prints (2) on the right of the whole cases system. If I use
> \placesubformula, the behavior remains exactly the same. It also yields
> the same output with live ConTeXt. The ConTeXt version I am using is
> 2018.01.19 13:42
>
> Has there been a change in the behavior since the documents were written ?
> I asked on stackexchange, and since the document is 12 years old and the
> wiki consistent with it, they suggested me to ask the mailing list.
> Thanks in advance,
>
>
\starttext
\startbuffer
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR[+]
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR[+]
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

%% your example
\placeformula
\startformula
\startcases
  \NC x = a \NR[+]
  \NC y = b \NR[+]
\stopcases
\stopformula
\stoptext

What I see is (more or less)


   1



\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR[+]
\NC 4 \NC otherwise \NR
\stopcases \stopformula

 {2 푦 > 0
 ⎧
 ⎨ 7 푥=7(1)
 {
 ⎩ 4 otherwise
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR[+]
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

 {2 푦 > 0
 ⎧
푥⎨7 푥 = 7   (2)
 {
 ⎩ 4 otherwise
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

 {2 푦 > 0
 ⎧
 ⎨ 7 푥=7(3)
 {
 ⎩ 4 otherwise
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

 {2 푦 > 0
 ⎧
푥⎨7 푥 = 7   (4)
 {
 ⎩ 4 otherwise
  푥=푎
  { (6)
  푦=푏




-- 
luigi
___
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] optical bounds with hanging diacritics

2018-11-25 Thread luigi scarso
On Sun, Nov 25, 2018 at 7:24 PM Pablo Rodriguez  wrote:

> Hans,
>
> I added lfbd values for GFS Didot (attached) to get hanging diacritics
> in Greek.
>
> The attached PDF document is the optput from the following code:
>

the pdf is too big .. I have unlocked it for this time...

-- 
luigi
___
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] PDF/A output fails validation

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 8:23 PM Rik Kabel 
wrote:

> Still fails here, using the code you posted, with:
>
>
> yes, the beta is not yet landed in the garden , still some issues with
colored fonts

-- 
luigi
___
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] PDF/A output fails validation

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 12:45 AM luigi scarso 
wrote:

>
>
> On Thu, Nov 22, 2018 at 12:38 AM Rik Kabel 
> wrote:
>
>> With the latest beta, PDF/A fails validation in a new way.
>>
>> Using the example document in the wiki
>> <https://wiki.contextgarden.net/PDF/A>, PDF/A-1a validation fails the
>> online validator <https://www.pdf-online.com/osa/validate.aspx> [2] with:
>>
>> The key MarkInfo is required but missing.
>> The key StructTreeRoot is required but missing.
>> The key CIDSet is required but missing.
>> The document does not conform to the requested standard.
>> The document contains fonts without embedded font programs or encoding
>> information (CMAPs).
>> The document doesn't provide appropriate logical structure information.
>> The document does not conform to the PDF/A-1a standard.
>>
>> while with PDF/A-1b requested, the MarkInfo and StructTreeRoot issues are
>> not reported. (A-2a and A-3a fail in the same was as A-1a.)
>>
>> [1] https://wiki.contextgarden.net/PDF/A
>>
>> [2] https://www.pdf-online.com/osa/validate.aspx
>>
>>
>>
> Thank you for the report, I will check asap.
>
>
these look ok now

\nopdfcompression
\setupinteraction
  [title=TITLE,
   subtitle=SUBTITLE,
   author=AUTHOR,
   keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]

%% For PDF/A
\setupbackend[
%format={pdf/a-1b:2005}, % OK
%format={pdf/a-1a:2005}, % OK
%format={pdf/a-2a},  % OK
format={pdf/a-3a},   % OK
profile={srgb.icc,default_gray.icc},
intent=ISO coated v2 300\letterpercent\space (ECI)]

%% Tagged PDF
%% method=auto ==> default tags by Adobe
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]

\starttext

\chapter[chap:testing]{Testing}

\input knuth

\input tufte

\input knuth

\placefigure[middle][fig:foo]
  {This is an image}
  {\externalfigure[cow.jpg]}

\input tufte

\input knuth

\input tufte

\stoptext

-- 
luigi
___
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] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 4:15 PM Ulrike Fischer  wrote:

> Am Thu, 22 Nov 2018 14:46:57 +0100 schrieb luigi scarso:
>
> >> 
> >> A palette entry index value of 0x is a special case indicating
> >> that the text foreground color (defined by a higher-level client)
> >> should be used and shall not be treated as actual index into CPAL
> >> ColorRecord array.
> >> 
> >>
>
>
> > " the text foreground color (defined by a higher-level client)
> > should be used" doesn't mean   "you  MUST take the current color
> > text" or even "you MUST use black" In fact "defined by a
> > higher-level client" means that  I could define  a palette  such
> > that each glyph marked with 0x has its own color based on my
> > palette ---  not necessarily the *same* color.
>
> Sounds as if there is some room for interpretation ;-). But assume
> that I want in my example the 0x to be interpretated as "the
> current text color", so the currently blue glyphs should be black,
> and if I add \color[red] before the text they should be red. Can and
> if yes how this be setup? (Both in context and in generic)
>

no, at this moment is fixed,  but we are discussing just now how to
implement this.


-- 
luigi
___
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] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 2:13 PM Ulrike Fischer  wrote:

> Am Thu, 22 Nov 2018 13:50:08 +0100 schrieb Hans Hagen:
>
> >> When I use this definitions I still get partly blue glyphs with this
> >> preamble. Don't you get them?
>
> > well, i don't know what to expect
>
> Khaled mentioned this link which shows how (harfbuzz-based) browsers
> like firefox interpret the font
> https://www.amirifont.org/fatiha-colored.html
>
> Also the spec
> https://docs.microsoft.com/en-us/typography/opentype/spec/colr#layer-record
> says
>
> 
> A palette entry index value of 0x is a special case indicating
> that the text foreground color (defined by a higher-level client)
> should be used and shall not be treated as actual index into CPAL
> ColorRecord array.
> 
>
>
sure, in font-dsp.lua
 2953 -- The special value 0x is foreground (but we index from
1). It
   2954 -- more looks like indices into a palette so 'class' is a
better name
   2955 -- than 'palette'.

" the text foreground color (defined by a higher-level client) should be
used"
doesn't mean   "you  MUST take the current color text" or even "you MUST
use black"
In fact "defined by a higher-level client" means
that  I could define  a palette  such  that each glyph marked with 0x
has its own color based on my palette ---  not necessarily the *same* color.
(this is the meaning  in font-ocl.lua of
 247 local default   = colorvalues[#colorvalues] -- or 1 or
... maybe make it an option
)
So..in this situation  black makes sense as blue -- I guess that 0x  is
mapped as "cuirrent text color" in harfbuzz-browsers,
so, sure,  it has a bit  more functionality.


-- 
luigi
___
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] debug.getinfo

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 2:02 PM Procházka Lukáš Ing.  wrote:

> Hello,
>
> the function 'debug.getinfo' was removed?
>
> The following code:
>
> 
> \startluacode
>print(debug.getinfo)
> \stopluacode
>
> \starttext
>A \cldcontext{tostring(debug.getinfo)}
> \stoptext
> 
>
> gives/prints 'nil'.
>
> IIRC, the function was non-nil some weeks ago...
>
> Best regards,
>
> Lukas
>
> are you running in "security mode" ?
In this case, yes, it should be nil.
-- 
luigi
___
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] PDF/A output fails validation

2018-11-21 Thread luigi scarso
On Thu, Nov 22, 2018 at 12:38 AM Rik Kabel 
wrote:

> With the latest beta, PDF/A fails validation in a new way.
>
> Using the example document in the wiki
> , PDF/A-1a validation fails the
> online validator  [2] with:
>
> The key MarkInfo is required but missing.
> The key StructTreeRoot is required but missing.
> The key CIDSet is required but missing.
> The document does not conform to the requested standard.
> The document contains fonts without embedded font programs or encoding
> information (CMAPs).
> The document doesn't provide appropriate logical structure information.
> The document does not conform to the PDF/A-1a standard.
>
> while with PDF/A-1b requested, the MarkInfo and StructTreeRoot issues are
> not reported. (A-2a and A-3a fail in the same was as A-1a.)
>
> [1] https://wiki.contextgarden.net/PDF/A
>
> [2] https://www.pdf-online.com/osa/validate.aspx
>
>
>
Thank you for the report, I will check asap.

-- 
luigi
___
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] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread luigi scarso
On Wed, Nov 21, 2018 at 7:04 PM Ulrike Fischer  wrote:

> Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen:
>
> > I'm not sure what yoy mwan with 0x as that's intercepted
>
> With this example (font from
> https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf)
>
> a part of the glyphs are in blue. Khaled claims that this is wrong,
> that the blue should be black, and the output look like this
> https://i.stack.imgur.com/gpoO7.jpg
>
> (sorry about the ^^, it is a translation from a plain example):
>
> \starttext
> \definefontfeature[quran][script=arab,colr=yes]
> \definefont[quran][AmiriQuranColored*quran @ 20pt]
>
>
> \catcode`\^=7
> \pardir TRT\textdir TRT
> \quran
> \baselineskip=2.6em
> \parindent=0pt
> \leftskip=0pt plus 1fil
> \rightskip=0pt plus -1fil
> \parfillskip=0pt plus 2fil
> \def\aya#1{{\textdir TLT 06dd#1}}
> fdfd~\aya{١}\par
> ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِینَ~\aya{٢} ٱلرَّحۡمَٰنِ
> ٱلرَّحِیمِ~\aya{٣} مَٰلِكِ یَوۡمِ ٱلدِّینِ~\aya{٤} إِیَّاكَ نَعۡبُدُ
> وَإِیَّاكَ نَسۡتَعِینُ~\aya{٥} ٱهۡدِنَا ٱلصِّرَٰطَ
> ٱلۡمُسۡتَقِیمَ~\aya{٦} صِرَٰطَ ٱلَّذِینَ أَنۡعَمۡتَ عَلَیۡهِمۡ
> غَیۡرِ ٱلۡمَغۡضُوبِ عَلَیۡهِمۡ وَلَا ٱلضَّاۤلِّینَ~\aya{٧}\par
> \stoptext
>


\definefontfeature[quran][mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
   ccmp=yes,locl=yes,calt=yes,
   liga=yes,clig=yes,dlig=yes,rlig=yes,
   mark=yes,mkmk=yes,kern=yes,curs=yes,
  colr=yes]
\definefont[quran][AmiriQuranColored*quran @ 18pt]

I have just copied-and- pasted an example around, but
at least the "black-and-white" typography match.


-- 
luigi
___
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] Issues with RGB to CMYK conversion with color profiles

2018-11-21 Thread luigi scarso
On Wed, Nov 21, 2018 at 3:02 PM Jan U. Hasecke 
wrote:

> Am 19.11.18 um 11:14 schrieb luigi scarso:
>
> > Perhaps this is still useful
> >  https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf
>
> Thanks a lot for the hint.
>
> I don't understand the equations but at least I found transicc to
> calculate color conversions.
>
> What precision is useful in the wild?
>
> I now use three digits after the decimal point, eg.:
>
> \definecolor [hs-logoblau] [c=0.976, m=0.665, y=0.028, k=0.116]
>
> It's safe to specify a color as 8bit per channel rgb, or in percent. i.e.
see for example
https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F
(more on  https://en.wikipedia.org/wiki/Lists_of_colors )

16bit per channel rgb are also possible, but old RIP can have problems
 (for example
https://www.pantone.com/color-finder/#/pick?pantoneBook=pantoneSolidCoatedV3M2
shows rgb 8bit per channel  and CMYK 0 to 100)

Btw: be careful of the  checker shadow illusion
 https://en.wikipedia.org/wiki/Optical_illusion
colors not always look as they are expressed  in numeric form.

-- 
luigi
___
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] Issues with RGB to CMYK conversion with color profiles

2018-11-19 Thread luigi scarso
On Mon, Nov 19, 2018 at 10:57 AM Henning Hraban Ramm  wrote:

>
>
It would make sense to outsource color calculations to a color management
> library like LittleCMS.
>
> yes.
Perhaps this is still useful
 https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf

-- 
luigi
___
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] Colormanagement

2018-11-09 Thread luigi scarso
On Fri, Nov 9, 2018 at 4:24 PM Jan U. Hasecke 
wrote:

> Hi all,
>
> I defined some colors with \definecolor like this:
>
> \definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98,  m=0.67,
> y=0.03, k=0.12]
>
> \startnotmode[print]
> \setupcolors[cmyk=no,rgb=yes]
> \stopnotmode
>
> \startmode[print]
> \setupcolors[cmyk=yes,rgb=no]
> \setupbackend[
> format=PDF/X-3:2003,
>intent={ISO Coated v2 300\letterpercent\space (ECI)},
>]
> \stopmode
>
> When I use "context" or "context --mode=print" everything works as
> expected.
>
> But! I have SVG icons I want to use in the document. They contain the
> above defined rgb colors.
>
> When I use --mode=print I get different colors for the SVG icons.
>
> So context converts the SVG files to PDFs but does not change the colors
> accordingly to CMYK.
>
> What are my options? Do I miss something?
>
> 1. Let the designer produce icons in pdf with the given cmyk colors.
>
> 2. Don't use cmyk colors at all.
>
> In fact on my home printer the printed rgb colors look brighter than the
> cmyk colors. This might change in the print shop when they print with
> the right color profile, but it makes me nervous.
>

I think you should use the best colorspace (rgb )
and let the print shop do its job -- of course this means that you have
signed  their sample (hard proof) of your project.


Hraban ?

-- 
luigi
___
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] PDF/A no longer compliant?

2018-11-04 Thread luigi scarso
On Fri, Nov 2, 2018 at 7:06 PM Rik Kabel 
wrote:

> The example file in the wiki  (at https://wiki.contextgarden.net/PDF/A)
> no longer verifies as compliant PDF/A. VeraPDF rejects it, and
> https://www.pdf-online.com/osa/validate.aspx complains:
>
> x107.pdf
> Compliance pdfa-1b
> Result Document does not conform to PDF/A.
> Details
>
> Validating file "x107.pdf" for conformance level pdfa-1b
>
> Invalid content of XMP packet header attribute 'begin': '??'.
>
> The property 'pdfx:ConTeXt.Support' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:TeX.Support' is not defined in schema 'PDF/X ID Schema'.
>
> The property 'pdfx:LuaTeX.Version' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:LuaTeX.Functionality' is not defined in schema 'PDF/X
> ID Schema'.
>
> The property 'pdfx:LuaTeX.LuaVersion' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:LuaTeX.Platform' is not defined in schema 'PDF/X ID
> Schema'.
>
> The document does not conform to the requested standard.
>
> The document's meta data is either missing or inconsistent or corrupt.
>
> The document does not conform to the PDF/A-1b standard.
>
> Done.
>
>
it should be fixed in the next beta.

--
luigi
___
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] improving kannada script

2018-11-03 Thread luigi scarso
On Wed, Oct 31, 2018 at 4:03 PM luigi scarso  wrote:

>
>
> On Wed, Oct 31, 2018 at 4:01 PM Hans Hagen  wrote:
>
>> On 10/31/2018 3:38 PM, luigi scarso wrote:
>>
>> > On Tue, Oct 30, 2018 at 11:22 AM luigi scarso > > <mailto:luigi.sca...@gmail.com>> wrote:
>> >
>> >
>> >
>> > On Tue, Oct 30, 2018 at 10:18 AM Ulrike Fischer > > <mailto:ne...@nililand.de>> wrote:
>> >
>> > According to the xelatex output in the following example both
>> > variants are not correct. What would be needed would be the
>> first
>> > two glyphs from variant 1 (knd2 script) and the third from
>> variant 2
>> > (knda script).
>> >
>> >
>> > dunno, but to start with at  least I visually see what's going on:
>> >
>> > \showotfcomposition{file:notosanskannada-regular.ttf*kannada-testA
>> > at 48pt}{-1}{ಕ್ರ}
>> >
>> >
>> > \showotfcomposition{file:notosanskannada-regular.ttf*kannada-testB
>> > at 48pt}{-1}{ಕ್ರ}
>> >
>> > support for knd2 is still in progress,
>> > and  in knda
>> > glyph ಕ (U+00C95) +  glyph ್ (U+00CCD) + glyph ರ (U+00CB0)
>> > also is not ok ( at least for what I understand until now).
>> > I see where it fails ( and where hb does it right), let's see if I am
>> > able to find a patch.
>>
>
Well..not so easy (at least for me , never seen devanagari before )

glyph ಕ (U+00C95) +  glyph ್ (U+00CCD) + glyph ರ (U+00CB0)
are
KA +  VIRAMA + RA
and it is quite complex case (well,  really it could be a moderately
complex case ...)
For Kannada script we  can start by considering
 http://brahmi.sourceforge.net/docs/KannadaComputing.html
it's an old doc but
1) it shows the rules for kannada
2) its says that
"""
2.5 Rendering Rules
(Based on Microsoft Uniscribe-OpenType implementation of the UNICODE
Rendering Rules)
"""
So Uniscribe is the reference for  the rendering rules of this doc, which
in turn is the base for unicode.

Today the reference  unicode is
http://www.unicode.org/versions/Unicode11.0.0/ch12.pdf
The rules are a bit different from
http://brahmi.sourceforge.net/docs/KannadaComputing.html
but  at page 500 we see
U+0C95 ಕ  ka + U+0CCD  ್  halant + U+0CB0 ರ ra →  ಕ್ರ kra
which is our case (unicode says that the preferred name for  VIRAMA is
halant, so halant is also frequently used )
What happens is explained at page 464 for devanagari:
we should consider KA +  VIRAMA + RA as
KAn +  VIRAMAn + RAi, so

R1
We have KAn + VIRAMAn , hence
KAn + VIRAMAn → KAd

R6:
We have KAd + RAi, hence
KAd + RAi → KAn + RAsub

and then
R13
KAn + RAsub → K.RAn
and indeed ಕ್ರ is K.RAn

All these rules are re-explained at
https://docs.microsoft.com/en-us/typography/script-development/kannada#introduction
and font-osd.lua  is based  exactly  on these rules.
It makes sense, given that, as seen,  these are the reference.
The functions  for knda are those ending  in *_one  and for what I have
seen
after that the base syllable is correctly isolated,  reorder_one doesn't
implement R6 and R13 .
I am quite sure that spending a bit more time I can isolate the point,
but, as Hans has said, there is the plan to review these scripts.

-- 
luigi

PS:
Take these notes  cum grano salis: devanagari is not exactly equal to
 kannada,
and the ms site uses its own terms, not always one finds a match with
unicode.
___
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] PDF/A no longer compliant?

2018-11-03 Thread luigi scarso
On Sat, Nov 3, 2018 at 1:58 PM Leo Nikkilä  wrote:

> I’m afraid I don’t remember exactly which validator that was. I tried a
> few such as veraPDF and Adobe Acrobat’s preflight verifier.
>
> I found one of the preflight output files from Acrobat (but not the input
> document unfortunately) and these were the errors when validated against
> PDF/A-3a:
>
> 1. Device process color used but no PDF/A OutputIntent (101 matches on 1
> page) - 1
> 2. Syntax problem: String object invalid (odd number of hexadecimal
> characters)
>
> I think the second error was due to the BOM.
>
ok, thank you very much.

-- 
luigi
___
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] PDF/A no longer compliant?

2018-11-03 Thread luigi scarso
On Fri, Nov 2, 2018 at 9:03 PM Leo Nikkilä  wrote:

> I tried PDF/A a while back and noticed the XMP header has an extra byte
> order mark which validators flagged as “??”.
>
> I’ve attached the patch I used to remove it, however I’m still on an old
> version of ConTeXt so this might not apply cleanly to yours.
>
> You might need to open the patch in a hex editor to see the difference in
> the two lines as most text editors will not show the BOM.
>
> --
> Leo
>
Thank you for the patch. Which validator are you referring to?



-- 
luigi
___
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] PDF/A no longer compliant?

2018-11-02 Thread luigi scarso
Il giorno ven 2 nov 2018, 19:06 Rik Kabel  ha
scritto:

> The example file in the wiki  (at https://wiki.contextgarden.net/PDF/A)
> no longer verifies as compliant PDF/A. VeraPDF rejects it, and
> https://www.pdf-online.com/osa/validate.aspx complains:
>
> x107.pdf
> Compliance pdfa-1b
> Result Document does not conform to PDF/A.
> Details
>
> Validating file "x107.pdf" for conformance level pdfa-1b
>
> Invalid content of XMP packet header attribute 'begin': '??'.
>
> The property 'pdfx:ConTeXt.Support' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:TeX.Support' is not defined in schema 'PDF/X ID Schema'.
>
> The property 'pdfx:LuaTeX.Version' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:LuaTeX.Functionality' is not defined in schema 'PDF/X
> ID Schema'.
>
> The property 'pdfx:LuaTeX.LuaVersion' is not defined in schema 'PDF/X ID
> Schema'.
>
> The property 'pdfx:LuaTeX.Platform' is not defined in schema 'PDF/X ID
> Schema'.
>
> The document does not conform to the requested standard.
>
> The document's meta data is either missing or inconsistent or corrupt.
>
> The document does not conform to the PDF/A-1b standard.
>
> Done.
>
> ___
> 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
>
> ___


I will check it asap
___
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
___

  1   2   3   4   5   6   7   8   9   10   >