Permalink
Browse files

porting from sourceforge

  • Loading branch information...
1 parent 266a4da commit 2e6f7ce0f72663832a4edd65fa58d5ff3f82dec4 @paulhtremblay committed Jun 28, 2016
Showing with 35,984 additions and 0 deletions.
  1. +10 −0 PKG-INFO
  2. +70 −0 README.txt
  3. +3,073 −0 data/char_set
  4. +551 −0 data/rtf2xml.1
  5. +5 −0 data/to_crude_dobook.xsl
  6. +64 −0 docs/html/api.html
  7. +101 −0 docs/html/index.html
  8. +97 −0 docs/html/installation.html
  9. +309 −0 docs/html/man-page.html
  10. +89 −0 docs/html/overview.html
  11. +72 −0 docs/html/python_example.py
  12. +66 −0 docs/html/styles.css
  13. +6 −0 docs/html/upload_docs.py
  14. +602 −0 docs/html/use.html
  15. +103 −0 docs/xml/api.xml
  16. +181 −0 docs/xml/installation.xml
  17. +362 −0 docs/xml/man_page.xml
  18. +42 −0 docs/xml/master.xml
  19. +69 −0 docs/xml/notes.xml
  20. +131 −0 docs/xml/overview.xml
  21. +483 −0 docs/xml/rtf2xml.docbook
  22. +671 −0 docs/xml/use.xml
  23. +293 −0 docs/xslt/docbook_to_html.xsl
  24. +330 −0 docs/xslt/docbook_to_man.xsl
  25. +51 −0 docs/xslt/man_for_html.xsl
  26. +42 −0 docs/xslt/notes_to_block_txt.xsl
  27. +26 −0 docs/xslt/notes_to_txt.xsl
  28. +35 −0 docs/xslt/number.xsl
  29. +20 −0 docs/xslt/put_together_for_html.xsl
  30. +21 −0 docs/xslt/put_together_for_man.xsl
  31. +34 −0 docs/xslt/rearrange_html.xsl
  32. +107 −0 docs/xslt/toc.xsl
  33. +2,135 −0 relax/rtf2xml1.0.rng
  34. +668 −0 rtf2xml/ParseRtf.py
  35. +3 −0 rtf2xml/__init__.py
  36. +278 −0 rtf2xml/add_brackets.py
  37. +99 −0 rtf2xml/body_styles.py
  38. +202 −0 rtf2xml/border_parse.py
  39. +3,076 −0 rtf2xml/char_set.py
  40. +61 −0 rtf2xml/check_brackets.py
  41. +36 −0 rtf2xml/check_encoding.py
  42. +324 −0 rtf2xml/colors.py
  43. +96 −0 rtf2xml/combine_borders.py
  44. +194 −0 rtf2xml/configure_txt.py
  45. +309 −0 rtf2xml/convert_to_tags.py
  46. +92 −0 rtf2xml/copy.py
  47. +110 −0 rtf2xml/correct_unicode.py
  48. +69 −0 rtf2xml/default_encoding.py
  49. +247 −0 rtf2xml/delete_info.py
  50. +189 −0 rtf2xml/encode_to_rtf.py
  51. +1,180 −0 rtf2xml/field_strings.py
  52. +515 −0 rtf2xml/fields_large.py
  53. +587 −0 rtf2xml/fields_small.py
  54. +301 −0 rtf2xml/fonts.py
  55. +304 −0 rtf2xml/footnote.py
  56. +60 −0 rtf2xml/get_char_map.py
  57. +406 −0 rtf2xml/get_options.py
  58. +391 −0 rtf2xml/group_borders.py
  59. +332 −0 rtf2xml/group_styles.py
  60. +308 −0 rtf2xml/header.py
  61. +279 −0 rtf2xml/headings_to_sections.py
  62. +796 −0 rtf2xml/hex_2_utf8.py
  63. +360 −0 rtf2xml/info.py
  64. +608 −0 rtf2xml/inline.py
  65. +59 −0 rtf2xml/line_endings.py
  66. +248 −0 rtf2xml/list_numbers.py
  67. +602 −0 rtf2xml/list_table.py
  68. +589 −0 rtf2xml/make_lists.py
  69. +161 −0 rtf2xml/old_rtf.py
  70. +390 −0 rtf2xml/options_trem.py
  71. +204 −0 rtf2xml/output.py
  72. +283 −0 rtf2xml/override_table.py
  73. +1,005 −0 rtf2xml/paragraph_def.py
  74. +355 −0 rtf2xml/paragraphs.py
  75. +194 −0 rtf2xml/pict.py
  76. +649 −0 rtf2xml/preamble_div.py
  77. +188 −0 rtf2xml/preamble_rest.py
  78. +933 −0 rtf2xml/process_tokens.py
  79. +87 −0 rtf2xml/python_vim.vim
  80. +50 −0 rtf2xml/replace_illegals.py
  81. +727 −0 rtf2xml/sections.py
  82. +954 −0 rtf2xml/styles.py
  83. +794 −0 rtf2xml/table.py
  84. +102 −0 rtf2xml/table_info.py
  85. +125 −0 rtf2xml/tokenize.py
  86. +191 −0 rtf2xml/xsl_convert.py
  87. +369 −0 scripts/rtf2xml
  88. +177 −0 scripts/test.py
  89. +42 −0 setup.py
  90. +1 −0 test_files/good/bullet_list.rtf
  91. +1 −0 test_files/good/caps_mixed.rtf
  92. +16 −0 test_files/good/char_style.rtf
  93. +93 −0 test_files/good/char_upper_ranges.rtf
  94. +93 −0 test_files/good/char_upper_ranges_hex.rtf
  95. +90 −0 test_files/good/color.rtf
  96. +1 −0 test_files/good/complex_list_bullet.rtf
  97. +1 −0 test_files/good/complex_list_diff_styles.rtf
  98. +1 −0 test_files/good/diff_types_border.rtf
  99. +1 −0 test_files/good/escaped_text.rtf
  100. +1 −0 test_files/good/fields_simple_format_switch.rtf
  101. +1 −0 test_files/good/headers_footers.rtf
  102. +1 −0 test_files/good/heading_with_section.rtf
  103. +1 −0 test_files/good/headings_mixed.rtf
  104. +1 −0 test_files/good/hyperlink.rtf
  105. +1 −0 test_files/good/include_pict.rtf
  106. +1 −0 test_files/good/include_text.rtf
  107. +72 −0 test_files/good/index.rtf
  108. +1 −0 test_files/good/inline_mix.rtf
  109. +1 −0 test_files/good/inline_over_para.rtf
  110. +1 −0 test_files/good/japanese.rtf
  111. +1 −0 test_files/good/list_in_table.rtf
  112. +1 −0 test_files/good/list_with_indented_items.rtf
  113. +1 −0 test_files/good/lists_with_breaks.rtf
  114. +24 −0 test_files/good/named_styles.rtf
  115. +1 −0 test_files/good/nested_lists_indents.rtf
  116. +1 −0 test_files/good/noteref.rtf
  117. +24 −0 test_files/good/old1_from_web.rtf
  118. BIN test_files/good/old2_from_web.rtf
  119. +1,428 −0 test_files/good/old3_from_web.rtf
  120. +502 −0 test_files/good/old3_from_web_rtf_pict_dir/picts.rtf
  121. +11 −0 test_files/good/open_office_hello_world.rtf
  122. +11 −0 test_files/good/open_office_special_char.rtf
  123. +33 −0 test_files/good/os_x_text_edit_faces_mixed.rtf
  124. +23 −0 test_files/good/os_x_text_edit_italics_mixed.rtf
  125. +1 −0 test_files/good/page_ref.rtf
  126. +1 −0 test_files/good/sections_next_page.rtf
  127. +1 −0 test_files/good/sections_with_named_styles.rtf
  128. +1 −0 test_files/good/simple_number.rtf
  129. +13 −0 test_files/good/simple_page_break1.rtf
  130. +12 −0 test_files/good/simple_page_break2.rtf
  131. +3 −0 test_files/good/simplest.rtf
  132. +123 −0 test_files/good/symbol.rtf
  133. +1 −0 test_files/good/table_different_cell_widths.rtf
  134. +1 −0 test_files/good/table_empty_row.rtf
  135. +1 −0 test_files/good/table_of_authorities.rtf
  136. +1 −0 test_files/good/table_simple.rtf
  137. +1 −0 test_files/good/table_with_header.rtf
  138. +957 −0 test_files/good/tables_from_web1.rtf
  139. +1 −0 test_files/good/tabs.rtf
  140. +13 −0 test_files/good/ted_hello_world.rtf
  141. +18 −0 test_files/good/ted_mixed_faces.rtf
  142. +83 −0 test_files/good/toc.rtf
  143. +95 −0 test_files/good/zapf_dingbats.rtf
  144. +1 −0 test_files/invalid/bad_encoding.rtf
  145. 0 test_files/invalid/empty.rtf
  146. +1 −0 test_files/invalid/invalid_token.rtf
  147. +2 −0 test_files/invalid/no_open_bracket.rtf
  148. +1 −0 test_files/invalid/unmatched_left.rtf
  149. +1 −0 test_files/invalid/unmatched_right.rtf
  150. +1 −0 test_files/invalid/wrong_start.rtf
View
@@ -0,0 +1,10 @@
+Metadata-Version: 1.0
+Name: rtf2xml
+Version: 1.33
+Summary: Convert Microsoft RTF to XML
+Home-page: http://rtf2xml.sourceforge.net/
+Author: Paul Tremblay
+Author-email: paulhtremblay@gmail.com
+License: MIT
+Description: UNKNOWN
+Platform: UNKNOWN
View
@@ -0,0 +1,70 @@
+$Revision: 1.18 $
+$Date: 2006/02/05 22:58:12 $
+
+Please see the docs for a complete explanation.
+
+===========
+VERSION:
+===========
+
+1.33
+
+========
+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
+============
+
+Please see the full documentation if this README does not help you.
+
+
+
+1. Install python if you do not have it on your system. You can get
+ python from http://python.org.
+
+2. Type:
+
+ python setup.py install
+
+
+
+=========
+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.
Oops, something went wrong.

0 comments on commit 2e6f7ce

Please sign in to comment.