Re: [NTG-context] issue with external image and PDF/A-3a
On 10/10/2017 04:35 PM, Peter Rolf wrote: > Just a hint: > > pstoedit seems to be incompatible (uses a deprecated option) with the > actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course > the transparency was removed in the process of the eps export. Not a > real problem with the metapost code at hand. > > pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp Many thanks for your reply, Peter. pstoedit uses a very basic PostScript drawing model that isn’t enough for the vectors I need to convert. >> Is that right or could something get lost in the translation? >> > All unsupported features (like transparency). I found the command for the transparency issues: \setupcolors[pagecolormodel=auto] At least, veraPDF doesn’t complain anymore. Only color profiles for external figures have to be solved. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ICC profiles for \externalfigure
On 10/10/2017 11:27 AM, Henning Hraban Ramm wrote: > Am 2017-10-10 um 01:02 schrieb Hans Hagen: >> if there is a command (gs, graphicmagic, ...) that can convert the >> image then we can add a converter directive (as we have for jpg and png) > > http://www.graphicsmagick.org/GraphicsMagick.html#details-profile > > gm convert -profile profile.icm picture.jpg > (didn’t try, on my way to Frankfurt book fair...) Many thanks for your reply, Hraban. I’m afraid that only gs adds the profile without converting the vectors to bitmaps. Enjoy the book fair, 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] ICC profiles for \externalfigure
On 10/10/2017 01:02 AM, Hans Hagen wrote: > as said, it will not be an engine supported features as it's technically > impossible without messing up the backend (and we don't want to mess up > stable code with fragile hacks) Many thanks for the reply, Hans. I understand the problem now with fragile hacks. Sorry for having insisted in my proposal. I fixed the external PDF figure (http://pdf.ousia.tk/icc-vector.pdf) and I used with in the following sample: \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966-2.1, profile={sRGB.icc,default_gray.icc}, level=0] \setuptagging[state=start] \setupcolors[cmyk=no, pagecolormodel=auto] \startTEXpage[offset=1em] \externalfigure[icc-vector.pdf] \stopTEXpage \stoptext http://pdf.ousia.tk/icc-vector.pdf is the same graphic as http://pdf.ousia.tk/basic-figures.pdf, but with an ICC profile. The veraPDF validator (http://verapdf.org) says it’s a valid PDF/A-1b document. But the output from the sample above (http://pdf.ousia.tk/xobject-noicc.pdf) isn’t a valid PDF/A document. The external figure has no ICC profile. The uncompressed PDF document reveals that the XObject has no reference to any ICC profile. I’m afraid this might be a bug. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue with external image and PDF/A-3a
Am 05.10.2017 um 22:40 schrieb Pablo Rodriguez: > On 10/05/2017 09:05 PM, luigi scarso wrote: >> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote: >>> [...] >>> Well, this is a minimal sample, but my real document is much bigger. Is >>> there any way to convert the stream to something that ConTeXt can handle >>> directly? >> >> hm, the only reliable way that I know w is to convert it to a flattened png > > Many thanks for your reply, Luigi. > > The real graphic is a vector logo and I need to keep it as a vector > image. I converted it from a SVG source into a PDF document (years ago). > > I cannot remember if the vector image contains transparency. If needed, > I would remove it from the image. > > The way to convert it may be using Inkscape into a PostScript document > and then to MetaPost using pstoedit (as I have just discovered). > Just a hint: pstoedit seems to be incompatible (uses a deprecated option) with the actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course the transparency was removed in the process of the eps export. Not a real problem with the metapost code at hand. pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp Tested on Windows 10 (1703), Inkscape v0.92.2, gs v9.18, pstoedit v3.70; all 64bit > Is that right or could something get lost in the translation? > All unsupported features (like transparency). > Many thanks for your help, > > Pablo > Best wishes, 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 ___
Re: [NTG-context] How to add a font folder with local fonts?
Am Tue, 10 Oct 2017 13:34:02 +0200 schrieb Floris van Manen: > you might consider using git > easy to keep track of your data and to share / clone the latest state. I use git. But on two Computer there are always some settings that you don't want to share e.g. on the one texlive is in D:\texlive and on the other in C:\users\...\texlive. And the relative pathes between context and texlive are different too. -- 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] How to add a font folder with local fonts?
you might consider using git easy to keep track of your data and to share / clone the latest state. .F > On 10 Oct 2017, at 12:25, Ulrike Fischer wrote: > > Am Tue, 10 Oct 2017 11:31:15 +0200 schrieb Henning Hraban Ramm: > >>> I can set OSFONTDIR only for context, but it would be a bit tricky. >> >> Hm, I’m used to setup/make scripts per project, setting some path works well >> with that. > > The tricky part is to fit it in my current configuration system. I > share configuration between two PC and so adding things which should > have an effect only on one of them needs (due to different pathes) > always a bit thinking -- not impossible and not so difficult but a > bit tricky ;-). So adjusting a local file would be easier. > > > -- > 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 > ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] How to add a font folder with local fonts?
Am Tue, 10 Oct 2017 11:31:15 +0200 schrieb Henning Hraban Ramm: >> I can set OSFONTDIR only for context, but it would be a bit tricky. > > Hm, I’m used to setup/make scripts per project, setting some path works well > with that. The tricky part is to fit it in my current configuration system. I share configuration between two PC and so adding things which should have an effect only on one of them needs (due to different pathes) always a bit thinking -- not impossible and not so difficult but a bit tricky ;-). So adjusting a local file would be easier. -- 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] How to add a font folder with local fonts?
Am 2017-10-09 um 22:37 schrieb Ulrike Fischer : >> (2) in OSFONTDIR > > I don't want something "systemwide". I have too many texsystems and > don't want side-effects (actually I want context to see the texlive > fonts, to make test easier). > > I can set OSFONTDIR only for context, but it would be a bit tricky. Hm, I’m used to setup/make scripts per project, setting some path works well with that. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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] ICC profiles for \externalfigure
Am 2017-10-10 um 01:02 schrieb Hans Hagen : > On 10/9/2017 9:55 PM, Pablo Rodriguez wrote: > >> Having this in mind, could you reconsider the implementation of the >> profile key implemented for \externalfigure? > as said, it will not be an engine supported features as it's technically > impossible without messing up the backend (and we don't want to mess up > stable code with fragile hacks) > > if there is a command (gs, graphicmagic, ...) that can convert the image then > we can add a converter directive (as we have for jpg and png) http://www.graphicsmagick.org/GraphicsMagick.html#details-profile gm convert -profile profile.icm picture.jpg (didn’t try, on my way to Frankfurt book fair...) Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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] Strange behavior with TikZ
On Sat, Oct 7, 2017 at 3:59 PM, Hans Hagen wrote: > (btw, it seems that there is also a \stopmodule done without \startmodule > when tikz is loaded) > > Hans I am surprised that \loggingall before \starttext produces 2.3GByte of log. \usemodule[tikz] \usemodule [graph] \usemodule[pgfplots] \pgfplotsset{compat=newest} \definecolor[Mycolor][c=.6,m=0.8,y=0,k=0] \unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}} \setuphead [section] [textcommand=, color=red, %magenta, style=] \loggingall \starttext \startsection[title={Résoudre graphiquement une équation \math{f(x)=g(x)}},sectionsegments=section,color=magenta] \placefigure[none,right]{}{ : : \stopsection \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 ___