DOCX和PDF的版本控制? [英] Version control for DOCX and PDF?

查看:151
本文介绍了DOCX和PDF的版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我一直在玩githg,然后突然间我发现这种事情对于文档来说非常有用.

I've been playing around with git and hg lately and then suddenly it occurred to me that this kind of thing will be great for documents.

我有一个文档,可以在DOCX中编辑并导出为PDF.我尝试同时使用githg进行版本控制,结果发现hg最终只能跟踪二进制文件,并且差异化没有意义.尽管使用git可以有意义地区分DOCX(尚未尝试使用PDF),但我想知道是否有比现在更好的方法来做到这一点. (理想情况下,不必离开Word进行比较将是最好的解决方案.)

I've a document which I edit in DOCX and export as PDF. I tried using both git and hg to version control it and turns out with hg you end up tracking only binary and diff-ing isn't meaningful. Although with git I can meaningfully diff DOCX (haven't tried on PDF yet) I was wondering if there is a better way to do it than I'm doing it right now. (Ideally, not having to leave Word to diff will be the best solution.)

- 阿什什·甘地(Ashish Gandhi)

-- Ashish Gandhi

推荐答案

这里有两个不同的概念-一个是版本控制系统可以对文件的内容做出一些明智的判断吗?" -这样它就可以仅存储修订之间的增量信息(并执行诸如将责任分配给文件的各个部分之类的事情).

There are two different concepts here - one is "can the version control system make some intelligent judgements about the contents of files?" - so that it can store just delta information between revisions (and do things like assign responsibility to individual parts of a file).

另一个是我有一个文件比较工具,该工具对于我在版本控制系统中拥有的文件类型很有用".版本控制系统往往带有文件比较工具,这些工具不如专用的替代工具.但是它们几乎总是可以链接到更好的差异程序-所有文件类型或特定文件类型.

The other is 'do I have a file comparison tool which is useful for the types of files I have in the version control system'. Version control systems tend to come with file comparison tools which are inferior to dedicated alternatives. But they can pretty much always be linked to better diff programs - either for all file types or specific ones.

因此,通常将超越比较"用作常规比较工具,而将Word用作专用的Word文档比较器.

So it's common to use, for example, Beyond Compare as a general compare tool, with Word as a dedicated Word document comparer.

不同的版本控制系统在人们对二进制文件"的理解上有何不同,但这通常与处理大型文件和提供独占锁定有关,与与文件比较有关.

Different version control systems differ as to how good people perceive them to be at handling 'binaries', but that's often as much to do with handling huge files and providing exclusive locking as it is to do with file comparison.

这篇关于DOCX和PDF的版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