dknowc-dsh 2.3.0 → 2.4.0
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.
- package/README.md +14 -50
- package/package.json +2 -2
- package/skills/dk-trace-report/SKILL.md +288 -0
- package/skills/dk-trace-report/config/examples/doc.json +56 -0
- package/skills/dk-trace-report/config/examples/legal.json +51 -0
- package/skills/dk-trace-report/config/examples/ppt.json +47 -0
- package/skills/dk-trace-report/config/examples/tax.json +46 -0
- package/skills/dk-trace-report/config/examples/trusted.json +122 -0
- package/skills/dk-trace-report/reference/sample_input.json +60 -0
- package/skills/dk-trace-report/resources/ECHARTS-NOTICE.txt +10 -0
- package/skills/dk-trace-report/resources/echarts.custom.min.js +48 -0
- package/skills/dk-trace-report/scripts/build_report_input.py +333 -0
- package/skills/{dknowc-trusted-search → dk-trace-report}/scripts/chart_embed.py +4 -1
- package/skills/{dknowc-trusted-search → dk-trace-report}/scripts/render_trace_html.py +1072 -537
- package/skills/dk-trace-report/scripts/run_paths.py +95 -0
- package/skills/dk-trace-report/scripts/trust_digest.py +77 -0
- package/skills/dknowc-legal-assistant/README.md +95 -0
- package/skills/dknowc-legal-assistant/SKILL.md +122 -0
- package/skills/dknowc-legal-assistant/attribution.json +5 -0
- package/skills/dknowc-legal-assistant/reference/answer-and-report.md +221 -0
- package/skills/dknowc-legal-assistant/reference/capability-layer.md +143 -0
- package/skills/dknowc-legal-assistant/reference/legal_claims.example.json +96 -0
- package/skills/dknowc-legal-assistant/reference/onboarding_scripts.md +198 -0
- package/skills/dknowc-legal-assistant/reference/policy_tags.json +2002 -0
- package/skills/dknowc-legal-assistant/reference/retrieval-statute.md +81 -0
- package/skills/dknowc-legal-assistant/reference/retrieval-v2.md +133 -0
- package/skills/dknowc-legal-assistant/reference/sample_search_result.md +33 -0
- package/skills/dknowc-legal-assistant/reference/sample_trace_report.html +940 -0
- package/skills/dknowc-legal-assistant/reference/tags.md +53 -0
- package/skills/dknowc-legal-assistant/reference/troubleshooting.md +50 -0
- package/skills/dknowc-legal-assistant/reference/verification-pass.md +59 -0
- package/skills/dknowc-legal-assistant/resources/echarts.custom.min.js +48 -0
- package/skills/dknowc-legal-assistant/scripts/api_key.py +68 -0
- package/skills/dknowc-legal-assistant/scripts/attribution.py +61 -0
- package/skills/dknowc-legal-assistant/scripts/calc_legal.py +375 -0
- package/skills/dknowc-legal-assistant/scripts/calc_period.py +155 -0
- package/skills/dknowc-legal-assistant/scripts/check_answer.py +664 -0
- package/skills/dknowc-legal-assistant/scripts/initialize.py +188 -0
- package/skills/dknowc-legal-assistant/scripts/legal_client.py +208 -0
- package/skills/dknowc-legal-assistant/scripts/legal_search.py +1059 -0
- package/skills/dknowc-legal-assistant/scripts/merge_search_results.py +630 -0
- package/skills/dknowc-legal-assistant/scripts/path_guard.py +92 -0
- package/skills/dknowc-legal-assistant/scripts/question_profile.py +215 -0
- package/skills/dknowc-legal-assistant/scripts/register_key.mjs +1152 -0
- package/skills/dknowc-legal-assistant/scripts/run_eval.py +109 -0
- package/skills/dknowc-legal-assistant/scripts/source_cards.py +321 -0
- package/skills/dknowc-legal-assistant/scripts/tag_catalog.py +162 -0
- package/skills/dknowc-legal-assistant/scripts/trace_report.config.json +66 -0
- package/skills/dknowc-legal-assistant/scripts/verify_claims.py +448 -0
- package/skills/dknowc-legal-assistant/scripts/websearch_convert.py +396 -0
- package/skills/dknowc-official-doc-writer/README.md +45 -25
- package/skills/dknowc-official-doc-writer/SKILL.md +28 -14
- package/skills/dknowc-official-doc-writer/config/trace_report.config.json +56 -0
- package/skills/dknowc-official-doc-writer/official-docs/input//345/274/225/347/224/250/345/257/271/347/205/247_/351/252/214/346/224/266_materials.json +628 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_1555.json +345 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_my.json +728 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_wp.json +159 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_wp2.json +1006 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/test_tz.json +28 -0
- package/skills/dknowc-official-doc-writer/official-docs/search-results/tmp_q.json +1419 -0
- package/skills/dknowc-official-doc-writer/reference/anti_ai_patterns.md +13 -1
- package/skills/dknowc-official-doc-writer/reference/fact_discipline.md +4 -0
- package/skills/dknowc-official-doc-writer/reference/genre_writing_notes.md +4 -0
- package/skills/dknowc-official-doc-writer/reference/initialization.md +28 -20
- package/skills/dknowc-official-doc-writer/reference/material_usage_guidance.md +21 -0
- package/skills/dknowc-official-doc-writer/reference/materials_pipeline.md +64 -7
- package/skills/dknowc-official-doc-writer/reference/onboarding_scripts.md +43 -32
- package/skills/dknowc-official-doc-writer/reference/outline_rules.md +1 -1
- package/skills/dknowc-official-doc-writer/reference/output_guide.md +19 -20
- package/skills/dknowc-official-doc-writer/reference/research_notes.md +5 -3
- package/skills/dknowc-official-doc-writer/reference/review_checklist.md +6 -2
- package/skills/dknowc-official-doc-writer/reference/revision_workflow.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/search_guide.md +45 -33
- package/skills/dknowc-official-doc-writer/reference/search_intro.md +4 -4
- package/skills/dknowc-official-doc-writer/reference/search_policy.md +63 -36
- package/skills/dknowc-official-doc-writer/reference/standards/00_index.md +63 -77
- package/skills/dknowc-official-doc-writer/reference/standards/01_report.md +3 -3
- package/skills/dknowc-official-doc-writer/reference/standards/02_qingshi.md +6 -3
- package/skills/dknowc-official-doc-writer/reference/standards/03_pifu.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/04_tongzhi.md +12 -3
- package/skills/dknowc-official-doc-writer/reference/standards/05_yijian.md +8 -2
- package/skills/dknowc-official-doc-writer/reference/standards/06_han.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/08_tongbao.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/09_tonggao.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/10_gonggao.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/11_fuhan_approve.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/12_fuhan_objection.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/13_reminder.md +3 -3
- package/skills/dknowc-official-doc-writer/reference/standards/14_generic.md +1 -1
- package/skills/dknowc-official-doc-writer/reference/standards/16_decision.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/18_order.md +1 -1
- package/skills/dknowc-official-doc-writer/reference/standards/19_gazette.md +1 -1
- package/skills/dknowc-official-doc-writer/reference/standards/20_motion.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/22_application.md +2 -2
- package/skills/dknowc-official-doc-writer/reference/standards/23_publicity.md +1 -1
- package/skills/dknowc-official-doc-writer/reference/standards/25_plan.md +2 -1
- package/skills/dknowc-official-doc-writer/reference/standards/26_summary.md +7 -1
- package/skills/dknowc-official-doc-writer/reference/standards/27_speech.md +4 -1
- package/skills/dknowc-official-doc-writer/reference/standards/99_expressions.md +1 -2
- package/skills/dknowc-official-doc-writer/reference/task_router.md +5 -5
- package/skills/dknowc-official-doc-writer/reference/working_principles.md +4 -4
- package/skills/dknowc-official-doc-writer/reference/writing_method.md +166 -0
- package/skills/dknowc-official-doc-writer/reference/writing_rules.md +11 -5
- package/skills/dknowc-official-doc-writer/scripts/api_key.py +30 -3
- package/skills/dknowc-official-doc-writer/scripts/attribution.py +1 -1
- package/skills/dknowc-official-doc-writer/scripts/build_trace_json.py +216 -22
- package/skills/dknowc-official-doc-writer/scripts/check_materials.py +375 -27
- package/skills/dknowc-official-doc-writer/scripts/deep_convert.py +9 -4
- package/skills/dknowc-official-doc-writer/scripts/deep_query.py +3 -2
- package/skills/dknowc-official-doc-writer/scripts/dkag_search.py +23 -9
- package/skills/dknowc-official-doc-writer/scripts/extract_reference.py +2 -1
- package/skills/dknowc-official-doc-writer/scripts/format_document.py +116 -41
- package/skills/dknowc-official-doc-writer/scripts/initialize.py +246 -12
- package/skills/dknowc-official-doc-writer/scripts/local_memory.py +2 -6
- package/skills/dknowc-official-doc-writer/scripts/mcp_direct.py +2 -3
- package/skills/dknowc-official-doc-writer/scripts/merge_search_results.py +113 -13
- package/skills/dknowc-official-doc-writer/scripts/outline_reference.py +3 -2
- package/skills/dknowc-official-doc-writer/scripts/prose_lint.py +7 -2
- package/skills/dknowc-official-doc-writer/scripts/register.mjs +782 -216
- package/skills/dknowc-official-doc-writer/scripts/review_document.py +2 -1
- package/skills/dknowc-official-doc-writer/scripts/source_note_html.py +120 -13
- package/skills/dknowc-official-doc-writer/scripts/template_generator.py +2 -1
- package/skills/dknowc-official-doc-writer/scripts/update_skill.py +339 -0
- package/skills/dknowc-official-doc-writer/scripts/websearch_convert.py +326 -0
- package/skills/dknowc-ppt-assistant/README.md +21 -9
- package/skills/dknowc-ppt-assistant/SKILL.md +29 -20
- package/skills/dknowc-ppt-assistant/THIRD_PARTY_NOTICES.md +3 -2
- package/skills/dknowc-ppt-assistant/config/trace_report.config.json +65 -0
- package/skills/dknowc-ppt-assistant/references/initialization.md +58 -7
- package/skills/dknowc-ppt-assistant/references/material_usage.md +51 -14
- package/skills/dknowc-ppt-assistant/references/onboarding_scripts.md +51 -18
- package/skills/dknowc-ppt-assistant/references/sample_trace_report.html +372 -920
- package/skills/dknowc-ppt-assistant/references/search_intro.md +2 -2
- package/skills/dknowc-ppt-assistant/references/svg-authoring.md +3 -3
- package/skills/dknowc-ppt-assistant/references/upstream-example/README.md +2 -0
- package/skills/dknowc-ppt-assistant/scripts/api_key.py +11 -27
- package/skills/dknowc-ppt-assistant/scripts/attribution.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/build_trace_input.py +188 -0
- package/skills/dknowc-ppt-assistant/scripts/compact_svg_coordinates.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/config.py +9 -9
- package/skills/dknowc-ppt-assistant/scripts/console_encoding.py +1 -2
- package/skills/dknowc-ppt-assistant/scripts/error_helper.py +3 -3
- package/skills/dknowc-ppt-assistant/scripts/hyperlink_contract.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/initialize.py +248 -15
- package/skills/dknowc-ppt-assistant/scripts/language_tags.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/mcp_convert.py +7 -14
- package/skills/dknowc-ppt-assistant/scripts/mcp_direct.py +3 -2
- package/skills/dknowc-ppt-assistant/scripts/merge_search_results.py +604 -0
- package/skills/dknowc-ppt-assistant/scripts/native_payloads.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_animations.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/__init__.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/errors.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/formula.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/loader.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/models.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/registry.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/semantic_hash.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/semantics.py +3 -3
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/animation_import.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/formula_import.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/hyperlinks.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_authoring.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_registry_to_svg.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_svg_markup.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/slide_to_svg.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/transition_import.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/pptx_transitions.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/preset_shape_svg.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/preview_slide_html.py +4 -11
- package/skills/dknowc-ppt-assistant/scripts/project_utils.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/register_key.mjs +890 -341
- package/skills/dknowc-ppt-assistant/scripts/resource_paths.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/shape_boolean_svg.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/slide_roster.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_finalize/__init__.py +2 -9
- package/skills/dknowc-ppt-assistant/scripts/svg_finalize/align_embed_images.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_finalize/crop_images.py +3 -3
- package/skills/dknowc-ppt-assistant/scripts/svg_quality/__init__.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_quality/checker.py +9 -10
- package/skills/dknowc-ppt-assistant/scripts/svg_quality/cli.py +4 -4
- package/skills/dknowc-ppt-assistant/scripts/svg_quality/svg_contracts.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_quality/xml_support.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_quality_checker.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/hyperlinks.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/theme_colors.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/theme_fonts.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/geometry_properties.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_ast.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_compiler.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_omml.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_parser.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_profile.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_run_properties.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/inline_formula.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/builder.py +9 -11
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/cli.py +7 -5
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/template_structure.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/template_validation.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/semantic_markers.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/shape_boolean.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/text_outline.py +2 -2
- package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx.py +1 -1
- package/skills/dknowc-ppt-assistant/scripts/trusted_search.py +51 -17
- package/skills/dknowc-ppt-assistant/scripts/update_skill.py +314 -0
- package/skills/dknowc-ppt-assistant/scripts/update_spec.py +25 -1
- package/skills/dknowc-ppt-assistant/scripts/websearch_convert.py +326 -0
- package/skills/dknowc-ppt-assistant/workflows/generate-pptx.md +99 -34
- package/skills/dknowc-tax-assistant/README.md +54 -0
- package/skills/dknowc-tax-assistant/SKILL.md +99 -0
- package/skills/dknowc-tax-assistant/attribution.json +5 -0
- package/skills/dknowc-tax-assistant/reference/answer-and-report.md +100 -0
- package/skills/dknowc-tax-assistant/reference/capability-layer.md +205 -0
- package/skills/dknowc-tax-assistant/reference/onboarding_scripts.md +68 -0
- package/skills/dknowc-tax-assistant/reference/policy_tags.json +2002 -0
- package/skills/dknowc-tax-assistant/reference/retrieval-policy.md +43 -0
- package/skills/dknowc-tax-assistant/reference/retrieval-v2.md +58 -0
- package/skills/dknowc-tax-assistant/reference/tags.md +53 -0
- package/skills/dknowc-tax-assistant/reference/tax_claims.example.json +76 -0
- package/skills/dknowc-tax-assistant/reference/trace_report.config.json +46 -0
- package/skills/dknowc-tax-assistant/reference/troubleshooting.md +70 -0
- package/skills/dknowc-tax-assistant/reference/websearch-fallback.md +59 -0
- package/skills/dknowc-tax-assistant/resources/THIRD_PARTY_NOTICES.md +9 -0
- package/skills/dknowc-tax-assistant/resources/echarts.custom.min.js +48 -0
- package/skills/dknowc-tax-assistant/scripts/api_key.py +60 -0
- package/skills/dknowc-tax-assistant/scripts/attribution.py +61 -0
- package/skills/dknowc-tax-assistant/scripts/calc_period.py +156 -0
- package/skills/dknowc-tax-assistant/scripts/calc_tax.py +179 -0
- package/skills/dknowc-tax-assistant/scripts/check_answer.py +210 -0
- package/skills/dknowc-tax-assistant/scripts/initialize.py +208 -0
- package/skills/dknowc-tax-assistant/scripts/merge_search_results.py +631 -0
- package/skills/dknowc-tax-assistant/scripts/path_guard.py +23 -0
- package/skills/dknowc-tax-assistant/scripts/question_profile.py +444 -0
- package/skills/dknowc-tax-assistant/scripts/register_key.mjs +1173 -0
- package/skills/dknowc-tax-assistant/scripts/run_dir.py +149 -0
- package/skills/dknowc-tax-assistant/scripts/source_cards.py +372 -0
- package/skills/dknowc-tax-assistant/scripts/tag_catalog.py +164 -0
- package/skills/dknowc-tax-assistant/scripts/tax_client.py +218 -0
- package/skills/dknowc-tax-assistant/scripts/tax_search.py +403 -0
- package/skills/dknowc-tax-assistant/scripts/verify_claims.py +587 -0
- package/skills/dknowc-tax-assistant/scripts/websearch_convert.py +352 -0
- package/skills/dknowc-trusted-search/README.md +29 -23
- package/skills/dknowc-trusted-search/SKILL.md +257 -107
- package/skills/dknowc-trusted-search/config/trace_report.config.json +119 -0
- package/skills/dknowc-trusted-search/reference/onboarding_scripts.md +40 -15
- package/skills/dknowc-trusted-search/reference/sample_trace_report.html +286 -191
- package/skills/dknowc-trusted-search/resources/ECHARTS-NOTICE.txt +10 -0
- package/skills/dknowc-trusted-search/scripts/api_key.py +10 -26
- package/skills/dknowc-trusted-search/scripts/attribution.py +1 -1
- package/skills/dknowc-trusted-search/scripts/build_trace_input.py +173 -0
- package/skills/dknowc-trusted-search/scripts/deep_convert.py +79 -30
- package/skills/dknowc-trusted-search/scripts/deep_query.py +23 -34
- package/skills/dknowc-trusted-search/scripts/initialize.py +353 -12
- package/skills/dknowc-trusted-search/scripts/mcp_direct.py +3 -2
- package/skills/dknowc-trusted-search/scripts/merge_search_results.py +222 -35
- package/skills/dknowc-trusted-search/scripts/register_key.mjs +845 -291
- package/skills/dknowc-trusted-search/scripts/source_display.py +59 -0
- package/skills/dknowc-trusted-search/scripts/trusted_search.py +69 -36
- package/skills/dknowc-trusted-search/scripts/update_skill.py +300 -0
- package/skills/dknowc-trusted-search/scripts/websearch_convert.py +328 -0
- package/src/index.js +15 -0
- package/skills/dknowc-official-doc-writer/scripts/mcp_convert.py +0 -287
- package/skills/dknowc-official-doc-writer/scripts/render_trace_html.py +0 -2574
- package/skills/dknowc-ppt-assistant/references/upstream-docs/svg-pipeline.md +0 -842
- package/skills/dknowc-ppt-assistant/scripts/finalize_svg.py +0 -507
- package/skills/dknowc-ppt-assistant/scripts/render_trace_html.py +0 -2642
- package/skills/dknowc-ppt-assistant/scripts/svg_finalize/svg_rect_to_path.py +0 -346
- package/skills/dknowc-trusted-search/official-docs/output/.gitkeep +0 -0
- package/skills/dknowc-trusted-search/official-docs/search-results/.gitkeep +0 -0
- package/skills/dknowc-trusted-search/scripts/mcp_convert.py +0 -198
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Shape Boolean SVG Fragment Tool
|
|
4
4
|
|
|
5
5
|
Combine closed SVG shapes or resolvable text outlines and print the resulting
|
|
6
6
|
canonical SVG path fragment to stdout. Result geometry is in SVG-root coordinate
|
|
@@ -22,7 +22,7 @@ Examples:
|
|
|
22
22
|
--operation subtract --source scrim --source chapter-number --id reveal
|
|
23
23
|
|
|
24
24
|
Dependencies:
|
|
25
|
-
skia-pathops, local PPT
|
|
25
|
+
skia-pathops, local 深知可信PPT modules, and uharfbuzz for text operands
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
from __future__ import annotations
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
"""svg_finalize — shared self-containment + DrawingML-compat utilities.
|
|
2
2
|
|
|
3
|
-
Used by
|
|
4
|
-
|
|
5
|
-
1. finalize_svg.py — writes svg_output/ → svg_final/ on disk
|
|
6
|
-
2. svg_to_pptx (use_expander, tspan_flattener) — reuses these modules
|
|
7
|
-
in memory during native pptx conversion
|
|
8
|
-
|
|
9
|
-
Deleting any module here is likely to break native pptx output, not just
|
|
10
|
-
svg_final/. See scripts/docs/svg-pipeline.md for the full per-module consumer
|
|
11
|
-
table.
|
|
3
|
+
Used by svg_to_pptx (use_expander, tspan_flattener) in memory during native pptx
|
|
4
|
+
conversion.
|
|
12
5
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Smart Image Cropping Tool
|
|
4
4
|
|
|
5
5
|
Smartly crops images based on the preserveAspectRatio attribute of <image> elements in SVG:
|
|
6
6
|
- slice: Crop to fill (similar to CSS object-fit: cover)
|
|
@@ -325,7 +325,7 @@ def process_directory(directory: str, dry_run: bool = False, verbose: bool = Tru
|
|
|
325
325
|
def main() -> None:
|
|
326
326
|
"""Run the CLI entry point."""
|
|
327
327
|
parser = argparse.ArgumentParser(
|
|
328
|
-
description='PPT
|
|
328
|
+
description='深知可信PPT - Smart Image Cropping Tool',
|
|
329
329
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
330
330
|
epilog='''
|
|
331
331
|
Examples:
|
|
@@ -352,7 +352,7 @@ preserveAspectRatio usage:
|
|
|
352
352
|
print(f"[ERROR] Path not found: {args.path}")
|
|
353
353
|
sys.exit(1)
|
|
354
354
|
|
|
355
|
-
print("PPT
|
|
355
|
+
print("深知可信PPT - Smart Image Cropping")
|
|
356
356
|
print("=" * 50)
|
|
357
357
|
|
|
358
358
|
if args.path.is_file():
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
"""PPT
|
|
2
|
+
"""深知可信PPT SVG quality-check internals.
|
|
3
3
|
|
|
4
4
|
Use the stable ``scripts/svg_quality_checker.py`` entry point for CLI execution
|
|
5
5
|
and compatibility imports.
|
|
@@ -11,5 +11,5 @@ Examples:
|
|
|
11
11
|
from svg_quality_checker import SVGQualityChecker
|
|
12
12
|
|
|
13
13
|
Dependencies:
|
|
14
|
-
Local PPT
|
|
14
|
+
Local 深知可信PPT validation modules.
|
|
15
15
|
"""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
"""PPT
|
|
2
|
+
"""深知可信PPT SVG quality-check implementation.
|
|
3
3
|
|
|
4
4
|
Owns SVG, project-contract, template, and report validation. The stable CLI and
|
|
5
5
|
compatibility import surface remain in ``scripts/svg_quality_checker.py``.
|
|
@@ -11,7 +11,7 @@ Examples:
|
|
|
11
11
|
from svg_quality_checker import SVGQualityChecker
|
|
12
12
|
|
|
13
13
|
Dependencies:
|
|
14
|
-
Standard library plus local PPT
|
|
14
|
+
Standard library plus local 深知可信PPT validation modules.
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import copy
|
|
@@ -5516,8 +5516,8 @@ class SVGQualityChecker:
|
|
|
5516
5516
|
'release SVG projects require an explicit spec_lock.md '
|
|
5517
5517
|
'pptx_structure.mode: flat (free design / brand-only) or '
|
|
5518
5518
|
f'structured (deck/layout template); found {label}. New '
|
|
5519
|
-
'free-design projects use mode: flat;
|
|
5520
|
-
'
|
|
5519
|
+
'free-design projects use mode: flat; follow the SVG authoring contract '
|
|
5520
|
+
'in references/svg-authoring.md, '
|
|
5521
5521
|
'then generate new structured SVG pages before export. Existing '
|
|
5522
5522
|
'PPTX/SVG files are not upgraded in place.',
|
|
5523
5523
|
))
|
|
@@ -6775,7 +6775,7 @@ class SVGQualityChecker:
|
|
|
6775
6775
|
- **Explicit structure gaps** are errors when positive structure checks
|
|
6776
6776
|
are enabled: every current reusable SVG declares its Master and Layout
|
|
6777
6777
|
identity. Zero-placeholder Layouts are valid. Legacy template-mode
|
|
6778
|
-
packages fail and must be
|
|
6778
|
+
packages fail and must be migrated to a structured workspace.
|
|
6779
6779
|
- **Placeholder gaps** are reported as *warnings*. Templates may
|
|
6780
6780
|
legitimately omit conventional placeholders or swap them out (e.g.
|
|
6781
6781
|
``{{CLOSING_MESSAGE}}`` instead of ``{{THANK_YOU}}``), and a content
|
|
@@ -6797,7 +6797,7 @@ class SVGQualityChecker:
|
|
|
6797
6797
|
'explicit_structure_mode',
|
|
6798
6798
|
"design_spec.md frontmatter must declare "
|
|
6799
6799
|
"native_structure_mode: structured; legacy template-mode "
|
|
6800
|
-
"workspaces must be re-created
|
|
6800
|
+
"workspaces must be re-created as structured workspaces",
|
|
6801
6801
|
))
|
|
6802
6802
|
if check_structure:
|
|
6803
6803
|
native_contract_path = dir_path / 'native_structure.json'
|
|
@@ -6874,7 +6874,7 @@ class SVGQualityChecker:
|
|
|
6874
6874
|
'legacy_native_structure_pair',
|
|
6875
6875
|
"legacy native_structure.json/source_template.pptx template "
|
|
6876
6876
|
"contracts must be replaced through "
|
|
6877
|
-
"
|
|
6877
|
+
"references/svg-authoring.md",
|
|
6878
6878
|
))
|
|
6879
6879
|
|
|
6880
6880
|
if declared_structure_mode != 'structured':
|
|
@@ -6891,8 +6891,7 @@ class SVGQualityChecker:
|
|
|
6891
6891
|
'error',
|
|
6892
6892
|
'legacy_structure_contract',
|
|
6893
6893
|
"legacy template structure detected; create a new current "
|
|
6894
|
-
"workspace
|
|
6895
|
-
"create-template.md before Step 3 consumption",
|
|
6894
|
+
"workspace per references/svg-authoring.md before Step 3 consumption",
|
|
6896
6895
|
))
|
|
6897
6896
|
spec_pages = self._extract_spec_roster(spec_text) if spec_text else []
|
|
6898
6897
|
custom_contract = self._extract_frontmatter_placeholders(spec_text) if spec_text else {}
|
|
@@ -7578,7 +7577,7 @@ class SVGQualityChecker:
|
|
|
7578
7577
|
def export_report(self, output_file: str = 'svg_quality_report.txt'):
|
|
7579
7578
|
"""Export check report"""
|
|
7580
7579
|
with open(output_file, 'w', encoding='utf-8') as f:
|
|
7581
|
-
f.write("PPT
|
|
7580
|
+
f.write("深知可信PPT SVG Quality Check Report\n")
|
|
7582
7581
|
f.write("=" * 80 + "\n\n")
|
|
7583
7582
|
|
|
7584
7583
|
for result in self.results:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
"""PPT
|
|
2
|
+
"""深知可信PPT SVG quality-check CLI implementation.
|
|
3
3
|
|
|
4
4
|
Parses the legacy command-line contract and delegates validation to the checker.
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ Examples:
|
|
|
10
10
|
python3 scripts/svg_quality_checker.py projects/demo --stage final --json
|
|
11
11
|
|
|
12
12
|
Dependencies:
|
|
13
|
-
Standard library plus local PPT
|
|
13
|
+
Standard library plus local 深知可信PPT validation modules.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
import sys
|
|
@@ -55,7 +55,7 @@ def _default_json_report_path(
|
|
|
55
55
|
|
|
56
56
|
def print_usage() -> None:
|
|
57
57
|
"""Print CLI usage information."""
|
|
58
|
-
print("PPT
|
|
58
|
+
print("深知可信PPT - SVG Quality Check Tool\n")
|
|
59
59
|
print("Usage:")
|
|
60
60
|
print(" python3 scripts/svg_quality_checker.py <svg_file>")
|
|
61
61
|
print(" python3 scripts/svg_quality_checker.py <directory>")
|
|
@@ -85,7 +85,7 @@ def print_usage() -> None:
|
|
|
85
85
|
print(" native_structure_mode: structured also enables complete")
|
|
86
86
|
print(" per-file and cross-page structure validation. Legacy")
|
|
87
87
|
print(" native_structure_mode: template fails and must be")
|
|
88
|
-
print(" re-created
|
|
88
|
+
print(" re-created as a structured workspace before validation.")
|
|
89
89
|
print(" Warnings are advisory: they require no modification and do not affect exit status;")
|
|
90
90
|
print(" only errors make the command exit with status 1.")
|
|
91
91
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
"""PPT
|
|
2
|
+
"""深知可信PPT stateless SVG contract checks.
|
|
3
3
|
|
|
4
4
|
Validates the SVG property surface shared with the native DrawingML exporter.
|
|
5
5
|
Each check receives an explicit XML root or source string and appends findings
|
|
@@ -12,7 +12,7 @@ Examples:
|
|
|
12
12
|
from svg_quality.svg_contracts import check_paint_compatibility
|
|
13
13
|
|
|
14
14
|
Dependencies:
|
|
15
|
-
Standard library plus local PPT
|
|
15
|
+
Standard library plus local 深知可信PPT SVG-to-PPTX modules.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
import copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - DrawingML Hyperlink Lowering
|
|
4
4
|
|
|
5
5
|
Register native PowerPoint hyperlink relationships and attach click actions to
|
|
6
6
|
text runs or clickable leaf shapes produced by the SVG converter.
|
|
@@ -13,7 +13,7 @@ Examples:
|
|
|
13
13
|
linked = apply_shape_hyperlink(result, ctx, "#slide-2")
|
|
14
14
|
|
|
15
15
|
Dependencies:
|
|
16
|
-
PPT
|
|
16
|
+
深知可信PPT hyperlink contract and DrawingML conversion context.
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -250,7 +250,7 @@ def apply_theme_color_spec(extract_dir: Path, spec: ThemeColorSpec) -> None:
|
|
|
250
250
|
color_scheme = tree.getroot().find(f".//{{{DML_NS}}}clrScheme")
|
|
251
251
|
if color_scheme is None:
|
|
252
252
|
raise ThemeColorError(f"Theme has no clrScheme: {theme_path}")
|
|
253
|
-
color_scheme.set("name", "PPT
|
|
253
|
+
color_scheme.set("name", "深知可信PPT")
|
|
254
254
|
for slot, color in spec.slots.items():
|
|
255
255
|
_set_scheme_color(color_scheme, slot, color)
|
|
256
256
|
tree.write(theme_path, encoding="utf-8", xml_declaration=True)
|
|
@@ -204,7 +204,7 @@ def apply_theme_font_spec(extract_dir: Path, spec: ThemeFontSpec) -> None:
|
|
|
204
204
|
minor = font_scheme.find(f"{{{DML_NS}}}minorFont")
|
|
205
205
|
if major is None or minor is None:
|
|
206
206
|
raise ThemeFontError(f"Theme has no major/minor font collection: {theme_path}")
|
|
207
|
-
font_scheme.set("name", "PPT
|
|
207
|
+
font_scheme.set("name", "深知可信PPT")
|
|
208
208
|
_patch_font_collection(major, spec.major)
|
|
209
209
|
_patch_font_collection(minor, spec.minor)
|
|
210
210
|
tree.write(theme_path, encoding="utf-8", xml_declaration=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Materialize the supported inline SVG geometry-property subset.
|
|
2
2
|
|
|
3
|
-
SVG 2 lets selected geometry values participate in CSS. PPT
|
|
3
|
+
SVG 2 lets selected geometry values participate in CSS. 深知可信PPT does not
|
|
4
4
|
run a CSS engine, but it can safely compile literal per-element ``style``
|
|
5
5
|
declarations into the equivalent XML geometry attributes before any existing
|
|
6
6
|
SVG post-processing or DrawingML conversion runs.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Native Formula Shape Builder
|
|
4
4
|
|
|
5
5
|
Build editable PowerPoint formula shapes from explicit LaTeX markers.
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ Examples:
|
|
|
13
13
|
from svg_to_pptx.native_objects.formula import build_native_formula
|
|
14
14
|
|
|
15
15
|
Dependencies:
|
|
16
|
-
None (only uses standard library and local PPT
|
|
16
|
+
None (only uses standard library and local 深知可信PPT modules)
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
r"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Native Formula Compiler
|
|
4
4
|
|
|
5
5
|
Compile the documented Microsoft 365 LaTeX input profile into editable block
|
|
6
6
|
or inline Office Math XML.
|
|
@@ -15,7 +15,7 @@ Examples:
|
|
|
15
15
|
compile_latex_to_omml(r"\frac{-b \pm \sqrt{b^2-4ac}}{2a}")
|
|
16
16
|
|
|
17
17
|
Dependencies:
|
|
18
|
-
None (only uses standard library and local PPT
|
|
18
|
+
None (only uses standard library and local 深知可信PPT modules)
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
from __future__ import annotations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Native Formula OMML Emitter
|
|
4
4
|
|
|
5
5
|
Emit the Microsoft 365 LaTeX profile AST as editable Office Math XML and
|
|
6
6
|
validate the narrow XML vocabulary produced by this module.
|
|
@@ -14,7 +14,7 @@ Examples:
|
|
|
14
14
|
emit_omml(expression, display=True)
|
|
15
15
|
|
|
16
16
|
Dependencies:
|
|
17
|
-
None (only uses standard library and local PPT
|
|
17
|
+
None (only uses standard library and local 深知可信PPT modules)
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
from __future__ import annotations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
r"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Microsoft 365 LaTeX Formula Parser
|
|
4
4
|
|
|
5
5
|
Parse the documented Microsoft 365 LaTeX import profile into the internal
|
|
6
6
|
native-formula AST. Unknown commands remain fail-closed.
|
|
@@ -14,7 +14,7 @@ Examples:
|
|
|
14
14
|
parse_latex_formula(r"\binom{n}{k}", display=True)
|
|
15
15
|
|
|
16
16
|
Dependencies:
|
|
17
|
-
None (only uses standard library and local PPT
|
|
17
|
+
None (only uses standard library and local 深知可信PPT modules)
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
from __future__ import annotations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Native Inline Formula Contract
|
|
4
4
|
|
|
5
5
|
Validate SVG inline-formula markers and build editable PowerPoint math runs.
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ Examples:
|
|
|
13
13
|
<tspan data-pptx-inline-formula="x_i^2">xᵢ²</tspan>
|
|
14
14
|
|
|
15
15
|
Dependencies:
|
|
16
|
-
None (only uses standard library and local PPT
|
|
16
|
+
None (only uses standard library and local 深知可信PPT modules)
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -3948,20 +3948,18 @@ def _create_writable_work_dir(output_path: Path) -> Path:
|
|
|
3948
3948
|
)
|
|
3949
3949
|
|
|
3950
3950
|
|
|
3951
|
-
def
|
|
3952
|
-
"""
|
|
3951
|
+
def _restrict_output_permissions(output_path: Path) -> list[str]:
|
|
3952
|
+
"""Restrict exported files to the owner (no group/other access)."""
|
|
3953
3953
|
warnings: list[str] = []
|
|
3954
3954
|
|
|
3955
3955
|
try:
|
|
3956
3956
|
current_mode = output_path.stat().st_mode
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
| stat.S_IRUSR
|
|
3960
|
-
| stat.
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
)
|
|
3964
|
-
os.chmod(output_path, readable_mode)
|
|
3957
|
+
# 显式清除组/其他读位:umask 决定创建权限(常见 644),仅"不追加"不足以收紧
|
|
3958
|
+
owner_only_mode = (
|
|
3959
|
+
(current_mode | stat.S_IRUSR | stat.S_IWUSR)
|
|
3960
|
+
& ~(stat.S_IRGRP | stat.S_IROTH | stat.S_IWGRP | stat.S_IWOTH)
|
|
3961
|
+
)
|
|
3962
|
+
os.chmod(output_path, owner_only_mode)
|
|
3965
3963
|
except OSError as exc:
|
|
3966
3964
|
warnings.append(f"chmod skipped for {output_path}: {exc}")
|
|
3967
3965
|
|
|
@@ -6233,7 +6231,7 @@ def create_pptx_with_native_svg(
|
|
|
6233
6231
|
f'PPTX animation package validation failed: {exc}'
|
|
6234
6232
|
) from exc
|
|
6235
6233
|
shutil.move(str(temp_output_path), str(output_path))
|
|
6236
|
-
permission_warnings =
|
|
6234
|
+
permission_warnings = _restrict_output_permissions(output_path)
|
|
6237
6235
|
|
|
6238
6236
|
if conversion_trace_path and conversion_trace is not None:
|
|
6239
6237
|
conversion_trace_path.parent.mkdir(parents=True, exist_ok=True)
|
|
@@ -633,7 +633,7 @@ def _print_structure_contract_error(
|
|
|
633
633
|
print(
|
|
634
634
|
" A legacy lock without pptx_structure.mode defaults only to flat. "
|
|
635
635
|
"Mirror/layout reuse must first create a current template workspace "
|
|
636
|
-
"
|
|
636
|
+
"following references/svg-authoring.md, then generate "
|
|
637
637
|
"new structured SVG pages.",
|
|
638
638
|
file=sys.stderr,
|
|
639
639
|
)
|
|
@@ -648,7 +648,7 @@ def _print_structure_contract_error(
|
|
|
648
648
|
" A legacy lock with no pptx_structure.mode defaults to flat. "
|
|
649
649
|
"Explicit legacy or unknown values are not inferred. Mirror/layout reuse "
|
|
650
650
|
"must first create a current template workspace "
|
|
651
|
-
"
|
|
651
|
+
"following references/svg-authoring.md, then generate "
|
|
652
652
|
"new structured SVG pages.",
|
|
653
653
|
file=sys.stderr,
|
|
654
654
|
)
|
|
@@ -811,7 +811,7 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
811
811
|
animation_choices = ['none', *ANIMATIONS, 'auto', 'mixed', 'random']
|
|
812
812
|
|
|
813
813
|
parser = argparse.ArgumentParser(
|
|
814
|
-
description='PPT
|
|
814
|
+
description='深知可信PPT - SVG to native DrawingML PPTX Tool',
|
|
815
815
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
816
816
|
epilog=f'''
|
|
817
817
|
Examples:
|
|
@@ -1346,7 +1346,7 @@ Recorded narration:
|
|
|
1346
1346
|
)
|
|
1347
1347
|
quick_flag = ' --quick-generate' if args.quick_generate else ''
|
|
1348
1348
|
print(
|
|
1349
|
-
"Run: python3
|
|
1349
|
+
"Run: python3 scripts/svg_quality_checker.py "
|
|
1350
1350
|
f'"{project_path}"{quick_flag} --stage final --json',
|
|
1351
1351
|
file=sys.stderr,
|
|
1352
1352
|
)
|
|
@@ -1453,7 +1453,9 @@ Recorded narration:
|
|
|
1453
1453
|
|
|
1454
1454
|
backup_dir: Path | None = None
|
|
1455
1455
|
if args.output:
|
|
1456
|
+
# 显式 -o:使用调用方给定的固定文件名,同时保留 svg_output 备份(与默认分支一致)
|
|
1456
1457
|
native_path = Path(args.output)
|
|
1458
|
+
backup_dir = project_path / "backup" / timestamp
|
|
1457
1459
|
else:
|
|
1458
1460
|
exports_dir = project_path / "exports"
|
|
1459
1461
|
exports_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -1954,7 +1956,7 @@ Recorded narration:
|
|
|
1954
1956
|
)
|
|
1955
1957
|
|
|
1956
1958
|
if verbose:
|
|
1957
|
-
print("PPT
|
|
1959
|
+
print("深知可信PPT - SVG to native DrawingML PPTX Tool")
|
|
1958
1960
|
print("=" * 50)
|
|
1959
1961
|
print(f" Project path: {project_path}")
|
|
1960
1962
|
print(f" SVG directory: {native_source_dir}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Shape Boolean Core
|
|
4
4
|
|
|
5
5
|
Resolve closed SVG or text-outline operands into SVG-root-coordinate paths and
|
|
6
6
|
apply PowerPoint-compatible merge-shapes operations without mutating the source.
|
|
@@ -19,7 +19,7 @@ Examples:
|
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
Dependencies:
|
|
22
|
-
skia-pathops, local PPT
|
|
22
|
+
skia-pathops, local 深知可信PPT modules, and uharfbuzz for text operands
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
from __future__ import annotations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
"""
|
|
3
|
-
PPT
|
|
3
|
+
深知可信PPT - Text Outline Materialization
|
|
4
4
|
|
|
5
5
|
Resolve one supported SVG ``<text>`` operand into closed glyph-outline path
|
|
6
6
|
commands for the Shape Boolean geometry pipeline.
|
|
@@ -9,7 +9,7 @@ Usage:
|
|
|
9
9
|
Import text_element_to_path_commands from svg_to_pptx.text_outline.
|
|
10
10
|
|
|
11
11
|
Dependencies:
|
|
12
|
-
uharfbuzz and local PPT
|
|
12
|
+
uharfbuzz and local 深知可信PPT modules
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
from __future__ import annotations
|