[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] ClothRed (HTML to Textile

Victor 'Zverok' Shepelev

4/11/2007 7:03:00 PM

From: Phillip Gawlowski [mailto:cmdjackryan@googlemail.com]
Sent: Tuesday, April 10, 2007 8:39 PM
>
>I'm pleased to announce, that I've begun working on a small library to
>convert HTML into Textile.
>
>Please forgive me, that this announcement isn't yet following the
>community's standards, but I'm slowly getting there.
>
>For the curious, the website and project on RuybForge have gone online
>*and* have some content[0].
>
>For the impatient:
>ClothRed will be exactly the reverse of RedCloth: It will grab any HTML
>string, and convert it into Textile.
>
>As a bonus, ClothRed will strip all HTML that is not being converted
>into Textile's markup from the text, making it, hopefully, usable for
>sanitizing HTML.
>
>I hope to have an Alpha release out by the end of next month.
>

Awesome!

x x x

A bit OT, but I'm dreaming/planning (for a long time) about library, which
can handle "greatest common divisor" of all simple text format and perform
uniformly conversions like

Textile <=> <=> HTML
Markdown <=> <=> PDF
Mediawiki <=> gcd <=> PS
RDOC <=> <=> OpenOffice

There are several projects performing only [some markup]=>html conversions.
There is also Maruku[1], which seems to handle virually any Markdown=>[rich
format] conversion (and seems to embody some common intermediate format).
There is now your project.

Isn't now a time to do something more generic?

V.

1: maruku.rubyforge.org


1 Answer

Phillip Gawlowski

4/11/2007 7:26:00 PM

0

Victor "Zverok" Shepelev wrote:

> A bit OT, but I'm dreaming/planning (for a long time) about library, which
> can handle "greatest common divisor" of all simple text format and perform
> uniformly conversions like
>
> Textile <=> <=> HTML
> Markdown <=> <=> PDF
> Mediawiki <=> gcd <=> PS
> RDOC <=> <=> OpenOffice
>
> There are several projects performing only [some markup]=>html conversions.
> There is also Maruku[1], which seems to handle virually any Markdown=>[rich
> format] conversion (and seems to embody some common intermediate format).
> There is now your project.
>
> Isn't now a time to do something more generic?

Well, once there are libraries to do any one of these tasks, you can
build a tool chain, similar to DBI, for example.

I know that there's a PDF generator written in Ruby, but i don't know
about the other file formats. Creating markup parsers isn't that much of
a challenge, so that could be done quite easily.

I'd be happy to, once ClothRed is feature-complete in the HTML ->
Textile area, to write an API to integrate ClothRed into other tools.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....

Rule of Open-Source Programming #33:

Don't waste time on writing test cases and test scripts - your users are
your best testers.