dm2xcod 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. dm2xcod-0.1.0/.github/workflows/release.yml +122 -0
  2. dm2xcod-0.1.0/.gitignore +32 -0
  3. dm2xcod-0.1.0/Cargo.lock +1508 -0
  4. dm2xcod-0.1.0/Cargo.toml +40 -0
  5. dm2xcod-0.1.0/PKG-INFO +105 -0
  6. dm2xcod-0.1.0/README.md +81 -0
  7. dm2xcod-0.1.0/examples/python_demo/demonstration.py +37 -0
  8. dm2xcod-0.1.0/examples/python_demo/output.md +2083 -0
  9. dm2xcod-0.1.0/examples/python_demo/run_demo.sh +25 -0
  10. dm2xcod-0.1.0/examples/python_example/demo.py +40 -0
  11. dm2xcod-0.1.0/examples/python_example/pyproject.toml +5 -0
  12. dm2xcod-0.1.0/libs/docx-rust/.cargo-ok +1 -0
  13. dm2xcod-0.1.0/libs/docx-rust/Cargo.lock +708 -0
  14. dm2xcod-0.1.0/libs/docx-rust/Cargo.toml +80 -0
  15. dm2xcod-0.1.0/libs/docx-rust/LICENSE +21 -0
  16. dm2xcod-0.1.0/libs/docx-rust/src/app.rs +351 -0
  17. dm2xcod-0.1.0/libs/docx-rust/src/content_type.rs +114 -0
  18. dm2xcod-0.1.0/libs/docx-rust/src/core.rs +179 -0
  19. dm2xcod-0.1.0/libs/docx-rust/src/document/bidir.rs +57 -0
  20. dm2xcod-0.1.0/libs/docx-rust/src/document/body.rs +124 -0
  21. dm2xcod-0.1.0/libs/docx-rust/src/document/bookmark_end.rs +26 -0
  22. dm2xcod-0.1.0/libs/docx-rust/src/document/bookmark_start.rs +32 -0
  23. dm2xcod-0.1.0/libs/docx-rust/src/document/break.rs +60 -0
  24. dm2xcod-0.1.0/libs/docx-rust/src/document/comment_range.rs +40 -0
  25. dm2xcod-0.1.0/libs/docx-rust/src/document/comments.rs +78 -0
  26. dm2xcod-0.1.0/libs/docx-rust/src/document/date.rs +31 -0
  27. dm2xcod-0.1.0/libs/docx-rust/src/document/document.rs +72 -0
  28. dm2xcod-0.1.0/libs/docx-rust/src/document/drawing.rs +434 -0
  29. dm2xcod-0.1.0/libs/docx-rust/src/document/endnotes.rs +97 -0
  30. dm2xcod-0.1.0/libs/docx-rust/src/document/field_char.rs +53 -0
  31. dm2xcod-0.1.0/libs/docx-rust/src/document/footer.rs +67 -0
  32. dm2xcod-0.1.0/libs/docx-rust/src/document/footnotes.rs +111 -0
  33. dm2xcod-0.1.0/libs/docx-rust/src/document/grid_column.rs +30 -0
  34. dm2xcod-0.1.0/libs/docx-rust/src/document/header.rs +95 -0
  35. dm2xcod-0.1.0/libs/docx-rust/src/document/header_footer_reference.rs +76 -0
  36. dm2xcod-0.1.0/libs/docx-rust/src/document/hyperlink.rs +61 -0
  37. dm2xcod-0.1.0/libs/docx-rust/src/document/instrtext.rs +142 -0
  38. dm2xcod-0.1.0/libs/docx-rust/src/document/mod.rs +40 -0
  39. dm2xcod-0.1.0/libs/docx-rust/src/document/numbering.rs +400 -0
  40. dm2xcod-0.1.0/libs/docx-rust/src/document/paragraph.rs +164 -0
  41. dm2xcod-0.1.0/libs/docx-rust/src/document/pict.rs +60 -0
  42. dm2xcod-0.1.0/libs/docx-rust/src/document/run.rs +318 -0
  43. dm2xcod-0.1.0/libs/docx-rust/src/document/sdt.rs +145 -0
  44. dm2xcod-0.1.0/libs/docx-rust/src/document/sym.rs +14 -0
  45. dm2xcod-0.1.0/libs/docx-rust/src/document/tab.rs +12 -0
  46. dm2xcod-0.1.0/libs/docx-rust/src/document/table.rs +70 -0
  47. dm2xcod-0.1.0/libs/docx-rust/src/document/table_cell.rs +95 -0
  48. dm2xcod-0.1.0/libs/docx-rust/src/document/table_grid.rs +50 -0
  49. dm2xcod-0.1.0/libs/docx-rust/src/document/table_row.rs +110 -0
  50. dm2xcod-0.1.0/libs/docx-rust/src/document/text.rs +142 -0
  51. dm2xcod-0.1.0/libs/docx-rust/src/document/theme.rs +1325 -0
  52. dm2xcod-0.1.0/libs/docx-rust/src/docx.rs +833 -0
  53. dm2xcod-0.1.0/libs/docx-rust/src/error.rs +22 -0
  54. dm2xcod-0.1.0/libs/docx-rust/src/font_table/charset.rs +16 -0
  55. dm2xcod-0.1.0/libs/docx-rust/src/font_table/family.rs +16 -0
  56. dm2xcod-0.1.0/libs/docx-rust/src/font_table/font.rs +62 -0
  57. dm2xcod-0.1.0/libs/docx-rust/src/font_table/mod.rs +87 -0
  58. dm2xcod-0.1.0/libs/docx-rust/src/font_table/pitch.rs +16 -0
  59. dm2xcod-0.1.0/libs/docx-rust/src/formatting/bold.rs +43 -0
  60. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/bar_border.rs +52 -0
  61. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/between_border.rs +52 -0
  62. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/border_style.rs +394 -0
  63. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/bottom_border.rs +52 -0
  64. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/inside_horizon_border.rs +52 -0
  65. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/inside_vertical_border.rs +52 -0
  66. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/left_border.rs +52 -0
  67. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/mod.rs +14 -0
  68. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/right_border.rs +52 -0
  69. dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/top_border.rs +52 -0
  70. dm2xcod-0.1.0/libs/docx-rust/src/formatting/borders.rs +49 -0
  71. dm2xcod-0.1.0/libs/docx-rust/src/formatting/character_property.rs +619 -0
  72. dm2xcod-0.1.0/libs/docx-rust/src/formatting/color.rs +148 -0
  73. dm2xcod-0.1.0/libs/docx-rust/src/formatting/dstrike.rs +43 -0
  74. dm2xcod-0.1.0/libs/docx-rust/src/formatting/fonts.rs +65 -0
  75. dm2xcod-0.1.0/libs/docx-rust/src/formatting/grid_span.rs +9 -0
  76. dm2xcod-0.1.0/libs/docx-rust/src/formatting/indent.rs +68 -0
  77. dm2xcod-0.1.0/libs/docx-rust/src/formatting/indent_level.rs +30 -0
  78. dm2xcod-0.1.0/libs/docx-rust/src/formatting/italics.rs +77 -0
  79. dm2xcod-0.1.0/libs/docx-rust/src/formatting/justification.rs +54 -0
  80. dm2xcod-0.1.0/libs/docx-rust/src/formatting/lang.rs +36 -0
  81. dm2xcod-0.1.0/libs/docx-rust/src/formatting/line_rule.rs +17 -0
  82. dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/bottom_margin.rs +36 -0
  83. dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/left_margin.rs +36 -0
  84. dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/mod.rs +6 -0
  85. dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/right_margin.rs +36 -0
  86. dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/top_margin.rs +36 -0
  87. dm2xcod-0.1.0/libs/docx-rust/src/formatting/mod.rs +55 -0
  88. dm2xcod-0.1.0/libs/docx-rust/src/formatting/numbering_id.rs +30 -0
  89. dm2xcod-0.1.0/libs/docx-rust/src/formatting/numbering_property.rs +77 -0
  90. dm2xcod-0.1.0/libs/docx-rust/src/formatting/outline.rs +35 -0
  91. dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_cols.rs +28 -0
  92. dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_grid.rs +52 -0
  93. dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_margin.rs +40 -0
  94. dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_size.rs +30 -0
  95. dm2xcod-0.1.0/libs/docx-rust/src/formatting/paragraph_property.rs +489 -0
  96. dm2xcod-0.1.0/libs/docx-rust/src/formatting/section_property.rs +894 -0
  97. dm2xcod-0.1.0/libs/docx-rust/src/formatting/size.rs +26 -0
  98. dm2xcod-0.1.0/libs/docx-rust/src/formatting/spacing.rs +73 -0
  99. dm2xcod-0.1.0/libs/docx-rust/src/formatting/strike.rs +35 -0
  100. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_borders.rs +41 -0
  101. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_cell_property.rs +32 -0
  102. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_header.rs +48 -0
  103. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_indent.rs +79 -0
  104. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_justification.rs +52 -0
  105. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_margin.rs +36 -0
  106. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_property.rs +133 -0
  107. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_row_property.rs +38 -0
  108. dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_width.rs +89 -0
  109. dm2xcod-0.1.0/libs/docx-rust/src/formatting/underline.rs +129 -0
  110. dm2xcod-0.1.0/libs/docx-rust/src/formatting/v_merge.rs +9 -0
  111. dm2xcod-0.1.0/libs/docx-rust/src/formatting/widow_control.rs +35 -0
  112. dm2xcod-0.1.0/libs/docx-rust/src/lib.rs +112 -0
  113. dm2xcod-0.1.0/libs/docx-rust/src/macros.rs +227 -0
  114. dm2xcod-0.1.0/libs/docx-rust/src/media/mod.rs +27 -0
  115. dm2xcod-0.1.0/libs/docx-rust/src/rels.rs +164 -0
  116. dm2xcod-0.1.0/libs/docx-rust/src/schema.rs +64 -0
  117. dm2xcod-0.1.0/libs/docx-rust/src/settings/mod.rs +1367 -0
  118. dm2xcod-0.1.0/libs/docx-rust/src/styles/default_style.rs +76 -0
  119. dm2xcod-0.1.0/libs/docx-rust/src/styles/latent_style.rs +35 -0
  120. dm2xcod-0.1.0/libs/docx-rust/src/styles/latent_styles.rs +43 -0
  121. dm2xcod-0.1.0/libs/docx-rust/src/styles/mod.rs +112 -0
  122. dm2xcod-0.1.0/libs/docx-rust/src/styles/priority.rs +17 -0
  123. dm2xcod-0.1.0/libs/docx-rust/src/styles/semi_hidden.rs +17 -0
  124. dm2xcod-0.1.0/libs/docx-rust/src/styles/style.rs +273 -0
  125. dm2xcod-0.1.0/libs/docx-rust/src/styles/unhidden_when_used.rs +17 -0
  126. dm2xcod-0.1.0/libs/docx-rust/src/web_settings.rs +136 -0
  127. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/[Content_Types].xml" +1 -0
  128. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/_rels/.rels" +1 -0
  129. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/customXml/_rels/item1.xml.rels" +1 -0
  130. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/customXml/item1.xml" +2 -0
  131. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/customXml/itemProps1.xml" +1 -0
  132. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/docProps/app.xml" +1 -0
  133. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/docProps/core.xml" +1 -0
  134. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/docProps/custom.xml" +1 -0
  135. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/_rels/document.xml.rels" +1 -0
  136. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/document.xml" +1 -0
  137. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/fontTable.xml" +2 -0
  138. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/footer1.xml" +1 -0
  139. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/footer2.xml" +1 -0
  140. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/numbering.xml" +1 -0
  141. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/settings.xml" +1 -0
  142. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/styles.xml" +1 -0
  143. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/theme/theme1.xml" +2 -0
  144. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/19323/351/273/204/351/271/217/350/257/211/350/265/265/344/270/233/346/260/221/351/227/264/345/200/237/350/264/267/345/210/244/345/206/263/357/274/210/346/231/256/351/200/232 /345/210/260/345/272/255/357/274/211---/345/210/230/word/webSettings.xml" +2 -0
  145. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/[Content_Types].xml +1 -0
  146. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/_rels/.rels +1 -0
  147. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/_rels/item1.xml.rels +1 -0
  148. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/item1.xml +2 -0
  149. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/itemProps1.xml +1 -0
  150. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/app.xml +1 -0
  151. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/core.xml +1 -0
  152. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/custom.xml +1 -0
  153. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/_rels/document.xml.rels +1 -0
  154. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/document.xml +1 -0
  155. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/fontTable.xml +2 -0
  156. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/footer1.xml +1 -0
  157. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/footer2.xml +1 -0
  158. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/numbering.xml +1 -0
  159. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/settings.xml +1 -0
  160. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/styles.xml +1 -0
  161. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/theme/theme1.xml +2 -0
  162. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/webSettings.xml +2 -0
  163. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa.docx +0 -0
  164. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa.xlsx +0 -0
  165. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/[Content_Types].xml +2 -0
  166. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/_rels/.rels +2 -0
  167. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/docProps/app.xml +2 -0
  168. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/docProps/core.xml +2 -0
  169. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/_rels/document.xml.rels +2 -0
  170. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/document.xml +2 -0
  171. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/fontTable.xml +2 -0
  172. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/numbering.xml +2 -0
  173. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/settings.xml +2 -0
  174. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/styles.xml +2 -0
  175. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/theme/theme1.xml +2 -0
  176. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/webSettings.xml +2 -0
  177. dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list.docx +0 -0
  178. dm2xcod-0.1.0/libs/docx-rust/tests/integration_test.rs +201 -0
  179. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/block_quotes.docx +0 -0
  180. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/codeblock.docx +0 -0
  181. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/comments.docx +0 -0
  182. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/coreProperties_no_namespace.docx +0 -0
  183. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_no_reference.docx +0 -0
  184. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_preserve.docx +0 -0
  185. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_reference.docx +0 -0
  186. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/definition_list.docx +0 -0
  187. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/document-properties-short-desc.docx +0 -0
  188. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/document-properties.docx +0 -0
  189. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/greater_than_8_bit_zoom.docx +0 -0
  190. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/headers.docx +0 -0
  191. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/hyperlink_with_bidirectional_embedding_level.docx +0 -0
  192. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/image.docx +0 -0
  193. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_code.docx +0 -0
  194. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_formatting.docx +0 -0
  195. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_images.docx +0 -0
  196. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/link_in_notes.docx +0 -0
  197. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/links.docx +0 -0
  198. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists.docx +0 -0
  199. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_continuing.docx +0 -0
  200. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_div_bullets.docx +0 -0
  201. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_multiple_initial.docx +0 -0
  202. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_restarting.docx +0 -0
  203. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/nested_anchors_in_header.docx +0 -0
  204. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/notes.docx +0 -0
  205. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/raw-blocks.docx +0 -0
  206. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/raw-bookmarks.docx +0 -0
  207. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/table_one_row.docx +0 -0
  208. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/table_with_list_cell.docx +0 -0
  209. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables-default-widths.docx +0 -0
  210. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables.docx +0 -0
  211. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables_separated_with_rawblock.docx +0 -0
  212. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_deletion.docx +0 -0
  213. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_insertion.docx +0 -0
  214. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_move.docx +0 -0
  215. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_scrubbed_metadata.docx +0 -0
  216. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/unicode.docx +0 -0
  217. dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/verbatim_subsuper.docx +0 -0
  218. dm2xcod-0.1.0/pyproject.toml +33 -0
  219. dm2xcod-0.1.0/src/converter/hyperlink.rs +8 -0
  220. dm2xcod-0.1.0/src/converter/image.rs +231 -0
  221. dm2xcod-0.1.0/src/converter/mod.rs +172 -0
  222. dm2xcod-0.1.0/src/converter/numbering.rs +323 -0
  223. dm2xcod-0.1.0/src/converter/paragraph.rs +408 -0
  224. dm2xcod-0.1.0/src/converter/run.rs +157 -0
  225. dm2xcod-0.1.0/src/converter/styles.rs +172 -0
  226. dm2xcod-0.1.0/src/converter/table.rs +242 -0
  227. dm2xcod-0.1.0/src/error.rs +33 -0
  228. dm2xcod-0.1.0/src/lib.rs +87 -0
  229. dm2xcod-0.1.0/src/localization.rs +72 -0
  230. dm2xcod-0.1.0/src/main.rs +64 -0
  231. dm2xcod-0.1.0/test_samples.sh +40 -0
  232. dm2xcod-0.1.0/tests/integration_test.rs +13 -0
