Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Rik Kabel

On 2015-11-02 04:05, Hans Hagen wrote:

On 11/2/2015 9:53 AM, Hans Hagen wrote:


\definefontfeature [default][protrusion=quality]


btw that is bad, should be:

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

as adding protrusion out of some quality argument doesn't go well with 
removing kerns and ligatures


Hans

Yes, definitely. Thank you for pointing that out. And thank you, in 
advance, for the fix.


--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Hans Hagen

On 10/23/2015 8:40 PM, Rik Kabel wrote:

At Wolfgang’s request, a new thread for this subject. I have cleaned up
the example from the July 5 posting, but the problems are the same as
shown there. In July Alan suggested that there might a bug here, but
nothing has been done to address it since then. Wolfgang suggested
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that
method=font is required for proper protrusion handling for quotations.

 1. When \setupdelimitedtext[quotation][method=font] is present /and
//there is //no citation//in a footnote within a startquotation
block and a bibliography is produced/, compilation proceeds normally.
 2. When \setupdelimitedtext[quotation][method=font] is present /and
//there is a citation//in a footnote within a startquotation block
and a bibliography is produced,/ the compilation complains of a
missing right curly. When allowed to continue to completion the
protrusion for the opening quotation marks does not match the
protrusion for similar marks not produced through \startquotation.
Citations in footnotes outside quotation blocks are not a problem.
Without a bibliography (\placelistofpublications)
 3. When \setupdelimitedtext[quotation][method=font] is present, the
[right] option of \startblockquotation is treated as text within the
quotation. This can be resolved by adding “leftmargin=” to the
\setupdelimitedtext[quotation] command (but that complicates matters
when you want other alignments). Similarly, the [left] and [middle]
options are ignored as options and appear as text.
 4. When “method=font” is not present, protrusion for block quotations
(\startblockquotation … \stopblockquotation) is greater than and not
aligned with other protrusion.
 5. When “method=font” is not present, protrusion for non-block
quotations (\quotation{…}) is not done at all.
 6. With the older bibliography system, footnotes in citations in
quotation blocks do not cause a halt in compilation.
 7. With the older bibliography system, item 3 is still a problem, that
is, method=font appears to be inimical to the left, right, and
middle options for \startblockquotation without regard to the
bibliography system in use.


\showframe

\definefontfeature [default][protrusion=quality]
\setupalign[hz,hanging]

% The next line should allow \startquotation to protrude quotes properly
\setupdelimitedtext[quotation][method=font]

%==
% For testing with old regime, enable next and disable following
%\setupbibtex[database=sample.bib] % requires sample.bib in current
directory
%--
% For testing with new regime, disable above and enable following
\definebtxdataset  [sample] % finds and uses distribution sample.bib
\usebtxdataset [sample.bib]
%==

\starttext
\startparagraph
   There is a citation in the footnote to this standard
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}
\stopparagraph

\startparagraph
\startquotation[right]
   There is a citation in the footnote to this block
quotation\footnote{This footnote has a citation \cite[hh2010a].}
\stopquotation
\stopparagraph

\startparagraph
\startquotation[right]
   There is no citation in the footnote to this block
quotation\footnote{This footnote has no citation.}
\stopquotation
\stopparagraph

\startparagraph
   \quotation{There is a citation in the footnote to this non-block
quotation paragraph\footnote{This footnote has a citation
\cite[Eijkhout1991].}}
\stopparagraph

\startparagraph
   \quotation{There is no citation in the footnote to this non-block
quotation paragraph\footnote{This footnote has no citation.}}
\stopparagraph

\startparagraph
   “There is a citation in the footnote to this standard
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}”
\stopparagraph

\startparagraph
   “There is no citation in the footnote to this standard
paragraph\footnote{This footnote has no citation.}”
\stopparagraph

\blank[big]

%==
% For testing with old regime, enable next and disable following
%\placepublications
%--
% For testing with new regime, disable above and enable following
\placelistofpublications
%==

\stoptext


first hang in par fixed in the luatex engine so you have to wait till we 
release


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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 / 

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-11-02 Thread Hans Hagen

