python-hwpx 6.10.0__tar.gz → 6.11.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.
- {python_hwpx-6.10.0/src/python_hwpx.egg-info → python_hwpx-6.11.0}/PKG-INFO +1 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/pyproject.toml +1 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/fields.py +26 -2
- python_hwpx-6.11.0/src/hwpx/_trailing_table_text.py +85 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/data/contract_docs/mutation-semantics.md +6 -3
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/authoring.py +3 -3
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/eqedit.py +17 -5
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/measure.py +10 -4
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/_glyph_table.py +3919 -875
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/measure.py +269 -41
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/layout/line_cache.py +17 -7
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/layout/pages.py +598 -179
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/_document_primitives.py +29 -19
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/section.py +18 -4
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/table.py +30 -7
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/table_structure.py +50 -3
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/table_patch.py +467 -86
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/doc_diff.py +15 -2
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/markdown_export.py +15 -4
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/package_validator.py +47 -6
- {python_hwpx-6.10.0 → python_hwpx-6.11.0/src/python_hwpx.egg-info}/PKG-INFO +1 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/python_hwpx.egg-info/SOURCES.txt +8 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_text_rewrite_semantics.py +32 -6
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_edit_fidelity_corpus.py +45 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_converter.py +5 -4
- python_hwpx-6.11.0/tests/test_equation_font_boundaries.py +93 -0
- python_hwpx-6.11.0/tests/test_form_field_fill_cost.py +66 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_fit_hancom_rules.py +275 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_insert_row_sides.py +1 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layout_line_cache.py +91 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layout_page_estimate.py +303 -0
- python_hwpx-6.11.0/tests/test_migration_seams.py +116 -0
- python_hwpx-6.11.0/tests/test_nested_cell_fill_safety.py +301 -0
- python_hwpx-6.11.0/tests/test_nested_table_structure_edits.py +192 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_oxml_modularization.py +66 -7
- python_hwpx-6.11.0/tests/test_paragraph_matcher.py +126 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_product_boundary.py +2 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_split_cell.py +6 -1
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_stale_layout_cache_sweep.py +11 -0
- python_hwpx-6.11.0/tests/test_table_clone_identities.py +210 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_patch.py +7 -4
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_patch_structure_fixes.py +4 -4
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_split_merge.py +3 -3
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_structure_edits.py +105 -8
- python_hwpx-6.11.0/tests/test_trailing_table_text.py +153 -0
- python_hwpx-6.10.0/tests/test_table_clone_identities.py +0 -91
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/LICENSE +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/NOTICE +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/README.md +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/setup.cfg +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/_legacy.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/_resolve.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/_units.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/headings.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/highlight.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/layout.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/media.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/memos.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/_base.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/media.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/notes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/page.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/parts.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/refs.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/shapes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/styles.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/tables.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/text.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/ns/tracking.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/persistence.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/shapes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_document/tracked.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/_moved_modules.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/body_patch.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/capabilities.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/data/Skeleton.hwpx +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/data/contract_docs/known-traps.md +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/data/contract_docs/recipes-traversal.md +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/data/contract_docs/support-matrix.md +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/document.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/mathml.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/render.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/equation/tokens.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/errors.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/experimental.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/apply.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/engine.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/policy.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/form_fit/report.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/binary.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/bodytext.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/cfb.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/controls.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/docinfo.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/docinfo_writer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/errors.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/fileheader.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/header_xml.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/owpml.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/package.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/reader.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/records.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/section_common.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/section_writer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/section_xml.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/shape_xml.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/shapes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/summary.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/hwp5/writer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/ingest/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/ingest/base.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/ingest/hwpx_converter.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/layout/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/layout/lint.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/layout/report.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/model.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/mutation_report.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/binary_item.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/checkbox.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/form_field.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/highlight.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/results.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/objects/tracked.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/opc/package.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/opc/relationships.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/opc/security.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/opc/xml_utils.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/_document_impl.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/_paragraph_text_edit.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/body.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/canonical_defaults.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/color.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/common.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/container.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/curves.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/document.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/document_metadata.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/document_parts.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/drop_cap.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/dutmal_compose.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/field_marks.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/header.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/header_compat.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/header_fonts.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/header_part.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/history_part.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/hyperlink_form.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/master_page.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/master_page_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/memo.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/namespaces.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/note_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/numbering.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/numbering_kinds.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/objects.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/paragraph.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/paragraph_heading.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/parser.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/run.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/schema.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/section_format.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/section_layout.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/section_story.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/settings.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/shape_position.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/simple_parts.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/table_merge.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/table_sizes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/utils.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/oxml/version_part.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/package.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/patch.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/plan/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/plan/_execute.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/plan/_model.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/plan/_schema.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/plan/_validate.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/py.typed +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/ledger.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/policy.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/rendering.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/report.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/quality/save_pipeline.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/templates.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/__init__.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/header.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/owpml-body.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/owpml-core.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/owpml-header.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/owpml-paralist.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/owpml-xml.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/_schemas/section.xsd +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/archive_cli.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/document_merge.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/document_viewer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/exporter.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/generic_inventory.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/id_integrity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/idempotence.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/ir_equality.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/layout_preview.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/mail_merge.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/object_finder.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/package_reconcile.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/page_guard.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/read_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/recover.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/redline.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/repair.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/report_utils.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/roundtrip_diff.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/table_cleanup.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/table_navigation.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/template_analyzer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/text_extract_cli.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/text_extractor.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/toc_author.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/toc_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/hwpx/tools/validator.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/python_hwpx.egg-info/dependency_links.txt +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/python_hwpx.egg-info/entry_points.txt +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/python_hwpx.egg-info/requires.txt +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/src/python_hwpx.egg-info/top_level.txt +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_add_control.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_add_heading.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_adoption_metrics_snapshot.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_arc_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_authoring_defaults.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_authoring_quality_corpus.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_blind_eval_fixture.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_body_patch.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_border_fill_image_gradient.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_border_line_types.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_build_element_census.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_byte_patch_identity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_capabilities_surface.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_border_neighbors.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_edit_holder_cache.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_line_spacing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_cell_margins.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_char_pr_child_order.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_character_width_ratio.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_chart_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_check_box_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_color_arguments.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_column_break.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_column_widths_as_shares.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_comment_node_robustness.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_container_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_container_members.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_contract_docs_sync.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_corpus_read_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_coverage_ledger.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_coverage_promotion.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_coverage_targets.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_curve_connector_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_deviations_registry.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_doc_diff.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_context_manager.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_facade_surface.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_formatting.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_merge.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_metadata.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_ops_runtime_boundary.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_save_api.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_document_viewer.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_documentation_code_fences.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_drop_cap_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_dutmal_compose_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_edit_plan.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_editor_surface_inventory.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_engine_surface_6_0.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ensure_run_font_by_lang.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equalize_widths_per_row.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_measure_hancom_saved.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_render.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_size.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_equation_width_hancom_boxes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_error_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_error_messages.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_evalplan_core_primitives.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_existing_document_format_editing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_export_captions_dutmal.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_export_cell_text_spaces.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_export_list_labels.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_export_notes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_export_text_boxes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_exporter_table_text.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_field_marks.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_field_readers.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_field_type_ids.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_fill_image_hancom_modes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_field_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_fill_core_primitives.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_fit.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_form_fit_integration.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_fuzz_catalog_derive_expected.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_fuzz_loop.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_fuzz_regressions.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_gap_and_new_number_values.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_gap_closure_tools.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_golden_api.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_header_compat_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_header_control_before_field.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_header_list_lookups.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_heading_style_shapes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_highlight_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hp_tab_support.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hwp5_container.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hwp5_hancom_files.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hwp5_open.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hwp5_save.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hwpxlib_corpus_read.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_hyperlink_hancom_form.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_id_generator_range.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_id_integrity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_image_object_workflow.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_index_mark.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ingest.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_inline_models.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_insert_column_by_clone.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_insert_row_merged_cells.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_instid_attribute_case.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_integration_hwpx_compatibility.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_integration_roundtrip.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_internal_calls_skip_moved_names.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_known_leak_migration_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layer_leak_guard.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layout_cache_scope.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layout_lint.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_layout_preview.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_lazy_hwp5_import.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_lazy_tools_import.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_lazy_tools_submodules.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_library_boundary_closure.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_line_break_writing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_line_width_arguments.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_list_continue.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_list_defaults_vs_hancom.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_list_level_range.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_llms_txt.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_mail_merge_xlsx.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_manifest_resolve_once.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_markdown_export.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_markdown_export_shape_text.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_master_page_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_master_page_pages_taken.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_memo_and_style_editing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_memo_fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_memo_shape_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_merge_cells_hancom_files.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_merge_cells_keeps_contents.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_moved_module_imports.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_moved_surface_hints.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_mutation_report.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_namespace_handling.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_namespace_hygiene.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_namespace_normalization.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_native_edit_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_new_features.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_note_authoring_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_media.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_notes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_page.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_refs.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_shapes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_tables.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_ns_tracking.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_number_formats.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_opc_package.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_open_safety_corpus.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_outline_numbering.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_oxml_parsing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_package_hygiene.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_package_text_and_namespaces.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_packaging_license_metadata.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_packaging_py_typed.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_page_and_list_values.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_page_number_control.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_page_number_format.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_page_orientation.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_para_pr_dedup.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_align_distribute_space.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_border.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_format_targets.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_hyperlink_style.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_keep_together.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_margin_default_scale.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_property_lookup.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_property_version_switch.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_remove_in_containers.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_paragraph_section_management.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_part_hierarchy_read_models.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_picture_adjustments.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_polygon_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_public_artifact_hygiene.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_public_runtime_boundary.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_read_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_recover_broken_zip.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_redline_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_redline_verify.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_release_workflow_safety.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_remove_unused_charts.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_remove_unused_images.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_repair_repack.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_replace_text_barriers.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_report_utils.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_repr_snapshots.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_return_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_roundtrip_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_roundtrip_fidelity_corpus.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_row_heights.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_run_choice_atom_authoring.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_run_content_kinds.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_run_font_refs.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_run_style_base.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_safe_edit_example.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_save_keeps_inline_text_caches.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_save_pipeline.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_save_verifies_once.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_section_clear_body.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_section_columns.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_section_headers.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_section_ids_order.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_section_properties_real_roundtrip.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_set_column_widths_uniform_split.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_set_paragraph_format_keep.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_shape_geometry_contract.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_shape_open_safety_risk_check.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_shape_original_size.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_shape_position_frames.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_shape_size_values.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_size_ratchet.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_skeleton_template_ids.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_split_merged_cell.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_stable_surface.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_story_edits_reach_control_copy.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_style_font_border_reads.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_style_resolution.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_styles_definition_verbs.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_tab_character_writing.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_tab_definition_version_switch.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_cell_equalize.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_cleanup.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_column_floor.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_label.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_navigation.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_ops_cells_without_geometry.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_ops_delete_every_line.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_ops_delete_zones.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_page_flow.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_patch_dryrun.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_table_patch_m105.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_tables_default_border.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_template_analyzer_enrichment.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_box_fields.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_extractor_annotations.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_extractor_nested_once.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_extractor_run_choice_atoms.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_inline_elements.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_text_replace_everywhere.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_title_mark.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_toc_author.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_toc_fidelity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_tracked_overlap_render_smoke.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_tracked_paragraph_delete_break.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validation_severity.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validator_comment_nodes.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validator_form_parameters.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validator_full_schema.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validator_hancom_open_rules.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_validator_section_ids.py +0 -0
- {python_hwpx-6.10.0 → python_hwpx-6.11.0}/tests/test_version_metadata.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-hwpx"
|
|
7
|
-
version = "6.
|
|
7
|
+
version = "6.11.0"
|
|
8
8
|
description = "한글 없이 HWPX 문서를 열고, 편집하고, 생성하고, 검증하는 Python 문서 라이브러리"
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -440,6 +440,14 @@ def _iter_form_field_matches(doc: "HwpxDocument") -> list[dict[str, Any]]:
|
|
|
440
440
|
|
|
441
441
|
|
|
442
442
|
def _iter_field_matches(doc: "HwpxDocument", accept: Any) -> list[dict[str, Any]]:
|
|
443
|
+
return _field_matches_in(doc, accept, _iter_content_paragraphs(doc))
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def _field_matches_in(
|
|
447
|
+
doc: "HwpxDocument",
|
|
448
|
+
accept: Any,
|
|
449
|
+
paragraphs: Iterator[tuple[int, int, int, Any, HwpxOxmlParagraph, list[Any]]],
|
|
450
|
+
) -> list[dict[str, Any]]:
|
|
443
451
|
"""The fields whose ``<hp:fieldBegin>`` *accept(ctrl, field_begin)* takes, in
|
|
444
452
|
document order, with their text up to the matching ``<hp:fieldEnd>``."""
|
|
445
453
|
|
|
@@ -451,7 +459,7 @@ def _iter_field_matches(doc: "HwpxDocument", accept: Any) -> list[dict[str, Any]
|
|
|
451
459
|
paragraph_element,
|
|
452
460
|
paragraph,
|
|
453
461
|
runs,
|
|
454
|
-
) in
|
|
462
|
+
) in paragraphs:
|
|
455
463
|
for run_index, run in enumerate(runs):
|
|
456
464
|
children = list(run)
|
|
457
465
|
for child_index, child in enumerate(children):
|
|
@@ -526,6 +534,22 @@ def _iter_field_matches(doc: "HwpxDocument", accept: Any) -> list[dict[str, Any]
|
|
|
526
534
|
return matches
|
|
527
535
|
|
|
528
536
|
|
|
537
|
+
def _refresh_form_field_match(doc: "HwpxDocument", match: Mapping[str, Any]) -> dict[str, Any]:
|
|
538
|
+
"""Re-read the selected field after filling it, without rebuilding unrelated payloads.
|
|
539
|
+
|
|
540
|
+
Filling can remove nested fields or following paragraphs, but retains the selected begin and everything
|
|
541
|
+
before it. Its paragraph location and field index therefore stay valid. Read its runs and matching end
|
|
542
|
+
afresh: inserting text or collapsing a span can change their indices and the result's style snapshot.
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
paragraph = match["_paragraph"]
|
|
546
|
+
source = (match["section_index"], match["paragraph_index"], match["paragraph_index_in_section"],
|
|
547
|
+
paragraph.element, paragraph, [child for child in paragraph.element if _local_name(child) == "run"])
|
|
548
|
+
refreshed = _field_matches_in(doc, lambda ctrl, begin: begin is match["_field_begin"], iter((source,)))[0]
|
|
549
|
+
refreshed["index"] = match["index"]
|
|
550
|
+
return refreshed
|
|
551
|
+
|
|
552
|
+
|
|
529
553
|
def _form_field_from_match(doc: "HwpxDocument", match: Mapping[str, Any]) -> FormField:
|
|
530
554
|
"""Build the public :class:`FormField` view from an internal match payload.
|
|
531
555
|
|
|
@@ -1230,7 +1254,7 @@ def fill_form_field(
|
|
|
1230
1254
|
|
|
1231
1255
|
_clear_form_field_layout_cache(paragraph.element)
|
|
1232
1256
|
paragraph.section.mark_dirty()
|
|
1233
|
-
updated =
|
|
1257
|
+
updated = _refresh_form_field_match(doc, match)
|
|
1234
1258
|
after_style = _field_run_style_snapshot(
|
|
1235
1259
|
doc,
|
|
1236
1260
|
updated["_runs"],
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
"""QName-aware, bounded byte edits for text after a table in its paragraph."""
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from collections.abc import Callable
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
|
|
8
|
+
from lxml import etree
|
|
9
|
+
|
|
10
|
+
from .errors import HwpxValueError
|
|
11
|
+
from .opc.xml_utils import _XML_MARKUP, parse_xml
|
|
12
|
+
from .oxml.namespaces import tag_in_family, tag_local_name
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class _Span:
|
|
17
|
+
start: int
|
|
18
|
+
close: int
|
|
19
|
+
end: int
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _element_spans(source: bytes, root: etree._Element) -> dict[etree._Element, _Span]:
|
|
23
|
+
"""Bind the secure parsed elements to original bytes without serializing."""
|
|
24
|
+
elements = (node for node in root.iter() if isinstance(node.tag, str))
|
|
25
|
+
stack: list[etree._Element] = []
|
|
26
|
+
spans: dict[etree._Element, _Span] = {}
|
|
27
|
+
for markup in _XML_MARKUP.finditer(source):
|
|
28
|
+
token = markup.group()
|
|
29
|
+
if token.startswith((b"<!", b"<?")):
|
|
30
|
+
continue
|
|
31
|
+
if token.startswith(b"</"):
|
|
32
|
+
element = stack.pop()
|
|
33
|
+
spans[element].close, spans[element].end = markup.start(), markup.end()
|
|
34
|
+
else:
|
|
35
|
+
element = next(elements)
|
|
36
|
+
spans[element] = _Span(markup.start(), markup.end(), markup.end())
|
|
37
|
+
if not token.endswith(b"/>"):
|
|
38
|
+
stack.append(element)
|
|
39
|
+
if stack or next(elements, None) is not None:
|
|
40
|
+
raise HwpxValueError("could not bind paragraph XML to source bytes", context={"operation": "strip_trailing_table_text"})
|
|
41
|
+
return spans
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _is(element: etree._Element, local: str) -> bool:
|
|
45
|
+
return isinstance(element.tag, str) and tag_in_family(element.tag, "paragraph") and tag_local_name(element.tag) == local
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def trailing_text_edits(
|
|
49
|
+
source: bytes, predicate: Callable[[str], bool],
|
|
50
|
+
) -> list[tuple[int, int, bytes, str]]:
|
|
51
|
+
"""Select at most the last direct table per wrapper; every scan is bounded."""
|
|
52
|
+
root = parse_xml(source)
|
|
53
|
+
spans = _element_spans(source, root)
|
|
54
|
+
edits: list[tuple[int, int, bytes, str]] = []
|
|
55
|
+
for paragraph in root.iter():
|
|
56
|
+
if not _is(paragraph, "p"):
|
|
57
|
+
continue
|
|
58
|
+
children = list(paragraph)
|
|
59
|
+
cache_index = next((i for i, child in enumerate(children) if _is(child, "linesegarray")), None)
|
|
60
|
+
if cache_index is None:
|
|
61
|
+
continue
|
|
62
|
+
candidate = None
|
|
63
|
+
for run_index, run in enumerate(children[:cache_index]):
|
|
64
|
+
if _is(run, "run"):
|
|
65
|
+
for table_index, table in enumerate(run):
|
|
66
|
+
if _is(table, "tbl"):
|
|
67
|
+
candidate = run_index, table_index, run, table
|
|
68
|
+
if candidate is None:
|
|
69
|
+
continue
|
|
70
|
+
run_index, table_index, run, table = candidate
|
|
71
|
+
following_runs = children[run_index + 1:cache_index]
|
|
72
|
+
if any(not _is(item, "run") or (item.text or "").strip() or (item.tail or "").strip()
|
|
73
|
+
for item in following_runs) or (table.tail or "").strip() or (run.tail or "").strip():
|
|
74
|
+
continue
|
|
75
|
+
texts = list(run)[table_index + 1:]
|
|
76
|
+
for item in following_runs:
|
|
77
|
+
texts.extend(item)
|
|
78
|
+
if not texts or any(not _is(item, "t") or len(item) or (item.tail or "").strip() for item in texts):
|
|
79
|
+
continue
|
|
80
|
+
text = "".join(item.text or "" for item in texts).strip()
|
|
81
|
+
if predicate(text):
|
|
82
|
+
original_run = spans[run]
|
|
83
|
+
closing_run = source[original_run.close:original_run.end]
|
|
84
|
+
edits.append((spans[table].end, spans[children[cache_index]].start, closing_run, text))
|
|
85
|
+
return edits
|
|
@@ -45,10 +45,13 @@ stable 편집 표면의 계약을 한 곳에 모았다. 아래 표의 실패 모
|
|
|
45
45
|
- `preserve_format=False`면 글을 받은 run 하나만 `charPrIDRef="0"`이 된다.
|
|
46
46
|
- 셀 문단의 줄 배치 캐시(`hp:linesegarray`)를 지워 한/글이 줄을 다시 나누게 한다.
|
|
47
47
|
|
|
48
|
-
`split_paragraphs=True`면 셀 문단을 **다시 만든다**.
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
`split_paragraphs=True`면 셀 자신의 글 문단을 **다시 만든다**. 그 문단은 모두
|
|
49
|
+
지워지고, 줄마다 run 하나짜리 새 문단이 새 id로 첫 글 문단 자리에 생긴다. 줄 `i`는
|
|
50
|
+
기존 `i`번째 글 문단(없으면 첫 글 문단)의 `paraPrIDRef`·`styleIDRef`·
|
|
51
51
|
`pageBreak`·`columnBreak`·`merged`와 그 문단 첫 run의 `charPrIDRef`를 이어받는다.
|
|
52
|
+
안쪽 표·개체(그림, 글상자, 컨트롤 등)를 담은 문단은 자리와 담은 것을 그대로 두고 그
|
|
53
|
+
문단 자신의 글만 비운다. 글 문단이 없는 셀은 새 문단을 첫 개체 문단 앞에 두고, 그
|
|
54
|
+
문단의 문단 모양을 쓴다.
|
|
52
55
|
|
|
53
56
|
### 셀 여백
|
|
54
57
|
|
|
@@ -18,10 +18,10 @@ Contract provenance: specs/054-equation-authoring/evidence/p0/equation-contract.
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
20
20
|
from .eqedit import (
|
|
21
|
-
_RESERVED_WORDS,
|
|
22
21
|
MAX_GROUP_DEPTH,
|
|
23
22
|
MAX_SOURCE_LENGTH,
|
|
24
23
|
EquationConversionError,
|
|
24
|
+
_needs_literal_quotes,
|
|
25
25
|
)
|
|
26
26
|
from .tokens import (
|
|
27
27
|
ACCENTS,
|
|
@@ -118,7 +118,7 @@ _ENV_TO_EQEDIT: dict[str, str] = {
|
|
|
118
118
|
"cases": "cases",
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
# Bare identifier runs that would collide with EqEdit vocabulary
|
|
121
|
+
# Bare identifier runs that would collide with EqEdit vocabulary or font prefixes
|
|
122
122
|
# must be quoted so Hancom keeps them literal (reserved-word protection).
|
|
123
123
|
|
|
124
124
|
# ``~`` is a space in both: a LaTeX tie and EqEdit's normal space (``\,`` is the small one, `` ` ``).
|
|
@@ -314,7 +314,7 @@ class _LatexParser:
|
|
|
314
314
|
raise UnsupportedLatexError(f"unsupported LaTeX escape: \\{char}")
|
|
315
315
|
|
|
316
316
|
def _plain_token(self, token: str) -> str:
|
|
317
|
-
if token
|
|
317
|
+
if _needs_literal_quotes(token):
|
|
318
318
|
# Reserved-word protection: keep the identifier literal in Hancom.
|
|
319
319
|
return f'"{token}"'
|
|
320
320
|
return token
|
|
@@ -23,8 +23,8 @@ Design notes (matches Hancom EqEdit grouping semantics):
|
|
|
23
23
|
they are. ``bold`` makes only the next atom bold (italic bold, or upright
|
|
24
24
|
bold after ``rm``), and a ``rm``/``it`` right after it uses it up. Letter runs
|
|
25
25
|
read as ``\\mathrm``/``\\mathbf``/``\\boldsymbol`` so a switch never comes
|
|
26
|
-
back as a word that re-authoring would draw as letters.
|
|
27
|
-
|
|
26
|
+
back as a word that re-authoring would draw as letters. A switch at the start
|
|
27
|
+
of a word also applies without a space (``rmA``), as observed in Hancom.
|
|
28
28
|
|
|
29
29
|
Untrusted input is bounded by :data:`MAX_SOURCE_LENGTH` and
|
|
30
30
|
:data:`MAX_GROUP_DEPTH`; exceeding either raises :class:`EquationConversionError`
|
|
@@ -53,7 +53,8 @@ MAX_GROUP_DEPTH = 64
|
|
|
53
53
|
# Words EqEdit reads as symbols, structure or font switches. The writer quotes a bare identifier that collides
|
|
54
54
|
# with one (``T_{int}`` → ``T _{"int"}``, ``e^{it}`` → ``e ^{"it"}``: a lone ``it`` in a superscript switches to
|
|
55
55
|
# italic and draws nothing); the reader turns such a quoted word back into plain letters.
|
|
56
|
-
|
|
56
|
+
_FONT_PREFIXES = ("bold", "Bold", "BOLD", "rm", "Rm", "RM", "it", "It", "IT")
|
|
57
|
+
_FONT_SWITCHES = frozenset(_FONT_PREFIXES)
|
|
57
58
|
# Tokens that end the current atom: a font switch right before one switches and draws nothing.
|
|
58
59
|
_ATOM_END = frozenset({"}", "&", "#", "RIGHT", "^", "_", "over", "atop", "choose"})
|
|
59
60
|
_RESERVED_WORDS = (
|
|
@@ -104,6 +105,11 @@ def _lex_run(source: str, i: int, tokens: list[str], predicate: Any) -> int:
|
|
|
104
105
|
return j
|
|
105
106
|
|
|
106
107
|
|
|
108
|
+
def _needs_literal_quotes(word: str) -> bool:
|
|
109
|
+
"""Keep identifiers distinct from observed EqEdit words and font prefixes."""
|
|
110
|
+
return word.isalpha() and (word in _RESERVED_WORDS or word.startswith(_FONT_PREFIXES))
|
|
111
|
+
|
|
112
|
+
|
|
107
113
|
def _tokenize(source: str) -> list[str]:
|
|
108
114
|
tokens: list[str] = []
|
|
109
115
|
i = 0
|
|
@@ -122,7 +128,13 @@ def _tokenize(source: str) -> list[str]:
|
|
|
122
128
|
elif ch.isdigit() or ch == ".":
|
|
123
129
|
i = _lex_run(source, i, tokens, lambda c: c.isdigit() or c == ".")
|
|
124
130
|
elif ch.isalpha():
|
|
125
|
-
|
|
131
|
+
for switch in _FONT_PREFIXES:
|
|
132
|
+
if source.startswith(switch, i):
|
|
133
|
+
tokens.append(switch)
|
|
134
|
+
i += len(switch)
|
|
135
|
+
break
|
|
136
|
+
else:
|
|
137
|
+
i = _lex_run(source, i, tokens, str.isalpha)
|
|
126
138
|
else:
|
|
127
139
|
# Any other single character (operators like + - = < > , ! ; :).
|
|
128
140
|
tokens.append(ch)
|
|
@@ -413,7 +425,7 @@ class _Parser:
|
|
|
413
425
|
return r"\{" if token == "LBRACE" else r"\}"
|
|
414
426
|
if token.startswith('"') and token.endswith('"') and len(token) >= 2:
|
|
415
427
|
literal = token[1:-1]
|
|
416
|
-
if literal
|
|
428
|
+
if _needs_literal_quotes(literal):
|
|
417
429
|
# A quoted reserved word is an identifier kept from turning into a symbol; Hancom draws it in
|
|
418
430
|
# italic, as LaTeX draws plain letters. Upright text is the ``{rm "..." it}`` group.
|
|
419
431
|
return self._styled(literal)
|
|
@@ -38,7 +38,7 @@ from __future__ import annotations
|
|
|
38
38
|
from dataclasses import dataclass
|
|
39
39
|
from typing import NamedTuple
|
|
40
40
|
|
|
41
|
-
from .eqedit import MAX_GROUP_DEPTH, MAX_SOURCE_LENGTH, _tokenize
|
|
41
|
+
from .eqedit import _ATOM_END, _FONT_SWITCHES, MAX_GROUP_DEPTH, MAX_SOURCE_LENGTH, _tokenize
|
|
42
42
|
from .tokens import (
|
|
43
43
|
ACCENTS,
|
|
44
44
|
BIG_OPERATORS,
|
|
@@ -133,7 +133,6 @@ _KEYWORD_GLYPHS = {
|
|
|
133
133
|
#: Keyword names whose case picks the glyph: ``LINE``/``vert`` draw |, ``VERT`` draws a double bar.
|
|
134
134
|
_CASED_KEYWORD_GLYPHS = {"LINE": _BAR, "vert": _BAR, "VERT": _DOUBLE_BAR}
|
|
135
135
|
_LIMIT_WORDS = frozenset({"lim", "limsup", "liminf", "max", "min"})
|
|
136
|
-
_FONT_WORDS = frozenset({"rm", "it", "bold"})
|
|
137
136
|
_RELATIONS = frozenset({"=", "<", ">", "+", "-", "×", "÷"}) | frozenset(SYMBOL_OPERATORS)
|
|
138
137
|
#: Hancom symbol names (any case) drawn with operator spacing.
|
|
139
138
|
_SYMBOL_RELATIONS = frozenset({
|
|
@@ -273,7 +272,7 @@ def _token_width(token: str, upright: bool = False, sign: bool = False) -> float
|
|
|
273
272
|
|
|
274
273
|
def _follows_operand(token: str, operand: bool) -> bool:
|
|
275
274
|
"""Whether a sign after *token* has an operand before it (*operand*: before *token*)."""
|
|
276
|
-
if token
|
|
275
|
+
if token in _FONT_SWITCHES:
|
|
277
276
|
return operand
|
|
278
277
|
return not (_is_operator(token) or token in ("(", "[", ","))
|
|
279
278
|
|
|
@@ -340,7 +339,14 @@ class _Measurer:
|
|
|
340
339
|
return True
|
|
341
340
|
|
|
342
341
|
def _atom(self, depth: int) -> _Box:
|
|
342
|
+
# A font switch is not the atom: ``x^rmA`` scripts the ``A`` as the converter
|
|
343
|
+
# reads it, so the switch applies and the next token is measured instead.
|
|
343
344
|
token = self._next()
|
|
345
|
+
while token in _FONT_SWITCHES:
|
|
346
|
+
self._symbol(token)
|
|
347
|
+
if self._peek() is None or self._peek() in _ATOM_END:
|
|
348
|
+
return _Box(0.0, 0.0, 0.0)
|
|
349
|
+
token = self._next()
|
|
344
350
|
return _Box(0.0, 0.0, 0.0) if token is None else self._dispatch(token, depth)
|
|
345
351
|
|
|
346
352
|
def _group(self, depth: int) -> _Box:
|
|
@@ -399,7 +405,7 @@ class _Measurer:
|
|
|
399
405
|
def _symbol(self, token: str, sign: bool = False) -> _Box:
|
|
400
406
|
if token in FUNCTIONS or token.lower() in _LIMIT_WORDS:
|
|
401
407
|
return _Box(_upright_word(token) + _FUNCTION_PAD, _ASCENT, _DESCENT)
|
|
402
|
-
if token
|
|
408
|
+
if token in _FONT_SWITCHES or token in ("of", "&"):
|
|
403
409
|
if token.lower() in ("rm", "it"):
|
|
404
410
|
self._upright = token.lower() == "rm"
|
|
405
411
|
return _Box(0.0, 0.0, 0.0)
|