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
___

[NTG-context] PDF/A output fails validation

2018-11-21 Thread Rik Kabel

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

--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Wolfgang Schuster


Tommaso Gordini schrieb am 21.11.18 um 22:30:

Hello everyone!
This is my first message here.

I'm trying to write a ConTeXt guide in Italian.

The LaTeX *tcolorbox* package defines an environment dedicated to 
LaTeX examples: above (or on the left) the source is written, and 
below (or on the right) the typeset result.


Is there something similar for ConTeXt? Does it make sense, in your 
opinion, to showing examples of source code with the related outputs 
in this way?


There is no environment which produces the same output as the mentioned 
package

you can use buffers for your examples in the document.


\starttext

\startbuffer
\startframedtext
\samplefile{klein}
\stopframedtext
\stopbuffer

\typebuffer[option=tex]

\getbuffer

\stoptext


You can use this to write your own environment for the examples (or use 
the userdata

environment when you’re lazy :)


\defineuserdata [example] [alternative=example]

\defineuserdataalternative [example] [renderingsetup=userdata:example]

\startsetups [userdata:example]
  \startembeddedxtable 
[width=\textwidth,strut=no,offset=1ex,framecolor=red]

    \startxrow [corner=03]
  \startxcell
    \typebuffer [userdata] [option=tex]
  \stopxcell
    \stopxrow
    \startxrow [corner=01]
  \startxcell
    \getuserdata
  \stopxcell
    \stopxrow
  \stopembeddedxtable
\stopsetups

\starttext

\startuserdata [example]
\startframedtext
\samplefile{klein}
\stopframedtext
\stopuserdata

\stoptext


Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Tommaso Gordini
Hello everyone!
This is my first message here.

I'm trying to write a ConTeXt guide in Italian.

The LaTeX *tcolorbox* package defines an environment dedicated to LaTeX
examples: above (or on the left) the source is written, and below (or on
the right) the typeset result.

Is there something similar for ConTeXt? Does it make sense, in your
opinion, to showing examples of source code with the related outputs in
this way?

Thanks in advance for any advice on this aspect of the guide and for any
suggestions.

Tommy
___
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 Ulrike Fischer
Am Wed, 21 Nov 2018 20:37:29 +0100 schrieb luigi scarso:


> \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.

When I use this definitions I still get partly blue glyphs with this
preamble. Don't you get them? 

-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

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

2018-11-21 Thread Ulrike Fischer
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


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

On 11/21/2018 1:37 PM, Ulrike Fischer wrote:

Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer:

  

Khaled wrote that "is that [the code] uses the last palette color


A bit too much deleted. It should say "it is a bug that ..."
in context use the context interface (which uses a different 
implementation of the function you call)


\starttext

\definefontfeature[seguiemj-cl][default][colr=yes,ccmp=yes,dist=yes]

\definefontsynonym[emoji][seguiemj*seguiemj-cl]

\definecolor[emoji-red] [r=.4]
\definecolor[emoji-gray][s=1,t=.5,a=1]

\definefontcolorpalette [emoji-r] [emoji-red,emoji-gray]

\definefontfeature[seguiemj-r][ccmp=yes,dist=yes,colr=emoji-r]

\definefont[MyEmojiR][seguiemj*seguiemj-r @ 100pt]

\startTEXpage[offset=10pt]
   \MyEmojiR\resolvedemoji{triangular ruler}
\stopTEXpage

\stoptext

I'm not sure what yoy mwan with 0x as that's intercepted .. the 
choice for the last color as default is just that, a choice, could be 
the first one or none (or configureable if needed)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] 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-21 Thread Jan U. Hasecke
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]

juh
___
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 Ulrike Fischer
Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer:

 
> Khaled wrote that "is that [the code] uses the last palette color

A bit too much deleted. It should say "it is a bug that ..." 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

2018-11-21 Thread Ulrike Fischer
I tried to register a demo colorpalette:

\starttext
\directlua{fonts.handlers.otf.registerpalette("demo", {
{ g=1 }, %accents
{ b=1 }, %06dd
{ r=0.5, g=0.5, b=0.5 }, %unused?
{ g = 0.5, b=0, r=1 },
}
)}

blub
\stoptext


and got the error 

font-ocl.lua:76: attempt to call a nil value (field 'register')


(I wanted to test the coloring of
https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf, 
Khaled wrote that "is that [the code] uses the last palette color
for layers using paletteIndex 0x (special value that means use
text color)." and that 

local default   = colorvalues[#colorvalues] 

font-ocl.lua is faulty)

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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