On 11/2/2015 9:53 AM, Hans Hagen wrote:


\definefontfeature [default][protrusion=quality]


btw that is bad, should be:

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

as adding protrusion out of some quality argument doesn't go well with 
removing kerns and ligatures


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-10-26 Thread Wolfgang Schuster

Rik Kabel 
23. Oktober 2015 um 20:40
At Wolfgang’s request, a new thread for this subject. I have cleaned 
up the example from the July 5 posting, but the problems are the same 
as shown there. In July Alan suggested that there might a bug here, 
but nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


1. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is //no citation//in a footnote within a startquotation
   block and a bibliography is produced/, compilation proceeds normally.
2. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is a citation//in a footnote within a startquotation block
   and a bibliography is produced,/ the compilation complains of a
   missing right curly. When allowed to continue to completion the
   protrusion for the opening quotation marks does not match the
   protrusion for similar marks not produced through \startquotation.
   Citations in footnotes outside quotation blocks are not a problem.
   Without a bibliography (\placelistofpublications)

You have to change the following definition in publ-imp-default.mkvi:

\definebtx
  [\s!default:\s!list:title:article]
  [\s!default:\s!list:title]
- [\c!style=, % journal is set in italics
-  \c!command={\quotation\Word}]
+ [\c!style={\setcharactercasing[\v!Word]},
+  \c!command=\quotation]

3. When \setupdelimitedtext[quotation][method=font] is present, the
   [right] option of \startblockquotation is treated as text within the
   quotation. This can be resolved by adding “leftmargin=” to the
   \setupdelimitedtext[quotation] command (but that complicates matters
   when you want other alignments). Similarly, the [left] and [middle]
   options are ignored as options and appear as text.

When you use method=font context using a different rendering mechanism
for the quotation block without the optional argument.

4. When “method=font” is not present, protrusion for block quotations
   (\startblockquotation … \stopblockquotation) is greater than and not
   aligned with other protrusion.
5. When “method=font” is not present, protrusion for non-block
   quotations (\quotation{…}) is not done at all.

When you use the default method context puts the quotation marks
in a box which is only moved into the margin independant of protrusion.

6. With the older bibliography system, footnotes in citations in
   quotation blocks do not cause a halt in compilation.

See 2.

7. With the older bibliography system, item 3 is still a problem, that
   is, method=font appears to be inimical to the left, right, and
   middle options for \startblockquotation without regard to the
   bibliography system in use.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion

2015-10-23 Thread Wolfgang Schuster

Rik Kabel 
22. Oktober 2015 um 23:31
On 2015-07-05 19:21, Alan BRASLAU wrote:
> On Sun, 5 Jul 2015 18:52:40 -0400 > Rik Kabel 
 wrote: > >> Is this a bug, or simply 
something not yet ready with the new regime, >> or am I doing 
something wrong? > > This looks like a bug/interference in a situation 
that was not tested... > > Alan > 
___ 
> 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://tex.aanhet.net > archive : 
http://foundry.supelec.fr/projects/contextrev/ > wiki : 
http://contextgarden.net > 
___ 
> This is still a problem. Is it a bug that will be addressed, or is 
the fix coming with a new release of the new bibliography system, or 
is it something that has to be worked around?


I also note that the method=font option for \setupdelimited text 
appears to be incompatible with the left option for \startquotation. 
The document compiles, but [left] appears as part of the text and is 
not acted on (and similarly for right and middle).

Create a new thread for this and post a minimal example.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-10-23 Thread Rik Kabel

On 2015-10-23 14:40, Rik Kabel wrote:
At Wolfgang’s request, a new thread for this subject. I have cleaned 
up the example from the July 5 posting, but the problems are the same 
as shown there. In July Alan suggested that there might a bug here, 
but nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


 1. When \setupdelimitedtext[quotation][method=font] is present /and
//there is //no citation//in a footnote within a startquotation
block and a bibliography is produced/, compilation proceeds normally.
 2. When \setupdelimitedtext[quotation][method=font] is present /and
