473,671 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text-to-HTML processing program

Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?
--
"It's easier to find people online who openly support the KKK than
people who openly support the RIAA" -- comment on Wikipedia
(Email: <ze******@zen.c o.ku>, but first subtract 275 and reverse
the last two letters).
Jul 18 '05 #1
11 2577
ph***@invalid.e mail.address (phil hunt) writes:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?


I really wish Wikipedia, BBCodes, and all that would just use regular
HTML instead of continually inventing new "simplified " markup codes
for users to remember. The one thing they do that's useful is convert
blank lines to <p>.
Jul 18 '05 #2
>>>>> "phil" == phil hunt <ph***@invalid. email.address> writes:

phil> Does anyone know of a text-to-HTML processing program,
phil> ideally written in Python because I'll probably be wanting
phil> to make small modifications to it, which is simple and
phil> straightforward to use and which uses a simple markup
phil> language (something like Wikipedia markup would be ideal)?

Structured text is one of the simplest markups around (and
sufficiently powerful to make nice looking hardcopy) and is well
supported in python

http://www.zope.org/Members/millejoh/structuredText

http://docutils.sourceforge.net/docs...uickstart.html

Beyond that, search google groups for

structured text group:*python*

Here's a link to a post from me about the conversion of one of the old
diehards in our hospital to structured text:
http://mail.zope.org/pipermail/zope/...ay/115243.html.

JDH

Jul 18 '05 #3
phil hunt <ph***@invalid. email.address> pisze:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?


Try PyTextile: http://www.diveintomark.org/projects/pytextile -- it's
Python implementation of Dean Allen's original PHP Textile.

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/
Jul 18 '05 #4
phil hunt:
Does anyone know of a text-to-HTML processing program, ideally
written in Python [...] which uses a simple markup language
(something like Wikipedia markup would be ideal)?


"reStructuredTe xt is an easy-to-read, what-you-see-is-what-you-get
plaintext markup syntax and parser system. The reStructuredTex t parser is
a component of Docutils. reStructuredTex t is a revision and
reinterpretatio n of the StructuredText and Setext lightweight markup
systems."
http://docutils.sourceforge.net/FAQ....structuredtext

"Structured Text is a simple plain text markup format used by Zope and
many Zope products, invented by.. JimFulton? ? The idea is to have text
that is easy to read both in source and rendered form."
http://dev.zope.org/Members/jim/Stru...iki/FrontPage/

--
René Pijlman
Jul 18 '05 #5
On Sat, 3 Jan 2004 05:51:33 +0000, ph***@invalid.e mail.address (phil
hunt) wrote:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small


I like http://txt2tags.sourceforge.net/, used it to design my homepage.
--
http://www.homepages.lu/pu/
Jul 18 '05 #6
phil hunt wrote:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?


How about troff? Or if you really want to keep it simple, why not use
the <pre> tag in HTML?
Jul 18 '05 #7

"phil hunt" <ph***@invalid. email.address> wrote in message
news:sl******** **********@caba lamat.cabalamat .org...
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?


There's an old saying that's attributed to a lot of people:

For every hard problem, there is a solution that is simple,
obvious and wrong.

Markup seems to be one of those problems. Lots of people
look at the existing markup languages out there, go "oh, yuck!,"
and invent a simpler markup language that promptly starts growing
until it reaches the state of the languages they originally rejected
as too complex.

John Roth

Jul 18 '05 #8
On 02 Jan 2004 22:18:56 -0800, Paul Rubin <http://ph****@NOSPAM.i nvalid> wrote:
ph***@invalid. email.address (phil hunt) writes:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?


I really wish Wikipedia, BBCodes, and all that would just use regular
HTML instead of continually inventing new "simplified " markup codes
for users to remember. The one thing they do that's useful is convert
blank lines to <p>.


Wikipedia markup is significantly easier to use than HTML. Compare:

