字体:
先感谢大家的讨论. 有时间写一个详细的贴子回应大家的讨论. 但就兄台的COMMENT, 先做一个简单回复. [#2864362@0 -ROLIA.NET 相约加拿大网上社区 之 枫下论坛 & 枫下部落, 枫下论坛主坛 ]

先感谢大家的讨论. 有时间写一个详细的贴子回应大家的讨论. 但就兄台的COMMENT, 先做一个简单回复.

by c-c-c (c-c-c) at 2006.3.25 16:20 (#2864362@0)
1. 我想不光是您, 也包括我们当时所有在座的学生都知道, 教授的那句话不是用来字字较真的. 首先, 什么叫"any software", 我写一个Hello World属不属于any software? 然后怎样计算这"十分钟"? 包不包括了解requirements的时间? 我想, 他想传达的意思无非是: 在一个训练有素大人眼里, 绝大多数的software是full of bugs的. 您的comment很有误导性, 一句 "别的不说,请他的朋友去break Donald Knuth 的tex", 仿佛您是信口举出一个一般般的software, "别的不说"四个字更象是在说类似的几乎bug free的software到处都是. 我想, 不管是commercial的还是open source的, full of bugs的software应该还是占绝大多数的吧. 不信的话, 您列一个bug free的software, 我列九个full of bugs的. 所以听一句话要听传达的意思, 就象是听到"千层糕"或"百纳衣", 就非要去数这糕到底是不是千层, 这衣服是不是正好一百片缝成的. 给人的印象不是抬杠, 就是迂腐.

2. 关于您的第二个comment, 倒给我有点"吹牛不上税"的感觉. 我且把您说的5分钟当作和上面的any一样, 是一种夸张的表达方式. 您能把这段只需"5分钟"的scripts在五天后拿出来给我看看吗? 下面是那位教授当时遇到问题的原话, 以及他的两个预想解决方案, 在这里做为requirements供您参考.

I gather from some of the comments and email that my earlier post about batch generation of PDFs from web pages wasn't clear, so here's my second try. The XXX course that I'm writing for the XXX has about 35 web pages. I'd like to add something to my Makefile so that I can say make pdf and have each page turned into a PDF. (Currently, I do this by hand about once a week; it ain't the ten minutes of tedium that bothers me, but what my students would think if they found out I'm doing a repetitive task by hand.)

So, option #1 is an HTML to PDF converter. There are several out there, but none of the open source ones I've been able to find will respect my stylesheets. Yes, I could investigate XSL-FO, but (a) I have 185 other issues to deal with, and (b) I'm morally opposed to duplicating style information.

Option #2: write a script to make Firefox do what I've been doing by hand, i.e., load, print, change printer to PDFCreator, "print", click "OK" for the document title, specify where to save it, "OK", repeat. A couple of people have said, "Oh, you can do that on Windows with the win32 module and COM," but haven't responded to my follow-up question, "Great---do you have some sample code I can tweak?" (Also, my build currently runs on both Windows and Linux, and I'd like to keep it that way if I can...)

Suggestions?

该话题已在历史区内,不能被修改或回复。       收藏    投诉
关闭窗口