Re: [NTG-context] Color Profiles in lmtx

2020-02-13 Thread Peter Rolf
Am 12.02.2020 um 17:15 schrieb Jan U. Hasecke:
> Am 12.02.20 um 11:09 schrieb Peter Rolf:
>
>>> I get this in my logs
>>>
>>> backend > profiles > profile specification 'ISO Coated v2 300% 
>>> (ECI)' loaded from 
>>> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
>
> I just realized that the above output is the right output.
>
> Ok. But now I have another question
>
> I want to install a new profile I downloaded from eci.org
>
> I extended colorprofiles.xml putting it in
> texmf-local/colors/icc/context/ with this additional xml:
>
> 
> PSO_Uncoated_ISO12647_eci.icc
> CMYK
> prtr
> Custom
> PSO Uncoated ISO12647 ECI
> ae81087e1c54c6fdda2f93bd2d47cfaf
> 200
> http://www.eci.org
> Commercial and specialty offset, paper type 4,
> uncoated white paper, positive plates, tone value increase curves C
> (CMY) and D (K), white backing.
> 
> 
>
> I generated the md5 checksum from the file PSO_Uncoated_ISO12647_eci.icc.
>
> But the file in texmf-local is not found
>
> backend > profiles > profile specification 'PSO Uncoated
> ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'
>
> How can I make context aware of the files?
>

Just tried to do the same and after some fiddling it worked.
I used this settings for the profile (slightly modified)


PSO_Uncoated_ISO12647_eci.icc
CMYK
prtr
Fogra47L
PSO Uncoated ISO12647 (ECI)
ae81087e1c54c6fdda2f93bd2d47cfaf
200
http://www.eci.org
Commercial and specialty offset, paper type 4,
uncoated white paper, positive plates, tone value increase curves C
(CMY) and D (K), white backing.




Copy the icc-profile into the same folder as the shipped profiles. Call
"context --make" to make a new format, update the file database.


%--
\enabletrackers[backend.pdfx]

\setupbackend[
   format=PDF/X-3:2003,
   intent={PSO Uncoated ISO12647 (ECI)},
   ]

\setupcolors[cmyk=yes,rgb=no]

\nopdfcompression
\starttext
foo
\stoptext
%---

The produced PDF has a size of 1.7MB. Tested with

context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file:
r:/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.01.26 18:34
mtx-context | main context file:
r:/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.01.26 18:34


___
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 Profiles in lmtx

