[NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-20 Thread Rudolf Bahr

On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote:
> On 5/16/2019 12:21 PM, Rudolf Bahr wrote:
> > The problem with artefacts in .png images is still unsolved for me.
> > I can circumvent it by using .jpg or .tiff images instead of .png images
> > as long as no transparent areas in the images are needed. As far as I know
> > .jpg and .tiff formats cannot handle transparancy, do they?
> > 
> > Now in .log files messages like
> > "luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
> > can be seen. Please, what do they mean?

> Does that come from an pdf generated by image magick>? If so, the problem is
> there ... the last years I've seen lots of converted files with bogus pdf
> objects. (Kind of harmless but still.)
> 
> Hans


No. I never use neither ImageMagick nor GraphicsMagick to generate images in
.pdf-format. Even with my scanner software I produce always .jpg-images though 
it
is capable to produce .pdf-output too. The only .pdf-files I'm doing are made by
ConTeXt-LMTX!

I shall append another, interesting MWE. There is a .png-image which is, as it
occasionally happens, represented as it should, by ConTeXt. And then the same 
.png-image
to which I added a red frame by GIMP2.10. This one shows artefacts in ConTeXt!

I'm adding the .log-file too. There again is a luatex-warning, as I could 
observe them
often in ConTeXt-LMTX:

-
luatex warning  > pdfe: invalid 11 0 R object at offset 41603
-
Please, what does mean it? I fear there is something wrong with the 
.png-handling
of ConTeXt/luatex.

The outputs of
feh imagered-frame.png
gm display imagered-frame.png
are looking ok. And GIMP2.10 has produced all image-files.

Rudolf


PS.:
echo $PATH
/home/sam/Android/platform-tools:/bin:/usr/bin:/home/sam/context-lmtx/tex/texmf-linux-64/bin:/home/sam/context-lmtx/bin:/home/sam/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

The .tiff-image is always too big for this forums upper limit
\starttext

\midaligned{
  \externalfigure[image-no-red-frame.png][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.png][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.jpg][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.tiff][width=15mm,height=25mm]
}

\stoptext
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.05.12 19:40 MKIV beta  fmt: 2019.5.14  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'Artefakte', input './Artefakte', result 
'Artefakte'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './Artefakte.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
luatex warning  > pdfe: invalid 11 0 R object at offset 41603
backend > xmp > using file 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 2, order 3, name './Artefakte.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'

system  > start used files

system  > text: Artefakte

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex format=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=scripts 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 usedmethod=database
system  >5: filename=lang-exc.lua filetype=scripts 
f

Re: [NTG-context] Broken kerning if hz is turned on?

2019-05-20 Thread Wolfgang Schuster

Mikael P. Sundqvist schrieb am 20.05.2019 um 21:41:

Hi,

attached is the result of running latest lmtx on

\definefontfeature[default][default][protrusion=quality,expansion=quality]

\definefontfeature [default] [default] [threshold=20,expansion=quality]

\setupalign[hz]
\setupbodyfont[lucidaot]

\starttext
Gauss öppnade med denna studie ett helt nytt fält inom matematiken, 
det som

handlar om \emph{elliptiska funktioner} och \emph{modulära former}.
\stoptext

What happens with the space between the characters in "studie", that 
becomes "s tudie"? The spacing between some other characters are also 
off (ma tematiken), but not as much as in studie.
It's a problem with Lucida Opentype which lacks kerning (I reported the 
same problem a while ago).


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] Broken kerning if hz is turned on?

2019-05-20 Thread Mikael P. Sundqvist
Hi,

attached is the result of running latest lmtx on

\definefontfeature[default][default][protrusion=quality,expansion=quality]
\setupalign[hz]
\setupbodyfont[lucidaot]

\starttext
Gauss öppnade med denna studie ett helt nytt fält inom matematiken, det som
handlar om \emph{elliptiska funktioner} och \emph{modulära former}.
\stoptext

What happens with the space between the characters in "studie", that
becomes "s tudie"? The spacing between some other characters are also off
(ma tematiken), but not as much as in studie.

/Mikael


gauss.pdf
Description: Adobe PDF document
___
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
___