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

Write abiword documents using python

Hi,

I want to do a script in python. Users will answer to some questions
in rough text and, at the end, it will be saved in a format like
abiword's one.

Now, I want to know how to write abiword documents using python.

(OpenOffice format would be OK, but I like abiword)

If you have no idea but know about a module or a document somewere on
the web talking about that, pointing it to me would be nice.

Thanks
Jul 18 '05 #1
3 2709
I doubt there would be something like that.
I'd start with making a document with AbiWord in your case and then use one
of the many templating packages available..
Then Python would be very useful to spit out some XML as well in those
places where this approach becomes tedious, after all AbiWord's format is
XML.

Best,
Miklós

sebb <se**@linuxcult.com> wrote in message
news:56**************************@posting.google.c om...
Hi,

I want to do a script in python. Users will answer to some questions
in rough text and, at the end, it will be saved in a format like
abiword's one.

Now, I want to know how to write abiword documents using python.

(OpenOffice format would be OK, but I like abiword)

If you have no idea but know about a module or a document somewere on
the web talking about that, pointing it to me would be nice.

Thanks

Jul 18 '05 #2
I understand abiword uses an XML based format, see

http://www.abisource.com/twiki/bin/v.../FaqFileFormat

You should find the xml.dom modules useful, perhaps parsing and
updating a template created in abiword.

Paul Clinch
Jul 18 '05 #3
se**@linuxcult.com (sebb) schreef:
I want to do a script in python. Users will answer to some questions
in rough text and, at the end, it will be saved in a format like
abiword's one.

Now, I want to know how to write abiword documents using python.


Maybe try this: <http://www.seanet.com/~hgg9140/comp/> (scroll down)

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #4

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

Similar topics

5
by: MiLF | last post by:
Is it possible to write a Audio CD Player by using python only?
1
by: webworldL | last post by:
Has anybody had any luck processing XHTML1.1 documents with xml.sax? Whenever I try it, python loads the W3C DTD from the top, then crashes saying that there's an error in the external DTD. All I...
4
by: Daryl Middleton | last post by:
Can python be used to merge pdf documents into a single pdf file so that I do not have to manually insert each one. Thanks
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
3
by: Laszlo Nagy | last post by:
This program: import sys import traceback import cStringIO a = 1.0 b = 0.0 try: c=a/b
3
by: defcon8 | last post by:
How can I print html documents in Python on Windows?
3
by: crashonyou | last post by:
hello again..i've been searching for quite some time now already looking for a solution to printing word documents with python..same thing for internet explorer..i was experimenting around with some...
2
by: pabloski | last post by:
I need to parse real world HTML/XML documents and I found two nice python solution: BeautifulSoup and Tidy. However I found pyXPCOM that is a wrapper for Gecko. So I was thinking Gecko surely...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.