Dear list,

I have the following sample:

  \setuppapersize[A7]
  \starttext
  \definecolumnset
    [paral]
    [n=2]

  \definesubcolumnset[paral][1][1]
  \definesubcolumnset[paral][2][2]

  \startcolumnset[paral]
     \startsubcolumnset[1]
         abce
     \stopsubcolumnset
     \startsubcolumnset[2]
         abcd
     \stopsubcolumnset
     \flushsubcolumnsets[spread]
     \startsubcolumnset[1]
         abc%
         \inframed
            [background=color,
             backgroundcolor=lightgreen,
             frame=off]
          {e}
     \stopsubcolumnset
     \startsubcolumnset[2]
         abc%
         \inframed
            [background=color,
             backgroundcolor=lightred,
             frame=off]
          {d}
     \stopsubcolumnset
     \flushsubcolumnsets[spread]
  \stopcolumnset
  \stoptext

What I want to achieve is automatic text comparison between versions of
the same text (in different subcolumnsets).

The first line shows different versions text. I wonder whether there
would be an automatic way to get the \inframed highlighting with any
character that differs from the other column (it might be different, or
just missing or being added).

I think this may be possible with ConTeXt, but I don’t know how to
achieve it automagically.

Any ideas on how to get this automatic text comparison?

Many thanks in advance,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to