Write abiword documents using python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sebb

    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
  • Jegenye 2001 Bt

    #2
    Re: Write abiword documents using python

    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 <sebb@linuxcult .com> wrote in message
    news:56f42e53.0 310221615.70f32 ccc@posting.goo gle.com...[color=blue]
    > 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[/color]


    Comment

    • Paul Clinch

      #3
      Re: Write abiword documents using python

      I understand abiword uses an XML based format, see



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

      Paul Clinch

      Comment

      • JanC

        #4
        Re: Write abiword documents using python

        sebb@linuxcult. com (sebb) schreef:
        [color=blue]
        > 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.[/color]

        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

        Comment

        Working...