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.
- dm2xcod-0.1.0/.github/workflows/release.yml +122 -0
- dm2xcod-0.1.0/.gitignore +32 -0
- dm2xcod-0.1.0/Cargo.lock +1508 -0
- dm2xcod-0.1.0/Cargo.toml +40 -0
- dm2xcod-0.1.0/PKG-INFO +105 -0
- dm2xcod-0.1.0/README.md +81 -0
- dm2xcod-0.1.0/examples/python_demo/demonstration.py +37 -0
- dm2xcod-0.1.0/examples/python_demo/output.md +2083 -0
- dm2xcod-0.1.0/examples/python_demo/run_demo.sh +25 -0
- dm2xcod-0.1.0/examples/python_example/demo.py +40 -0
- dm2xcod-0.1.0/examples/python_example/pyproject.toml +5 -0
- dm2xcod-0.1.0/libs/docx-rust/.cargo-ok +1 -0
- dm2xcod-0.1.0/libs/docx-rust/Cargo.lock +708 -0
- dm2xcod-0.1.0/libs/docx-rust/Cargo.toml +80 -0
- dm2xcod-0.1.0/libs/docx-rust/LICENSE +21 -0
- dm2xcod-0.1.0/libs/docx-rust/src/app.rs +351 -0
- dm2xcod-0.1.0/libs/docx-rust/src/content_type.rs +114 -0
- dm2xcod-0.1.0/libs/docx-rust/src/core.rs +179 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/bidir.rs +57 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/body.rs +124 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/bookmark_end.rs +26 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/bookmark_start.rs +32 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/break.rs +60 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/comment_range.rs +40 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/comments.rs +78 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/date.rs +31 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/document.rs +72 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/drawing.rs +434 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/endnotes.rs +97 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/field_char.rs +53 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/footer.rs +67 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/footnotes.rs +111 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/grid_column.rs +30 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/header.rs +95 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/header_footer_reference.rs +76 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/hyperlink.rs +61 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/instrtext.rs +142 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/mod.rs +40 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/numbering.rs +400 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/paragraph.rs +164 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/pict.rs +60 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/run.rs +318 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/sdt.rs +145 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/sym.rs +14 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/tab.rs +12 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/table.rs +70 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/table_cell.rs +95 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/table_grid.rs +50 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/table_row.rs +110 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/text.rs +142 -0
- dm2xcod-0.1.0/libs/docx-rust/src/document/theme.rs +1325 -0
- dm2xcod-0.1.0/libs/docx-rust/src/docx.rs +833 -0
- dm2xcod-0.1.0/libs/docx-rust/src/error.rs +22 -0
- dm2xcod-0.1.0/libs/docx-rust/src/font_table/charset.rs +16 -0
- dm2xcod-0.1.0/libs/docx-rust/src/font_table/family.rs +16 -0
- dm2xcod-0.1.0/libs/docx-rust/src/font_table/font.rs +62 -0
- dm2xcod-0.1.0/libs/docx-rust/src/font_table/mod.rs +87 -0
- dm2xcod-0.1.0/libs/docx-rust/src/font_table/pitch.rs +16 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/bold.rs +43 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/bar_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/between_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/border_style.rs +394 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/bottom_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/inside_horizon_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/inside_vertical_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/left_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/mod.rs +14 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/right_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/border/top_border.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/borders.rs +49 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/character_property.rs +619 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/color.rs +148 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/dstrike.rs +43 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/fonts.rs +65 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/grid_span.rs +9 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/indent.rs +68 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/indent_level.rs +30 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/italics.rs +77 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/justification.rs +54 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/lang.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/line_rule.rs +17 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/bottom_margin.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/left_margin.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/mod.rs +6 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/right_margin.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/margin/top_margin.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/mod.rs +55 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/numbering_id.rs +30 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/numbering_property.rs +77 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/outline.rs +35 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_cols.rs +28 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_grid.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_margin.rs +40 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/page_size.rs +30 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/paragraph_property.rs +489 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/section_property.rs +894 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/size.rs +26 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/spacing.rs +73 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/strike.rs +35 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_borders.rs +41 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_cell_property.rs +32 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_header.rs +48 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_indent.rs +79 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_justification.rs +52 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_margin.rs +36 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_property.rs +133 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_row_property.rs +38 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/table_width.rs +89 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/underline.rs +129 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/v_merge.rs +9 -0
- dm2xcod-0.1.0/libs/docx-rust/src/formatting/widow_control.rs +35 -0
- dm2xcod-0.1.0/libs/docx-rust/src/lib.rs +112 -0
- dm2xcod-0.1.0/libs/docx-rust/src/macros.rs +227 -0
- dm2xcod-0.1.0/libs/docx-rust/src/media/mod.rs +27 -0
- dm2xcod-0.1.0/libs/docx-rust/src/rels.rs +164 -0
- dm2xcod-0.1.0/libs/docx-rust/src/schema.rs +64 -0
- dm2xcod-0.1.0/libs/docx-rust/src/settings/mod.rs +1367 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/default_style.rs +76 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/latent_style.rs +35 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/latent_styles.rs +43 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/mod.rs +112 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/priority.rs +17 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/semi_hidden.rs +17 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/style.rs +273 -0
- dm2xcod-0.1.0/libs/docx-rust/src/styles/unhidden_when_used.rs +17 -0
- dm2xcod-0.1.0/libs/docx-rust/src/web_settings.rs +136 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/[Content_Types].xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/_rels/.rels +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/_rels/item1.xml.rels +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/item1.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/customXml/itemProps1.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/app.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/core.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/docProps/custom.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/_rels/document.xml.rels +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/document.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/fontTable.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/footer1.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/footer2.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/numbering.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/settings.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/styles.xml +1 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/theme/theme1.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/AA1/word/webSettings.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa.xlsx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/[Content_Types].xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/_rels/.rels +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/docProps/app.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/docProps/core.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/_rels/document.xml.rels +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/document.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/fontTable.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/numbering.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/settings.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/styles.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/theme/theme1.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list/word/webSettings.xml +2 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/aaa/aa_list.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/integration_test.rs +201 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/block_quotes.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/codeblock.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/comments.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/coreProperties_no_namespace.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_no_reference.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_preserve.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/custom_style_reference.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/definition_list.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/document-properties-short-desc.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/document-properties.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/greater_than_8_bit_zoom.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/headers.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/hyperlink_with_bidirectional_embedding_level.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/image.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_code.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_formatting.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/inline_images.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/link_in_notes.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/links.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_continuing.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_div_bullets.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_multiple_initial.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/lists_restarting.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/nested_anchors_in_header.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/notes.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/raw-blocks.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/raw-bookmarks.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/table_one_row.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/table_with_list_cell.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables-default-widths.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/tables_separated_with_rawblock.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_deletion.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_insertion.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_move.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/track_changes_scrubbed_metadata.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/unicode.docx +0 -0
- dm2xcod-0.1.0/libs/docx-rust/tests/pandoc/verbatim_subsuper.docx +0 -0
- dm2xcod-0.1.0/pyproject.toml +33 -0
- dm2xcod-0.1.0/src/converter/hyperlink.rs +8 -0
- dm2xcod-0.1.0/src/converter/image.rs +231 -0
- dm2xcod-0.1.0/src/converter/mod.rs +172 -0
- dm2xcod-0.1.0/src/converter/numbering.rs +323 -0
- dm2xcod-0.1.0/src/converter/paragraph.rs +408 -0
- dm2xcod-0.1.0/src/converter/run.rs +157 -0
- dm2xcod-0.1.0/src/converter/styles.rs +172 -0
- dm2xcod-0.1.0/src/converter/table.rs +242 -0
- dm2xcod-0.1.0/src/error.rs +33 -0
- dm2xcod-0.1.0/src/lib.rs +87 -0
- dm2xcod-0.1.0/src/localization.rs +72 -0
- dm2xcod-0.1.0/src/main.rs +64 -0
- dm2xcod-0.1.0/test_samples.sh +40 -0
- 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/*
|
dm2xcod-0.1.0/.gitignore
ADDED
|
@@ -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
|