2020-02-13 Thread Jan U. Hasecke
Am 12.02.20 um 19:48 schrieb Pablo Rodriguez:
> On 2/12/20 5:15 PM, Jan U. Hasecke wrote:
>> [...]
>> I just realized that the above output is the right output.
> 
> Hi Jan Ulrich,
> 
> you might check profiles that with VeraPDF (or simply \nopdfcompression
> as first command in the source and search for the profile ),
> 
>> Ok. But now I have another question
>>
>> I want to install a new profile I downloaded from eci.org
>> [...]
>> But the file in texmf-local is not found
>>
>> backend > profiles > profile specification 'PSO Uncoated
>> ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'
>>
>> How can I make context aware of the files?
> 
> How about deleting the cache (simply remove
> tex/context-cache/luatex-cache) and generate it again (by running
> "mtxrun --generate", before compiling your source again?

I get the error that was reported in another thread. :-(

resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)

.sh ./install.sh was the solution.

I cannot use mtxrun in a way like "mtxrun --locate" in lmtx:

$ mtxrun --locate
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated



___
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 Profiles in lmtx

2020-02-12 Thread Pablo Rodriguez
On 2/12/20 5:15 PM, Jan U. Hasecke wrote:
> [...]
> I just realized that the above output is the right output.

Hi Jan Ulrich,

you might check profiles that with VeraPDF (or simply \nopdfcompression
as first command in the source and search for the profile ),

> Ok. But now I have another question
>
> I want to install a new profile I downloaded from eci.org
> [...]
> But the file in texmf-local is not found
>
> backend > profiles > profile specification 'PSO Uncoated
> ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'
>
> How can I make context aware of the files?

How about deleting the cache (simply remove
tex/context-cache/luatex-cache) and generate it again (by running
"mtxrun --generate", before compiling your source again?

I hope it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Color Profiles in lmtx

2020-02-12 Thread Jan U. Hasecke
Am 12.02.20 um 11:09 schrieb Peter Rolf:

>> I get this in my logs
>>
>> backend > profiles > profile specification 'ISO Coated v2 300% 
>> (ECI)' loaded from 
>> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml'

I just realized that the above output is the right output.

Ok. But now I have another question

I want to install a new profile I downloaded from eci.org

I extended colorprofiles.xml putting it in
texmf-local/colors/icc/context/ with this additional xml:


PSO_Uncoated_ISO12647_eci.icc
CMYK
prtr
Custom
PSO Uncoated ISO12647 ECI
ae81087e1c54c6fdda2f93bd2d47cfaf
200
http://www.eci.org
Commercial and specialty offset, paper type 4,
uncoated white paper, positive plates, tone value increase curves C
(CMY) and D (K), white backing.



I generated the md5 checksum from the file PSO_Uncoated_ISO12647_eci.icc.

But the file in texmf-local is not found

backend > profiles > profile specification 'PSO Uncoated
ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'

How can I make context aware of the files?

TIA
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] Color Profiles in lmtx

2020-02-12 Thread Peter Rolf
Am 12.02.2020 um 09:41 schrieb juh:
> Hi all,
>
> again I have a question concerning color profiles.
>
> I have this to load the ISO Coated v2 300% profile.
>
> \setupbackend[
>format=PDF/X-3:2003,
>intent={ISO Coated v2 300\letterpercent\space (ECI)},
>]
>
> \setupcolors[cmyk=yes,rgb=no,]
>
> But is this profile part of the new lmtx version?
>
> I get this in my logs
>
> backend > profiles > profile specification 'ISO Coated v2 300% (ECI)' 
> loaded from 
> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
>
> But I am not sure whether the profile is really loaded.
>
> In the old context distribution I had to put the profile in texmf-local.
>
> There is this in lmtx:
>
> ~/context-linux-64/tex/texmf-context/colors/icc/profiles$ ls -l
> insgesamt 3652
> -rw-r--r-- 1 juh juh 416 Jan  6 16:32 default_gray.icc
> -rw-r--r-- 1 juh juh1992 Jan  6 16:32 ecirgb_v2.icc
> -rw-r--r-- 1 juh juh 700 Jan  6 16:32 ecirgb_v2_iccv4.icc
> -rw-r--r-- 1 juh juh 1829093 Jan  6 16:32 isocoated_v2_300_eci.icc
> -rw-r--r-- 1 juh juh 1829077 Jan  6 16:32 isocoated_v2_eci.icc
> -rw-r--r-- 1 juh juh3144 Jan  6 16:32 srgb.icc
> -rw-r--r-- 1 juh juh   60960 Jan  6 16:32 srgb_v4_icc_preference.icc
>
> I am not sure if the file name matches as in profiles.xml we have this with
> mixed upper and lower cases:
>
>  
> ISOcoated_v2_300_eci.icc
> CMYK
> prtr
> FOGRA39
> ISO Coated v2 300% (ECI)
> e14f5db955711d914d877df35ad7a1b5
> 2400
> http://www.color.org
> Offset printing, according to ISO 12647-2:2004/Amd 
> 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase 
> curves A (CMY) and B (K)
> 
>
> Is there a linux tool to test if the correct profile is part of the pdf?
>
> Any hints?
> TIA
> juh
>

Hi juh,

I guess the problem are the file names of the profiles. On Windows it
doesn't matter if you use upper or lower case letters. AFAIK Linux
handles that differently.
In the end the  entries in
  "[..]/texmf-context/colors/icc/context/colorprofiles.xml"
and the real file names must be "equal" for all OS.

Add

\enabletrackers[backend.pdfx]

to your document to get more info about the profile inclusion.
Not sure if this is the correct tracker though... no time to check, as I
have to make lunch now.


Hope that helps,

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