//there is a citation//in a footnote within a startquotation block
and a bibliography is produced,/ the compilation complains of a
missing right curly. When allowed to continue to completion the
protrusion for the opening quotation marks does not match the
protrusion for similar marks not produced through \startquotation.
Citations in footnotes outside quotation blocks are not a problem.
Without a bibliography (\placelistofpublications)
 3. When \setupdelimitedtext[quotation][method=font] is present, the
[right] option of \startblockquotation is treated as text within
the quotation. This can be resolved by adding “leftmargin=” to the
\setupdelimitedtext[quotation] command (but that complicates
matters when you want other alignments). Similarly, the [left] and
[middle] options are ignored as options and appear as text.
 4. When “method=font” is not present, protrusion for block quotations
(\startblockquotation … \stopblockquotation) is greater than and
not aligned with other protrusion.
 5. When “method=font” is not present, protrusion for non-block
quotations (\quotation{…}) is not done at all.
 6. With the older bibliography system, footnotes in citations in
quotation blocks do not cause a halt in compilation.
 7. With the older bibliography system, item 3 is still a problem,
that is, method=font appears to be inimical to the left, right,
and middle options for \startblockquotation without regard to the
bibliography system in use.

Further testing shows that the failure to compile issue (#1 and #2 
above) is tied to processing @ARTICLE bib entries. The failure occurs in 
and out of footnotes and startquotation blocks. I really was too deep 
into a wrong view of the problem to see that before. That is pretty 
clearly a bug.


The issue with method=font and left, right, middle (#3, #4, #5 above) is 
still problematic. This is not tied to the bibliography system.


--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] New btx code problem with quote protrusion, redux

2015-10-23 Thread Rik Kabel
At Wolfgang’s request, a new thread for this subject. I have cleaned up 
the example from the July 5 posting, but the problems are the same as 
shown there. In July Alan suggested that there might a bug here, but 
nothing has been done to address it since then. Wolfgang suggested 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg35580.html) that 
method=font is required for proper protrusion handling for quotations.


1. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is //no citation//in a footnote within a startquotation
   block and a bibliography is produced/, compilation proceeds normally.
2. When \setupdelimitedtext[quotation][method=font] is present /and
   //there is a citation//in a footnote within a startquotation block
   and a bibliography is produced,/ the compilation complains of a
   missing right curly. When allowed to continue to completion the
   protrusion for the opening quotation marks does not match the
   protrusion for similar marks not produced through \startquotation.
   Citations in footnotes outside quotation blocks are not a problem.
   Without a bibliography (\placelistofpublications)
3. When \setupdelimitedtext[quotation][method=font] is present, the
   [right] option of \startblockquotation is treated as text within the
   quotation. This can be resolved by adding “leftmargin=” to the
   \setupdelimitedtext[quotation] command (but that complicates matters
   when you want other alignments). Similarly, the [left] and [middle]
   options are ignored as options and appear as text.
4. When “method=font” is not present, protrusion for block quotations
   (\startblockquotation … \stopblockquotation) is greater than and not
   aligned with other protrusion.
5. When “method=font” is not present, protrusion for non-block
   quotations (\quotation{…}) is not done at all.
6. With the older bibliography system, footnotes in citations in
   quotation blocks do not cause a halt in compilation.
7. With the older bibliography system, item 3 is still a problem, that
   is, method=font appears to be inimical to the left, right, and
   middle options for \startblockquotation without regard to the
   bibliography system in use.


\showframe

\definefontfeature [default][protrusion=quality]
\setupalign[hz,hanging]

% The next line should allow \startquotation to protrude quotes properly
\setupdelimitedtext[quotation][method=font]

%==
% For testing with old regime, enable next and disable following
%\setupbibtex[database=sample.bib] % requires sample.bib in current 
directory

%--
% For testing with new regime, disable above and enable following
\definebtxdataset  [sample] % finds and uses distribution sample.bib
\usebtxdataset [sample.bib]
%==

\starttext
\startparagraph
  There is a citation in the footnote to this standard 
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}

\stopparagraph

\startparagraph
\startquotation[right]
  There is a citation in the footnote to this block 
quotation\footnote{This footnote has a citation \cite[hh2010a].}

\stopquotation
\stopparagraph

