ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Color Profiles in lmtx
@ 2020-02-12  8:41 juh
  2020-02-12 10:09 ` Peter Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: juh @ 2020-02-12  8:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2195 bytes --]

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 juh    1992 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 juh    3144 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:

 <profile>
        <filename>ISOcoated_v2_300_eci.icc</filename>
        <colorspace>CMYK</colorspace>
        <class>prtr</class>
        <id>FOGRA39</id>
        <info>ISO Coated v2 300% (ECI)</info>
        <checksum>e14f5db955711d914d877df35ad7a1b5</checksum>
        <version>24000000</version>
        <url>http://www.color.org</url>
        <outputcondition>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)</outputcondition>
</profile>

Is there a linux tool to test if the correct profile is part of the pdf?

Any hints?
TIA
juh


-- 
Autoren-Homepage: ......... http://literatur.hasecke.com
Satiren & Essays: ......... http://www.sudelbuch.de
Privater Blog: ............ http://www.hasecke.eu
Netzliteratur-Projekt: .... http://www.generationenprojekt.de



[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Color Profiles in lmtx
  2020-02-12  8:41 Color Profiles in lmtx juh
@ 2020-02-12 10:09 ` Peter Rolf
  2020-02-12 16:15   ` Jan U. Hasecke
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Rolf @ 2020-02-12 10:09 UTC (permalink / raw)
  To: ntg-context

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 juh    1992 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 juh    3144 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:
>
>  <profile>
>         <filename>ISOcoated_v2_300_eci.icc</filename>
>         <colorspace>CMYK</colorspace>
>         <class>prtr</class>
>         <id>FOGRA39</id>
>         <info>ISO Coated v2 300% (ECI)</info>
>         <checksum>e14f5db955711d914d877df35ad7a1b5</checksum>
>         <version>24000000</version>
>         <url>http://www.color.org</url>
>         <outputcondition>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)</outputcondition>
> </profile>
>
> 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 <filename> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Color Profiles in lmtx
  2020-02-12 10:09 ` Peter Rolf
@ 2020-02-12 16:15   ` Jan U. Hasecke
  2020-02-12 18:48     ` Pablo Rodriguez
  2020-02-13 14:37     ` Peter Rolf
  0 siblings, 2 replies; 6+ messages in thread
From: Jan U. Hasecke @ 2020-02-12 16:15 UTC (permalink / raw)
  To: ntg-context

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:

    <profile>
        <filename>PSO_Uncoated_ISO12647_eci.icc</filename>
        <colorspace>CMYK</colorspace>
        <class>prtr</class>
        <id>Custom</id>
        <info>PSO Uncoated ISO12647 ECI</info>
        <checksum>ae81087e1c54c6fdda2f93bd2d47cfaf</checksum>
        <version>2000000</version>
        <url>http://www.eci.org</url>
        <outputcondition>Commercial and specialty offset, paper type 4,
uncoated white paper, positive plates, tone value increase curves C
(CMY) and D (K), white backing.
        </outputcondition>
    </profile>

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Color Profiles in lmtx
  2020-02-12 16:15   ` Jan U. Hasecke
@ 2020-02-12 18:48     ` Pablo Rodriguez
  2020-02-13 10:08       ` Jan U. Hasecke
  2020-02-13 14:37     ` Peter Rolf
  1 sibling, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2020-02-12 18:48 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Color Profiles in lmtx
  2020-02-12 18:48     ` Pablo Rodriguez
@ 2020-02-13 10:08       ` Jan U. Hasecke
  0 siblings, 0 replies; 6+ messages in thread
From: Jan U. Hasecke @ 2020-02-13 10:08 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Color Profiles in lmtx
  2020-02-12 16:15   ` Jan U. Hasecke
  2020-02-12 18:48     ` Pablo Rodriguez
@ 2020-02-13 14:37     ` Peter Rolf
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2020-02-13 14:37 UTC (permalink / raw)
  To: ntg-context

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:
>
>     <profile>
>         <filename>PSO_Uncoated_ISO12647_eci.icc</filename>
>         <colorspace>CMYK</colorspace>
>         <class>prtr</class>
>         <id>Custom</id>
>         <info>PSO Uncoated ISO12647 ECI</info>
>         <checksum>ae81087e1c54c6fdda2f93bd2d47cfaf</checksum>
>         <version>2000000</version>
>         <url>http://www.eci.org</url>
>         <outputcondition>Commercial and specialty offset, paper type 4,
> uncoated white paper, positive plates, tone value increase curves C
> (CMY) and D (K), white backing.
>         </outputcondition>
>     </profile>
>
> 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)

<profile>
        <filename>PSO_Uncoated_ISO12647_eci.icc</filename>
        <colorspace>CMYK</colorspace>
        <class>prtr</class>
        <id>Fogra47L</id>
        <info>PSO Uncoated ISO12647 (ECI)</info>
        <checksum>ae81087e1c54c6fdda2f93bd2d47cfaf</checksum>
        <version>2000000</version>
        <url>http://www.eci.org</url>
        <outputcondition>Commercial and specialty offset, paper type 4,
uncoated white paper, positive plates, tone value increase curves C
(CMY) and D (K), white backing.
        </outputcondition>
    </profile>


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-13 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12  8:41 Color Profiles in lmtx juh
2020-02-12 10:09 ` Peter Rolf
2020-02-12 16:15   ` Jan U. Hasecke
2020-02-12 18:48     ` Pablo Rodriguez
2020-02-13 10:08       ` Jan U. Hasecke
2020-02-13 14:37     ` Peter Rolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).