all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Werner LEMBERG <wl@gnu.org>
To: juri@jurta.org
Cc: emacs-devel@gnu.org
Subject: Re: off-topic: Conversion multi-line diff to single-line
Date: Sat, 03 Sep 2011 12:28:39 +0200 (CEST)	[thread overview]
Message-ID: <20110903.122839.261840866.wl@gnu.org> (raw)
In-Reply-To: <87zkim7zgj.fsf@mail.jurta.org>

>> 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	other threads:[~2011-09-03 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29  5:39 off-topic: Conversion multi-line diff to single-line Werner LEMBERG
2011-08-29 16:08 ` Stefan Monnier
2011-08-29 21:04 ` Juri Linkov
2011-09-03  6:38   ` Werner LEMBERG
2011-09-03  9:42     ` Juri Linkov
2011-09-03 10:28       ` Werner LEMBERG [this message]

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=20110903.122839.261840866.wl@gnu.org \
    --to=wl@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.