From: David Masover Date: 2009-04-16T11:21:23+09:00 Subject: Re: TexTile to Word Document On Wednesday 15 April 2009 21:09:20 Mohit Sindhwani wrote: > I haven't tried creating an ODF document yet, but I did find that > importing the HTML into OpenOffice works partly. That isn't what I was suggesting, though it is one way. I was suggesting that you rip open Textile, or write your own Textile parser, or even work with the Textile-generated HTML, and write a script that generates an ODT. I was mostly suggesting this to discourage you from trying that approach. There isn't a Textile-specific way of doing this, to my knowledge, and there wouldn't likely be a good, generic way of doing it with HTML -- at best, you could have something take a reference to a CSS class and replace it with a reference to a given ODF (or Word) style, but you'd probably have to recreate those styles in the word processor -- I don't know of anything that can take CSS and generate corresponding ODF (or Word) styles. > The reason for wanting to get to Word... well, I do know CSS and use > that for the causal first print from what I write. But I think Word (or > some other publishing software, not sure which one) would give me better > control over controlling the print output. CSS gives a fair amount of control. It's possible Word and OpenOffice provide more, but not much. > For example, including > page-wise headers and footers, and so on. A quick Google finds this: http://css-discuss.incutio.com/?page=PrintStylesheets http://css-discuss.incutio.com/?page=PrintingHeaders http://www.xefteri.com/articles/show.cfm?id=26 http://www.alistapart.com/articles/boom ...and so on. A quote from that last article: "It is now possible, even feasible, to use HTML as the document format for books."