emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: off-topic: Conversion multi-line diff to single-line


From: Werner LEMBERG
Subject: Re: off-topic: Conversion multi-line diff to single-line
Date: Sat, 03 Sep 2011 12:28:39 +0200 (CEST)

>> Note that you can get output like this
>>
>>        > foo1
>>        > foo2
>>        > foo3
>>        > foo4
>>   bar1 <
>>   bar2 <
>>   bar3 <
>>
>> which is no longer trivial to convert.
> 
> I don't know what kind of input can produce such an output.

:-)  Here an example:

  Ab-na-be-lungs|pro-zeß   | Ab-na-be-lungs|pro-zess
  Ab·neh·mer·in.du·strie   | Ab·neh·mer·in.dus·trie
  Ab·neh·mer·in.du·stri·en | Ab·neh·mer·in.dus·tri·en
                           > ab-ni-cken
                           > Ab-ni-ckens
                           > Ab-ni-cker
                           > Ab-ni-ckern
  ab·ni{ck/k·k}en          <
  Ab·ni{ck/k·k}ens         <
  Ab·ni{ck/k·k}er          <
  Ab·ni{ck/k·k}ern         <
  ab-nor-mal-ste           | ab-nor-mals-te   
  ab-nor-mal-stem          | ab-nor-mals-tem
  ab-nor-mal-sten          | ab-nor-mals-ten

I suppose that `diff' is doing this if the lines are too different,
according to a certain built-in algorithm.

BTW, I also have this:

  ab·pa{ck/k·k}en          | ab-pa-cken
  Ab·pa{ck/k·k}er          | Ab-pa-cker
  Ab·pa{ck/k·k}ung         <
  Ab·pa{ck/k·k}un·gen      <
                           > Ab-pa-ckung
                           > Ab-pa-ckun-gen
  ab-paßt                  | ab-passt
  ab-paß-te                | ab-pass-te

(this is, first lines with < and then lines with >).


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]