codewave-openclaw-installer 1.0.2 → 2.1.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 +95 -22
- package/bin/check.mjs +623 -0
- package/bin/install-lib.mjs +215 -0
- package/bin/install.mjs +818 -76
- package/index.js +21 -0
- package/openclaw.plugin.json +11 -0
- package/package.json +28 -5
- package/skills/acceptance-doc-entry/SKILL.md +289 -0
- package/skills/meeting-to-prd/SKILL.md +210 -0
- package/skills/meeting-to-prd/references/meeting-notes-template.md +50 -0
- package/skills/meeting-to-prd/references/prd-reference.docx +0 -0
- package/skills/meeting-to-prd/references/prd-template.md +67 -0
- package/skills/pmo-weekly-report/SKILL.md +536 -0
- package/skills/popo-doc/SKILL.md +77 -0
- package/skills/popo-robot-api/SKILL.md +232 -0
- package/skills/ppt-master/SKILL.md +314 -0
- package/skills/ppt-master/projects/.gitkeep +0 -0
- package/skills/ppt-master/references/canvas-formats.md +73 -0
- package/skills/ppt-master/references/executor-base.md +198 -0
- package/skills/ppt-master/references/executor-consultant-top.md +218 -0
- package/skills/ppt-master/references/executor-consultant.md +197 -0
- package/skills/ppt-master/references/executor-general.md +122 -0
- package/skills/ppt-master/references/image-generator.md +444 -0
- package/skills/ppt-master/references/image-layout-spec.md +174 -0
- package/skills/ppt-master/references/shared-standards.md +442 -0
- package/skills/ppt-master/references/strategist.md +391 -0
- package/skills/ppt-master/references/svg-image-embedding.md +177 -0
- package/skills/ppt-master/references/template-designer.md +175 -0
- package/skills/ppt-master/scripts/README.md +78 -0
- package/skills/ppt-master/scripts/analyze_images.py +239 -0
- package/skills/ppt-master/scripts/assets/bg_48.png +0 -0
- package/skills/ppt-master/scripts/assets/bg_96.png +0 -0
- package/skills/ppt-master/scripts/batch_validate.py +309 -0
- package/skills/ppt-master/scripts/config.py +604 -0
- package/skills/ppt-master/scripts/doc_to_md.py +232 -0
- package/skills/ppt-master/scripts/docs/conversion.md +89 -0
- package/skills/ppt-master/scripts/docs/image.md +96 -0
- package/skills/ppt-master/scripts/docs/project.md +84 -0
- package/skills/ppt-master/scripts/docs/svg-pipeline.md +161 -0
- package/skills/ppt-master/scripts/docs/troubleshooting.md +62 -0
- package/skills/ppt-master/scripts/error_helper.py +438 -0
- package/skills/ppt-master/scripts/finalize_svg.py +302 -0
- package/skills/ppt-master/scripts/gemini_watermark_remover.py +230 -0
- package/skills/ppt-master/scripts/generate_examples_index.py +241 -0
- package/skills/ppt-master/scripts/image_backends/__init__.py +1 -0
- package/skills/ppt-master/scripts/image_backends/backend_aigw_gemini.py +209 -0
- package/skills/ppt-master/scripts/image_backends/backend_bfl.py +177 -0
- package/skills/ppt-master/scripts/image_backends/backend_common.py +244 -0
- package/skills/ppt-master/scripts/image_backends/backend_fal.py +127 -0
- package/skills/ppt-master/scripts/image_backends/backend_gemini.py +227 -0
- package/skills/ppt-master/scripts/image_backends/backend_ideogram.py +152 -0
- package/skills/ppt-master/scripts/image_backends/backend_openai.py +233 -0
- package/skills/ppt-master/scripts/image_backends/backend_qwen.py +197 -0
- package/skills/ppt-master/scripts/image_backends/backend_replicate.py +173 -0
- package/skills/ppt-master/scripts/image_backends/backend_siliconflow.py +180 -0
- package/skills/ppt-master/scripts/image_backends/backend_stability.py +143 -0
- package/skills/ppt-master/scripts/image_backends/backend_volcengine.py +187 -0
- package/skills/ppt-master/scripts/image_backends/backend_zhipu.py +188 -0
- package/skills/ppt-master/scripts/image_gen.py +412 -0
- package/skills/ppt-master/scripts/pdf_to_md.py +794 -0
- package/skills/ppt-master/scripts/pptx_animations.py +268 -0
- package/skills/ppt-master/scripts/project_manager.py +661 -0
- package/skills/ppt-master/scripts/project_utils.py +475 -0
- package/skills/ppt-master/scripts/rotate_images.py +583 -0
- package/skills/ppt-master/scripts/svg_finalize/__init__.py +1 -0
- package/skills/ppt-master/scripts/svg_finalize/crop_images.py +343 -0
- package/skills/ppt-master/scripts/svg_finalize/embed_icons.py +250 -0
- package/skills/ppt-master/scripts/svg_finalize/embed_images.py +184 -0
- package/skills/ppt-master/scripts/svg_finalize/fix_image_aspect.py +380 -0
- package/skills/ppt-master/scripts/svg_finalize/flatten_tspan.py +493 -0
- package/skills/ppt-master/scripts/svg_finalize/svg_rect_to_path.py +337 -0
- package/skills/ppt-master/scripts/svg_position_calculator.py +1486 -0
- package/skills/ppt-master/scripts/svg_quality_checker.py +487 -0
- package/skills/ppt-master/scripts/svg_to_pptx/__init__.py +17 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_context.py +102 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_converter.py +269 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_elements.py +848 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_paths.py +429 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_styles.py +359 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py +310 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_builder.py +366 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_cli.py +196 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_dimensions.py +148 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_discovery.py +101 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_media.py +86 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_notes.py +157 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_slide_xml.py +136 -0
- package/skills/ppt-master/scripts/svg_to_pptx.py +17 -0
- package/skills/ppt-master/scripts/total_md_split.py +367 -0
- package/skills/ppt-master/scripts/web_to_md.cjs +850 -0
- package/skills/ppt-master/scripts/web_to_md.py +755 -0
- package/skills/ppt-master/templates/README.md +48 -0
- package/skills/ppt-master/templates/charts/README.md +102 -0
- package/skills/ppt-master/templates/charts/area_chart.svg +255 -0
- package/skills/ppt-master/templates/charts/bar_chart.svg +185 -0
- package/skills/ppt-master/templates/charts/box_plot_chart.svg +308 -0
- package/skills/ppt-master/templates/charts/bubble_chart.svg +289 -0
- package/skills/ppt-master/templates/charts/bullet_chart.svg +214 -0
- package/skills/ppt-master/templates/charts/butterfly_chart.svg +247 -0
- package/skills/ppt-master/templates/charts/charts_index.json +286 -0
- package/skills/ppt-master/templates/charts/donut_chart.svg +246 -0
- package/skills/ppt-master/templates/charts/dual_axis_line_chart.svg +311 -0
- package/skills/ppt-master/templates/charts/dumbbell_chart.svg +196 -0
- package/skills/ppt-master/templates/charts/funnel_chart.svg +241 -0
- package/skills/ppt-master/templates/charts/gantt_chart.svg +315 -0
- package/skills/ppt-master/templates/charts/gauge_chart.svg +262 -0
- package/skills/ppt-master/templates/charts/grouped_bar_chart.svg +275 -0
- package/skills/ppt-master/templates/charts/heatmap_chart.svg +214 -0
- package/skills/ppt-master/templates/charts/horizontal_bar_chart.svg +213 -0
- package/skills/ppt-master/templates/charts/kpi_cards.svg +215 -0
- package/skills/ppt-master/templates/charts/line_chart.svg +218 -0
- package/skills/ppt-master/templates/charts/matrix_2x2.svg +334 -0
- package/skills/ppt-master/templates/charts/org_chart.svg +316 -0
- package/skills/ppt-master/templates/charts/pareto_chart.svg +227 -0
- package/skills/ppt-master/templates/charts/pie_chart.svg +215 -0
- package/skills/ppt-master/templates/charts/porter_five_forces.svg +246 -0
- package/skills/ppt-master/templates/charts/process_flow.svg +333 -0
- package/skills/ppt-master/templates/charts/progress_bar_chart.svg +295 -0
- package/skills/ppt-master/templates/charts/radar_chart.svg +158 -0
- package/skills/ppt-master/templates/charts/sankey_chart.svg +303 -0
- package/skills/ppt-master/templates/charts/scatter_chart.svg +235 -0
- package/skills/ppt-master/templates/charts/stacked_area_chart.svg +230 -0
- package/skills/ppt-master/templates/charts/stacked_bar_chart.svg +199 -0
- package/skills/ppt-master/templates/charts/swot_analysis.svg +277 -0
- package/skills/ppt-master/templates/charts/timeline.svg +279 -0
- package/skills/ppt-master/templates/charts/treemap_chart.svg +226 -0
- package/skills/ppt-master/templates/charts/waterfall_chart.svg +265 -0
- package/skills/ppt-master/templates/design_spec_reference.md +282 -0
- package/skills/ppt-master/templates/icons/FULL_INDEX.md +272 -0
- package/skills/ppt-master/templates/icons/README.md +75 -0
- package/skills/ppt-master/templates/icons/a.svg +4 -0
- package/skills/ppt-master/templates/icons/accessibility.svg +4 -0
- package/skills/ppt-master/templates/icons/activity.svg +5 -0
- package/skills/ppt-master/templates/icons/address-card.svg +4 -0
- package/skills/ppt-master/templates/icons/alarm-clock.svg +6 -0
- package/skills/ppt-master/templates/icons/alien.svg +4 -0
- package/skills/ppt-master/templates/icons/align-bottom.svg +6 -0
- package/skills/ppt-master/templates/icons/align-center-horizontal.svg +5 -0
- package/skills/ppt-master/templates/icons/align-center-vertical.svg +5 -0
- package/skills/ppt-master/templates/icons/align-left.svg +6 -0
- package/skills/ppt-master/templates/icons/align-right.svg +6 -0
- package/skills/ppt-master/templates/icons/align-text-center.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-justify.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-left.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-right.svg +7 -0
- package/skills/ppt-master/templates/icons/align-top.svg +6 -0
- package/skills/ppt-master/templates/icons/anchor.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-down.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-left.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-right.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-up.svg +4 -0
- package/skills/ppt-master/templates/icons/angles-down.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-left.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-right.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-up.svg +5 -0
- package/skills/ppt-master/templates/icons/aperture.svg +9 -0
- package/skills/ppt-master/templates/icons/aquarius.svg +6 -0
- package/skills/ppt-master/templates/icons/archive-box.svg +5 -0
- package/skills/ppt-master/templates/icons/aries.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-short-wide.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-down-to-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-wide-short.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-left-arrow-right.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-right-from-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-to-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-rotate-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-rotate-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-trend-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-trend-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-left-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-left-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-right-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-right-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-left-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-left-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-right-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-right-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-arrow-down.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-from-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-right-from-square.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-short-wide.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-up-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-wide-short.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrows-left-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrows-repeat.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-rotate-clockwise.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-rotate-counter-clockwise.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-up-down.svg +4 -0
- package/skills/ppt-master/templates/icons/at.svg +4 -0
- package/skills/ppt-master/templates/icons/axe.svg +4 -0
- package/skills/ppt-master/templates/icons/b.svg +4 -0
- package/skills/ppt-master/templates/icons/badge-check.svg +4 -0
- package/skills/ppt-master/templates/icons/badge.svg +4 -0
- package/skills/ppt-master/templates/icons/ban.svg +4 -0
- package/skills/ppt-master/templates/icons/baseball-bat.svg +5 -0
- package/skills/ppt-master/templates/icons/baseball.svg +6 -0
- package/skills/ppt-master/templates/icons/basketball.svg +9 -0
- package/skills/ppt-master/templates/icons/battery-charge.svg +5 -0
- package/skills/ppt-master/templates/icons/battery-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-full.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-half.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/bed.svg +4 -0
- package/skills/ppt-master/templates/icons/bee.svg +5 -0
- package/skills/ppt-master/templates/icons/bell-slash.svg +6 -0
- package/skills/ppt-master/templates/icons/bell.svg +5 -0
- package/skills/ppt-master/templates/icons/bicycle.svg +7 -0
- package/skills/ppt-master/templates/icons/bishop.svg +4 -0
- package/skills/ppt-master/templates/icons/block-quote.svg +8 -0
- package/skills/ppt-master/templates/icons/bluetooth.svg +4 -0
- package/skills/ppt-master/templates/icons/bold.svg +4 -0
- package/skills/ppt-master/templates/icons/bolt.svg +4 -0
- package/skills/ppt-master/templates/icons/bomb.svg +6 -0
- package/skills/ppt-master/templates/icons/bone.svg +4 -0
- package/skills/ppt-master/templates/icons/book-open.svg +4 -0
- package/skills/ppt-master/templates/icons/book.svg +4 -0
- package/skills/ppt-master/templates/icons/bookmark-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/bookmark.svg +4 -0
- package/skills/ppt-master/templates/icons/books.svg +6 -0
- package/skills/ppt-master/templates/icons/bottle.svg +5 -0
- package/skills/ppt-master/templates/icons/bow-and-arrow.svg +4 -0
- package/skills/ppt-master/templates/icons/bowl.svg +5 -0
- package/skills/ppt-master/templates/icons/box.svg +4 -0
- package/skills/ppt-master/templates/icons/bridge.svg +4 -0
- package/skills/ppt-master/templates/icons/british-pound.svg +4 -0
- package/skills/ppt-master/templates/icons/browser.svg +4 -0
- package/skills/ppt-master/templates/icons/brush.svg +5 -0
- package/skills/ppt-master/templates/icons/bug.svg +5 -0
- package/skills/ppt-master/templates/icons/building.svg +4 -0
- package/skills/ppt-master/templates/icons/bullhorn.svg +5 -0
- package/skills/ppt-master/templates/icons/burger.svg +6 -0
- package/skills/ppt-master/templates/icons/bus.svg +4 -0
- package/skills/ppt-master/templates/icons/butterfly.svg +4 -0
- package/skills/ppt-master/templates/icons/c.svg +4 -0
- package/skills/ppt-master/templates/icons/cake-slice.svg +5 -0
- package/skills/ppt-master/templates/icons/cake.svg +8 -0
- package/skills/ppt-master/templates/icons/calculator.svg +4 -0
- package/skills/ppt-master/templates/icons/calendar.svg +5 -0
- package/skills/ppt-master/templates/icons/camera-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/camera.svg +4 -0
- package/skills/ppt-master/templates/icons/cancer.svg +5 -0
- package/skills/ppt-master/templates/icons/capricorn.svg +4 -0
- package/skills/ppt-master/templates/icons/car.svg +4 -0
- package/skills/ppt-master/templates/icons/card-stack.svg +6 -0
- package/skills/ppt-master/templates/icons/caret-down.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-left.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-right.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-up.svg +4 -0
- package/skills/ppt-master/templates/icons/castle.svg +4 -0
- package/skills/ppt-master/templates/icons/cat.svg +5 -0
- package/skills/ppt-master/templates/icons/chair.svg +5 -0
- package/skills/ppt-master/templates/icons/chart-bar.svg +6 -0
- package/skills/ppt-master/templates/icons/chart-line.svg +5 -0
- package/skills/ppt-master/templates/icons/chart-pie.svg +5 -0
- package/skills/ppt-master/templates/icons/checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-3-dots-horizontal.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-3-dots-vertical.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-divide.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-equals.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-half.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-info.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-minus.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-0.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-number-1.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-2.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-3.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-4.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-5.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-6.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-number-7.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-8.svg +6 -0
- package/skills/ppt-master/templates/icons/circle-number-9.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-pause.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-play.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-question.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-stop.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-user.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-x.svg +4 -0
- package/skills/ppt-master/templates/icons/circle.svg +4 -0
- package/skills/ppt-master/templates/icons/citrus-slice.svg +7 -0
- package/skills/ppt-master/templates/icons/city.svg +4 -0
- package/skills/ppt-master/templates/icons/clipboard.svg +5 -0
- package/skills/ppt-master/templates/icons/clock.svg +4 -0
- package/skills/ppt-master/templates/icons/closed-captioning.svg +4 -0
- package/skills/ppt-master/templates/icons/clothes-hanger.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-fog.svg +7 -0
- package/skills/ppt-master/templates/icons/cloud-lightning.svg +5 -0
- package/skills/ppt-master/templates/icons/cloud-rain.svg +7 -0
- package/skills/ppt-master/templates/icons/cloud-snow.svg +9 -0
- package/skills/ppt-master/templates/icons/cloud.svg +4 -0
- package/skills/ppt-master/templates/icons/club.svg +4 -0
- package/skills/ppt-master/templates/icons/cocktail.svg +4 -0
- package/skills/ppt-master/templates/icons/code-block.svg +4 -0
- package/skills/ppt-master/templates/icons/code.svg +6 -0
- package/skills/ppt-master/templates/icons/cog.svg +4 -0
- package/skills/ppt-master/templates/icons/coin.svg +4 -0
- package/skills/ppt-master/templates/icons/columns.svg +5 -0
- package/skills/ppt-master/templates/icons/command.svg +4 -0
- package/skills/ppt-master/templates/icons/comment-dots.svg +4 -0
- package/skills/ppt-master/templates/icons/comment.svg +4 -0
- package/skills/ppt-master/templates/icons/comments-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/comments.svg +5 -0
- package/skills/ppt-master/templates/icons/compact-disc.svg +4 -0
- package/skills/ppt-master/templates/icons/compass-drafting.svg +5 -0
- package/skills/ppt-master/templates/icons/compass.svg +5 -0
- package/skills/ppt-master/templates/icons/component.svg +7 -0
- package/skills/ppt-master/templates/icons/copy.svg +5 -0
- package/skills/ppt-master/templates/icons/copyright.svg +4 -0
- package/skills/ppt-master/templates/icons/credit-card.svg +5 -0
- package/skills/ppt-master/templates/icons/crop.svg +5 -0
- package/skills/ppt-master/templates/icons/crosshairs.svg +5 -0
- package/skills/ppt-master/templates/icons/crown.svg +4 -0
- package/skills/ppt-master/templates/icons/crystal-ball.svg +5 -0
- package/skills/ppt-master/templates/icons/cube.svg +4 -0
- package/skills/ppt-master/templates/icons/cupcake.svg +5 -0
- package/skills/ppt-master/templates/icons/curling-stone.svg +5 -0
- package/skills/ppt-master/templates/icons/cursor-click.svg +7 -0
- package/skills/ppt-master/templates/icons/cursor.svg +4 -0
- package/skills/ppt-master/templates/icons/d-pad.svg +7 -0
- package/skills/ppt-master/templates/icons/d.svg +4 -0
- package/skills/ppt-master/templates/icons/database.svg +6 -0
- package/skills/ppt-master/templates/icons/delete.svg +4 -0
- package/skills/ppt-master/templates/icons/desktop.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-half.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-shape.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond.svg +4 -0
- package/skills/ppt-master/templates/icons/dice.svg +5 -0
- package/skills/ppt-master/templates/icons/die-1.svg +4 -0
- package/skills/ppt-master/templates/icons/die-2.svg +4 -0
- package/skills/ppt-master/templates/icons/die-3.svg +4 -0
- package/skills/ppt-master/templates/icons/die-4.svg +4 -0
- package/skills/ppt-master/templates/icons/die-5.svg +4 -0
- package/skills/ppt-master/templates/icons/die-6.svg +4 -0
- package/skills/ppt-master/templates/icons/distribute-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/distribute-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/divide.svg +6 -0
- package/skills/ppt-master/templates/icons/dna.svg +4 -0
- package/skills/ppt-master/templates/icons/dog.svg +4 -0
- package/skills/ppt-master/templates/icons/dollar.svg +4 -0
- package/skills/ppt-master/templates/icons/door-open.svg +4 -0
- package/skills/ppt-master/templates/icons/door.svg +4 -0
- package/skills/ppt-master/templates/icons/dots-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/dots-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/droplet.svg +4 -0
- package/skills/ppt-master/templates/icons/e.svg +4 -0
- package/skills/ppt-master/templates/icons/ear-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/ear.svg +4 -0
- package/skills/ppt-master/templates/icons/eject.svg +5 -0
- package/skills/ppt-master/templates/icons/envelope.svg +5 -0
- package/skills/ppt-master/templates/icons/equals.svg +5 -0
- package/skills/ppt-master/templates/icons/euro.svg +4 -0
- package/skills/ppt-master/templates/icons/exclude.svg +4 -0
- package/skills/ppt-master/templates/icons/eye-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/eye.svg +4 -0
- package/skills/ppt-master/templates/icons/eyedropper.svg +5 -0
- package/skills/ppt-master/templates/icons/f.svg +4 -0
- package/skills/ppt-master/templates/icons/face-angry.svg +4 -0
- package/skills/ppt-master/templates/icons/face-cry.svg +4 -0
- package/skills/ppt-master/templates/icons/face-id.svg +10 -0
- package/skills/ppt-master/templates/icons/face-laugh.svg +4 -0
- package/skills/ppt-master/templates/icons/face-meh.svg +4 -0
- package/skills/ppt-master/templates/icons/face-melt.svg +4 -0
- package/skills/ppt-master/templates/icons/face-no-mouth.svg +4 -0
- package/skills/ppt-master/templates/icons/face-open-mouth.svg +4 -0
- package/skills/ppt-master/templates/icons/face-sad.svg +4 -0
- package/skills/ppt-master/templates/icons/face-smile.svg +4 -0
- package/skills/ppt-master/templates/icons/factory.svg +4 -0
- package/skills/ppt-master/templates/icons/fast-forward.svg +4 -0
- package/skills/ppt-master/templates/icons/file-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/file.svg +5 -0
- package/skills/ppt-master/templates/icons/files.svg +5 -0
- package/skills/ppt-master/templates/icons/film.svg +4 -0
- package/skills/ppt-master/templates/icons/filter.svg +7 -0
- package/skills/ppt-master/templates/icons/fire.svg +4 -0
- package/skills/ppt-master/templates/icons/fireplace.svg +5 -0
- package/skills/ppt-master/templates/icons/fish.svg +4 -0
- package/skills/ppt-master/templates/icons/flag.svg +4 -0
- package/skills/ppt-master/templates/icons/floppy-disk.svg +5 -0
- package/skills/ppt-master/templates/icons/flower.svg +6 -0
- package/skills/ppt-master/templates/icons/folder-open.svg +4 -0
- package/skills/ppt-master/templates/icons/folder.svg +4 -0
- package/skills/ppt-master/templates/icons/folders.svg +5 -0
- package/skills/ppt-master/templates/icons/font-case.svg +5 -0
- package/skills/ppt-master/templates/icons/football.svg +4 -0
- package/skills/ppt-master/templates/icons/frame.svg +4 -0
- package/skills/ppt-master/templates/icons/funnel.svg +4 -0
- package/skills/ppt-master/templates/icons/g.svg +4 -0
- package/skills/ppt-master/templates/icons/game-controller.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-high.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-low.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-medium.svg +4 -0
- package/skills/ppt-master/templates/icons/gem.svg +4 -0
- package/skills/ppt-master/templates/icons/gemini.svg +4 -0
- package/skills/ppt-master/templates/icons/ghost.svg +4 -0
- package/skills/ppt-master/templates/icons/gift.svg +6 -0
- package/skills/ppt-master/templates/icons/git-branch.svg +4 -0
- package/skills/ppt-master/templates/icons/git-commit.svg +4 -0
- package/skills/ppt-master/templates/icons/git-compare.svg +5 -0
- package/skills/ppt-master/templates/icons/git-fork.svg +4 -0
- package/skills/ppt-master/templates/icons/git-merge.svg +4 -0
- package/skills/ppt-master/templates/icons/glasses.svg +4 -0
- package/skills/ppt-master/templates/icons/globe.svg +7 -0
- package/skills/ppt-master/templates/icons/grid-masonry.svg +7 -0
- package/skills/ppt-master/templates/icons/grid.svg +4 -0
- package/skills/ppt-master/templates/icons/grip-horizontal.svg +9 -0
- package/skills/ppt-master/templates/icons/grip-vertical.svg +9 -0
- package/skills/ppt-master/templates/icons/group.svg +15 -0
- package/skills/ppt-master/templates/icons/h.svg +4 -0
- package/skills/ppt-master/templates/icons/hammer.svg +5 -0
- package/skills/ppt-master/templates/icons/hand-tap.svg +7 -0
- package/skills/ppt-master/templates/icons/hand.svg +4 -0
- package/skills/ppt-master/templates/icons/hashtag.svg +4 -0
- package/skills/ppt-master/templates/icons/head-side.svg +4 -0
- package/skills/ppt-master/templates/icons/headlights.svg +7 -0
- package/skills/ppt-master/templates/icons/headphones.svg +4 -0
- package/skills/ppt-master/templates/icons/heart-broken.svg +4 -0
- package/skills/ppt-master/templates/icons/heart-half.svg +4 -0
- package/skills/ppt-master/templates/icons/heart.svg +4 -0
- package/skills/ppt-master/templates/icons/hexagon.svg +4 -0
- package/skills/ppt-master/templates/icons/hockey.svg +6 -0
- package/skills/ppt-master/templates/icons/home-1.svg +4 -0
- package/skills/ppt-master/templates/icons/home.svg +4 -0
- package/skills/ppt-master/templates/icons/hospital.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-half-bottom.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-half-top.svg +4 -0
- package/skills/ppt-master/templates/icons/i-cursor.svg +4 -0
- package/skills/ppt-master/templates/icons/i.svg +4 -0
- package/skills/ppt-master/templates/icons/ice-cream.svg +5 -0
- package/skills/ppt-master/templates/icons/icons_index.json +257 -0
- package/skills/ppt-master/templates/icons/image.svg +4 -0
- package/skills/ppt-master/templates/icons/images.svg +5 -0
- package/skills/ppt-master/templates/icons/inbox.svg +4 -0
- package/skills/ppt-master/templates/icons/indent.svg +8 -0
- package/skills/ppt-master/templates/icons/intersect.svg +4 -0
- package/skills/ppt-master/templates/icons/italic.svg +4 -0
- package/skills/ppt-master/templates/icons/j.svg +4 -0
- package/skills/ppt-master/templates/icons/jersey.svg +5 -0
- package/skills/ppt-master/templates/icons/joystick.svg +4 -0
- package/skills/ppt-master/templates/icons/k.svg +4 -0
- package/skills/ppt-master/templates/icons/key-skeleton.svg +4 -0
- package/skills/ppt-master/templates/icons/key.svg +4 -0
- package/skills/ppt-master/templates/icons/keyboard.svg +14 -0
- package/skills/ppt-master/templates/icons/keyhole.svg +4 -0
- package/skills/ppt-master/templates/icons/king.svg +4 -0
- package/skills/ppt-master/templates/icons/knight.svg +4 -0
- package/skills/ppt-master/templates/icons/l.svg +4 -0
- package/skills/ppt-master/templates/icons/label.svg +4 -0
- package/skills/ppt-master/templates/icons/ladder.svg +4 -0
- package/skills/ppt-master/templates/icons/lamp.svg +5 -0
- package/skills/ppt-master/templates/icons/language.svg +4 -0
- package/skills/ppt-master/templates/icons/laptop.svg +5 -0
- package/skills/ppt-master/templates/icons/laundry-machine.svg +4 -0
- package/skills/ppt-master/templates/icons/layers.svg +6 -0
- package/skills/ppt-master/templates/icons/leaf.svg +4 -0
- package/skills/ppt-master/templates/icons/leo.svg +4 -0
- package/skills/ppt-master/templates/icons/libra.svg +5 -0
- package/skills/ppt-master/templates/icons/life-ring.svg +4 -0
- package/skills/ppt-master/templates/icons/lightbulb.svg +4 -0
- package/skills/ppt-master/templates/icons/lines-magnifying-glass.svg +8 -0
- package/skills/ppt-master/templates/icons/lines-plus.svg +8 -0
- package/skills/ppt-master/templates/icons/lines.svg +7 -0
- package/skills/ppt-master/templates/icons/link.svg +6 -0
- package/skills/ppt-master/templates/icons/list-ordered.svg +9 -0
- package/skills/ppt-master/templates/icons/list.svg +11 -0
- package/skills/ppt-master/templates/icons/location-arrow-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/location-arrow.svg +4 -0
- package/skills/ppt-master/templates/icons/location-target.svg +5 -0
- package/skills/ppt-master/templates/icons/lock-closed.svg +4 -0
- package/skills/ppt-master/templates/icons/lock-open.svg +4 -0
- package/skills/ppt-master/templates/icons/m.svg +4 -0
- package/skills/ppt-master/templates/icons/magnet.svg +6 -0
- package/skills/ppt-master/templates/icons/magnifying-glass.svg +4 -0
- package/skills/ppt-master/templates/icons/mailbox.svg +4 -0
- package/skills/ppt-master/templates/icons/map-pin.svg +4 -0
- package/skills/ppt-master/templates/icons/map.svg +6 -0
- package/skills/ppt-master/templates/icons/maximize.svg +5 -0
- package/skills/ppt-master/templates/icons/meeple.svg +4 -0
- package/skills/ppt-master/templates/icons/megaphone.svg +4 -0
- package/skills/ppt-master/templates/icons/meteor.svg +4 -0
- package/skills/ppt-master/templates/icons/microchip.svg +5 -0
- package/skills/ppt-master/templates/icons/microphone-slash.svg +6 -0
- package/skills/ppt-master/templates/icons/microphone.svg +5 -0
- package/skills/ppt-master/templates/icons/minimize.svg +5 -0
- package/skills/ppt-master/templates/icons/minus.svg +4 -0
- package/skills/ppt-master/templates/icons/mobile.svg +4 -0
- package/skills/ppt-master/templates/icons/money.svg +8 -0
- package/skills/ppt-master/templates/icons/moon-cloud.svg +6 -0
- package/skills/ppt-master/templates/icons/moon-fog.svg +7 -0
- package/skills/ppt-master/templates/icons/moon.svg +5 -0
- package/skills/ppt-master/templates/icons/mortarboard.svg +5 -0
- package/skills/ppt-master/templates/icons/mountains.svg +4 -0
- package/skills/ppt-master/templates/icons/mouse.svg +6 -0
- package/skills/ppt-master/templates/icons/move-down.svg +6 -0
- package/skills/ppt-master/templates/icons/move-up.svg +6 -0
- package/skills/ppt-master/templates/icons/mug.svg +7 -0
- package/skills/ppt-master/templates/icons/museum.svg +5 -0
- package/skills/ppt-master/templates/icons/music.svg +4 -0
- package/skills/ppt-master/templates/icons/n.svg +4 -0
- package/skills/ppt-master/templates/icons/newspaper.svg +4 -0
- package/skills/ppt-master/templates/icons/number-0-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-0.svg +4 -0
- package/skills/ppt-master/templates/icons/number-1-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-1.svg +4 -0
- package/skills/ppt-master/templates/icons/number-2-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-2.svg +4 -0
- package/skills/ppt-master/templates/icons/number-3-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-3.svg +4 -0
- package/skills/ppt-master/templates/icons/number-4-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-4.svg +4 -0
- package/skills/ppt-master/templates/icons/number-5-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-5.svg +4 -0
- package/skills/ppt-master/templates/icons/number-6-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-6.svg +4 -0
- package/skills/ppt-master/templates/icons/number-7-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-7.svg +4 -0
- package/skills/ppt-master/templates/icons/number-8-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-8.svg +4 -0
- package/skills/ppt-master/templates/icons/number-9-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-9.svg +4 -0
- package/skills/ppt-master/templates/icons/nut.svg +4 -0
- package/skills/ppt-master/templates/icons/o.svg +4 -0
- package/skills/ppt-master/templates/icons/octagon-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/octagon.svg +4 -0
- package/skills/ppt-master/templates/icons/option.svg +5 -0
- package/skills/ppt-master/templates/icons/outdent.svg +8 -0
- package/skills/ppt-master/templates/icons/outlet.svg +4 -0
- package/skills/ppt-master/templates/icons/p.svg +4 -0
- package/skills/ppt-master/templates/icons/paint-bucket.svg +5 -0
- package/skills/ppt-master/templates/icons/paint-roller.svg +4 -0
- package/skills/ppt-master/templates/icons/painting.svg +5 -0
- package/skills/ppt-master/templates/icons/palette.svg +4 -0
- package/skills/ppt-master/templates/icons/pants.svg +4 -0
- package/skills/ppt-master/templates/icons/paper-plane.svg +4 -0
- package/skills/ppt-master/templates/icons/paperclip.svg +4 -0
- package/skills/ppt-master/templates/icons/pause.svg +5 -0
- package/skills/ppt-master/templates/icons/paw.svg +8 -0
- package/skills/ppt-master/templates/icons/pawn.svg +4 -0
- package/skills/ppt-master/templates/icons/pen-nib.svg +4 -0
- package/skills/ppt-master/templates/icons/pencil-square.svg +5 -0
- package/skills/ppt-master/templates/icons/pencil.svg +5 -0
- package/skills/ppt-master/templates/icons/percent.svg +6 -0
- package/skills/ppt-master/templates/icons/person-walking.svg +5 -0
- package/skills/ppt-master/templates/icons/person-wave.svg +5 -0
- package/skills/ppt-master/templates/icons/person.svg +5 -0
- package/skills/ppt-master/templates/icons/phone-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/phone.svg +4 -0
- package/skills/ppt-master/templates/icons/pills.svg +6 -0
- package/skills/ppt-master/templates/icons/pisces.svg +4 -0
- package/skills/ppt-master/templates/icons/pizza.svg +5 -0
- package/skills/ppt-master/templates/icons/plane.svg +4 -0
- package/skills/ppt-master/templates/icons/planet.svg +5 -0
- package/skills/ppt-master/templates/icons/play-pause.svg +6 -0
- package/skills/ppt-master/templates/icons/play.svg +4 -0
- package/skills/ppt-master/templates/icons/playing-card.svg +4 -0
- package/skills/ppt-master/templates/icons/plug.svg +4 -0
- package/skills/ppt-master/templates/icons/plus.svg +4 -0
- package/skills/ppt-master/templates/icons/point-down.svg +4 -0
- package/skills/ppt-master/templates/icons/point-left.svg +4 -0
- package/skills/ppt-master/templates/icons/point-right.svg +4 -0
- package/skills/ppt-master/templates/icons/point-up.svg +4 -0
- package/skills/ppt-master/templates/icons/poop.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-full.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-half.svg +4 -0
- package/skills/ppt-master/templates/icons/power.svg +5 -0
- package/skills/ppt-master/templates/icons/printer.svg +5 -0
- package/skills/ppt-master/templates/icons/q.svg +4 -0
- package/skills/ppt-master/templates/icons/queen.svg +5 -0
- package/skills/ppt-master/templates/icons/question-mark.svg +5 -0
- package/skills/ppt-master/templates/icons/quote-left.svg +5 -0
- package/skills/ppt-master/templates/icons/quote-right.svg +5 -0
- package/skills/ppt-master/templates/icons/radar.svg +4 -0
- package/skills/ppt-master/templates/icons/radioactive.svg +4 -0
- package/skills/ppt-master/templates/icons/rainbow-cloud.svg +6 -0
- package/skills/ppt-master/templates/icons/rainbow.svg +5 -0
- package/skills/ppt-master/templates/icons/receipt.svg +4 -0
- package/skills/ppt-master/templates/icons/recycle.svg +6 -0
- package/skills/ppt-master/templates/icons/reflect-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/reflect-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/rewind.svg +4 -0
- package/skills/ppt-master/templates/icons/robot.svg +4 -0
- package/skills/ppt-master/templates/icons/rocket.svg +5 -0
- package/skills/ppt-master/templates/icons/rook.svg +4 -0
- package/skills/ppt-master/templates/icons/route.svg +6 -0
- package/skills/ppt-master/templates/icons/rows.svg +5 -0
- package/skills/ppt-master/templates/icons/rss.svg +6 -0
- package/skills/ppt-master/templates/icons/ruler.svg +4 -0
- package/skills/ppt-master/templates/icons/s.svg +4 -0
- package/skills/ppt-master/templates/icons/sagittarius.svg +4 -0
- package/skills/ppt-master/templates/icons/scissors.svg +5 -0
- package/skills/ppt-master/templates/icons/scooter.svg +4 -0
- package/skills/ppt-master/templates/icons/scorpio.svg +4 -0
- package/skills/ppt-master/templates/icons/screencast.svg +6 -0
- package/skills/ppt-master/templates/icons/screw.svg +6 -0
- package/skills/ppt-master/templates/icons/screwdriver.svg +5 -0
- package/skills/ppt-master/templates/icons/scribble.svg +5 -0
- package/skills/ppt-master/templates/icons/seedling.svg +4 -0
- package/skills/ppt-master/templates/icons/server.svg +5 -0
- package/skills/ppt-master/templates/icons/service-bell.svg +5 -0
- package/skills/ppt-master/templates/icons/share-nodes.svg +4 -0
- package/skills/ppt-master/templates/icons/shield-check.svg +4 -0
- package/skills/ppt-master/templates/icons/shield-half.svg +4 -0
- package/skills/ppt-master/templates/icons/shield.svg +4 -0
- package/skills/ppt-master/templates/icons/shift.svg +4 -0
- package/skills/ppt-master/templates/icons/ship.svg +5 -0
- package/skills/ppt-master/templates/icons/shirt.svg +4 -0
- package/skills/ppt-master/templates/icons/shoe.svg +5 -0
- package/skills/ppt-master/templates/icons/shop.svg +5 -0
- package/skills/ppt-master/templates/icons/shopping-bag.svg +5 -0
- package/skills/ppt-master/templates/icons/shopping-basket.svg +4 -0
- package/skills/ppt-master/templates/icons/shopping-cart.svg +4 -0
- package/skills/ppt-master/templates/icons/shuffle.svg +5 -0
- package/skills/ppt-master/templates/icons/sidebar-left.svg +5 -0
- package/skills/ppt-master/templates/icons/sidebar-right.svg +5 -0
- package/skills/ppt-master/templates/icons/signal-fair.svg +5 -0
- package/skills/ppt-master/templates/icons/signal-good.svg +6 -0
- package/skills/ppt-master/templates/icons/signal-slash.svg +7 -0
- package/skills/ppt-master/templates/icons/signal-weak.svg +4 -0
- package/skills/ppt-master/templates/icons/signal.svg +7 -0
- package/skills/ppt-master/templates/icons/signpost.svg +5 -0
- package/skills/ppt-master/templates/icons/sink.svg +5 -0
- package/skills/ppt-master/templates/icons/skip-backward.svg +4 -0
- package/skills/ppt-master/templates/icons/skip-forward.svg +4 -0
- package/skills/ppt-master/templates/icons/skull.svg +4 -0
- package/skills/ppt-master/templates/icons/sliders.svg +5 -0
- package/skills/ppt-master/templates/icons/smartwatch.svg +4 -0
- package/skills/ppt-master/templates/icons/snow.svg +4 -0
- package/skills/ppt-master/templates/icons/soccer.svg +9 -0
- package/skills/ppt-master/templates/icons/soda.svg +5 -0
- package/skills/ppt-master/templates/icons/sort.svg +5 -0
- package/skills/ppt-master/templates/icons/spade.svg +4 -0
- package/skills/ppt-master/templates/icons/sparkles.svg +8 -0
- package/skills/ppt-master/templates/icons/square-checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/square-divide.svg +4 -0
- package/skills/ppt-master/templates/icons/square-equals.svg +4 -0
- package/skills/ppt-master/templates/icons/square-minus.svg +4 -0
- package/skills/ppt-master/templates/icons/square-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/square-user.svg +5 -0
- package/skills/ppt-master/templates/icons/square-x.svg +4 -0
- package/skills/ppt-master/templates/icons/square.svg +4 -0
- package/skills/ppt-master/templates/icons/squares-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/squares-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/star-half.svg +4 -0
- package/skills/ppt-master/templates/icons/star.svg +4 -0
- package/skills/ppt-master/templates/icons/sticky-note.svg +5 -0
- package/skills/ppt-master/templates/icons/stop.svg +4 -0
- package/skills/ppt-master/templates/icons/stopwatch.svg +4 -0
- package/skills/ppt-master/templates/icons/strikethrough.svg +5 -0
- package/skills/ppt-master/templates/icons/subtract.svg +4 -0
- package/skills/ppt-master/templates/icons/suitcase.svg +6 -0
- package/skills/ppt-master/templates/icons/sun-cloud.svg +9 -0
- package/skills/ppt-master/templates/icons/sun-fog.svg +12 -0
- package/skills/ppt-master/templates/icons/sun.svg +12 -0
- package/skills/ppt-master/templates/icons/sunglasses.svg +4 -0
- package/skills/ppt-master/templates/icons/swatches.svg +6 -0
- package/skills/ppt-master/templates/icons/sword.svg +4 -0
- package/skills/ppt-master/templates/icons/swords-crossed.svg +6 -0
- package/skills/ppt-master/templates/icons/t.svg +4 -0
- package/skills/ppt-master/templates/icons/table.svg +8 -0
- package/skills/ppt-master/templates/icons/tag.svg +4 -0
- package/skills/ppt-master/templates/icons/target-arrow.svg +6 -0
- package/skills/ppt-master/templates/icons/target.svg +5 -0
- package/skills/ppt-master/templates/icons/taurus.svg +4 -0
- package/skills/ppt-master/templates/icons/temperature-high.svg +8 -0
- package/skills/ppt-master/templates/icons/temperature-low.svg +8 -0
- package/skills/ppt-master/templates/icons/temperature-medium.svg +8 -0
- package/skills/ppt-master/templates/icons/tennis-ball.svg +6 -0
- package/skills/ppt-master/templates/icons/terminal.svg +5 -0
- package/skills/ppt-master/templates/icons/text.svg +4 -0
- package/skills/ppt-master/templates/icons/thumbs-down.svg +5 -0
- package/skills/ppt-master/templates/icons/thumbs-up.svg +5 -0
- package/skills/ppt-master/templates/icons/thumbtack.svg +5 -0
- package/skills/ppt-master/templates/icons/ticket.svg +4 -0
- package/skills/ppt-master/templates/icons/toggle-circle-left.svg +4 -0
- package/skills/ppt-master/templates/icons/toggle-circle-right.svg +4 -0
- package/skills/ppt-master/templates/icons/toolbox.svg +5 -0
- package/skills/ppt-master/templates/icons/traffic-cone.svg +6 -0
- package/skills/ppt-master/templates/icons/traffic-light.svg +4 -0
- package/skills/ppt-master/templates/icons/train.svg +4 -0
- package/skills/ppt-master/templates/icons/trash.svg +5 -0
- package/skills/ppt-master/templates/icons/tree-evergreen.svg +4 -0
- package/skills/ppt-master/templates/icons/tree.svg +4 -0
- package/skills/ppt-master/templates/icons/triangle-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/triangle.svg +4 -0
- package/skills/ppt-master/templates/icons/trophy.svg +4 -0
- package/skills/ppt-master/templates/icons/truck.svg +4 -0
- package/skills/ppt-master/templates/icons/tv-retro.svg +4 -0
- package/skills/ppt-master/templates/icons/tv.svg +5 -0
- package/skills/ppt-master/templates/icons/u.svg +4 -0
- package/skills/ppt-master/templates/icons/ufo.svg +5 -0
- package/skills/ppt-master/templates/icons/umbrella.svg +4 -0
- package/skills/ppt-master/templates/icons/underline.svg +5 -0
- package/skills/ppt-master/templates/icons/unite.svg +4 -0
- package/skills/ppt-master/templates/icons/user.svg +5 -0
- package/skills/ppt-master/templates/icons/users.svg +7 -0
- package/skills/ppt-master/templates/icons/utensils.svg +5 -0
- package/skills/ppt-master/templates/icons/v.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-circle.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-curve.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-line.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-square.svg +4 -0
- package/skills/ppt-master/templates/icons/video-camera-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/video-camera.svg +5 -0
- package/skills/ppt-master/templates/icons/video.svg +4 -0
- package/skills/ppt-master/templates/icons/virgo.svg +4 -0
- package/skills/ppt-master/templates/icons/volume-high.svg +6 -0
- package/skills/ppt-master/templates/icons/volume-low.svg +5 -0
- package/skills/ppt-master/templates/icons/volume-none.svg +4 -0
- package/skills/ppt-master/templates/icons/volume-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/volume-x.svg +5 -0
- package/skills/ppt-master/templates/icons/vr.svg +4 -0
- package/skills/ppt-master/templates/icons/w.svg +4 -0
- package/skills/ppt-master/templates/icons/wallet.svg +4 -0
- package/skills/ppt-master/templates/icons/wand-with-sparkles.svg +7 -0
- package/skills/ppt-master/templates/icons/watch.svg +4 -0
- package/skills/ppt-master/templates/icons/water.svg +5 -0
- package/skills/ppt-master/templates/icons/waveform.svg +7 -0
- package/skills/ppt-master/templates/icons/wheelchair.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi-low.svg +4 -0
- package/skills/ppt-master/templates/icons/wifi-medium.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi.svg +6 -0
- package/skills/ppt-master/templates/icons/wind.svg +5 -0
- package/skills/ppt-master/templates/icons/window.svg +6 -0
- package/skills/ppt-master/templates/icons/wine-glass.svg +4 -0
- package/skills/ppt-master/templates/icons/wrench.svg +4 -0
- package/skills/ppt-master/templates/icons/x-1.svg +4 -0
- package/skills/ppt-master/templates/icons/x.svg +4 -0
- package/skills/ppt-master/templates/icons/y.svg +4 -0
- package/skills/ppt-master/templates/icons/yen.svg +4 -0
- package/skills/ppt-master/templates/icons/z.svg +4 -0
- package/skills/ppt-master/templates/icons/zoom-in.svg +4 -0
- package/skills/ppt-master/templates/icons/zoom-out.svg +4 -0
- package/skills/ppt-master/templates/layouts/README.md +257 -0
- package/skills/ppt-master/templates/layouts/academic_defense/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/academic_defense/02_chapter.svg +36 -0
- package/skills/ppt-master/templates/layouts/academic_defense/02_toc.svg +63 -0
- package/skills/ppt-master/templates/layouts/academic_defense/03_content.svg +58 -0
- package/skills/ppt-master/templates/layouts/academic_defense/04_ending.svg +52 -0
- package/skills/ppt-master/templates/layouts/academic_defense/design_spec.md +294 -0
- package/skills/ppt-master/templates/layouts/ai_ops/01_cover.svg +65 -0
- package/skills/ppt-master/templates/layouts/ai_ops/02_chapter.svg +36 -0
- package/skills/ppt-master/templates/layouts/ai_ops/02_toc.svg +51 -0
- package/skills/ppt-master/templates/layouts/ai_ops/03_content.svg +37 -0
- package/skills/ppt-master/templates/layouts/ai_ops/04_ending.svg +59 -0
- package/skills/ppt-master/templates/layouts/ai_ops/design_spec.md +357 -0
- package/skills/ppt-master/templates/layouts/ai_ops/reference_style.svg +154 -0
- package/skills/ppt-master/templates/layouts/anthropic/01_cover.svg +105 -0
- package/skills/ppt-master/templates/layouts/anthropic/02_chapter.svg +75 -0
- package/skills/ppt-master/templates/layouts/anthropic/02_toc.svg +120 -0
- package/skills/ppt-master/templates/layouts/anthropic/03_content.svg +118 -0
- package/skills/ppt-master/templates/layouts/anthropic/04_ending.svg +107 -0
- package/skills/ppt-master/templates/layouts/anthropic/design_spec.md +243 -0
- package/skills/ppt-master/templates/layouts/exhibit/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/exhibit/02_chapter.svg +43 -0
- package/skills/ppt-master/templates/layouts/exhibit/02_toc.svg +82 -0
- package/skills/ppt-master/templates/layouts/exhibit/03_content.svg +38 -0
- package/skills/ppt-master/templates/layouts/exhibit/04_ending.svg +54 -0
- package/skills/ppt-master/templates/layouts/exhibit/design_spec.md +244 -0
- package/skills/ppt-master/templates/layouts/google_style/01_cover.svg +79 -0
- package/skills/ppt-master/templates/layouts/google_style/02_chapter.svg +62 -0
- package/skills/ppt-master/templates/layouts/google_style/02_toc.svg +89 -0
- package/skills/ppt-master/templates/layouts/google_style/03_content.svg +72 -0
- package/skills/ppt-master/templates/layouts/google_style/04_ending.svg +97 -0
- package/skills/ppt-master/templates/layouts/google_style/design_spec.md +303 -0
- package/skills/ppt-master/templates/layouts/government_blue/01_cover.svg +93 -0
- package/skills/ppt-master/templates/layouts/government_blue/02_chapter.svg +82 -0
- package/skills/ppt-master/templates/layouts/government_blue/02_toc.svg +107 -0
- package/skills/ppt-master/templates/layouts/government_blue/03_content.svg +78 -0
- package/skills/ppt-master/templates/layouts/government_blue/04_ending.svg +81 -0
- package/skills/ppt-master/templates/layouts/government_blue/design_spec.md +233 -0
- package/skills/ppt-master/templates/layouts/government_red/01_cover.svg +73 -0
- package/skills/ppt-master/templates/layouts/government_red/02_chapter.svg +66 -0
- package/skills/ppt-master/templates/layouts/government_red/02_toc.svg +88 -0
- package/skills/ppt-master/templates/layouts/government_red/03_content.svg +66 -0
- package/skills/ppt-master/templates/layouts/government_red/04_ending.svg +75 -0
- package/skills/ppt-master/templates/layouts/government_red/design_spec.md +227 -0
- package/skills/ppt-master/templates/layouts/layouts_index.json +204 -0
- package/skills/ppt-master/templates/layouts/mckinsey/01_cover.svg +84 -0
- package/skills/ppt-master/templates/layouts/mckinsey/02_chapter.svg +76 -0
- package/skills/ppt-master/templates/layouts/mckinsey/02_toc.svg +91 -0
- package/skills/ppt-master/templates/layouts/mckinsey/03_content.svg +92 -0
- package/skills/ppt-master/templates/layouts/mckinsey/04_ending.svg +87 -0
- package/skills/ppt-master/templates/layouts/mckinsey/design_spec.md +265 -0
- package/skills/ppt-master/templates/layouts/medical_university/01_cover.svg +71 -0
- package/skills/ppt-master/templates/layouts/medical_university/02_chapter.svg +50 -0
- package/skills/ppt-master/templates/layouts/medical_university/02_toc.svg +97 -0
- package/skills/ppt-master/templates/layouts/medical_university/03_content.svg +78 -0
- package/skills/ppt-master/templates/layouts/medical_university/04_ending.svg +79 -0
- package/skills/ppt-master/templates/layouts/medical_university/design_spec.md +292 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/01_cover.svg +36 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/02_chapter.svg +23 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/02_toc.svg +42 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content.svg +28 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_architecture.svg +84 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_bullet.svg +77 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_cards.svg +123 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_comparison.svg +56 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_data.svg +69 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_gray.svg +34 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_full.svg +46 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_grid.svg +44 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_left.svg +43 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_logos.svg +86 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_table.svg +131 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_timeline.svg +82 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/04_ending.svg +26 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/content_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/cover_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/design_spec.md +134 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/ending_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_000.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_001.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_002.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_003.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_004.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_005.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_006.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_007.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_008.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_009.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_010.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_011.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_012.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_013.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_014.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_015.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_016.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_017.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_018.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_019.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_020.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_021.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_022.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_023.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_024.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_025.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_026.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_027.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_028.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_029.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_030.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_031.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_032.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_033.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_034.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_035.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_036.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_037.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_038.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_039.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_040.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_041.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_042.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_043.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_044.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_045.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_046.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_047.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_048.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_049.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_050.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_051.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_052.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_053.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_054.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_055.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_056.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_057.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_058.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_059.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_060.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_061.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_062.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_063.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_064.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_065.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_066.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_067.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_068.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_069.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_070.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_071.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_072.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_073.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_074.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_075.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_076.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_077.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_078.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_079.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_080.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_081.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_082.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_083.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_084.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_085.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_086.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_087.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_088.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_089.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_090.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_091.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_092.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_093.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_094.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_095.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_096.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_097.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_098.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_099.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_100.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_101.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_102.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_103.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_104.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_105.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_106.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_107.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_108.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_109.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_110.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_111.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_112.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_113.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_114.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_115.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_116.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_117.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_118.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_119.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/logo_full.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/logo_zhiqi.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/toc_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/01_cover.svg +138 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/02_chapter.svg +130 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/02_toc.svg +130 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/03_content.svg +50 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/04_ending.svg +167 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/design_spec.md +308 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/01_cover.svg +78 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/02_chapter.svg +82 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/02_toc.svg +115 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/03_content.svg +41 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/04_ending.svg +100 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.md +394 -0
- package/skills/ppt-master/templates/layouts/smart_red/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/smart_red/02_chapter.svg +29 -0
- package/skills/ppt-master/templates/layouts/smart_red/02_toc.svg +59 -0
- package/skills/ppt-master/templates/layouts/smart_red/03_content.svg +59 -0
- package/skills/ppt-master/templates/layouts/smart_red/04_ending.svg +44 -0
- package/skills/ppt-master/templates/layouts/smart_red/design_spec.md +208 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/01_cover.svg +100 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/02_chapter.svg +81 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/02_toc.svg +112 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/03_content.svg +57 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/04_ending.svg +92 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/design_spec.md +209 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//344/270/255/345/233/275/346/260/264/345/212/241logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//345/215/216/344/270/234/351/231/242logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//346/260/264/347/224/265/344/270/211/345/261/200logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//347/224/265/345/273/272logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/01_cover.svg +90 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/02_chapter.svg +61 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/02_toc.svg +131 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/03_content.svg +77 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/04_ending.svg +78 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/design_spec.md +177 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//344/270/255/345/233/275/346/260/264/345/212/241logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//345/215/216/344/270/234/351/231/242logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//346/260/264/347/224/265/344/270/211/345/261/200logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//347/224/265/345/273/272logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/01_cover.svg +83 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/02_chapter.svg +55 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/02_toc.svg +110 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/03_content.svg +62 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/04_ending.svg +60 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/design_spec.md +166 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/02_chapter.svg +47 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/02_toc.svg +73 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/03_content.svg +57 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/04_ending.svg +62 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/design_spec.md +214 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/01_cover.svg +89 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/02_chapter.svg +55 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/02_toc.svg +92 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/03_content.svg +56 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/04_ending.svg +64 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/design_spec.md +170 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/01_cover.svg +113 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/02_chapter.svg +90 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/02_toc.svg +108 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/03_content.svg +69 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/04_ending.svg +120 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/design_spec.md +209 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214//346/213/233/345/225/206/351/223/266/350/241/214/345/205/254/345/217/270/351/207/221/350/236/215.png +0 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/01_cover.svg +52 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/02_chapter.svg +50 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/02_toc.svg +67 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/03_content.svg +28 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/04_ending.svg +52 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/design_spec.md +206 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/01_cover.svg +74 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/02_chapter.svg +52 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/02_toc.svg +80 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/03_content.svg +56 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/04_ending.svg +62 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/design_spec.md +243 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246//351/207/215/345/272/206/345/244/247/345/255/246logo.png +0 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246//351/207/215/345/272/206/345/244/247/345/255/246logo2.png +0 -0
- package/skills/ppt-master/workflows/create-template.md +173 -0
- package/skills/speed-to-text/SKILL.md +64 -0
- package/skills/tencent-meeting/SKILL.md +65 -0
- package/skills/yidun-skill-sec/SKILL.md +838 -0
- package/skills/smart-customer-service/docs//344/270/212/347/272/277/350/257/225/350/277/220/350/241/214/346/235/220/346/226/231.zip +0 -0
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
PDF to Markdown Converter
|
|
4
|
+
Uses PyMuPDF to extract PDF text content and convert to Markdown format.
|
|
5
|
+
Supports heading levels, bold, italic, and list detection.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import fitz # PyMuPDF
|
|
9
|
+
import argparse
|
|
10
|
+
import hashlib
|
|
11
|
+
import os
|
|
12
|
+
import re
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
from collections import Counter
|
|
15
|
+
|
|
16
|
+
FONT_BODY_SIZE = 12
|
|
17
|
+
FONT_H1_SIZE = 24
|
|
18
|
+
FONT_H2_SIZE = 18
|
|
19
|
+
FONT_H3_SIZE = 14
|
|
20
|
+
HEADER_FOOTER_SAMPLE_LIMIT = 40
|
|
21
|
+
HEADER_FOOTER_EDGE_SAMPLE_SIZE = 20
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def analyze_font_sizes(doc: fitz.Document) -> dict[str, float]:
|
|
25
|
+
"""Analyze font size distribution to infer heading levels.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
doc: Open PDF document.
|
|
29
|
+
|
|
30
|
+
Returns:
|
|
31
|
+
A size mapping containing body and inferred heading sizes.
|
|
32
|
+
"""
|
|
33
|
+
size_counter = Counter()
|
|
34
|
+
|
|
35
|
+
for page in doc:
|
|
36
|
+
blocks = page.get_text("dict")["blocks"]
|
|
37
|
+
for block in blocks:
|
|
38
|
+
if block["type"] == 0:
|
|
39
|
+
for line in block["lines"]:
|
|
40
|
+
for span in line["spans"]:
|
|
41
|
+
size = round(span["size"], 1)
|
|
42
|
+
text = span["text"].strip()
|
|
43
|
+
if text:
|
|
44
|
+
size_counter[size] += len(text)
|
|
45
|
+
|
|
46
|
+
if not size_counter:
|
|
47
|
+
return {
|
|
48
|
+
"body": FONT_BODY_SIZE,
|
|
49
|
+
"h1": FONT_H1_SIZE,
|
|
50
|
+
"h2": FONT_H2_SIZE,
|
|
51
|
+
"h3": FONT_H3_SIZE,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
sorted_sizes = sorted(size_counter.items(), key=lambda x: x[1], reverse=True)
|
|
55
|
+
body_size = sorted_sizes[0][0]
|
|
56
|
+
|
|
57
|
+
all_sizes = sorted(size_counter.keys(), reverse=True)
|
|
58
|
+
larger_sizes = [s for s in all_sizes if s > body_size + 1]
|
|
59
|
+
|
|
60
|
+
size_map = {"body": body_size}
|
|
61
|
+
if len(larger_sizes) >= 1:
|
|
62
|
+
size_map["h1"] = larger_sizes[0]
|
|
63
|
+
if len(larger_sizes) >= 2:
|
|
64
|
+
size_map["h2"] = larger_sizes[1]
|
|
65
|
+
if len(larger_sizes) >= 3:
|
|
66
|
+
size_map["h3"] = larger_sizes[2]
|
|
67
|
+
|
|
68
|
+
return size_map
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def get_heading_level(size: float, size_map: dict, text: str = "",
|
|
72
|
+
flags: int = 0, strict: bool = True) -> int:
|
|
73
|
+
"""
|
|
74
|
+
Determine heading level using multiple heuristics.
|
|
75
|
+
|
|
76
|
+
Args:
|
|
77
|
+
size: Font size
|
|
78
|
+
size_map: Font size mapping
|
|
79
|
+
text: Text content (used for additional heuristics)
|
|
80
|
+
flags: Font flags (bit 4 = bold)
|
|
81
|
+
strict: Strict mode, requires more conditions to be met
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
Heading level (0 = body text, 1-3 = H1-H3)
|
|
85
|
+
"""
|
|
86
|
+
# Initial determination based on font size
|
|
87
|
+
level = 0
|
|
88
|
+
if "h1" in size_map and size >= size_map["h1"] - 0.5:
|
|
89
|
+
level = 1
|
|
90
|
+
elif "h2" in size_map and size >= size_map["h2"] - 0.5:
|
|
91
|
+
level = 2
|
|
92
|
+
elif "h3" in size_map and size >= size_map["h3"] - 0.5:
|
|
93
|
+
level = 3
|
|
94
|
+
|
|
95
|
+
if level == 0:
|
|
96
|
+
return 0
|
|
97
|
+
|
|
98
|
+
# Non-strict mode returns directly (backward compatible)
|
|
99
|
+
if not strict or not text:
|
|
100
|
+
return level
|
|
101
|
+
|
|
102
|
+
# Strict mode: additional validation conditions
|
|
103
|
+
text = text.strip()
|
|
104
|
+
|
|
105
|
+
# Exclusion: text too long is unlikely to be a heading
|
|
106
|
+
if len(text) > 80:
|
|
107
|
+
return 0
|
|
108
|
+
|
|
109
|
+
# Exclusion: complete sentences ending with punctuation
|
|
110
|
+
sentence_endings = '.。!!??'
|
|
111
|
+
if text and text[-1] in sentence_endings:
|
|
112
|
+
# But keep numbered headings like "1. Overview" or "Chapter 1."
|
|
113
|
+
if not re.match(r'^[\d第]+[.、章节]', text):
|
|
114
|
+
return 0
|
|
115
|
+
|
|
116
|
+
# Bonus: bold text is more likely to be a heading
|
|
117
|
+
is_bold = flags & 16
|
|
118
|
+
if not is_bold and level >= 2:
|
|
119
|
+
# Non-bold subheadings require a larger font size difference
|
|
120
|
+
body_size = size_map.get("body", 12)
|
|
121
|
+
if size < body_size + 2:
|
|
122
|
+
return 0
|
|
123
|
+
|
|
124
|
+
return level
|
|
125
|
+
|
|
126
|
+
def is_monospace_font(font_name: str) -> bool:
|
|
127
|
+
"""
|
|
128
|
+
Determine if the font is monospace (typically used for code).
|
|
129
|
+
"""
|
|
130
|
+
if not font_name:
|
|
131
|
+
return False
|
|
132
|
+
font_lower = font_name.lower()
|
|
133
|
+
mono_fonts = [
|
|
134
|
+
'courier', 'consolas', 'monaco', 'menlo', 'monospace',
|
|
135
|
+
'source code', 'fira code', 'jetbrains', 'inconsolata',
|
|
136
|
+
'dejavu sans mono', 'liberation mono', 'ubuntu mono',
|
|
137
|
+
'roboto mono', 'robotomono', 'sf mono', 'cascadia', 'hack'
|
|
138
|
+
]
|
|
139
|
+
return any(f in font_lower for f in mono_fonts)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def format_span_text(text: str, flags: int) -> str:
|
|
143
|
+
"""Format text based on font flags (bold, italic)."""
|
|
144
|
+
text = text.strip()
|
|
145
|
+
if not text:
|
|
146
|
+
return ""
|
|
147
|
+
|
|
148
|
+
is_bold = flags & 16
|
|
149
|
+
is_italic = flags & 2
|
|
150
|
+
|
|
151
|
+
if is_bold and is_italic:
|
|
152
|
+
return f"***{text}***"
|
|
153
|
+
elif is_bold:
|
|
154
|
+
return f"**{text}**"
|
|
155
|
+
elif is_italic:
|
|
156
|
+
return f"*{text}*"
|
|
157
|
+
return text
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def detect_list_item(text: str) -> tuple:
|
|
161
|
+
"""Detect if the text is a list item. Returns (is_list, list_type, content)."""
|
|
162
|
+
text = text.strip()
|
|
163
|
+
|
|
164
|
+
ul_patterns = [
|
|
165
|
+
(r'^[•●○◦▪▸►]\s*', '-'),
|
|
166
|
+
(r'^[-–—]\s+', '-'),
|
|
167
|
+
(r'^\*\s+', '-'),
|
|
168
|
+
]
|
|
169
|
+
for pattern, marker in ul_patterns:
|
|
170
|
+
match = re.match(pattern, text)
|
|
171
|
+
if match:
|
|
172
|
+
return (True, 'ul', marker + ' ' + text[match.end():])
|
|
173
|
+
|
|
174
|
+
ol_pattern = r'^(\d+)[.、)]\s*'
|
|
175
|
+
match = re.match(ol_pattern, text)
|
|
176
|
+
if match:
|
|
177
|
+
num = match.group(1)
|
|
178
|
+
return (True, 'ol', f"{num}. " + text[match.end():])
|
|
179
|
+
|
|
180
|
+
return (False, None, text)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def remove_page_footer(text: str) -> str:
|
|
184
|
+
"""
|
|
185
|
+
Remove page number patterns from footers, e.g. 'November 2025 8' or '2025年11月 8'.
|
|
186
|
+
"""
|
|
187
|
+
# English month + year + page number
|
|
188
|
+
months_en = r'(?:January|February|March|April|May|June|July|August|September|October|November|December)'
|
|
189
|
+
pattern_en = rf'\s*{months_en}\s+\d{{4}}\s+\d{{1,3}}\s*$'
|
|
190
|
+
text = re.sub(pattern_en, '', text, flags=re.IGNORECASE)
|
|
191
|
+
|
|
192
|
+
# Chinese format: 2025年11月 8
|
|
193
|
+
pattern_cn = r'\s*\d{4}年\d{1,2}月\s+\d{1,3}\s*$'
|
|
194
|
+
text = re.sub(pattern_cn, '', text)
|
|
195
|
+
|
|
196
|
+
return text.rstrip()
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def detect_headers_footers(doc: fitz.Document, threshold_ratio: float = 0.6) -> set[str]:
|
|
200
|
+
"""
|
|
201
|
+
Detect headers and footers statistically.
|
|
202
|
+
|
|
203
|
+
Principle: Headers and footers typically appear at fixed positions (top or bottom)
|
|
204
|
+
on each page with the same content. We collect top and bottom text from all pages,
|
|
205
|
+
and if certain text appears more frequently than the threshold, it is treated as noise.
|
|
206
|
+
"""
|
|
207
|
+
if len(doc) < 3:
|
|
208
|
+
return set()
|
|
209
|
+
|
|
210
|
+
headers = []
|
|
211
|
+
footers = []
|
|
212
|
+
|
|
213
|
+
# Sample first 20 and last 20 pages (avoid processing too slowly)
|
|
214
|
+
pages_to_scan = list(range(len(doc)))
|
|
215
|
+
if len(doc) > HEADER_FOOTER_SAMPLE_LIMIT:
|
|
216
|
+
pages_to_scan = (
|
|
217
|
+
pages_to_scan[:HEADER_FOOTER_EDGE_SAMPLE_SIZE]
|
|
218
|
+
+ pages_to_scan[-HEADER_FOOTER_EDGE_SAMPLE_SIZE:]
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
for i in pages_to_scan:
|
|
222
|
+
page = doc[i]
|
|
223
|
+
rect = page.rect
|
|
224
|
+
h = rect.height
|
|
225
|
+
|
|
226
|
+
# Define top and bottom regions (15% each)
|
|
227
|
+
top_rect = fitz.Rect(0, 0, rect.width, h * 0.15)
|
|
228
|
+
bottom_rect = fitz.Rect(0, h * 0.85, rect.width, h)
|
|
229
|
+
|
|
230
|
+
# Extract text blocks
|
|
231
|
+
blocks = page.get_text("blocks")
|
|
232
|
+
for b in blocks:
|
|
233
|
+
b_rect = fitz.Rect(b[:4])
|
|
234
|
+
text = b[4].strip()
|
|
235
|
+
if not text:
|
|
236
|
+
continue
|
|
237
|
+
|
|
238
|
+
# Simple spatial determination
|
|
239
|
+
if b_rect.intersects(top_rect):
|
|
240
|
+
headers.append(text)
|
|
241
|
+
elif b_rect.intersects(bottom_rect):
|
|
242
|
+
footers.append(text)
|
|
243
|
+
|
|
244
|
+
# Count frequencies
|
|
245
|
+
noise_texts = set()
|
|
246
|
+
total_scanned = len(pages_to_scan)
|
|
247
|
+
|
|
248
|
+
for collection in [headers, footers]:
|
|
249
|
+
counter = Counter(collection)
|
|
250
|
+
for text, count in counter.items():
|
|
251
|
+
# if text appears in > 60% of scanned pages, mark as noise
|
|
252
|
+
if count / total_scanned > threshold_ratio:
|
|
253
|
+
noise_texts.add(text)
|
|
254
|
+
|
|
255
|
+
return noise_texts
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def merge_adjacent_headings(elements: list) -> list:
|
|
259
|
+
"""
|
|
260
|
+
Merge adjacent same-level short headings.
|
|
261
|
+
Example: '# Agent Tools &' + '# Interoperability' -> '# Agent Tools & Interoperability'
|
|
262
|
+
"""
|
|
263
|
+
if not elements:
|
|
264
|
+
return elements
|
|
265
|
+
|
|
266
|
+
merged = []
|
|
267
|
+
i = 0
|
|
268
|
+
|
|
269
|
+
while i < len(elements):
|
|
270
|
+
el = elements[i]
|
|
271
|
+
|
|
272
|
+
# Only process heading elements
|
|
273
|
+
if el.get("type") != 0 or not el.get("is_heading"):
|
|
274
|
+
merged.append(el)
|
|
275
|
+
i += 1
|
|
276
|
+
continue
|
|
277
|
+
|
|
278
|
+
content = el["content"]
|
|
279
|
+
# Extract heading level
|
|
280
|
+
match = re.match(r'^(#{1,6})\s+(.+)$', content)
|
|
281
|
+
if not match:
|
|
282
|
+
merged.append(el)
|
|
283
|
+
i += 1
|
|
284
|
+
continue
|
|
285
|
+
|
|
286
|
+
level = match.group(1)
|
|
287
|
+
title_text = match.group(2)
|
|
288
|
+
|
|
289
|
+
# If heading is short and the next one is also the same level, try to merge
|
|
290
|
+
j = i + 1
|
|
291
|
+
while j < len(elements) and len(title_text) < 60:
|
|
292
|
+
next_el = elements[j]
|
|
293
|
+
if next_el.get("type") != 0 or not next_el.get("is_heading"):
|
|
294
|
+
break
|
|
295
|
+
|
|
296
|
+
next_match = re.match(r'^(#{1,6})\s+(.+)$', next_el["content"])
|
|
297
|
+
if not next_match or next_match.group(1) != level:
|
|
298
|
+
break
|
|
299
|
+
|
|
300
|
+
next_text = next_match.group(2)
|
|
301
|
+
# Only merge short heading fragments
|
|
302
|
+
if len(next_text) > 40:
|
|
303
|
+
break
|
|
304
|
+
|
|
305
|
+
# Merge
|
|
306
|
+
title_text += " " + next_text
|
|
307
|
+
j += 1
|
|
308
|
+
|
|
309
|
+
# Create merged element
|
|
310
|
+
merged_el = el.copy()
|
|
311
|
+
merged_el["content"] = f"{level} {title_text}"
|
|
312
|
+
merged.append(merged_el)
|
|
313
|
+
i = j
|
|
314
|
+
|
|
315
|
+
return merged
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
# Image filtering thresholds
|
|
319
|
+
MIN_IMAGE_PIXELS = 100 # Minimum pixel dimension (width AND height)
|
|
320
|
+
MIN_IMAGE_AREA = 30000 # Minimum pixel area (e.g. 200x150)
|
|
321
|
+
MIN_IMAGE_BYTES = 2048 # Minimum image data size (2KB)
|
|
322
|
+
MIN_PAGE_RATIO = 0.05 # Minimum render size relative to page (5%)
|
|
323
|
+
MAX_ASPECT_RATIO = 12 # Maximum aspect ratio (filters decorative bars)
|
|
324
|
+
MAX_LOW_INFO_BPP = 0.08 # Bytes-per-pixel threshold for low-info images
|
|
325
|
+
MAX_LOW_INFO_AREA = 500000 # Area threshold: only apply bpp filter below this
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def should_keep_image(
|
|
329
|
+
block: dict[str, object],
|
|
330
|
+
page_rect: fitz.Rect,
|
|
331
|
+
seen_hashes: set[str] | None = None,
|
|
332
|
+
) -> bool:
|
|
333
|
+
"""Filter out small, decorative, or duplicate images.
|
|
334
|
+
|
|
335
|
+
Args:
|
|
336
|
+
block: Image block extracted from PyMuPDF.
|
|
337
|
+
page_rect: Current page rectangle.
|
|
338
|
+
seen_hashes: Optional set used to deduplicate image payloads.
|
|
339
|
+
|
|
340
|
+
Returns:
|
|
341
|
+
Whether the image should be kept in the Markdown output.
|
|
342
|
+
"""
|
|
343
|
+
w, h = block.get("width", 0), block.get("height", 0)
|
|
344
|
+
|
|
345
|
+
# Pixel dimension filter
|
|
346
|
+
if w < MIN_IMAGE_PIXELS or h < MIN_IMAGE_PIXELS:
|
|
347
|
+
return False
|
|
348
|
+
|
|
349
|
+
# Pixel area filter
|
|
350
|
+
area = w * h
|
|
351
|
+
if area < MIN_IMAGE_AREA:
|
|
352
|
+
return False
|
|
353
|
+
|
|
354
|
+
image_data = block.get("image", b"")
|
|
355
|
+
if len(image_data) < MIN_IMAGE_BYTES:
|
|
356
|
+
return False
|
|
357
|
+
|
|
358
|
+
# Deduplicate: skip images with identical content (e.g. repeated backgrounds)
|
|
359
|
+
if seen_hashes is not None:
|
|
360
|
+
img_hash = hashlib.md5(image_data).hexdigest()
|
|
361
|
+
if img_hash in seen_hashes:
|
|
362
|
+
return False
|
|
363
|
+
seen_hashes.add(img_hash)
|
|
364
|
+
|
|
365
|
+
# Check render size relative to page
|
|
366
|
+
bbox = block.get("bbox", (0, 0, 0, 0))
|
|
367
|
+
render_w = bbox[2] - bbox[0]
|
|
368
|
+
render_h = bbox[3] - bbox[1]
|
|
369
|
+
page_w = page_rect.width
|
|
370
|
+
page_h = page_rect.height
|
|
371
|
+
if page_w > 0 and page_h > 0:
|
|
372
|
+
if render_w / page_w < MIN_PAGE_RATIO and render_h / page_h < MIN_PAGE_RATIO:
|
|
373
|
+
return False
|
|
374
|
+
|
|
375
|
+
# Filter extreme aspect ratios (decorative bars/separators)
|
|
376
|
+
aspect = max(w, h) / max(min(w, h), 1)
|
|
377
|
+
if aspect > MAX_ASPECT_RATIO:
|
|
378
|
+
return False
|
|
379
|
+
|
|
380
|
+
# Filter low-info images: solid color blocks / gradients have very high
|
|
381
|
+
# compression ratios (low bytes-per-pixel). Only apply to smaller images
|
|
382
|
+
# to avoid filtering large photos with dark/uniform backgrounds.
|
|
383
|
+
bpp = len(image_data) / area
|
|
384
|
+
if bpp < MAX_LOW_INFO_BPP and area < MAX_LOW_INFO_AREA:
|
|
385
|
+
return False
|
|
386
|
+
|
|
387
|
+
return True
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
def clean_text(text: str) -> str:
|
|
391
|
+
"""Clean extracted text."""
|
|
392
|
+
lines = text.split('\n')
|
|
393
|
+
cleaned_lines = []
|
|
394
|
+
prev_empty = False
|
|
395
|
+
|
|
396
|
+
for line in lines:
|
|
397
|
+
line = line.rstrip()
|
|
398
|
+
is_empty = len(line.strip()) == 0
|
|
399
|
+
|
|
400
|
+
if is_empty:
|
|
401
|
+
if not prev_empty:
|
|
402
|
+
cleaned_lines.append('')
|
|
403
|
+
prev_empty = True
|
|
404
|
+
else:
|
|
405
|
+
cleaned_lines.append(line)
|
|
406
|
+
prev_empty = False
|
|
407
|
+
|
|
408
|
+
return '\n'.join(cleaned_lines)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
def merge_adjacent_formatting(text: str) -> str:
|
|
412
|
+
"""Merge adjacent formatting markers, e.g. **text1****text2** -> **text1 text2**"""
|
|
413
|
+
text = re.sub(r'\*\*\s*\*\*', ' ', text)
|
|
414
|
+
text = re.sub(r'\*\s*\*', ' ', text)
|
|
415
|
+
text = re.sub(r'\*\*\*\s*\*\*\*', ' ', text)
|
|
416
|
+
return text
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
def is_sentence_end(text: str) -> bool:
|
|
420
|
+
"""Check if the text ends with sentence-ending punctuation."""
|
|
421
|
+
text = text.rstrip()
|
|
422
|
+
if not text:
|
|
423
|
+
return True
|
|
424
|
+
end_puncts = '.。!!??::;;'
|
|
425
|
+
return text[-1] in end_puncts
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
def should_merge_lines(current: dict, next_line: dict) -> bool:
|
|
429
|
+
"""Determine if two lines should be merged into the same paragraph."""
|
|
430
|
+
if current.get("is_heading") or next_line.get("is_heading"):
|
|
431
|
+
return False
|
|
432
|
+
if current.get("is_list") or next_line.get("is_list"):
|
|
433
|
+
return False
|
|
434
|
+
if is_sentence_end(current.get("content", "")):
|
|
435
|
+
return False
|
|
436
|
+
return True
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
def extract_pdf_to_markdown(pdf_path: str, output_path: str = None) -> str:
|
|
440
|
+
"""
|
|
441
|
+
Extract text, images, and tables from a PDF and convert to Markdown.
|
|
442
|
+
"""
|
|
443
|
+
try:
|
|
444
|
+
doc = fitz.open(pdf_path)
|
|
445
|
+
except Exception as e:
|
|
446
|
+
print(f"[ERROR] Failed to open PDF file: {e}")
|
|
447
|
+
return ""
|
|
448
|
+
|
|
449
|
+
filename = Path(pdf_path).stem
|
|
450
|
+
title = re.sub(r'^\d+-', '', filename).strip()
|
|
451
|
+
|
|
452
|
+
print(f"[INFO] Analyzing document structure...")
|
|
453
|
+
size_map = analyze_font_sizes(doc)
|
|
454
|
+
print(f" Font size mapping: body={size_map.get('body', 'N/A')}, " +
|
|
455
|
+
f"H1={size_map.get('h1', 'N/A')}, H2={size_map.get('h2', 'N/A')}, H3={size_map.get('h3', 'N/A')}")
|
|
456
|
+
|
|
457
|
+
print(f"[INFO] Detecting repeated headers/footers...")
|
|
458
|
+
noise_texts = detect_headers_footers(doc)
|
|
459
|
+
if noise_texts:
|
|
460
|
+
print(f" Found {len(noise_texts)} repeated noise texts (will be removed):")
|
|
461
|
+
for t in list(noise_texts)[:3]:
|
|
462
|
+
print(f" - {t[:30]}...")
|
|
463
|
+
|
|
464
|
+
markdown_content = f"# {title}\n\n"
|
|
465
|
+
seen_image_hashes = set() # Track seen image hashes for deduplication
|
|
466
|
+
|
|
467
|
+
img_dir = None
|
|
468
|
+
rel_img_dir = None
|
|
469
|
+
if output_path:
|
|
470
|
+
output_path = Path(output_path)
|
|
471
|
+
rel_img_dir = f"{output_path.stem}_files"
|
|
472
|
+
img_dir = output_path.parent / rel_img_dir
|
|
473
|
+
if not img_dir.exists():
|
|
474
|
+
img_dir.mkdir(parents=True, exist_ok=True)
|
|
475
|
+
|
|
476
|
+
img_count = 0
|
|
477
|
+
|
|
478
|
+
for page_num, page in enumerate(doc, 1):
|
|
479
|
+
if page_num > 1:
|
|
480
|
+
# Add page break marker to help LLM understand context segmentation
|
|
481
|
+
markdown_content += f"\n\n<!-- Page {page_num} -->\n\n"
|
|
482
|
+
|
|
483
|
+
try:
|
|
484
|
+
tabs = page.find_tables()
|
|
485
|
+
except Exception:
|
|
486
|
+
tabs = []
|
|
487
|
+
|
|
488
|
+
tab_rects = [fitz.Rect(t.bbox) for t in tabs]
|
|
489
|
+
|
|
490
|
+
page_elements = []
|
|
491
|
+
|
|
492
|
+
for tab in tabs:
|
|
493
|
+
page_elements.append({
|
|
494
|
+
"y0": tab.bbox[1],
|
|
495
|
+
"type": 2,
|
|
496
|
+
"content": tab.to_markdown()
|
|
497
|
+
})
|
|
498
|
+
print(f" [OK] Found table: P{page_num}")
|
|
499
|
+
|
|
500
|
+
blocks = page.get_text("dict")["blocks"]
|
|
501
|
+
|
|
502
|
+
for block in blocks:
|
|
503
|
+
block_rect = fitz.Rect(block["bbox"])
|
|
504
|
+
|
|
505
|
+
# Check if this is table content
|
|
506
|
+
is_in_table = False
|
|
507
|
+
for tab_rect in tab_rects:
|
|
508
|
+
intersect = block_rect & tab_rect
|
|
509
|
+
if intersect.get_area() > 0.6 * block_rect.get_area():
|
|
510
|
+
is_in_table = True
|
|
511
|
+
break
|
|
512
|
+
|
|
513
|
+
if is_in_table:
|
|
514
|
+
continue
|
|
515
|
+
|
|
516
|
+
if block["type"] == 0:
|
|
517
|
+
# Check if this is noise text to be filtered (whole block match)
|
|
518
|
+
block_text_full = "".join([span["text"] for line in block["lines"] for span in line["spans"]]).strip()
|
|
519
|
+
if block_text_full in noise_texts:
|
|
520
|
+
continue
|
|
521
|
+
|
|
522
|
+
for line in block["lines"]:
|
|
523
|
+
line_text = ""
|
|
524
|
+
line_size = 0
|
|
525
|
+
line_flags = 0
|
|
526
|
+
span_count = 0
|
|
527
|
+
is_code_line = False
|
|
528
|
+
|
|
529
|
+
formatted_spans = []
|
|
530
|
+
for span in line["spans"]:
|
|
531
|
+
span_text = span["text"]
|
|
532
|
+
if not span_text.strip():
|
|
533
|
+
if span_text:
|
|
534
|
+
formatted_spans.append(span_text)
|
|
535
|
+
continue
|
|
536
|
+
|
|
537
|
+
span_size = span["size"]
|
|
538
|
+
span_flags = span["flags"]
|
|
539
|
+
|
|
540
|
+
line_size = max(line_size, span_size)
|
|
541
|
+
line_flags |= span_flags
|
|
542
|
+
span_count += 1
|
|
543
|
+
|
|
544
|
+
heading_level = get_heading_level(span_size, size_map, span_text, span_flags)
|
|
545
|
+
|
|
546
|
+
# Detect code font
|
|
547
|
+
font_name = span.get("font", "")
|
|
548
|
+
if is_monospace_font(font_name):
|
|
549
|
+
is_code_line = True
|
|
550
|
+
formatted_spans.append(span_text) # No formatting for code
|
|
551
|
+
elif heading_level > 0:
|
|
552
|
+
formatted_spans.append(span_text.strip())
|
|
553
|
+
else:
|
|
554
|
+
formatted_spans.append(format_span_text(span_text, span_flags))
|
|
555
|
+
|
|
556
|
+
line_text = ''.join(formatted_spans).strip()
|
|
557
|
+
if not line_text:
|
|
558
|
+
continue
|
|
559
|
+
|
|
560
|
+
# Secondary check: line-level noise match (sometimes blocks are split)
|
|
561
|
+
if line_text in noise_texts:
|
|
562
|
+
continue
|
|
563
|
+
|
|
564
|
+
line_text = merge_adjacent_formatting(line_text)
|
|
565
|
+
|
|
566
|
+
heading_level = get_heading_level(line_size, size_map, line_text, line_flags)
|
|
567
|
+
|
|
568
|
+
is_list, list_type, list_content = detect_list_item(line_text)
|
|
569
|
+
|
|
570
|
+
if heading_level > 0:
|
|
571
|
+
prefix = '#' * heading_level + ' '
|
|
572
|
+
clean_line = re.sub(r'\*+([^*]+)\*+', r'\1', line_text)
|
|
573
|
+
final_text = prefix + clean_line
|
|
574
|
+
elif is_list:
|
|
575
|
+
final_text = list_content
|
|
576
|
+
else:
|
|
577
|
+
final_text = line_text
|
|
578
|
+
|
|
579
|
+
page_elements.append({
|
|
580
|
+
"y0": line["bbox"][1],
|
|
581
|
+
"type": 0,
|
|
582
|
+
"content": final_text,
|
|
583
|
+
"is_heading": heading_level > 0,
|
|
584
|
+
"is_list": is_list,
|
|
585
|
+
"is_code": is_code_line
|
|
586
|
+
})
|
|
587
|
+
|
|
588
|
+
elif block["type"] == 1:
|
|
589
|
+
if should_keep_image(block, page.rect, seen_image_hashes):
|
|
590
|
+
page_elements.append({
|
|
591
|
+
"y0": block["bbox"][1],
|
|
592
|
+
"type": 1,
|
|
593
|
+
"content": block
|
|
594
|
+
})
|
|
595
|
+
else:
|
|
596
|
+
w, h = block.get("width", 0), block.get("height", 0)
|
|
597
|
+
print(f" [SKIP] Filtered small/decorative image: {w}x{h}px, {len(block.get('image', b''))} bytes")
|
|
598
|
+
|
|
599
|
+
page_elements.sort(key=lambda x: x["y0"])
|
|
600
|
+
|
|
601
|
+
# Merge adjacent same-level short headings
|
|
602
|
+
page_elements = merge_adjacent_headings(page_elements)
|
|
603
|
+
|
|
604
|
+
merged_elements = []
|
|
605
|
+
i = 0
|
|
606
|
+
while i < len(page_elements):
|
|
607
|
+
el = page_elements[i]
|
|
608
|
+
if el["type"] == 0 and not el.get("is_heading") and not el.get("is_list"):
|
|
609
|
+
merged_content = el["content"]
|
|
610
|
+
j = i + 1
|
|
611
|
+
while j < len(page_elements):
|
|
612
|
+
next_el = page_elements[j]
|
|
613
|
+
if next_el["type"] != 0:
|
|
614
|
+
break
|
|
615
|
+
if not should_merge_lines({"content": merged_content, "is_heading": False, "is_list": False}, next_el):
|
|
616
|
+
break
|
|
617
|
+
merged_content += " " + next_el["content"]
|
|
618
|
+
j += 1
|
|
619
|
+
merged_elements.append({
|
|
620
|
+
"type": 0,
|
|
621
|
+
"content": remove_page_footer(merged_content),
|
|
622
|
+
"is_heading": False,
|
|
623
|
+
"is_list": False
|
|
624
|
+
})
|
|
625
|
+
i = j
|
|
626
|
+
else:
|
|
627
|
+
merged_elements.append(el)
|
|
628
|
+
i += 1
|
|
629
|
+
|
|
630
|
+
prev_was_list = False
|
|
631
|
+
prev_was_code = False
|
|
632
|
+
code_block_lines = []
|
|
633
|
+
|
|
634
|
+
def flush_code_block():
|
|
635
|
+
"""Flush accumulated code block."""
|
|
636
|
+
nonlocal code_block_lines, markdown_content
|
|
637
|
+
if code_block_lines:
|
|
638
|
+
markdown_content += "```\n"
|
|
639
|
+
markdown_content += "\n".join(code_block_lines) + "\n"
|
|
640
|
+
markdown_content += "```\n\n"
|
|
641
|
+
code_block_lines = []
|
|
642
|
+
|
|
643
|
+
for el in merged_elements:
|
|
644
|
+
if el["type"] == 0:
|
|
645
|
+
is_list = el.get("is_list", False)
|
|
646
|
+
is_heading = el.get("is_heading", False)
|
|
647
|
+
is_code = el.get("is_code", False)
|
|
648
|
+
|
|
649
|
+
if is_code:
|
|
650
|
+
# Accumulate code lines
|
|
651
|
+
if prev_was_list:
|
|
652
|
+
markdown_content += "\n"
|
|
653
|
+
prev_was_list = False
|
|
654
|
+
code_block_lines.append(el["content"])
|
|
655
|
+
prev_was_code = True
|
|
656
|
+
else:
|
|
657
|
+
# Non-code line, flush accumulated code block first
|
|
658
|
+
if prev_was_code:
|
|
659
|
+
flush_code_block()
|
|
660
|
+
prev_was_code = False
|
|
661
|
+
|
|
662
|
+
if is_heading:
|
|
663
|
+
if prev_was_list:
|
|
664
|
+
markdown_content += "\n"
|
|
665
|
+
markdown_content += el["content"] + "\n\n"
|
|
666
|
+
prev_was_list = False
|
|
667
|
+
elif is_list:
|
|
668
|
+
markdown_content += el["content"] + "\n"
|
|
669
|
+
prev_was_list = True
|
|
670
|
+
else:
|
|
671
|
+
if prev_was_list:
|
|
672
|
+
markdown_content += "\n"
|
|
673
|
+
markdown_content += el["content"] + "\n\n"
|
|
674
|
+
prev_was_list = False
|
|
675
|
+
|
|
676
|
+
elif el["type"] == 2:
|
|
677
|
+
if prev_was_code:
|
|
678
|
+
flush_code_block()
|
|
679
|
+
prev_was_code = False
|
|
680
|
+
if prev_was_list:
|
|
681
|
+
markdown_content += "\n"
|
|
682
|
+
markdown_content += el["content"] + "\n\n"
|
|
683
|
+
prev_was_list = False
|
|
684
|
+
|
|
685
|
+
elif el["type"] == 1:
|
|
686
|
+
if prev_was_code:
|
|
687
|
+
flush_code_block()
|
|
688
|
+
prev_was_code = False
|
|
689
|
+
if img_dir:
|
|
690
|
+
block = el["content"]
|
|
691
|
+
ext = block["ext"]
|
|
692
|
+
image_data = block["image"]
|
|
693
|
+
safe_filename = filename.replace(" ", "_")
|
|
694
|
+
image_name = f"{safe_filename}_p{page_num}_{img_count}.{ext}"
|
|
695
|
+
image_path = img_dir / image_name
|
|
696
|
+
|
|
697
|
+
try:
|
|
698
|
+
with open(image_path, "wb") as f:
|
|
699
|
+
f.write(image_data)
|
|
700
|
+
|
|
701
|
+
if prev_was_list:
|
|
702
|
+
markdown_content += "\n"
|
|
703
|
+
markdown_content += f"\n\n"
|
|
704
|
+
img_count += 1
|
|
705
|
+
prev_was_list = False
|
|
706
|
+
print(f" [OK] Extracted image: {image_name}")
|
|
707
|
+
except Exception as e:
|
|
708
|
+
print(f" [WARN] Failed to save image: {e}")
|
|
709
|
+
|
|
710
|
+
# Flush code block at end of page
|
|
711
|
+
if prev_was_code:
|
|
712
|
+
flush_code_block()
|
|
713
|
+
|
|
714
|
+
doc.close()
|
|
715
|
+
|
|
716
|
+
markdown_content = re.sub(r'\n{3,}', '\n\n', markdown_content)
|
|
717
|
+
markdown_content = markdown_content.strip() + "\n"
|
|
718
|
+
|
|
719
|
+
if output_path:
|
|
720
|
+
os.makedirs(os.path.dirname(output_path) or '.', exist_ok=True)
|
|
721
|
+
with open(output_path, 'w', encoding='utf-8') as f:
|
|
722
|
+
f.write(markdown_content)
|
|
723
|
+
print(f"[OK] Saved Markdown to: {output_path}")
|
|
724
|
+
|
|
725
|
+
return markdown_content
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
def process_directory(input_dir: str, output_dir: str | None = None) -> None:
|
|
729
|
+
"""Convert all PDFs in a directory to Markdown.
|
|
730
|
+
|
|
731
|
+
Args:
|
|
732
|
+
input_dir: Directory containing PDF files.
|
|
733
|
+
output_dir: Optional output directory for Markdown files.
|
|
734
|
+
"""
|
|
735
|
+
input_path = Path(input_dir)
|
|
736
|
+
|
|
737
|
+
if output_dir:
|
|
738
|
+
output_path = Path(output_dir)
|
|
739
|
+
else:
|
|
740
|
+
output_path = input_path
|
|
741
|
+
|
|
742
|
+
pdf_files = sorted(input_path.glob('*.pdf'))
|
|
743
|
+
|
|
744
|
+
print(f"Found {len(pdf_files)} PDF files")
|
|
745
|
+
|
|
746
|
+
for pdf_file in pdf_files:
|
|
747
|
+
output_file = output_path / (pdf_file.stem + '.md')
|
|
748
|
+
print(f"Processing: {pdf_file.name}")
|
|
749
|
+
extract_pdf_to_markdown(str(pdf_file), str(output_file))
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
def main() -> int:
|
|
753
|
+
"""Run the CLI entry point."""
|
|
754
|
+
parser = argparse.ArgumentParser(
|
|
755
|
+
description='PDF to Markdown converter (with structure detection and LLM optimization)',
|
|
756
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
757
|
+
epilog='''
|
|
758
|
+
Examples:
|
|
759
|
+
python pdf_to_md.py book.pdf # Convert a single file
|
|
760
|
+
python pdf_to_md.py book.pdf -o output.md # Specify output file
|
|
761
|
+
python pdf_to_md.py ./pdfs # Convert all PDFs in directory
|
|
762
|
+
python pdf_to_md.py ./pdfs -o ./markdown # Specify output directory
|
|
763
|
+
|
|
764
|
+
Structure detection features:
|
|
765
|
+
- Auto-detect heading levels (based on font size)
|
|
766
|
+
- Detect bold and italic text
|
|
767
|
+
- Detect ordered and unordered lists
|
|
768
|
+
- Extract tables and convert to Markdown format (with deduplication)
|
|
769
|
+
- [New] Smart detection and removal of repeated page headers/footers
|
|
770
|
+
- [New] Add <!-- Page N --> page break markers to help LLM understanding
|
|
771
|
+
'''
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
parser.add_argument('input', help='PDF file or directory containing PDFs')
|
|
775
|
+
parser.add_argument('-o', '--output', help='Output file or directory')
|
|
776
|
+
|
|
777
|
+
args = parser.parse_args()
|
|
778
|
+
|
|
779
|
+
input_path = Path(args.input)
|
|
780
|
+
|
|
781
|
+
if input_path.is_file():
|
|
782
|
+
output = args.output or str(input_path.with_suffix('.md'))
|
|
783
|
+
extract_pdf_to_markdown(str(input_path), output)
|
|
784
|
+
elif input_path.is_dir():
|
|
785
|
+
process_directory(str(input_path), args.output)
|
|
786
|
+
else:
|
|
787
|
+
print(f"Error: File or directory not found: {args.input}")
|
|
788
|
+
return 1
|
|
789
|
+
|
|
790
|
+
return 0
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
if __name__ == '__main__':
|
|
794
|
+
exit(main())
|