Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Encoder for unicode to RTF 1.5 command sequences

Project Description
Unicode to RTF command code conversion
======================================

This module implements an encoder for unicode to RTF 1.5 command sequences; it
can be used to generate valid RTF output with international characters.

Importing this module adds a new `rtfunicode` codec, allowing you to encode
unicode strings to valid RTF bytecode sequences:

>>> import rtfunicode
>>> u'RTF and unicode mix just fine! \u263A'.encode('rtfunicode')
'RTF and unicode mix just fine! \\u9786?'

The RTF command code for a unicode character is `\uN?`, where N is a signed
16-bit integer and the ? is a placeholder character for older RTF readers. This
module sets the latter to the '?' literal for simlicity's sake.

Requirements
------------

* Python 2.4-2.7, 3.3-3.5


Development
-----------

.. image:: https://travis-ci.org/mjpieters/rtfunicode.svg?branch=master
:target: https://travis-ci.org/mjpieters/rtfunicode

The project code is hosted on GitHub_, feel free to report issues,
fork the code and issue pull requests.

.. _GitHub: https://github.com/mjpieters/rtfunicode


License
-------

BSD (simplified), see: LICENSE.txt


Author
------

Martijn Pieters <mj@zopatista.com>

1.4 (2016-06-13)
----------------

* Add a MANIFEST.in template to make sure CHANGES.rst is included in the
distribution.

1.3 (2016-06-06)
----------------

* Removed limitations section from README as these were removed in 1.1.

1.2 (2016-06-06)
----------------

* Correct LICENSE.txt file.

1.1 (2016-06-06)
----------------

* Support surrogate pairs by using math text-run groups.
* Drop support for Python 3.1 and 3.2; 3.3 - 3.5 are now officially supported.


1.0 (2012-06-06)
----------------

* Initial release.
Release History

Release History

This version
History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rtfunicode-1.4.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Jun 13, 2016
rtfunicode-1.4.zip (7.5 kB) Copy SHA256 Checksum SHA256 Source Jun 13, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting