Coder Social home page Coder Social logo

rtf2xml's Introduction

VERSION:

2.0

OVERVIEW

The script rtf2xml converts Microsoft RTF to XML.

By default, the script outputs to a raw XML, which faitfully represents the strucutre of the original RTF document.

INSTALLATION

  1. Type:

    python setup.py install
    

FOR earlier versions:

pip install rtf2xml

NOTE: I have not yet uploaded rtf2xml to the Python PyPi. I am waiting to get a permissions issue resolved. The installation downloaded with pip will work for python 2, but not python 3.

QUICK USE

To convert an RTF document to raw XML type:

rtf2xml my_file.rtf

Bugs, limitations

  • Won't properly convert legacy RTF with multi-byte representations.

    The script rtf2xml will convert older RTF that has 8-bit representations, which includes most (all?) of the languages of Europe. However, rtf2xml cannot convert older files in the Japanese or Chinese language. It can convert newer files in these languages, but the older RTF gives no unicode markings, making conversion impossible.

  • Will often misrepresent RTF produced with Open Office.

    Open Office RTF produces some characters as double question marks (??). Other RTF readers can filter out these charcters, but the script rtf2xml cannot, and in my opinion, these double question marks do not follow Microsoft's guidelines.

  • Won't convert pictures.

    See the documentation on this limitation.

rtf2xml's People

Contributors

paulhtremblay avatar

Watchers

Jon Stovell avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.