This is a ''list'':
* A list
* [http://www.cabalamat.org/ my website]
* [http://slashdot.org/ Slashdot]

With:

<p>This is a <i>list</i>:
<ul>
<li><a href='http://www.cabalamat.o rg/'>my website</a></li>
<li><a href='http://slashdot.org/'>Slashdot</a></li>
</ul>

--
"It's easier to find people online who openly support the KKK than
people who openly support the RIAA" -- comment on Wikipedia
(Email: <ze******@zen.c o.ku>, but first subtract 275 and reverse
the last two letters).
Jul 18 '05 #9
On Sat, 03 Jan 2004 11:05:54 -0500, Jeff Schwab <je******@comca st.net> wrote:
phil hunt wrote:
Does anyone know of a text-to-HTML processing program, ideally
written in Python because I'll probably be wanting to make small
modifications to it, which is simple and straightforward to use
and which uses a simple markup language (something like Wikipedia
markup would be ideal)?
How about troff? Or if you really want to keep it simple, why not use
the <pre> tag in HTML?


I wasn't aware troff did HTML output.
Or if you really want to keep it simple, why not use
the <pre> tag in HTML?


Yuk.

--
"It's easier to find people online who openly support the KKK than
people who openly support the RIAA" -- comment on Wikipedia
(Email: <ze******@zen.c o.ku>, but first subtract 275 and reverse
the last two letters).
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2194
by: Hans Nowak | last post by:
Howdy y'all, The following works in Python 2.2.2: Python 2.2.2 (#37, Oct 14 2002, 17:02:34) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.dom.minidom import Text >>> t = Text("foo") >>> t <DOM Text node "foo">
15
13353
by: Henning Vestergaard Poulsen | last post by:
Hi, I have a problem that I hope someone can help me with. I'm building a web page with pictures I've taken with my digital camera. I have succeded making a javacript that, when clicking on a thumbnail, it changes the main image. Now, I would like to put an explanation (and date and some EXIF-info) to each photo so some text is shown next to the main photo when loaded. I don't know how to change the text without reloading the whole...
3
48414
by: Michael Goldbach | last post by:
Hi, I'm currently encountering a problem with vertical alignment of text in a DIV that drives me mad. I'm having a DIV with a fixed height (say 50px) which contains some text from which I don't know if it will be rendered in one line or two. But that text should absolutely be bottom-aligned since the space between the bottom border-line and the text must always be the same and
2
7577
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text....
3
3402
by: mike | last post by:
I have a script that is not rendering the textwrap in svg properly. //does not work ..... var svgLand = svgObj.getElementById("NarrDisplay"); mytextwrap= document.createElement("text:wrap"); mytextwrap.setAttribute("x","20"); mytextwrap.setAttribute("y","30"); mytextwrap.setAttribute("width","640"); mytextwrap.setAttribute("style","fill:#000000; font-family:arial; font-size:14; text-align:left; line-interval:1.25em;");...
8
2632
by: Mikey | last post by:
I have an XML document as follows: <Menu> <Group> <Item Text="About Us" AccessRoles="All"> <Group> <Item Text="Option 1" AccessRoles="All" /> <Item Text="Option 2" AccessRoles="All" /> <Item Text="Option 3" AccessRoles="All" /> </Group>
9
4753
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and DataSet; and all I'm doing is showing one record in text fields, allowing the user to modify the text fields, and then updating the database again when the user clicks the Save button. The fields already show the correct data record since I have...
2
4529
by: MrNobody | last post by:
is there any way I can adjust the behavior of a Label when text overflows it's boundaries? I have a specific size Label which can show 2 lines of text, but on some occassions the text I insert may be longer. On such occassion, you can see the top of a third line of text just above the bottom border of the Label (the text is cut off by the boundary of the LAbel) I would rather have it not display this third line at all (stop printing...
5
1771
by: Hareth | last post by:
I Tried: If label1.Text < 80 Then lblOutput.Text = "Word I wanna say" It didnt work... Do I have to import something? declare something? missing something?
3
8417
by: thirdconspiracy | last post by:
This is probably a stupid question but why is part of my text missing when I add a checkbox to my panel? Displays fine: ASLThoracic.Text = "L Thoracic"; ASLThoracic.Text = "L Thoracic/Lum"; Only displays "L": ASLThoracic.Text = "L Thoracic/Lumbar"; I've tried moving it around on the page to make sure it isn't being cut off by another checkbox or label. I've also extended the width of the panel but that doesn't seem to help either.
0
8478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8397
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8599
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6230
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2052
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.