Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-06 17:18:07

bryanarchy
New Member
Registered: 2007-06-06
Posts: 3

[textile] converting html to textile

I know this is the textpattern forum, but i’m trying to use textile in a little project i’m working on. I’ve combed through this site and elsewhere but can’t seem to find out if there’s a way to convert html to textile in php.

I did find reference to detextile which was a function in an old version of textile, but that was about it.

Any help would be appreciated.

Offline

#2 2007-06-06 17:41:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] converting html to textile

Offline

#3 2007-06-06 18:14:58

bryanarchy
New Member
Registered: 2007-06-06
Posts: 3

Re: [textile] converting html to textile

Google was my first stop on this trip. Html2textile seems to be only available in Python, and not php. References to detextile usually take you to textile’s version 2 beta and no mention of it beyond that.

I tried to examine the textpattern files and could not figure out if there is a reverse conversion used. I have a sneaking suspicion that textpattern may put entries into the database as textile formatted, not html formatted. Is that correct?

Offline

#4 2007-06-06 19:15:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] converting html to textile

Both textile and html.
Textile, so you can easily edit it.
HTML, so the conversion doesn’t have to be done when the visitor loads the page.

Offline

#5 2007-06-07 00:14:10

bryanarchy
New Member
Registered: 2007-06-06
Posts: 3

Re: [textile] converting html to textile

hmm, that’s interesting but wouldn’t it contribute to database bloat with every entry being doubled? I guess for most cases, it wouldn’t matter.

I guess that this means detextile is on the cutting room floor then…

Offline

#6 2007-12-05 09:51:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: [textile] converting html to textile

I know that this is an old thread but I was looking for some php script which could do the conversion and found that detextile up to now is working wonderfully.

Edited to warn that it does not convert ordered (ol) and unordered (ul) lists properly.

Last edited by colak (2007-12-05 10:02:31)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2015-04-10 10:23:39

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: [textile] converting html to textile

Despite this is an old threat, I think it is noteworthy to point to the pandoc tool, which is able to convert html to textile and was already mentioned here. It is in the Debian repositories and there are also binaries for other OS than linux.

Offline

Board footer

Powered by FluxBB