ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Marco Pessotto <melmothx@gmail.com>
Subject: Re: ConTeXt unofficial test suite stub
Date: Wed, 17 Oct 2012 19:05:24 +0200	[thread overview]
Message-ID: <507EE554.4060706@wxs.nl> (raw)
In-Reply-To: <87y5j52g0r.fsf@universe.krase.net>

On 17-10-2012 18:57, Marco Pessotto wrote:
> Marco Patzer <homerow@lavabit.com> writes:
>
>>> Looking at the diffs, many of the differences are really tiny, but
>>> differences exist nevertheless. It will take me some time to sort out
>>> which ones are just tiny space shifting, and which ones give really
>>> different output.
>>
>> That's why I use a header for each test file. You can specify
>> “sensitivity=low|medium|high”, this sets a predefined tolerance for
>> the page difference. I don't see any other option. There is no
>> single value which is sensitive enough, for instance to detect if a
>> footnote is subscripted or not and at the same time tolerant enough
>> not to always mark a fifty page document as “failed”.
>
> I'm not sure that exists a “fuzzy” algorithm for the tolerance. From my
> testing, a minimal shift, say, to the right, on a full page will
> generate a lot of noise, because each glyph will be “doubled”. I'm
> generating, with the visual diffs, a script to launch two PDF viewers and
> eventually promote the generated to the new reference.
>
> I guess there is no shortcuts to the manual ispection of the diffs.

vertical shifts are probably more an issue; for horizontal shifts you 
can use a threshold of .1em because that catches spaces and distances 
etc but ignores differences in 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
___________________________________________________________________________________

  reply	other threads:[~2012-10-17 17:05 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-07 10:43 Marco Pessotto
2012-10-16 22:14 ` Aditya Mahajan
2012-10-17  6:44   ` Marco Pessotto
2012-10-17  6:55     ` luigi scarso
2012-10-17  7:27       ` Marco Pessotto
2012-10-17 10:12         ` luigi scarso
2012-10-17 11:27           ` Marco Pessotto
2012-10-17 12:06             ` Marco Patzer
2012-10-17 16:57               ` Marco Pessotto
2012-10-17 17:05                 ` Hans Hagen [this message]
2012-10-17 17:58                   ` Marco Pessotto
2012-10-17 18:08                     ` Marco Patzer
2012-10-17 18:54                       ` Hans Hagen
2012-10-17 19:30                         ` Marco Pessotto
2012-10-17 20:52                           ` Hans Hagen
2012-10-17 21:58                             ` ConTeXt unofficial test suite stub (chemistry) Alan BRASLAU
2012-10-17 22:20                               ` Romain Diss
2012-10-18  7:17                                 ` Alan BRASLAU
2012-10-18  8:29                                 ` Hans Hagen
2012-10-18  8:41                                 ` Sietse Brouwer
2012-10-18  9:42                                   ` Alan BRASLAU
2012-10-18 12:21                                     ` Romain Diss
2012-10-18 17:14                                     ` Sietse Brouwer
2012-10-18 12:12                                   ` Romain Diss
2012-10-17 19:31                       ` ConTeXt unofficial test suite stub Hans Hagen
2012-10-17 18:49                     ` Hans Hagen
2012-10-17  7:41   ` Marco Patzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=507EE554.4060706@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=melmothx@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).