473,387 Members | 1,700 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,387 software developers and data experts.

Restructured Text from Java

So I'm designing a wiki-type open source Content Managment System using
JSP and Subversion as the back-end, and I would like to use ReST for the
pages. The problem is I'm not sure how to access docutils from Java. Is
there a library somewhere that will let me convert ReST to html from
within Java? Will Jython work with docutils? Or should I kludge
something together around the command line?

I appreciate any help. Thanks.

Ravi
Jul 18 '05 #1
2 1856
Ravi wrote:
So I'm designing a wiki-type open source Content Managment System using
JSP and Subversion as the back-end, and I would like to use ReST for the
pages. The problem is I'm not sure how to access docutils from Java. Is
there a library somewhere that will let me convert ReST to html from
within Java? Will Jython work with docutils? Or should I kludge
something together around the command line?

I appreciate any help. Thanks.

Ravi


Jython will work ... if ReST is jython-compatible. for this is must be
python 2.1 level or thereabout, and not use any extensions.

Otherwise ... you can indeed much around the command-line and
Runtime.exec*(). This is asking for a lot of headache though ...

if you have the option, you can build a python program and publish its
interface either via SOAP or CORBA, then call that web-service from Java.

Lastly, you can interface python's VM at the native code level. you can
do it yourself if you know C programming, or you can use JPE
(http://sourceforge.net/projects/jpe/) if you can get it working.

I hope this helps,

Steve Menard
Jul 18 '05 #2
Ravi wrote:
Will Jython work with docutils?


It should. Docutils is tested against Python 2.1, so it should work
with current Jython too. I don't know of anyone who has tested
Docutils with Jython, so I can't guarantee compatibility. Try it, and
if there are any issues, we'll certainly help to fix them.

--
David Goodger <http://python.net/~goodger>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA+pDirqIPjB1FxosRApLLAKDEB/9e/oFYL2Fmw70AAFlSp8GWxgCg7Np/
5RLddbSwaWQN1zbw0C48NeI=
=ZX8y
-----END PGP SIGNATURE-----

Jul 18 '05 #3

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

Similar topics

4
by: Doug van Vianen | last post by:
Hi, I am working on an Applet which provides some mouse practice for new computer users in our local seniors' computer club. The applet contains several cards, in a card layout, which are...
5
by: Hoang | last post by:
Does anyone know of a Structured Text or ReStructured Text interactive previewer? As you know, learning these rules and making mistakes will cause you to iterate between editing and viewing. Has...
0
by: JosAH | last post by:
Greetings, Introduction Before we start designing and implementing our text builder class(es), I'd like to mention a reply by Prometheuzz: he had a Dutch version of the entire bible ...
0
by: JosAH | last post by:
Greetings, the last two article parts described the design and implementation of the text Processor which spoonfeeds paragraphs of text to the LibraryBuilder. The latter object organizes, cleans...
0
by: JosAH | last post by:
Greetings, Introduction At this moment we have a TextProcessor, a LibraryBuilder as well as the Library itself. As you read last week a Library is capable of producing pieces of text in a...
5
by: ajos | last post by:
hi frnds, this is the way i ve written--> <html:text name="bdgtmastForm" property="publicity_code" size="5" maxlength="5"> but its giving me an error which seems irrelevent.. type Exception...
0
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.