From: Gregory Seidman Date: 2007-04-12T22:29:41+09:00 Subject: Re: [ANN] ClothRed (HTML to Textile) On Thu, Apr 12, 2007 at 03:56:50PM +0900, Phillip Gawlowski wrote: > Victor "Zverok" Shepelev wrote: > >Now, authors of all libraries are solving 2 problems - parse & generate. It > >should be nice to have one common HTML parser, which could be used either > >for HTML->Textile, or for HTML->Markdown (only generators will differ). > > Well, ClothRed has to parse HTML to output Textile. It does not more > than that. If you plug it into a converter suit, you can use HTML as an > intermediary format (RedCloth can parse Textile and Markdown into HTML, > so you'd have already a little part of such a converter). Are you using Hpricot for your parsing? If so, it should be pretty easy to do the conversion. If not, why not? (Disclaimer: I've been following the thread but haven't looked at or even installed/run the code.) > >From some poin of view, we can use Textile as intermediate, your library > >would be "parser", RedCloth would be "generator". But this leaves Markdown, > >Rdoc "off the game", while we have no Markdown->Textile and similar > >convertors. > > Granted, the scope of my library is limited, but purposefully so, to > keep it a) manageable, and b) keep it in line with my skills. Once > ClothRed is feature-complete, I can add to its functionality, but not > sooner, if I can avoid it. I understand where you are with this. At the same time, I have an actual need to do something very much like this in my own work. I suspect there are others out there in a similar situation. We're hoping that this will become useful to us sooner rather than later and that we can avoid rolling our own. > Phillip "CynicalRyan" Gawlowski --Greg