On Mon, 17 Jan 2005 03:51:29 +0900, Andreas Semt <as / computer-leipzig.de> wrote:
> Hello list!
> 
> I am relative new to Ruby, so i ask:
> What's the best way to develop a *pure* Ruby Textile-to-PDF::Writer
> converter? I use the Soks Wiki (http://rubyforge.org/projects/soks/ by
> Tom Counsell) for documentation purpose on work (on a W2K Pro Box). This
> wiki saves the page content in flat text files in the Textile Markup
> language, so i want a converter to generate PDF files from these Textile
> files.

I think it would make more sense to work on an HTML to PDF writer.
It's an extra-step from textile, but it shouldn't slow you down any,
and will be more useful.

From there you can also work on CSS support. Which would give you the
ability to control colors, font and quite a bit of other formatting.
There is even CSS for supporting page-breaks[1]. I'm not suggesting
you write a full pure-ruby CSS parser (I wouldn't wish that on anyone)
but you should be able to get a specific sub-set that would be
particularly useful for PDFing.

[1]: http://www.w3.org/TR/REC-CSS2/page.html#page-breaks

Anyway, just a thought. 

-- Xian