* tip
@ 2021-06-15 18:25 Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2021-06-15 18:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
When checking soem code I saw this (again):
\definecolor[MyColor][t=.5,a=1,r=.5]
\hpack\bgroup
\framed[framecolor=MyColor,frame=on] {!!!!!!!!}
\framed[framecolor=MyColor,frame=closed]{!!!!!!!!}
\framed[framecolor=MyColor,frame=small] {!!!!!!!!}
\egroup
Just in case someone needs these subtle differerences (and then is
doomed to wikify it).
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tip
2016-02-16 16:18 ` tip Hans Hagen
@ 2016-02-16 23:46 ` Rik Kabel
0 siblings, 0 replies; 8+ messages in thread
From: Rik Kabel @ 2016-02-16 23:46 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 960 bytes --]
On 2016-02-16 11:18, Hans Hagen wrote:
> On 2/16/2016 4:23 PM, Alan BRASLAU wrote:
>> On Tue, 16 Feb 2016 11:30:50 +0100
>> Hans Hagen <pragma@wxs.nl> wrote:
>>
>>> Can we get a guide?
>>>
>>> some day ... but your observations are quite ok ...
>>
>> You could Wikify it! ;-)
>
> Me? Rik you mean ...
>
> Hans (too busy with other manuals)
>
>
Done.
I updated the description at Command/enabletrackers
<http://wiki.contextgarden.net/Command/enabletrackers> and added two
pages, Trackers/typesetters.suspects
<http://wiki.contextgarden.net/Trackers/typesetters.suspects> and
Trackers/visualizers.justification
<http://wiki.contextgarden.net/Trackers/visualizers.justification>. I am
not well-versed in the structure of the wiki, so perhaps others can add
appropriate decorations to the new pages, and move the new pages if they
belong elsewhere. Others might also be interested in adding
documentation for other trackers in that hierarchy.
--
rik
[-- Attachment #1.2: Type: text/html, Size: 1781 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tip
2016-02-16 15:23 ` tip Alan BRASLAU
@ 2016-02-16 16:18 ` Hans Hagen
2016-02-16 23:46 ` tip Rik Kabel
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-02-16 16:18 UTC (permalink / raw)
To: ntg-context
On 2/16/2016 4:23 PM, Alan BRASLAU wrote:
> On Tue, 16 Feb 2016 11:30:50 +0100
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> Can we get a guide?
>>
>> some day ... but your observations are quite ok ...
>
> You could Wikify it! ;-)
Me? Rik you mean ...
Hans (too busy with other manuals)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tip
2016-02-16 10:30 ` tip Hans Hagen
@ 2016-02-16 15:23 ` Alan BRASLAU
2016-02-16 16:18 ` tip Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Alan BRASLAU @ 2016-02-16 15:23 UTC (permalink / raw)
To: Rik Kabel; +Cc: ntg-context
On Tue, 16 Feb 2016 11:30:50 +0100
Hans Hagen <pragma@wxs.nl> wrote:
> Can we get a guide?
>
> some day ... but your observations are quite ok ...
You could Wikify it! ;-)
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tip
2016-02-16 2:52 ` tip Rik Kabel
@ 2016-02-16 10:30 ` Hans Hagen
2016-02-16 15:23 ` tip Alan BRASLAU
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-02-16 10:30 UTC (permalink / raw)
To: ntg-context
On 2/16/2016 3:52 AM, Rik Kabel wrote:
> On 2016-02-15 04:56, Hans Hagen wrote:
>> Hi,
>>
>> There are quite some probably unknown features in context, here are two:
>>
>> \enabletrackers[visualizers.justification] % overfull/underfull
>> \enabletrackers[typesetters.suspects] % suspicious spacing
>>
>> \setuplayout[width=3mm] \showframe
>>
>> \starttext
>>
>> \hsize 3mm
>>
>> xxxxxxxxxxxxxxxxxxxxxxx
>> xxxx
>> x
>>
>> $x$x
>>
>> x:$x$
>>
>> \stoptext
>>
> Interesting stuff. Can you point to or provide documentation on the
> meaning of the hbar colors? (I did try to follow the code, but could not
> make sense of it.)
>
> With visualizers.justification, I see:
>
> * green
> o after loose text?
> * blue
> o in margin after tight text?
these are the bad ones
can also become red when no stretch/shrink permitted
> * yellow
> o around centering text
> * cyan
> o before flush-right text?
> * magenta
> o after flush-left text?
these are suboptimal ones (often harmless) .. the color reflects the
flush mode
> It is not clear what these all mean (except the yellow). What is the
> difference between magenta and green (I see both in tables and some
> column-set paragraphs)? What is the difference between green and blue?
> Does green show how close to needing intraword space compression while
> blue indicates the degree of compression that was done?
green is used with normal justification
> With typesetters.suspects, I see
>
> * orange with
> o required space (*~*)
> o occasionally between words where no markup appeared (could this
> flag a small word space?)
they normally reflect those invisible spacing characters being used (non
break space and so)
> * maroon with
> o *’* preceded by whitespace as with the contraction /’tis/
> o *»* preceded by whitespace as an opening quotation mark for German
> * blue with
> o most punctuation, but not *]* or *)*, when at paragraph end or
> not followed by whitespace
> o some punctuation (*@ # & % *** / …***·* *and others) at any
> position
> o *.* preceding a character other than *]*
> o *.* preceding *\,*
> o some asterisms ⁂ (the second and third when three spaced are
> used as a break)
> * green with
> o ς directly preceding another letter (perhaps other terminal
> characters, my sample only has this)
> o digit preceding *,* in index
> o italic letter preceding or following an upright character
> o small-cap letter preceding or following a non-whitespace character
>
> There are some obvious patterns here (font style transitions, for
> example) but the logic some seems less clear. Can we get a guide?
some day ... but your observations are quite ok ... the colors are
chosen to make sure they don't collapse too much
it's something we use in automated workflows involving thousands of xml
files coming from repositories so that a quick visual check of what can
be wrong is needed (much involves spacing as that is what often gets
messed up in the xml editors / converters / tools that are used at the
publishers / editors end)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tip
2016-02-15 9:56 tip Hans Hagen
@ 2016-02-16 2:52 ` Rik Kabel
2016-02-16 10:30 ` tip Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Rik Kabel @ 2016-02-16 2:52 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2421 bytes --]
On 2016-02-15 04:56, Hans Hagen wrote:
> Hi,
>
> There are quite some probably unknown features in context, here are two:
>
> \enabletrackers[visualizers.justification] % overfull/underfull
> \enabletrackers[typesetters.suspects] % suspicious spacing
>
> \setuplayout[width=3mm] \showframe
>
> \starttext
>
> \hsize 3mm
>
> xxxxxxxxxxxxxxxxxxxxxxx
> xxxx
> x
>
> $x$x
>
> x:$x$
>
> \stoptext
>
Interesting stuff. Can you point to or provide documentation on the
meaning of the hbar colors? (I did try to follow the code, but could not
make sense of it.)
With visualizers.justification, I see:
* green
o after loose text?
* blue
o in margin after tight text?
* yellow
o around centering text
* cyan
o before flush-right text?
* magenta
o after flush-left text?
It is not clear what these all mean (except the yellow). What is the
difference between magenta and green (I see both in tables and some
column-set paragraphs)? What is the difference between green and blue?
Does green show how close to needing intraword space compression while
blue indicates the degree of compression that was done?
With typesetters.suspects, I see
* orange with
o required space (*~*)
o occasionally between words where no markup appeared (could this
flag a small word space?)
* maroon with
o *’* preceded by whitespace as with the contraction /’tis/
o *»* preceded by whitespace as an opening quotation mark for German
* blue with
o most punctuation, but not *]* or *)*, when at paragraph end or
not followed by whitespace
o some punctuation (*@ # & % *** / …***·* *and others) at any
position
o *.* preceding a character other than *]*
o *.* preceding *\,*
o some asterisms ⁂ (the second and third when three spaced are
used as a break)
* green with
o ς directly preceding another letter (perhaps other terminal
characters, my sample only has this)
o digit preceding *,* in index
o italic letter preceding or following an upright character
o small-cap letter preceding or following a non-whitespace character
There are some obvious patterns here (font style transitions, for
example) but the logic some seems less clear. Can we get a guide?
--
rik
[-- Attachment #1.2: Type: text/html, Size: 3951 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* tip
@ 2016-02-15 9:56 Hans Hagen
2016-02-16 2:52 ` tip Rik Kabel
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-02-15 9:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
There are quite some probably unknown features in context, here are two:
\enabletrackers[visualizers.justification] % overfull/underfull
\enabletrackers[typesetters.suspects] % suspicious spacing
\setuplayout[width=3mm] \showframe
\starttext
\hsize 3mm
xxxxxxxxxxxxxxxxxxxxxxx
xxxx
x
$x$x
x:$x$
\stoptext
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* tip
@ 2003-02-08 21:51 Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2003-02-08 21:51 UTC (permalink / raw)
Hi
\def\bTN#1\eTN{\bTD\digits#1\relax\eTD} % will be in next release
will give you digit alignment
\bTABLE
\bTR\bTD one \eTD\bTN ~25,== \eTN\bTN ~~0,00 \eTN\eTR
\bTR\bTD two \eTD\bTN 125,-- \eTN\bTN `00,00 \eTN\eTR
\eTABLE
see supp-num.tex
%D \starttabulatie[|l|l|l|]
%D \NC \type{.} \NC , . \NC comma or period \NC \NR
%D \NC \type{,} \NC , . \NC comma or period \NC \NR
%D \NC \type{@} \NC \NC invisible space \NC \NR
%D \NC \type{_} \NC \NC invisible space \NC \NR
%D \NC \type{/} \NC \NC invisible sign \NC \NR
%D \NC \type{-} \NC $-$ \NC minus sign \NC \NR
%D \NC \type{+} \NC $+$ \NC plus sign \NC \NR
%D \NC \type{s} \NC \NC invisible high sign \NC \NR
%D \NC \type{p} \NC $\positive$ \NC high plus sign \NC \NR
%D \NC \type{m} \NC $\negative$ \NC high minus sign \NC \NR
%D \NC \type{n} \NC $\negative$ \NC high minus (negative) sign \NC \NR
%D \NC \type{=} \NC $\zeroamount$ \NC zero padding \NC \NR
%D \stoptabulatie
other alignments are discussed there
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-06-15 18:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 18:25 tip Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2016-02-15 9:56 tip Hans Hagen
2016-02-16 2:52 ` tip Rik Kabel
2016-02-16 10:30 ` tip Hans Hagen
2016-02-16 15:23 ` tip Alan BRASLAU
2016-02-16 16:18 ` tip Hans Hagen
2016-02-16 23:46 ` tip Rik Kabel
2003-02-08 21:51 tip Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).