{"repo":"joshy/striprtf","free":true,"listed":false,"github":"https://github.com/joshy/striprtf","clone":"git clone https://github.com/joshy/striprtf.git","description":"Stripping rtf to plain old text","language":"Rich Text Format","stars":117,"topics":["rtf-to-text","rtf","plaintext","python","cli"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"striprtf Purpose This is a library to convert Rich Text Format (RTF) files to plain text files. A lot of medical documents are written in RTF format which is not ideal for parsing and further processing. This library converts it to plain old text. How to use it If you want to use a different encoding than cp1252 you can pass it via the encoding parameter. This is only taken into account if no explicit codepage has been set. Sometimes UnicodeDecodingErrors can happen because of various reasons. In this case you can try to relax the encoding process like this: Online version If you don't want to install or just try it out there is an online version available. PostgreSQL There is also a PostgreSQL version available from Raffael Mancini. History Pyth was not working for the rtf files I had. The next best thing was this gist: https://gist.github.com/gilsondev/7c1d2d753ddb522e7bc22511cfb08676 Very few additions where made, e.g. better formatting of tables. In the meantime some encodings bugs have been fixed. :-)","default_branch":null,"files":null,"tree":[],"storefront":"/r/joshy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/joshy/striprtf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}