[NTG-context] GraphicsMagick corrupts TIFF upon PDF conversion

2019-12-15 Thread Thangalin
FYI, there appears to be a bug with GraphicsMagick.

gm convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf

Produces:

38812848 Dec 15 22:51 m_k_i_v_illustration.tif.pdf
https://i.imgur.com/EByrH6r.png

Whereas ImageMagck:

convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf

Produces:

42343236 Dec 15 22:52 m_k_i_v_illustration.tif.pdf
https://i.imgur.com/9DxRVW2.png

Re: https://wiki.contextgarden.net/Using_Graphics#Image_Conversion

Since GraphicsMagick is used by ConTeXt, is there a way to force
ConTeXt to use ImageMagick instead?

Thank you!
___
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] LMTX Tagging and overlay

2019-12-15 Thread Otared Kavian
Hi Rik,

I can confirm that with lmtx the issue persists with 2019.12.15 17:34.
However it works fine with mkiv version 2019.12.12 19:23.

Best regards: OK

> On 16 Dec 2019, at 00:17, Rik Kabel  wrote:
> 
> Tested with 20191212 and 20191215, still not working. Is anyone else been 
> able to confirm the issue?
> 
> -- 
> Rik
> 
> On 12/10/2019 23:36, Rik Kabel wrote:
>> Dear list,
>> 
>> With the example below (perhaps not minimal, but I have stripped out as much 
>> as I could), the second page is set completely in the color of the overlay. 
>> This also happens when a layer is used instead of an overlay. When tagging 
>> is turned off, the colors are what they should be. When a few lines are 
>> removed from the first page, the colors are correct as well, but ...
>> 
>> Attached is the resulting pdf.
>> 
>> LMTX 20191206 only. MKIV 20191206 is fine.
>> 
>> Error on my part, or bug?
>> 
>> % \definelayer   [WatermarkOverlay]
>> %[repeat=yes,
>> % width=\paperwidth,
>> % height=\paperheight]
>> % \setlayerframed[WatermarkOverlay]
>> %[preset=center]
>> %[foregroundcolor=red,frame=off]
>> %{\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}}
>> 
>> \defineoverlay   [WatermarkOverlay]
>>  [{\framed[frame=off,
>>foregroundcolor=red]
>>   {\scale[factor=max]
>>{\rotate[rotation=60.0]
>> {~Oops!~]
>> 
>> \setupbackgrounds[page]
>>  [background=WatermarkOverlay]
>> 
>> %setuptagging[state=stop]
>> \setuptagging[state=start]
>> 
>> \setuplanguage   [en]
>>  [spacing=packed]
>> \setupinterlinespace [2.2ex]
>> \definenarrower  [MidOneEm]
>>  [middle=1em]
>> \setuplayout [topspace=0.25in,
>>   footerdistance=0in,
>>   height=fit,
>>   width=27em,
>>   footer=0.5in,
>>   bottom=0.25in,
>>   backspace=1.1in]
>> \definepapersize [octavo]
>>  [width=6in,
>>   height=9in]
>> \setuppagenumbering  [location=]
>> \setuppapersize  [octavo]
>> \setupbodyfont   [Termes,10pt]
>> 
>> \starttext
>> 
>> \starttitle  [title={N aa aaa }]
>> 
>> \startsubject[title={B}]
>>   Faaa aaa {\em Naa Yaaa T}  aa C 22, 9990 (
>>   999):
>> \startnarrow [MidOneEm]
>>   {\bi Maaa Fa, 86; R Laaa aaa Pa Ta Ba a La}
>> 
>>   Da.~Fa, a  aa aaa Ja I aa Raaa, aa aa
>>   a  Ta Ia aa Wa Haa  1925 aa 1928. Ha
>>   aaa  a aa a aa Caaa Ta Ra Sa aaa
>>   aa M 1930 a aaa   a aaa aa aa 83a Sa
>>   aaa Caa Paaa Waaa. A a a, aa   aaa aa
>>   a, aaa  aa aa aa a aaa aa aa aa
>>   “aaa a a a.”
>> 
>>   “P a aa,” R Fa  aa aaa aa aa
>>   aaa, “aaa a  aa aa aa, aa a,
>>   aa a, aa aa aaa  aaa  aa aa
>>    aa aaa aa,  a aa aa  aaa
>>   aaa . Taa a aaa aa aaa , aaa aaa
>>   aaa a a.”
>> 
>>   Eaa, aa aaa a Paa aa a “ a” aaa
>>   aaa a aaa S P aaa aaa Paaa aaa aa
>>   Na Ta.
>> 
>>   Aaa aa aaa  aa aaa  a.
>> 
>>   A aa  Caaa Ua Laa Sa aa 1933, aa aaa
>>   aaa aa aaa aaa Aaaa-Naaa La aaa aaa aaa Ga-Aaaa
>>   Baaa. Ha aaa  aaa aa aaa Naa Yaaa B aa Ra aaa
>>   aaa aa aaa aaa. Ha aa a  aa aaa aa aaa
>>   aa Naa Yaaa S.
>> \stopnarrow
>> 
>>   Fa  aa aa aaa  aaa aaa a aa aaa
>>   R Ra Caa.
>> 
>>   A aa aaa Faaa 30, 1967 {\em Naa Yaaa T} 
>>   ( 3

Re: [NTG-context] math align broken

2019-12-15 Thread Jeong Dal
Dear Mikael,

I also confirm your problem. 
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower. 

I hope that it will be fixed soon.

Best regards,

Dalyoung

___
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] LMTX Tagging and overlay

2019-12-15 Thread Rik Kabel
Tested with 20191212 and 20191215, still not working. Is anyone else 
been able to confirm the issue?


--
Rik

On 12/10/2019 23:36, Rik Kabel wrote:


Dear list,

With the example below (perhaps not minimal, but I have stripped out 
as much as I could), the second page is set completely in the color of 
the overlay. This also happens when a layer is used instead of an 
overlay. When tagging is turned off, the colors are what they should 
be. When a few lines are removed from the first page, the colors are 
correct as well, but ...


Attached is the resulting pdf.

LMTX 20191206 only. MKIV 20191206 is fine.

Error on my part, or bug?

% \definelayer   [WatermarkOverlay]
%    [repeat=yes,
% width=\paperwidth,
% height=\paperheight]
% \setlayerframed    [WatermarkOverlay]
%    [preset=center]
%    [foregroundcolor=red,frame=off]
% {\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}}

\defineoverlay   [WatermarkOverlay]
 [{\framed[frame=off,
   foregroundcolor=red]
  {\scale[factor=max]
   {\rotate[rotation=60.0]
    {~Oops!~]

\setupbackgrounds    [page]
 [background=WatermarkOverlay]

%setuptagging    [state=stop]
\setuptagging    [state=start]

\setuplanguage   [en]
 [spacing=packed]
\setupinterlinespace [2.2ex]
\definenarrower  [MidOneEm]
 [middle=1em]
\setuplayout [topspace=0.25in,
  footerdistance=0in,
  height=fit,
  width=27em,
  footer=0.5in,
  bottom=0.25in,
  backspace=1.1in]
\definepapersize [octavo]
 [width=6in,
  height=9in]
\setuppagenumbering  [location=]
\setuppapersize  [octavo]
\setupbodyfont   [Termes,10pt]

\starttext

\starttitle  [title={N aa aaa }]

\startsubject    [title={B}]
  Faaa aaa {\em Naa Yaaa T}  aa C 22, 9990 (
  999):
\startnarrow [MidOneEm]
  {\bi Maaa Fa, 86; R Laaa aaa Pa Ta Ba a La}

  Da.~Fa, a  aa aaa Ja I aa Raaa,
aa aa
  a  Ta Ia aa Wa Haa  1925 aa 1928. Ha
  aaa  a aa a aa Caaa Ta Ra Sa aaa
  aa M 1930 a aaa   a aaa aa aa 83a Sa
  aaa Caa Paaa Waaa. A a a, aa   aaa aa
  a, aaa  aa aa aa a aaa aa aa aa
  “aaa a a a.”

  “P a aa,” R Fa  aa aaa aa aa
  aaa, “aaa a  aa aa aa, aa a,
  aa a, aa aa aaa  aaa  aa aa
   aa aaa aa,  a aa aa
 aaa
  aaa . Taa a aaa aa aaa , aaa aaa
  aaa a a.”

  Eaa, aa aaa a Paa aa a “ a” aaa
  aaa a aaa S P aaa aaa Paaa
aaa aa
  Na Ta.

  Aaa aa aaa  aa aaa  a.

  A aa  Caaa Ua Laa Sa aa 1933, aa aaa
  aaa aa aaa aaa Aaaa-Naaa La aaa aaa aaa Ga-Aaaa
  Baaa. Ha aaa  aaa aa aaa Naa Yaaa B aa Ra aaa
  aaa aa aaa aaa. Ha aa a  aa aaa
aa aaa
  aa Naa Yaaa S.
\stopnarrow

  Fa  aa aa aaa  aaa aaa a aa aaa
  R Ra Caa.

  A aa aaa Faaa 30, 1967 {\em Naa Yaaa T} 
  ( 38), aaa , Da.~Ea Oaa Fa, aaa a 
aa
  aa {\em Taa Jaa aa Daa}. Saa aaa a  aaa aaa
  a aaa   aa  aa aaa aaa
  Ia aa Raaa aaa Ha aa aa  a .

  Taa Fa’a aa aaa, Faaa M.~Fa (1894–1949) aaa a
  a aa a aa MIT. T aaa aaa, Wa A.~Fa
  (aaa  I  aaa aa’a aa aa a aaa
  ) aaa aa aaa  a aa aaa U.S.~H Maaa
Ma
  aaa aa aa Daaa aa Raaa aaa  aaa Ca aa Ja
  Maaa Ca Aaa Gaa aaa aaa W Ja Raa
  Oaaa.%
\startfootnote
  T aaa aa  a  I  aa Da.~Fa aa a
  a aa

Re: [NTG-context] math align broken

2019-12-15 Thread Otared Kavian
Hi Mikael,

II tested your example and can confirm the issue, using lmtx version: 
2019.12.15 17:34 on MacOS.

Best regards: OK

> On 15 Dec 2019, at 16:54, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> I hope this report is not a duplicate of another one. I updated lmtx today 
> (from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh 
> install in the folder), and found some strange things with math:
> 
> The file
> 
> %%% EXAMPLE
> \starttext
> \startformula
> \startalign
> \NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
> \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
> \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
> \stopalign
> \stopformula
> From this we see that $\lim_{n\to+\infty}f(n)=0$.
> \stoptext
> %%%
> 
> gives the attached ex1.pdf. As we can see the spacing inside \startalign  
> \stopalign is wrong. Also, the "lim" in the example after the displayed 
> formula has disappeared.
> 
> Any clues?
> 
> /Mikael
> 
> (I tried in any case to remove cache and rebuild, but since it was a fresh 
> install, I could not see why it could help here. Thought I mention it 
> anyways.)
> 
> ___
> 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
> ___

___
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] math align broken

2019-12-15 Thread Mikael P. Sundqvist
Hi,

I hope this report is not a duplicate of another one. I updated lmtx today
(from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh
install in the folder), and found some strange things with math:

The file

%%% EXAMPLE
\starttext
\startformula
\startalign
\NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
\NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
\NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
\stopalign
\stopformula
>From this we see that $\lim_{n\to+\infty}f(n)=0$.
\stoptext
%%%

gives the attached ex1.pdf. As we can see the spacing inside \startalign
\stopalign is wrong. Also, the "lim" in the example after the displayed
formula has disappeared.

Any clues?

/Mikael

(I tried in any case to remove cache and rebuild, but since it was a fresh
install, I could not see why it could help here. Thought I mention it
anyways.)


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