Re: [NTG-context] bug in latest beta (2014-05-30 18:07)

2014-05-31 Thread Pablo Rodriguez
On 05/31/2014 12:28 AM, Hans Hagen wrote:
 On 5/30/2014 7:33 PM, Pablo Rodriguez wrote:
 Hans,

 I’m afraid that the latest beta contains a bug that prevents the
 compilation of any document.

 Error is the following (complete log available at
 http://www.ousia.tk/nocache.log):

 Ouch---my internal constants have been clobbered! ---case 1
 mtx-context | fatal error: return code: 1

 Could you fix it?
 
 hm, weird, works here ... anyway, i added some extra safeguards, so 
 check the next beta

Many thanks for the fix, Hans. It works fine now.

BTW, may I remind you of this already reported bug:
http://www.ntg.nl/pipermail/ntg-context/2014/077280.html?

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


[NTG-context] bug in \setuptagging?

2014-05-31 Thread Pablo Rodriguez
Dear list

I experience weird results with latest beta (2014.05.30 23:26).

Here is the sample:

\setuppapersize[A6]
\setuptagging[state=start]
\setuptyping[margin=yes,align={right,broad}]
\starttext
\starttyping
\setuptyping[margin=yes, align={right,broad}]
\stoptyping
\stoptext

If I disable \setuptagging, output is fine. But with \setuptagging
enabled, the typing environment doesn’t display multiple lines.

Am I doing something wrong or have I hit 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in \setuptagging?

2014-05-31 Thread Pablo Rodriguez
On 05/31/2014 12:49 PM, Hans Hagen wrote:
 On 5/31/2014 8:30 AM, Pablo Rodriguez wrote:
 [...]
 If I disable \setuptagging, output is fine. But with \setuptagging
 enabled, the typing environment doesn’t display multiple lines.

 Am I doing something wrong or have I hit a bug?
 
 The space in verbatim is defined differently because otherwise it can 
 get lost in the export; you can experiment with:
 
 \appendtoks
  \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}%
 \to \everyenableelements

Many thanks for your reply, Hans.

I’m afraid I cannot make it work even with the minimal sample:

\setuppapersize[A6]
\setuptagging[state=start]
\setuptyping[margin=yes,align={right,broad}]
\appendtoks
 \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip%
   \zeropoint}%
\to \everyenableelements
\starttext
\starttyping
\setuptyping[margin=yes, align={right,broad}]
\stoptyping
\stoptext

Since I’m not familiar with \appendtoks, I don’t know whether I applied
it right.

Is your code applied right in the sample above?

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


Re: [NTG-context] bug in \setuptagging?

2014-05-31 Thread Wolfgang Schuster

Am 31.05.2014 um 13:37 schrieb Pablo Rodriguez oi...@gmx.es:

 On 05/31/2014 12:49 PM, Hans Hagen wrote:
 On 5/31/2014 8:30 AM, Pablo Rodriguez wrote:
 [...]
 If I disable \setuptagging, output is fine. But with \setuptagging
 enabled, the typing environment doesn’t display multiple lines.
 
 Am I doing something wrong or have I hit a bug?
 
 The space in verbatim is defined differently because otherwise it can 
 get lost in the export; you can experiment with:
 
 \appendtoks
 \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}%
 \to \everyenableelements
 
 Many thanks for your reply, Hans.
 
 I’m afraid I cannot make it work even with the minimal sample:
 
\setuppapersize[A6]
\setuptagging[state=start]
\setuptyping[margin=yes,align={right,broad}]
\appendtoks
 \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip%
   \zeropoint}%
\to \everyenableelements
\starttext
\starttyping
\setuptyping[margin=yes, align={right,broad}]
\stoptyping
\stoptext
 
 Since I’m not familiar with \appendtoks, I don’t know whether I applied
 it right.
 
 Is your code applied right in the sample above?

1. I think you have to redefined the \doverbatimspace command.

\appendtoks
   \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}%
\to \everyenableelements

2. You have to put this code block *before* \setuptagging.

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] bug in \setuptagging?

2014-05-31 Thread Pablo Rodriguez
On 05/31/2014 02:20 PM, Wolfgang Schuster wrote:
 1. I think you have to redefined the \doverbatimspace command.
 
 \appendtoks
\unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}%
 \to \everyenableelements
 
 2. You have to put this code block *before* \setuptagging.

Many thanks for your fast reply, Wolfgang.

I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to
compile the source):

\appendtoks
   \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}%
\to \everyenableelements
\setuptagging[state=start]

\starttext
\starttyping
index 2d5ce1e..7a9f279 100644
\stoptyping
\stoptext

It is a sample from an introduction to git (it took me a while to find
it in a +250-page book).

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


Re: [NTG-context] bug in \setuptagging?

2014-05-31 Thread Wolfgang Schuster

Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez oi...@gmx.es:

 On 05/31/2014 02:20 PM, Wolfgang Schuster wrote:
 1. I think you have to redefined the \doverbatimspace command.
 
 \appendtoks
   \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}%
 \to \everyenableelements
 
 2. You have to put this code block *before* \setuptagging.
 
 Many thanks for your fast reply, Wolfgang.
 
 I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to
 compile the source):
 
 \appendtoks
   \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}%
 \to \everyenableelements

Why did you change the definition for \doverbatimspace?

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] bug in \setuptagging?

2014-05-31 Thread Pablo Rodriguez
On 05/31/2014 06:17 PM, Wolfgang Schuster:
 Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez:
 Many thanks for your fast reply, Wolfgang.

 I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to
 compile the source):

 \appendtoks
   \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}%
 \to \everyenableelements
 
 Why did you change the definition for \doverbatimspace?

I tried to force a one space indent for wrapped lines.

I thought I was totally harmless. I see I was wrong.

What I cannot understand is which text crashes the redefined
\doverbatimspace.

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


Re: [NTG-context] Character and word spacing

2014-05-31 Thread Hans Hagen

On 5/31/2014 4:14 PM, Rik Kabel wrote:


My issue with Dowding (and with Gill) is that they suggest that the compositor
has an obligation to change the author's text, without consultation and
agreement, in order to meet his concept of better page makeup. Dowding's
sensitivity to the appearance of the page, on the other hand, is sadly missing
from much of book publishing today.


Long ago I have been thinking of improving some \oneof {bad} 
{suboptimal} paragraphs by applying 'alternative' words, i.e. one could 
\optional {for instance} write like this.



Gross manipulation of the space factors is probably too crude to accomplish much
in implementing the style Dowding promotes, although the tightness in the second
tufte from your example (modifying the punctuation) may be a starting point.

With XeTeX, one can use \interchartoks to handle general (non-font-specific)
kerning between punctuation and certain letter shapes (sloped left or right,
ascender, descender, ...) beyond what any particular font's kerning tables
provide. I see nothing in MKIV that provides this, and thought that perhaps
\definecharacterspacing might fill the role. Hence the original question in this
thread.


you can play with (subtle) expansion (hz) and specific stretch vectors 
.. imo kerning other than what the font designer has in mind is normally 
a bad idea; another option is to use a font with different glyphs for 
the same character but I don't know of such fonts


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
___


[NTG-context] bugs in page break (relevant for TeX Live 2014)

2014-05-31 Thread Pablo Rodriguez
Dear Hans,

there is a wrong page break introduced in the stable version intended
for TeX Live 2014.

Here you have the sample that shows the issue:

\showframe\showgrid
\setupbodyfont[pagella,15pt]

\starttext
\chapter{Chapter title}
\section{Section title}
\dorecurse{140}{Sentence. }
\subsection{Subsection title}
This is another line.
\stoptext

Page break is wrong when \subsection is active or replaced with
\subsubsection. Page break is right when \subsection is disabled or
replaced with \section.

By the way, I experience another page break with lists (I guess it was
introduced with the same beta as above, but I’m not sure).

Here is the sample:

\showframe\showgrid
\setupbodyfont[pagella,15pt]
\starttext
\chapter{Chapter title}
\section{Section title}
\dorecurse{140}{Sentence. }

\startitemize
\dorecurse{4}{\item This is an item.\par}
\stopitemize
\stoptext

Page break above is wrong when recursion is over 2.

Could you fix these wrong page breaks?

I think both fixes should be included in TeX Live 2014.

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