Live data from Hacker News

Using Microsoft Word with Git

blog.martinfenner.org

11–20 of 136 posts

Re: Using Microsoft Word with Git

#11
I gave up using Word to write manuscripts when I switched to Markdown documents in git.

In the last few months, though, I gave up on Markdown to switch to a more robust format - LaTeX. Before I switched, I didn't know LaTeX at all, but I knew from my reading that it had the features I needed.

Re: Using Microsoft Word with Git

#12

Earlier quoted context omitted.

After a lot of trying to get Git and Word to play nice together, we ended up building a collaboration tool to bring the power of Git (branching & merging) to non-technical Word users. Feedback welcome: https://www.simuldocs.com/

Congrtulations, it seems really easy to use. Just one thing: I noticed formatting changes (such as italics) are ignored. Is this deliberate?

Thanks! It is, it's quite hard to highlight exactly what changed regarding formatting and we found our users mostly cared about content changes.

Having said that, adding an option to include formatting changes is on our roadmap.

Re: Using Microsoft Word with Git

#13
On Windows you can just use TortoiseGIT, it can do diff and even merge by calling Word's internal compare tools. I can attest that diff works fine (differences show up as if you had used track changes within word), but I haven't had occasion to try merging Word documents with TortoiseGIT yet. The same functionality was already available in TortoiseSVN.

Re: Using Microsoft Word with Git

#14
My SaaS deals primarily with legal documents that for years had been maintained with Word. The pain of emailing documents is real, but the comfort level with how Word works is also real. Over the years, most organizations have developed internal workflows to share and send documents around that bypass the pains, and while they may not be perfect, they work.

The funny thing is that the document authors like these ways of working. It is the tech people who don't. I've seen "Git for Word" proposed many times a year for a while now. And all of the ideas are interesting, but none of them appeal to my audience because they don't care about git's feature set. Nobody wants to branch and merge. Nobody wants a straight version history. ("Nobody" meaning nobody in my market, not nobody in the world.)

They want a storytelling experience. They want to know the why, not the what. And the workflow tends to be unidirectional, not with collaborative changes coming back together, but with expanding changes as each person adds their ideas and makes change for a specific instance of using a document. The experience we build for them bring in pieces of version history, pieces of comments, pieces of telling the story of why something was done, so people down the line can have more context to decide whether to accept or reject the changes.

It isn't that "Git for Word" is a bad idea - on the contrary, it would be great if someone pulls it off. My point is that building something that improves on Word isn't actually about the software, it is about the document workflows. If you find groups who work like software devs do, where documents receive small updates from a team, and bring all changes together for a final product, there is probably a market. But when evaluating such ideas, there has to be a reality check of whether the actual use of the documents truly matches the use case for git.

Re: Using Microsoft Word with Git

#15

I gave up using Word to write manuscripts when I switched to Markdown documents in git. In the last few months, though, I gave up on Markdown to switch to a more robust format - LaTeX. Before I switched, I didn't know LaTeX at all, but I knew from my reading that it had the features I needed.

I don't know if you're already familiar, but pandoc perfectly bridges this gap for me. You can write things in markdown, then covert it latex no problem with pandoc. You can even make templates for it, and write mathmode in markdown.

It certainly makes for less _noisy_ source files in my opinion, and it also means that you get to take advantage of the fact that, if you want to, you can easily convert your markdown to HTML, with maths using something like mathjax.

This was a bit of a ramble, but I honestly can't say enough nice things about pandoc.

Re: Using Microsoft Word with Git

#17

My SaaS deals primarily with legal documents that for years had been maintained with Word. The pain of emailing documents is real, but the comfort level with how Word works is also real. Over the years, most organizations have developed internal workflows to share and send documents around that bypass the pains, and while they may not be perfect, they work. The funny thing is that the document authors like these ways…

Having a lot of experience in both legal (academic and lawyer) and tech (developer and founder), I totally agree with you and think you framed very well the situation.

As a lawyer I can full confirm that our industry works as you have described (as regards documents workflows), and with my tech background I can also confirm that most features of dev-oriented solutions like git are mostly uninteresting from a lawyer's perspective.

Re: Using Microsoft Word with Git

#19

FWIW, if you're using libreoffice write you can save your file as a flat odt file (.fodt), which gives you a version-controllable format

Interesting, I didn't know about fodt! Only knew that godot engine had done something similar (for git specifically).

I downloaded a docx document from the net, opened it in libre office, removed a single word, saved it as fodt, removed a single word again, saved it as fodt again, and the diff between the two fodt is gigantic.

Apparently there are lots of items like whose content didnt change, but their ID did. It didn't even only affect IDs of content after the removed word, but content before as well.

The file has 19361 lines and the diff size is 1110 lines so there is some level of locality, but note that a lot of those lines are just base64 data of image content. The fodt is 1.5 times as large as the original file.

Try it yourself, this is the document: https://www.acquisition.gov/sites/default/files/manual/SOP_P...

Re: Using Microsoft Word with Git

#20

Earlier quoted context omitted.

Congrtulations, it seems really easy to use. Just one thing: I noticed formatting changes (such as italics) are ignored. Is this deliberate?

Thanks! It is, it's quite hard to highlight exactly what changed regarding formatting and we found our users mostly cared about content changes. Having said that, adding an option to include formatting changes is on our roadmap.

Can an attacker use a formatting change to alter the sense of a document? Eg. make the text color the same as the background color or invisibly small?
Post reply on HN