\startparagraph
\startquotation[right]
  There is no citation in the footnote to this block 
quotation\footnote{This footnote has no citation.}

\stopquotation
\stopparagraph

\startparagraph
  \quotation{There is a citation in the footnote to this non-block 
quotation paragraph\footnote{This footnote has a citation 
\cite[Eijkhout1991].}}

\stopparagraph

\startparagraph
  \quotation{There is no citation in the footnote to this non-block 
quotation paragraph\footnote{This footnote has no citation.}}

\stopparagraph

\startparagraph
  “There is a citation in the footnote to this standard 
paragraph\footnote{This footnote has a citation \cite[Eijkhout1991].}”

\stopparagraph

\startparagraph
  “There is no citation in the footnote to this standard 
paragraph\footnote{This footnote has no citation.}”

\stopparagraph

\blank[big]

%==
% For testing with old regime, enable next and disable following
%\placepublications
%--
% For testing with new regime, disable above and enable following
\placelistofpublications
%==

\stoptext

--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion

2015-10-22 Thread Rik Kabel

On 2015-07-05 19:21, Alan BRASLAU wrote:
On Sun, 5 Jul 2015 18:52:40 -0400  > Rik Kabel  wrote: > >> Is this a bug, 
or simply something not yet ready with the new regime, >> or am I doing 
something wrong? > > This looks like a bug/interference in a situation 
that was not tested... > > Alan > 
___ 
> 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://tex.aanhet.net > archive : 
http://foundry.supelec.fr/projects/contextrev/ > wiki : 
http://contextgarden.net > 
___ 
> This is still a problem. Is it a bug that will be addressed, or is 
the fix coming with a new release of the new bibliography system, or is 
it something that has to be worked around?


I also note that the method=font option for \setupdelimited text appears 
to be incompatible with the left option for \startquotation. The 
document compiles, but [left] appears as part of the text and is not 
acted on (and similarly for right and middle).


--
Ri
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] New btx code problem with quote protrusion

2015-07-05 Thread Rik Kabel

List folk:

In the MWE below, everything builds cleanly if the \setupdelimitedtext 
line is removed. With it removed, however, quote marks protrusion looks 
poor when nearby quote marks in non-quotation text is allowed to 
protrude. The happens when there is a citation in a footnote in the 
quoted text.


Is this a bug, or simply something not yet ready with the new regime, or 
am I doing something wrong?


   % The next line should allow \startquotation to protrude quotes
   \setupdelimitedtext[quotation][method=font]
   % However, it causes the new bib code to fail when there is a
   %   footnote containing a citation in the quote. See
   % http://www.mail-archive.com/ntg-context@ntg.nl/msg35580.html
   \definefontfeature [default][protrusion=quality]
   \setupalign[hz,hanging]
   \usebtxdataset [xx.bib]
   \starttext
   \startparagraph\noindent
  There is a citation in the footnote to this standard
   paragraph\footnote{This footnote has a citation \cite[One].}
   \stopparagraph
   \startquotation[right]
  There is a citation in the footnote to this block
   quotation\footnote{This footnote has a citation \cite[Two].}
   \stopquotation
   \startparagraph\noindent
   “There is a citation in the footnote to this standard
   paragraph\footnote{This footnote has a citation \cite[One].}”
   \stopparagraph
   \placelistofpublications
   \stoptext

And the corresponding xx.bib file:

   @BOOK{One,
  author   = {A. N. Author},
  title= {A Book Title},
  year = {2017},
  publisher= {Self},
  address  = {sine loco},
   }

   @ARTICLE{Two,
  author   = {N. O. Author},
  title= {A Pipe},
  journal  = {The Journal},
  year = {2018},
  volume   = {32},
  number   = {3},
  pages= {42--69},
   }

--
Rik Kabel


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New btx code problem with quote protrusion

2015-07-05 Thread Alan BRASLAU
On Sun, 5 Jul 2015 18:52:40 -0400
Rik Kabel cont...@rik.users.panix.com wrote:

 Is this a bug, or simply something not yet ready with the new regime,
 or am I doing something wrong?

This looks like a bug/interference in a situation that was not tested...

Alan
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___