News for hackers. Stuff that matters.
Re: I'm Building a GitHub for Writers by bliker on Thursday August 29, 2013 @12:40PM (#6296818)
How are you solving the diff problem? Word based diffs tend to be jumpy and hard to follow. On the other hand line based diffs do not work well for text (prose).
Re: I'm Building a GitHub for Writers by guynamedloren on Thursday August 29, 2013 @12:44PM (#6296854)
Yeah, prose.io uses word diffs and it's definitely hard to follow.

I'm doing 'fragment diffs' (doesn't really have a name) - but basically, all the text is displayed as you would read it (sentences and paragraphs), with diffs displayed inline and colored. Added content in green, removed content in red - doesn't matter if it's characters/words/sentences/paragraphs - it all works.

Screenshot is not the best, but something like this:

http://www.flickr.com/photos/madebyloren/9620674181/

Re: I'm Building a GitHub for Writers by philsnow on Thursday August 29, 2013 @06:56PM (#6299168)
Don't know if you've already thought of / planned this, but please please implement a side-by-side diff view.

Code is easy enough to read in a unified diff because lines are usually short (unless java). Prose flows a lot more fluidly, and there is no formal grammar for human language. I have had the displeasure of having to read "redlines" (prose with inline diffs marked in red strikeout) and I find them completely impenetrable.

Re: I'm Building a GitHub for Writers by cauthonLuck on Friday August 30, 2013 @01:01AM (#6300350)
I'm using latex+vim+git for this purpose currently. I put two spaces after a period to signal the end of a sentence in Latex. Which helps me break the document up by sentences with vim.

If you're using markup then encouraging the period-double-space could be a harmless way of easily breaking the document up by sentences

Re: I'm Building a GitHub for Writers by dragonwriter on Thursday August 29, 2013 @12:55PM (#6296932)
"Sentence-based" diffs would work well for prose, but the problem is recognizing sentences, given the other uses for full stops. If you use hard line breaks at, and only at, sentence ends, you could use line-based diffs to do this (but this may run into editing convenience issues.)
Re: I'm Building a GitHub for Writers by 2mur on Thursday August 29, 2013 @12:46PM (#6296862)
We've been working on a similar problem. Writing in markdown, pre-processing the saved markdown to truncate to 80 column (best fit) paragraphs and then diffing on the markdown.
Re: I'm Building a GitHub for Writers by rzimmerman on Thursday August 29, 2013 @12:45PM (#6296856)
I think for writing, sentence-based diffs would be the most useful.