@@ -0,0 +1,122 @@
1
+ name: Build and Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*"
9
+ pull_request:
10
+
11
+ env:
12
+ CARGO_TERM_COLOR: always
13
+
14
+ jobs:
15
+ test:
16
+ name: Test
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - name: Set up Rust
21
+ uses: dtolnay/rust-toolchain@stable
22
+ with:
23
+ toolchain: stable
24
+ - name: Run tests
25
+ run: cargo test --all-features
26
+
27
+ # Build Python wheels for multiple platforms
28
+ build_wheels:
29
+ name: Build wheels (${{ matrix.os }})
30
+ needs: test
31
+ runs-on: ${{ matrix.os }}
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ os: [ubuntu-latest, macos-latest, windows-latest]
36
+ include:
37
+ - os: ubuntu-latest
38
+ target: x86_64-unknown-linux-gnu
39
+ - os: macos-latest
40
+ target: universal2-apple-darwin
41
+ - os: windows-latest
42
+ target: x86_64-pc-windows-msvc
43
+
44
+ steps:
45
+ - uses: actions/checkout@v4
46
+ - uses: actions/setup-python@v5
47
+ with:
48
+ python-version: "3.12"
49
+
50
+ - name: Build wheels
51
+ uses: PyO3/maturin-action@v1
52
+ with:
53
+ target: ${{ matrix.target }}
54
+ args: --release --out dist --features python
55
+ sccache: "true"
56
+ manylinux: auto
57
+
58
+ - name: Upload wheels
59
+ uses: actions/upload-artifact@v4
60
+ with:
61
+ name: wheels-${{ matrix.os }}
62
+ path: dist
63
+
64
+ # Build source distribution
65
+ sdist:
66
+ name: Build source distribution
67
+ needs: test
68
+ runs-on: ubuntu-latest
69
+ steps:
70
+ - uses: actions/checkout@v4
71
+ - name: Build sdist
72
+ uses: PyO3/maturin-action@v1
73
+ with:
74
+ command: sdist
75
+ args: --out dist
76
+ - name: Upload sdist
77
+ uses: actions/upload-artifact@v4
78
+ with:
79
+ name: sdist
80
+ path: dist
81
+
82
+ # NOTE: crates.io publish disabled - path dependency (docx-rust) not supported
83
+ # To enable: publish docx-rust to crates.io first, then update dependency
84
+ # publish_crate:
85
+ # name: Publish to crates.io
86
+ # runs-on: ubuntu-latest
87
+ # if: startsWith(github.ref, 'refs/tags/v')
88
+ # needs: [test]
89
+ # steps:
90
+ # - uses: actions/checkout@v4
91
+ # - name: Set up Rust
92
+ # uses: dtolnay/rust-toolchain@stable
93
+ # - name: Publish to crates.io
94
+ # run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
95
+
96
+ # Publish to PyPI
97
+ publish_pypi:
98
+ name: Publish to PyPI
99
+ runs-on: ubuntu-latest
100
+ if: startsWith(github.ref, 'refs/tags/v')
101
+ needs: [build_wheels, sdist]
102
+ permissions:
103
+ id-token: write
104
+ steps:
105
+ - uses: actions/download-artifact@v4
106
+ with:
107
+ pattern: wheels-*
108
+ path: dist
109
+ merge-multiple: true
110
+
111
+ - uses: actions/download-artifact@v4
112
+ with:
113
+ name: sdist
114
+ path: dist
115
+
116
+ - name: Publish to PyPI
117
+ uses: PyO3/maturin-action@v1
118
+ env:
119
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
120
+ with:
121
+ command: upload
122
+ args: --non-interactive --skip-existing dist/*
@@ -0,0 +1,32 @@
1
+ # Rust
2
+ /target/
3
+ **/*.rs.bk
4
+
5
+ # Operating System
6
+ .DS_Store
7
+ Thumbs.db
8
+
9
+ # IDEs
10
+ .idea/
11
+ .vscode/
12
+ *.swp
13
+ *.iml
14
+
15
+ # Project Specific
16
+ output_tests/
17
+ test_output/
18
+ samples/
19
+
20
+ # Python
21
+ .venv/
22
+ venv/
23
+ __pycache__/
24
+ *.py[cod]
25
+ *.egg-info/
26
+ dist/
27
+ *.whl
28
+
29
+ # PyO3/Maturin
30
+ *.so
31
+ *.dylib
32
+ *.pyd