From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30041 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: visualising evolution from one version to another Date: Sun, 6 Aug 2006 16:34:57 +0200 (CEST) Message-ID: References: <44D5BDC1.5090100@elvenkind.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154876950 26880 80.91.229.2 (6 Aug 2006 15:09:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2006 15:09:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 06 17:09:08 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G9kFY-0005dW-0E for gctc-ntg-context-518@m.gmane.org; Sun, 06 Aug 2006 17:09:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 355891FF46; Sun, 6 Aug 2006 17:09:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22135-06-3; Sun, 6 Aug 2006 17:09:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC29B1FE5D; Sun, 6 Aug 2006 16:36:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50FA21FE5D for ; Sun, 6 Aug 2006 16:36:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21525-01-2 for ; Sun, 6 Aug 2006 16:35:59 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id DF2E61FE55 for ; Sun, 6 Aug 2006 16:35:59 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.236.134]) by smtp.cegetel.net (Postfix) with ESMTP id E87031A4080 for ; Sun, 6 Aug 2006 16:35:58 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id 13E8C13C098; Sun, 6 Aug 2006 16:34:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id 353E5148016 for ; Sun, 6 Aug 2006 16:34:57 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: mailing list for ConTeXt users In-Reply-To: <44D5BDC1.5090100@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30041 Archived-At: On Sun, 6 Aug 2006, Taco Hoekwater wrote: > You need a way to create a merged ConTeXt document from the two separate > files, perhaps using something like this: > > http://search.cpan.org/dist/Text-WordDiff/lib/Text/WordDiff.pm Thank you for this hint! It's exactly what I need. I've also found a shell version: "wdiff" But I still have one problem: I can't have a paragraph in \overstrikes. Is there perhaps something like \startoverstrikes ... \stopoverstrikes ? Here is a little script, to show what I'm doing now: #!/bin/bash OLD="$1" NEW="$2" OUT="$3" shift 3 echo '\setupcolors[state=start]' >"$OUT.tex" echo '\long\def\startDeleted*#1\stopDeleted*{\overstrikes{#1}}' >>"$OUT.tex" echo '\long\def\startAdded*#1\stopAdded*{\startcolor[blue]#1\stopcolor}' \ >>"$OUT.tex" wdiff -w '\startDeleted*' -x '\stopDeleted*' \ -y '\startAdded*' -z '\stopAdded*' "$OLD" "$NEW" >>"$OUT.tex" texexec "$@" "$OUT" Cheers, Peter -- http://pmrb.free.fr/contact/