473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

general Wiki format question and Python Wiki markup parsing libraries

hi,
i am looking for a way to structure the text in XML comments to produce
a XHTML doc format for the XMLs (in this case XSLT).
so is was thinking about using a wiki like text format. e.g. something like
<!--
!Headline

some __bold__ text in a paragraph

* a list
* another item

etc... (the markup used is only an example!)

-->

but it should be a widely used format that people do not need to learn
yet another syntax.
it will be used by people using XSLT so it should not be language (py,
perl, java, ...) specific.

is there something like a "standard" wiki format at all, or at least one
that is widely used?
in my company we use a jspwiki which e.g. uses !, !! and !!! for
headlines, __bold__ and * list markup (like the example above). is this
more or less a standard as this is the only wiki i've used yet?
i was googling for python libraries which would parse a wiki text format
to xhtml but could not find something really useful.

is there a python library to parse these text formats? i was looking a
bit into reStructuredText but was wondering if this is generally used or
maybe is too Python specific.

any hint would be great
thanks
chris
Jul 18 '05 #1
4 2019
chris <cs***@yahoo.com> pisze:
is there something like a "standard" wiki format at all, or at least one
that is widely used?


Don't think so. I saw more than 10 "simplified markups", of which nearly
all was more complicated than original HTML. I wanted something like
this in my JPA, so I added possibility to use Mark Pilgrim's Python
implementation of Dean Allen's Textile (originally implemented in PHP,
Perl version also exists), but Textile is really "simplified", its
capabilities are rather limited. Go to http://diveintomark.org/ and
check if PyTextile will suit your needs.

--
Jarek Zgoda
http://jpa.berlios.de/
Jul 18 '05 #2
Jarek Zgoda wrote:
chris <cs***@yahoo.com> pisze:

is there something like a "standard" wiki format at all, or at least one
that is widely used?

Don't think so. I saw more than 10 "simplified markups", of which nearly
all was more complicated than original HTML. I wanted something like
this in my JPA, so I added possibility to use Mark Pilgrim's Python
implementation of Dean Allen's Textile (originally implemented in PHP,
Perl version also exists), but Textile is really "simplified", its
capabilities are rather limited. Go to http://diveintomark.org/ and
check if PyTextile will suit your needs.


thanks for the hint. PyTextile is almost too much already and i agree
almost as "complex" as HTML. something simpler like a wiki syntax would
be much better...

chris
Jul 18 '05 #3
"Jarek Zgoda" <jz****@gazeta.usun.pl> wrote in message
news:c8**********@nemesis.news.tpi.pl...
chris <cs***@yahoo.com> pisze:
is there something like a "standard" wiki format at all, or at least one
that is widely used?
Don't think so. I saw more than 10 "simplified markups", of which nearly
all was more complicated than original HTML.


Well, I think the "simplified" seems to be a tradeoff in
terms of fewer keystrokes, rather than any conceptual
simplicity. If you really want to simplify things, please come
up with a little WISIWIG editor rather than yet more
line noise.

John Roth
--
Jarek Zgoda
http://jpa.berlios.de/

Jul 18 '05 #4
John Roth wrote:
"Jarek Zgoda" <jz****@gazeta.usun.pl> wrote in message
news:c8**********@nemesis.news.tpi.pl...
chris <cs***@yahoo.com> pisze:

is there something like a "standard" wiki format at all, or at least one
that is widely used?


Don't think so. I saw more than 10 "simplified markups", of which nearly
all was more complicated than original HTML.

Well, I think the "simplified" seems to be a tradeoff in
terms of fewer keystrokes, rather than any conceptual
simplicity. If you really want to simplify things, please come
up with a little WISIWIG editor rather than yet more
line noise.

John Roth

--
Jarek Zgoda
http://jpa.berlios.de/



well, i think it is not fewer keystrokes but to be able to easily read
the text (like here in this email without the html tag noise in e.g.
javadoc) when working on the xml/xsl file but at the same time to be
able to generate a structured xhtml documentation from the same text.
so something like restructured text seems like the best option to me for
now.

chris
Jul 18 '05 #5

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

Similar topics

14
by: Viktor Rosenfeld | last post by:
Hi, I need to create a parser for a Python project, and I'd like to use process kinda like lex/yacc. I've looked at various parsing packages online, but didn't find anything useful for me: -...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
2
by: Steve Juranich | last post by:
I'm running into problems where Python and VTK both ship with their own distribution of the Expat parser. As long as you never use the Python XML package, everything is fine. But if you try using...
2
by: Tim Parkin | last post by:
I'm trying to convert fragments of wiki markup into fragments of html (specifically using moinmoin markup). I've managed to do this with MoinMoin but I've had to create a data directory, config...
0
by: Yourself | last post by:
Are there any freely licensed Wiki markup to HTML converters available? Basically, I don't want to convert full wiki markup, just very basic inline formatting (specically options for bold,...
67
by: James Harris | last post by:
I have a requirement to store timestamps in a database. Simple enough you might think but finding a suitably general format is not easy. The specifics are 1) subsecond resolution - milliseconds...
0
by: Joshua Kugler | last post by:
Michael Mabin wrote: Several here: http://pypi.python.org/pypi?%3Aaction=search&term=wiki&submit=search I'm sure you could find a good one, and add your own markup if needed. j
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.