From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,666bab5bfbdf30c2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Generating PDFs with Ada Date: Wed, 12 Jan 2011 16:53:03 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <4d2908c7$0$22120$742ec2ed@news.sonic.net><9f23e50a-2c2c-4ccc-bd56-f6ffdc6c7ee7@37g2000prx.googlegroups.com><82aaj73jsr.fsf@stephe-leake.org><9600f7e1-496b-4232-a5b8-50bc97d8dd7a@g26g2000vbi.googlegroups.com><87tyhfgu5y.fsf@ludovic-brenta.org> <87lj2rgkaz.fsf@ludovic-brenta.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1294872785 22804 69.95.181.76 (12 Jan 2011 22:53:05 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 12 Jan 2011 22:53:05 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:17377 Date: 2011-01-12T16:53:03-06:00 List-Id: "Ludovic Brenta" wrote in message news:87lj2rgkaz.fsf@ludovic-brenta.org... ... >> And I'm sure there are other tools out there (besides MS Office) that >> generate .doc files. > > Apart from Microsoft's own, I can't think of any such tool. Then again, > I don't use office software much, I don't use Windows, and I would > certainly not use, much less buy, a tool that locks my data into a > proprietary format like .doc. Maybe that's because I'm a software > engineer and not a lemming :) You're not trying very hard. :-) OpenOffice produces .doc files. I think most of the web-based "office suites" also do. All for pragmatic reasons. I've tried to take the attitude you are espousing and it has proven completely impractical. I've tried distributing documents in .odf format (the supposedly open format of OpenOffice) and hardly anyone seemed to be happy. It's a lot easier to distribute in .doc format (although I try to distribute read-only documents as .PDF). ... >> It may be that the need for writing a Word document is small enough >> that nobody has considered it worth their while to write a library >> like that. I can accept that as a reason. But the attitude that I >> thought I detected---"I hope [that nobody writes a library like >> that]"---is not one that I believe serves the Ada community. I >> apologize if I read too much into anything anyone said. > > Like Stephe, I too hope that nobody writes a library that helps generate > .doc files. My reason reason is that such a tool would endorse the > proprietary format and help continue the dominance of evil proprietary > formats against standard ones. The same tool could be just as useful > writing PDF, DocBook, OpenDocument or even Plain Text instead of any > version of .doc. Software engineers should promote standards whenever > possible, whatever language they use. I think the "library" should be able to generate any kind of file that you want. The ARM_Formatter uses an O-O design which allows plugging in any kind of output that you might dream up. So long as the clients write to that interface (and there is no alternative!), any sort of output can be made. Personally, I wouldn't want to try to directly create PDF files, because that would require doing detailed character layout, justification, pagination, indexing, table of contents, and the like. Doing these properly is a very complex job (I have experience with writing programs to output via typesetters back when I was much younger, and this is very difficult to get right). That's why I use MS Word and/or OpenOffice as an intermediary for creating the Ada standard and lots of other documents. If I was starting that today I would write directly to the .ODF format and let OpenOffice do all of the work (but that wasn't an option in 1998). Randy.