From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42608 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: Highlight changes Date: Sat, 19 Jul 2008 17:52:31 +0200 Message-ID: <20080719155231.GA30014@gaston.couberia.bzh> References: <87tzer0ylk.fsf@cordelia.devereux.me.uk> <20080715195514.GA20338@gaston.couberia.bzh> <877ibior07.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jI8keyz6grp/JLjh" X-Trace: ger.gmane.org 1216482850 9498 80.91.229.12 (19 Jul 2008 15:54:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 15:54:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 19 17:54:59 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1KKEls-00008F-37 for gctc-ntg-context-518@m.gmane.org; Sat, 19 Jul 2008 17:54:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 884F41FC74; Sat, 19 Jul 2008 17:54:00 +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 12265-01-4; Sat, 19 Jul 2008 17:53:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 431021FC45; Sat, 19 Jul 2008 17:53:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D1C511FC43 for ; Sat, 19 Jul 2008 17:53:08 +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 12265-01-3 for ; Sat, 19 Jul 2008 17:52:32 +0200 (CEST) Original-Received: from smtp23.orange.fr (smtp23.orange.fr [193.252.22.126]) by ronja.ntg.nl (Postfix) with ESMTP id B64CB1FC45 for ; Sat, 19 Jul 2008 17:52:32 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2323.orange.fr (SMTP Server) with ESMTP id 23DB7700008B for ; Sat, 19 Jul 2008 17:52:32 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-256-1-159-119.w86-195.abo.wanadoo.fr [86.195.102.119]) by mwinf2323.orange.fr (SMTP Server) with ESMTP id ECC457000087 for ; Sat, 19 Jul 2008 17:52:31 +0200 (CEST) X-ME-UUID: 20080719155231969.ECC457000087@mwinf2323.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 049E1307F1; Sat, 19 Jul 2008 17:52:31 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <877ibior07.fsf@cordelia.devereux.me.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:42608 Archived-At: --jI8keyz6grp/JLjh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Jul 18 2008, John Devereux wrote: > Thanks, but this (your shell script) did not work well for me - there > seem to be too many cases where the diff produces invalid tex > code. Did you ever make an extended one? Yes. It's attached. Cheers, Peter -- http://pmrb.free.fr/contact/ --jI8keyz6grp/JLjh Content-Type: application/x-shellscript Content-Disposition: attachment; filename="typeset-diff.sh" Content-Transfer-Encoding: quoted-printable #!/bin/bash=0AOLD=3D"$1.tex"=0ANEW=3D"$2.tex"=0AOUT=3D"$3"=0Ashift 3=0Aif [= -z "$EDITOR" ]; then=0A EDITOR=3Demacs=0Afi=0Aecho '\setupcolors[state=3Ds= tart]' >"$OUT.tex"=0Aecho '\long\def\startDeleted*#1\stopDeleted*{%=0A \ov= erstrikes{\startcolor[red]#1\stopcolor}}' >>"$OUT.tex"=0Aecho '\long\def\st= artAdded*#1\stopAdded*{\startcolor[blue]#1\stopcolor}' \=0A >>"$OUT.tex"=0A= wdiff -w '\startDeleted*' -x '\stopDeleted*' \=0A -y '\startAdded*' -z '\st= opAdded*' "$OLD" "$NEW" >>"$OUT.tex"=0Aecho Starting editor, so you can man= ually improve the ConTeXt source.=0A$EDITOR "$OUT.tex"=0Atexexec "$@" "$OUT= "=0A --jI8keyz6grp/JLjh Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --jI8keyz6grp/JLjh--