Re: [NTG-context] issues with optical bounds

2018-11-18 Thread Hans Hagen

On 11/18/2018 10:22 PM, Pablo Rodriguez wrote:

Hi Hans,

many thanks for having released the new beta.

I experience opposite results with opbd. The first sample is:

 \definefontfeature[default][default][protrusion=quality, opbd=yes]
 \definefontfamily[mainface][rm][Linux Libertine O]
 \setupbodyfont[mainface, 300pt]
 \setuppagenumbering[location=]
 \setupalign[hanging]
 \showframe
 \starttext
 W
 \stoptext

Although the value for that lfbd is only -29, the W is moved too much
from its original position.


i have no time now but keep in mind that we also have a multiplier (the 
system is set up to use ratios / fractions, not hard coded numbers


also, it makes no sense to experiment too much with only some demo fonts 
with incomplete coverage ... adapting the low level mechanism to just 
one font with one character protruding makes no sense (one can tnen 
better use the non-opbd way)



The second sample is (font attached at
https://mailman.ntg.nl/pipermail/ntg-context/2018/092527.html):

 \showframe
 \definefontfeature[default][default][protrusion=quality, opbd=yes]
 \definefontfamily[mainface][rm][TestOPBD]
 \setupbodyfont[mainface, 60pt]
 \setupalign[hanging]

 \starttext
 Ἠ\\
 Ἠ\hfill Ἠ\\
 Ἦ\hfill ὩὩ\\
 ἯἯ\hfill ὩὩ
 \stoptext

Here the changes are tiny. The right values are used in the image at
https://github.com/wspr/fontspec/issues/282#issuecomment-287155442.

Could you check it?

Many thanks for your help,

Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] issues with optical bounds

2018-11-18 Thread Pablo Rodriguez
Hi Hans,

many thanks for having released the new beta.

I experience opposite results with opbd. The first sample is:

\definefontfeature[default][default][protrusion=quality, opbd=yes]
\definefontfamily[mainface][rm][Linux Libertine O]
\setupbodyfont[mainface, 300pt]
\setuppagenumbering[location=]
\setupalign[hanging]
\showframe
\starttext
W
\stoptext

Although the value for that lfbd is only -29, the W is moved too much
from its original position.

The second sample is (font attached at
https://mailman.ntg.nl/pipermail/ntg-context/2018/092527.html):

\showframe
\definefontfeature[default][default][protrusion=quality, opbd=yes]
\definefontfamily[mainface][rm][TestOPBD]
\setupbodyfont[mainface, 60pt]
\setupalign[hanging]

\starttext
Ἠ\\
Ἠ\hfill Ἠ\\
Ἦ\hfill ὩὩ\\
ἯἯ\hfill ὩὩ
\stoptext

Here the changes are tiny. The right values are used in the image at
https://github.com/wspr/fontspec/issues/282#issuecomment-287155442.

Could you check it?

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] align=end not working

2018-11-18 Thread Aditya Mahajan

On Tue, 13 Nov 2018, Hans Hagen wrote:


On 11/10/18 5:56 AM, Aditya Mahajan wrote:

Hi,

According to an old thread
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085877.html), the
option `align=end` should align the last line to be flush right.
However, that is not working. The example from that thread:

\starttext

\showframe \showboxes

\setupalign[end]

\dostepwiserecurse{5}{8}{1}{
  \hsize #1cm
  What does happen with a short paragraph?\par
}

\stoptext

gives the attached pdf.



fixed in next beta ... (but no beta uploaded yet ... not sure when)


The new beta works better, but it is still not perfect. See attached pdf.
In the second line, "short paragraph" should have been flush right but it 
is not.


Thanks,
Aditya



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

Re: [NTG-context] Issues with RGB to CMYK conversion with color profiles

2018-11-18 Thread Hans Hagen

On 11/14/2018 4:51 PM, Wolfgang Schuster wrote:

Jan U. Hasecke schrieb am 14.11.18 um 11:39:

Hi all,

attached you find my colormanagement tests and I need your help to
understand and debug the situation.

I am testing together with a friend of mine, a professional
colormanager, who does not know ConTeXt.


Even without a color profile the results from the normal conversion of 
colors from cmyk to rgb
can result in differences between ConTeXt and Gimp because both use 
different formulas.


This is the formula from ConTeXt (attr-col.lua)

r = 1.0 - math.min(1.0,c+k)
g = 1.0 - math.min(1.0,m+k)
b = 1.0 - math.min(1.0,y+k)

and this is the one from Gimp 
(https://gitlab.gnome.org/GNOME/gimp/blob/master/libgimpcolor/gimpcolorspace.c) 



r = 1.0 - math.min(1.0,c*(1.0-k)+k)
g = 1.0 - math.min(1.0,m*(1.0-k)+k)
b = 1.0 - math.min(1.0,y*(1.0-k)+k)

Are there more variants? Do we need to support variants?

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Footnotes and endnotes

2018-11-18 Thread Axel Kielhorn

> Am 17.11.2018 um 15:43 schrieb Pablo Rodriguez :
> 
> On 11/17/18 1:51 PM, Axel Kielhorn wrote:
>> Hello,
> 
> Hi Axel,
> 
>> I want to show the translator notes in a different way. Right now I
>> have the footnote in green, but the footnote marker in the text does
>> change neither font nor color?> Shouldn’t the marker be green and
>> bold? Setting numberconversion works, but the other options seem to
>> be without effect.
> 
>\setupnote[translaternote][textstyle=\bf, textcolor=green]

With this information I found:

https://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

The headcolor in \setupnotation is actually the color of the marker in the note
while the maker in the text is defined with \setupnote.

I guess I have to request edit rights for the garden.
DONE

> 
>> I want to include longer notes as endnotes. I can change the marker
>> shown with the notes to (1) but he marker in the text does not
>> change. Thus you can’t distinguish between a footnote and an
>> endnote.
> 
> As far as I know, left and right arent’t options in \setupnote.

The page mentioned above offers the following solution:

\definenote[commentnote][endnote]  
  \setupnotation[commentnote] [color=red,left={(},right={)}]
  \setupnote [commentnote] [textcommand=\mycommentcommand]
\define[1]\mycommentcommand{\high{\tfxx(#1)}}

Thanks for pointing me in the right direction.

Axel

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