@litfamily/litgravity 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +17 -3
  3. package/README_ko-KR.md +17 -3
  4. package/package.json +1 -1
  5. package/plugin/hooks/lib/lanes.mjs +65 -0
  6. package/plugin/hooks/lib/motion.mjs +34 -5
  7. package/plugin/hooks/lib/reentry.mjs +7 -0
  8. package/plugin/hooks/lib/rewind/brief.mjs +332 -0
  9. package/plugin/hooks/lib/rewind/collect.mjs +328 -0
  10. package/plugin/hooks/lib/rewind/gauge.mjs +55 -0
  11. package/plugin/hooks/lib/rewind/next-step.mjs +77 -0
  12. package/plugin/hooks/lib/rewind/redact.mjs +60 -0
  13. package/plugin/hooks/lib/rewind/transcripts.mjs +211 -0
  14. package/plugin/hooks/lib/routes.mjs +79 -5
  15. package/plugin/hooks/lib/workflow-stack.mjs +213 -0
  16. package/plugin/hooks/post-tool-use.mjs +37 -1
  17. package/plugin/hooks/pre-invocation.mjs +91 -2
  18. package/plugin/hooks/session-start.mjs +26 -3
  19. package/plugin/hooks/stop.mjs +22 -2
  20. package/plugin/hud/looks.mjs +29 -0
  21. package/plugin/hud/render.mjs +234 -12
  22. package/plugin/plugin.json +1 -1
  23. package/plugin/skills/frontend-ui-ux/SKILL.md +12 -1
  24. package/plugin/skills/frontend-ui-ux/kit/components.css +417 -0
  25. package/plugin/skills/frontend-ui-ux/kit/fonts.json +22 -0
  26. package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
  27. package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
  28. package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
  29. package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
  30. package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
  31. package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
  32. package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
  33. package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
  34. package/plugin/skills/frontend-ui-ux/kit/ui.js +226 -0
  35. package/plugin/skills/frontend-ui-ux/references/house-styles.md +234 -0
  36. package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
  37. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +196 -0
  38. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +30 -9
  39. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +20 -8
  40. package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +42 -9
  41. package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
  42. package/plugin/skills/lit-adhd/SKILL.md +157 -0
  43. package/plugin/skills/lit-adhd/references/card-examples.md +101 -0
  44. package/plugin/skills/lit-adhd/references/status-taxonomy.md +32 -0
  45. package/plugin/skills/lit-adhd/scripts/rewind.mjs +5 -0
  46. package/plugin/skills/lit-diagram-drawer/SKILL.md +5 -3
  47. package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +1 -1
  48. package/plugin/skills/lit-diagram-drawer/references/style-guide.md +21 -12
  49. package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
  50. package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
  51. package/plugin/skills/lit-diagram-drawer/references/type-tree.md +3 -3
  52. package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
  53. package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
  54. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
  55. package/plugin/skills/lit-docx/SKILL.md +3 -3
  56. package/plugin/skills/lit-handoff/SKILL.md +1 -0
  57. package/plugin/skills/lit-hijack/SKILL.md +263 -0
  58. package/plugin/skills/lit-hijack/references/capture-and-provenance.md +100 -0
  59. package/plugin/skills/lit-hijack/references/clean-room-build.md +75 -0
  60. package/plugin/skills/lit-hijack/references/distil-and-licence.md +67 -0
  61. package/plugin/skills/lit-hijack/references/gap-and-port-design.md +100 -0
  62. package/plugin/skills/lit-hijack/references/parity-and-report.md +85 -0
  63. package/plugin/skills/lit-hijack/scripts/hijack.mjs +953 -0
  64. package/plugin/skills/lit-plan/SKILL.md +1 -1
  65. package/plugin/skills/lit-pptx/SKILL.md +8 -8
  66. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  67. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  68. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
  69. package/plugin/skills/lit-pptx/fonts/provenance.json +32 -1
  70. package/plugin/skills/lit-pptx/references/agents/analyst.md +34 -56
  71. package/plugin/skills/lit-pptx/references/agents/antithesis.md +49 -67
  72. package/plugin/skills/lit-pptx/references/agents/architect.md +38 -51
  73. package/plugin/skills/lit-pptx/references/agents/critic.md +25 -41
  74. package/plugin/skills/lit-pptx/references/agents/synthesizer.md +37 -46
  75. package/plugin/skills/lit-pptx/references/agents/thesis.md +29 -49
  76. package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +119 -145
  77. package/plugin/skills/lit-pptx/references/authoring-guide.md +187 -278
  78. package/plugin/skills/lit-pptx/references/consensus-protocol.md +99 -97
  79. package/plugin/skills/lit-pptx/references/data-display-cookbook.md +36 -137
  80. package/plugin/skills/lit-pptx/references/density-and-fill.md +147 -216
  81. package/plugin/skills/lit-pptx/references/design-system-azure.md +56 -85
  82. package/plugin/skills/lit-pptx/references/direction-step.md +134 -176
  83. package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +114 -115
  84. package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +66 -66
  85. package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +63 -63
  86. package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +96 -96
  87. package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +81 -81
  88. package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +103 -103
  89. package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +100 -98
  90. package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +76 -76
  91. package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +96 -96
  92. package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +80 -80
  93. package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +72 -72
  94. package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +95 -95
  95. package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +173 -0
  96. package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +154 -0
  97. package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +139 -0
  98. package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +158 -0
  99. package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +179 -0
  100. package/plugin/skills/lit-pptx/references/interview-protocol.md +83 -102
  101. package/plugin/skills/lit-pptx/references/layout-families.md +161 -265
  102. package/plugin/skills/lit-pptx/references/stages/autopilot.md +30 -70
  103. package/plugin/skills/lit-pptx/references/stages/interview.md +36 -68
  104. package/plugin/skills/lit-pptx/references/stages/plan.md +26 -67
  105. package/plugin/skills/lit-pptx/references/title-treatments.md +93 -145
  106. package/plugin/skills/lit-pptx/references/tonalities/atlas.md +95 -108
  107. package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +140 -0
  108. package/plugin/skills/lit-pptx/references/tonalities/chalk.md +107 -122
  109. package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +150 -0
  110. package/plugin/skills/lit-pptx/references/tonalities/gazette.md +87 -111
  111. package/plugin/skills/lit-pptx/references/tonalities/ledger.md +96 -125
  112. package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +161 -0
  113. package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +144 -0
  114. package/plugin/skills/lit-pptx/references/tonalities/night.md +104 -131
  115. package/plugin/skills/lit-pptx/references/tonalities/paper.md +114 -130
  116. package/plugin/skills/lit-pptx/references/tonalities/riso.md +137 -0
  117. package/plugin/skills/lit-pptx/references/tonalities/signal.md +96 -103
  118. package/plugin/skills/lit-pptx/references/tonalities/studio.md +81 -112
  119. package/plugin/skills/lit-pptx/scripts/compile-deck.js +4 -6
  120. package/plugin/skills/lit-pptx/scripts/craft_extras.py +135 -91
  121. package/plugin/skills/lit-pptx/scripts/deck_craft.py +1 -1
  122. package/plugin/skills/lit-pptx/scripts/embed_fonts.py +13 -1
  123. package/plugin/skills/lit-pptx/scripts/layout_inventory.py +1 -1
  124. package/plugin/skills/lit-pptx/scripts/learn_template.py +1 -1
  125. package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
  126. package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
  127. package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +370 -563
  128. package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
  129. package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
  130. package/plugin/skills/lit-pptx/scripts/qa_deck.py +6 -6
  131. package/plugin/skills/lit-pptx/scripts/render_pages.py +31 -0
  132. package/plugin/skills/lit-pptx/scripts/validate_pptx.py +1 -1
  133. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +167 -191
  134. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +117 -166
  135. package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +307 -330
  136. package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
  137. package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
  138. package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
  139. package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +99 -0
  140. package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
  141. package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
  142. package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
  143. package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
  144. package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
  145. package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
  146. package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
  147. package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
  148. package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
  149. package/plugin/skills/lit-schematic/SKILL.md +114 -0
  150. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
  151. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
  152. package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
  153. package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
  154. package/plugin/skills/lit-schematic/references/cutaway-outputs.md +70 -0
  155. package/plugin/skills/lit-schematic/references/isometric-craft.md +101 -0
  156. package/plugin/skills/lit-schematic/references/journal-figures.md +72 -0
  157. package/plugin/skills/lit-schematic/references/kit-api.md +134 -0
  158. package/plugin/skills/lit-schematic/references/pfd-and-layout.md +53 -0
  159. package/plugin/skills/lit-schematic/references/pid-drafting.md +103 -0
  160. package/plugin/skills/lit-schematic/references/pid-symbols.md +163 -0
  161. package/plugin/skills/lit-schematic/references/verification.md +100 -0
  162. package/plugin/skills/lit-schematic/scripts/doctor.mjs +57 -0
  163. package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
  164. package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +27 -0
  165. package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
  166. package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
  167. package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
  168. package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
  169. package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
  170. package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
  171. package/plugin/skills/lit-schematic/scripts/lib/png.mjs +132 -0
  172. package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
  173. package/plugin/skills/lit-schematic/scripts/lib/route.mjs +218 -0
  174. package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
  175. package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
  176. package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
  177. package/plugin/skills/lit-schematic/scripts/motion.mjs +129 -0
  178. package/plugin/skills/lit-schematic/scripts/qa.mjs +92 -0
  179. package/plugin/skills/lit-schematic/scripts/render.mjs +233 -0
  180. package/plugin/skills/lit-schematic/scripts/scaffold.mjs +60 -0
  181. package/plugin/skills/lit-scientific-visualization/SKILL.md +17 -6
  182. package/plugin/skills/lit-typographic-motion/SKILL.md +58 -48
  183. package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +13 -2
  184. package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +218 -0
  185. package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +1 -1
  186. package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +65 -1
  187. package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +298 -0
  188. package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +143 -0
  189. package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +136 -0
  190. package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +7 -1
  191. package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +9 -12
  192. package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +5 -3
  193. package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +7 -6
  194. package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +37 -4
  195. package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +19 -8
  196. package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +45 -6
  197. package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +7 -5
  198. package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +121 -0
  199. package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +34 -0
  200. package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +44 -0
  201. package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +34 -20
  202. package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +19 -9
  203. package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +210 -0
  204. package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +639 -0
  205. package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +21 -4
  206. package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +127 -29
  207. package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +7 -6
  208. package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +59 -5
  209. package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +141 -9
  210. package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +28 -5
  211. package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +82 -14
  212. package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +213 -0
  213. package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +311 -10
  214. package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +14 -2
  215. package/plugin/skills/lit-typographic-motion/engine/stage/init.js +11 -1
  216. package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +6 -1
  217. package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +83 -0
  218. package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
  219. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
  220. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
  221. package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
  222. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +69 -0
  223. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
  224. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +6 -4
  225. package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +4 -2
  226. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +7 -5
  227. package/plugin/skills/lit-typographic-motion/references/cover.md +394 -443
  228. package/plugin/skills/lit-typographic-motion/references/craft-loop.md +57 -87
  229. package/plugin/skills/lit-typographic-motion/references/depth.md +122 -0
  230. package/plugin/skills/lit-typographic-motion/references/look.md +94 -129
  231. package/plugin/skills/lit-typographic-motion/references/runtime.md +58 -91
  232. package/plugin/skills/lit-typographic-motion/references/sound.md +130 -99
  233. package/plugin/skills/lit-typographic-motion/references/stage.md +190 -215
  234. package/plugin/skills/lit-typographic-motion/references/studio.md +245 -0
  235. package/plugin/skills/lit-typographic-motion/references/style-bibles.md +108 -97
  236. package/plugin/skills/lit-typographic-motion/references/treatment.md +191 -143
  237. package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +17 -5
  238. package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +47 -7
  239. package/plugin/skills/lit-typographic-motion/styles/paper.json +41 -0
  240. package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +41 -0
  241. package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +42 -0
  242. package/plugin/skills/lit-typographic-motion/styles/tidal.json +41 -0
  243. package/plugin/skills/litresearch/SKILL.md +1 -0
  244. package/plugin/skills/readme-studio/SKILL.md +2 -0
  245. package/plugin/skills/review-work/SKILL.md +1 -1
  246. package/plugin/skills/start-work/SKILL.md +1 -1
@@ -4,7 +4,7 @@
4
4
  deck_craft.py answers "does the deck look finished"; these checks answer "does it carry the
5
5
  reflex defaults a designer would flag", each as a number a gate can hold:
6
6
 
7
- OF-101 one accent colour per slide (hue families among solid shape fills)
7
+ OF-101 at most four accent hue families per slide (among solid shape fills); five fail
8
8
  OF-102 body text-box measure (characters per wrapped line, CJK or Latin)
9
9
  OF-103 numeric table columns aligned right
10
10
  OF-104 concentric radius on a nested rounded frame
@@ -16,15 +16,21 @@ reflex defaults a designer would flag", each as a number a gate can hold:
16
16
  OF-110 a deck of 8+ slides mixes at least three title treatments; each drawn as it is named
17
17
  OF-111 content slides vary their composition (title zone x body partition x dominant content)
18
18
  OF-112 the median empty band under the body's last block stays at or under 0.20
19
- OF-113 every slide that uses one title treatment keeps that treatment's frame
19
+ OF-113 every content title sits on the shared title frame, every display title on the display frame
20
20
  OF-114 titles and the cover subtitle are topic labels, not declarative sentences
21
- OF-115 no region left empty: a bottom title on the floor, a used side rail, a takeaway column as long
22
- as the visual beside it (its values table included), a title panel as tall as its text and no
23
- plate under an empty page
24
- OF-116 (with --sibling) another tonality of the same source draws a different skeleton
21
+ OF-115 no region left empty: a takeaway column as long as the visual beside it (its values table
22
+ included), a title panel as tall as its text and no plate under an empty page
23
+ OF-116 (with --sibling) another tonality of the same source sets its titles and bodies in the same places
25
24
  OF-117 no light figure card on a dark ground
26
25
  OF-118 a bold run-in label is followed by its separator ("요약: …", "Summary: …")
27
26
  OF-119 an agenda's title carries no count numeral beside it (its rows are numbered)
27
+ OF-120 a hard offset shadow (no blur) only in a pack that allows one, and there every shadow is hard
28
+
29
+ A tonality pack may widen two of these limits through its own `qa:` block (listed in
30
+ references/anti-slop-checklist.md): `accent-families` and `display-accent-families` (how many accent
31
+ hue families a content or display slide may carry before OF-101 fails, five or six; the default is
32
+ four), and `offset-shadow` (OF-120).
33
+ The gate finds the pack through the deck's tonality stamp; a deck without a stamp keeps the defaults.
28
34
 
29
35
  Every threshold lives in THRESHOLDS. A HIGH finding fails the gate; a MEDIUM finding is
30
36
  advisory and is reported, not blocking. `tier` is "measured" when read off the OOXML and
@@ -62,7 +68,7 @@ from layout_inventory import DEFAULT_INSETS, EMU_PER_IN, PT_PER_IN, _attr_int, p
62
68
 
63
69
  THRESHOLDS = {
64
70
  "accent": {"min_lightness": 0.12, "max_lightness": 0.93, "min_saturation": 0.12, "family_deg": 20.0,
65
- "content_high": 3, "content_medium": 2, "display_high": 4, "display_medium": 3},
71
+ "content_high": 5, "content_medium": 5, "display_high": 5, "display_medium": 5},
66
72
  "measure": {"latin_max": 90, "cjk_max": 38, "cjk_share": 0.5, "narrow_min": 10, "narrow_lines": 3},
67
73
  "numeric": {"share": 0.7, "min_rows": 2},
68
74
  "radius": {"inset_spread_in": 0.06, "tolerance_in": 0.02, "min_outer_in": 0.04, "default_adj": 16667},
@@ -105,8 +111,52 @@ def _solid_fill(shape):
105
111
  return None
106
112
 
107
113
 
108
- def check_accents(slide, number, shapes, page_area, display):
109
- t = THRESHOLDS["accent"]
114
+ QA_KEY = re.compile(r"^ ([a-z-]+):\s*(\S+)\s*$")
115
+
116
+
117
+ def pack_allowances(prs) -> dict:
118
+ """The stamped tonality pack's `qa:` block as {key: int or bool}; empty without a stamp or a block."""
119
+ stamp = STAMP.search(prs.core_properties.subject or "")
120
+ if not stamp or not re.fullmatch(r"[a-z][a-z0-9-]*", stamp.group(1)):
121
+ return {}
122
+ path = Path(_HERE).parent / "templates" / "tonalities" / stamp.group(1) / "pack.yaml"
123
+ if not path.is_file():
124
+ return {}
125
+ allowed, inside = {}, False
126
+ for line in path.read_text(encoding="utf-8").splitlines():
127
+ if not line.strip() or line.lstrip().startswith("#"):
128
+ continue
129
+ if not line.startswith(" "):
130
+ inside = line.rstrip() == "qa:"
131
+ continue
132
+ match = QA_KEY.match(line) if inside else None
133
+ if match:
134
+ value = match.group(2)
135
+ allowed[match.group(1)] = value == "true" if value in ("true", "false") else int(value) if value.isdigit() else value
136
+ return allowed
137
+
138
+
139
+ def check_shadows(number, slide, allowed):
140
+ """OF-120: a hard offset shadow (blur 0) is a pack's look or nothing; a pack that has it keeps every shadow hard."""
141
+ found = []
142
+ for shape in slide.shapes:
143
+ for shadow in shape._element.iter(qn("a:outerShdw")):
144
+ hard = int(shadow.get("blurRad") or 0) == 0
145
+ if hard and not allowed.get("offset-shadow"):
146
+ found.append(_finding("OF-120", "HIGH", number, shape.name, "hard offset shadow in a pack that does not draw one",
147
+ "Remove the shadow; only a pack whose qa block allows offset-shadow draws one."))
148
+ elif not hard and allowed.get("offset-shadow"):
149
+ found.append(_finding("OF-120", "HIGH", number, shape.name, "soft shadow beside the pack's hard offset shadows",
150
+ "Draw the shadow with no blur at the pack's offset, or remove it."))
151
+ return found
152
+
153
+
154
+ def check_accents(slide, number, shapes, page_area, display, allowed=None):
155
+ t = dict(THRESHOLDS["accent"])
156
+ # A pack's own limit only widens the default: N families pass, N + 1 fail, with no advisory step between.
157
+ for key, high, medium in (("accent-families", "content_high", "content_medium"), ("display-accent-families", "display_high", "display_medium")):
158
+ if isinstance((allowed or {}).get(key), int) and not isinstance(allowed[key], bool):
159
+ t[high] = t[medium] = max(t[high], allowed[key] + 1)
110
160
  hues = []
111
161
  for shape in shapes:
112
162
  box = deck_craft._box(shape)
@@ -123,9 +173,9 @@ def check_accents(slide, number, shapes, page_area, display):
123
173
  count = len(_families(hues, t["family_deg"]))
124
174
  high, medium = (t["display_high"], t["display_medium"]) if display else (t["content_high"], t["content_medium"])
125
175
  if count >= high:
126
- return [_finding("OF-101", "HIGH", number, None, f"{count} accent hue families", "Keep one accent colour per slide; move the other fills to neutrals.")]
176
+ return [_finding("OF-101", "HIGH", number, None, f"{count} accent hue families", f"Hold a slide to {high - 1} accent hue families; fold the extra fills into a family the slide already uses.")]
127
177
  if count >= medium:
128
- return [_finding("OF-101", "MEDIUM", number, None, f"{count} accent hue families", "Two accents only when they carry a real pair (a delta or a status).")]
178
+ return [_finding("OF-101", "MEDIUM", number, None, f"{count} accent hue families", "Close to the accent limit: fold an extra fill into a family the slide already uses.")]
129
179
  return []
130
180
 
131
181
 
@@ -364,8 +414,9 @@ def check_bands(number, shapes, area, boxes, page_area, W, H):
364
414
  # as MEDIUM: whoever names a legacy template has asked for its single look. All geometry is in points.
365
415
 
366
416
  TREATMENTS = ("top-rule", "top-plain-large", "side-rail", "band", "statement", "overlay", "kicker-numeral", "bottom-anchor")
367
- ZONE_OF = {"top-rule": "top", "top-plain-large": "top", "kicker-numeral": "top", "side-rail": "side", "band": "band",
368
- "overlay": "overlay", "bottom-anchor": "bottom", "statement": "none"}
417
+ # Every content treatment styles the one shared title frame (slide-grid.js), so a slide's title "zone" in the
418
+ # composition signature is its treatment: the look varies, the place does not.
419
+ ZONE_OF = {t: t for t in TREATMENTS}
369
420
  OUTPUT = {
370
421
  "tol": 2.0, "size_tol": 0.5,
371
422
  "min_slides": 8, "min_treatments": 3,
@@ -375,8 +426,6 @@ OUTPUT = {
375
426
  "band_caps": ((2, 0.28), (4, 0.24), (6, 0.20), (8, 0.16), (10, 0.12)),
376
427
  "anchor_tol": 1.0,
377
428
  }
378
- # Widest four-column title and earliest column-5 start over the airy, standard, dense and compact grids.
379
- RAIL = {960: (288.0, 336.0), 720: (216.0, 252.0)}
380
429
  DIGITS = re.compile(r"\d+(?:[.:/-]\d+)?\.?")
381
430
  STAMP = re.compile(r"\blit-pptx tonality=(\S+) density=(\d+) grid=(\w+) variance=(\d+)")
382
431
  MARGIN = {960: {"airy": 60.0, "standard": 48.0, "dense": 36.0, "compact": 24.0}, 720: {"airy": 54.0, "standard": 42.0, "dense": 30.0, "compact": 24.0}}
@@ -405,8 +454,9 @@ def _elements(slide, W, H):
405
454
  for shape in slide.shapes:
406
455
  box = _pt_box(shape)
407
456
  # The engine names the first shape it draws `family@<id>`: a band or a rule keeps its role;
408
- # only an empty marker (no width and no height) is skipped.
409
- if box is None or box[2] + box[3] <= 0 or shape.name.startswith("lit-notice"):
457
+ # only an empty marker (no width and no height) is skipped. The notice tag and a pack's grid marks
458
+ # in the top margin are page chrome, not composition.
459
+ if box is None or box[2] + box[3] <= 0 or shape.name.startswith(("lit-notice", "grid-mark")):
410
460
  continue
411
461
  text = deck_craft._text(shape) if getattr(shape, "has_text_frame", False) and shape.has_text_frame else ""
412
462
  kind = ("picture" if shape.shape_type == MSO_SHAPE_TYPE.PICTURE else "table" if deck_craft._is_table(shape)
@@ -457,22 +507,23 @@ def classify_title(title, els, W, H):
457
507
  and not any(e["kind"] in ("table", "chart", "picture") or e["role"] == "card" for e in body)
458
508
  and sum(1 for e in body if e["kind"] == "text") <= 1):
459
509
  return "statement"
460
- if title["y"] >= 360 - tol and all(e["y"] <= title["y"] + tol for e in body if e["kind"] == "text"):
510
+ bottom_frame = title["y"] + title["h"]
511
+ content_w = W - 2 * title["x"]
512
+ shapes = [e for e in others if e["kind"] == "shape" and e["filled"]]
513
+ # A heavy rule across the columns closing the title frame.
514
+ if any(2 - st <= e["h"] <= 4 + st and e["w"] >= 0.9 * content_w and bottom_frame - tol <= e["y"] <= bottom_frame + 8 for e in shapes):
461
515
  return "bottom-anchor"
462
- rail_w, col5 = RAIL.get(round(W), RAIL[960])
463
- right = [e for e in body if e["x"] + e["w"] / 2 > title["x"] + title["w"]]
464
- # What stands under the title inside the rail (criteria labels, takeaways, the source) is the rail's;
465
- # only a block that runs from the rail into the body makes the title something else.
466
- if (title["w"] <= rail_w + tol and right and min(e["x"] for e in right) >= col5 - tol
467
- and not any(e["x"] < col5 - tol and e["y"] > bottom and e["x"] + e["w"] > col5 + tol for e in body)):
516
+ # A bar in the left margin, at least as tall as the title frame.
517
+ if any(e["x"] <= 1 and e["w"] <= 14 and e["h"] >= title["h"] - tol and e["y"] <= title["y"] + tol and e["y"] + e["h"] >= bottom_frame - tol
518
+ for e in shapes):
468
519
  return "side-rail"
469
520
  for e in others:
470
- if (e["kind"] == "text" and e["sizes"] and DIGITS.fullmatch(e["text"]) and max(e["sizes"]) >= 44 - st
471
- and e["x"] + e["w"] <= title["x"] + tol and e["y"] >= 30 - tol and e["y"] + e["h"] <= 114 + tol):
521
+ if (e["kind"] == "text" and e["sizes"] and DIGITS.fullmatch(e["text"]) and max(e["sizes"]) >= 40 - st
522
+ and e["x"] >= title["x"] + title["w"] - tol and e["y"] >= title["y"] - tol and e["y"] + e["h"] <= bottom_frame + tol):
472
523
  return "kicker-numeral"
473
524
  if title["y"] <= 48 + tol:
474
525
  # A rule is a line (wider than 16 pt and four times its height), never a list-marker dot.
475
- rule = any(e["kind"] == "shape" and e["h"] <= 8 and e["w"] >= max(16, 4 * e["h"]) and bottom - tol <= e["y"] <= bottom + 24
526
+ rule = any(e["kind"] == "shape" and e["h"] <= 8 and e["w"] >= max(16, 4 * e["h"]) and title["y"] < e["y"] <= bottom + 24
476
527
  and e["x"] < title["x"] + title["w"] and e["x"] + e["w"] > title["x"] for e in others)
477
528
  if size >= 36 - st and not rule:
478
529
  return "top-plain-large"
@@ -497,17 +548,16 @@ def composition(title, treatment, els, W, H, margin):
497
548
  zone = ZONE_OF.get(treatment, "none")
498
549
  if treatment == "statement":
499
550
  return (zone, "one", "text")
500
- col5 = RAIL.get(round(W), RAIL[960])[1]
501
551
  body = []
502
552
  for e in els:
503
553
  if e is title or _footer(e) or e["role"] == "decoration":
504
554
  continue
505
- if treatment == "side-rail" and e["x"] + e["w"] <= col5 + OUTPUT["tol"]:
506
- continue # what stands in the rail belongs to the title zone, not to the body's partition
507
555
  if e["kind"] == "shape" and title is not None and _centre_in(title, e, 0):
508
556
  continue # the panel that carries the title
509
- if treatment == "kicker-numeral" and e["kind"] == "text" and DIGITS.fullmatch(e["text"]) and e["y"] + e["h"] <= 116:
557
+ if e["name"].startswith(("numeral@", "header@")):
510
558
  continue
559
+ if e["kind"] == "text" and e["h"] <= 16 and e["y"] + e["h"] >= OUTPUT["band_floor"] - 2:
560
+ continue # a one-line caption or source on the body floor is the slide's foot, not a column
511
561
  body.append(e)
512
562
  cards = [e for e in body if e["role"] == "card"]
513
563
  blocks = [e for e in body if not any(c is not e and _centre_in(e, c) for c in cards)]
@@ -682,24 +732,24 @@ def analyse_output(prs) -> list:
682
732
  # padding, so the median is advisory there and OF-109 still blocks a hollow slide.
683
733
  found.append(_finding("OF-112", variety, None, None, f"median empty band {median:.2f} over {len(bands)} slides (limit {OUTPUT['band_deck_max']:.2f})",
684
734
  "Give the content slides content that reaches the floor: a takeaway under a table, the next step under an ask, a supporting fact under a claim."))
685
- # OF-113: one geometry per treatment (a statement is centred, so only its x and width repeat; a bottom
686
- # title stands on the floor, so its bottom edge repeats and its top follows the line count).
735
+ # OF-113: every content title on one frame and every display title (a statement, a quote, a closing
736
+ # statement) on another, whatever its treatment: a treatment changes the look, never the place. A title
737
+ # over a full-bleed picture (overlay) keeps its own panel. Slides are grouped by the treatment they name,
738
+ # so a title moved so far that it no longer reads as any treatment is still measured.
687
739
  groups = {}
688
740
  for s in titled:
689
- if s["treatment"] in TREATMENTS and s["written"] in TREATMENTS:
690
- groups.setdefault(s["treatment"], []).append(s)
691
- edge = lambda t, k: t["y"] + t["h"] if k == "bottom" else t[k]
692
- for treatment, group in groups.items():
693
- keys = ("x", "w") if treatment == "statement" else ("x", "w", "bottom") if treatment == "bottom-anchor" else ("x", "y", "w")
741
+ if s["written"] in TREATMENTS and s["written"] != "overlay":
742
+ groups.setdefault("display" if s["written"] == "statement" else "content", []).append(s)
743
+ for frame, group in groups.items():
694
744
  modes = {}
695
- for k in keys:
696
- values = [round(edge(s["title"], k)) for s in group]
745
+ for k in ("x", "y", "w", "h"):
746
+ values = [round(s["title"][k]) for s in group]
697
747
  modes[k] = max(set(values), key=values.count)
698
748
  for s in group:
699
- off = [f"{k} {edge(s['title'], k):.0f} vs {modes[k]}" for k in keys if abs(edge(s["title"], k) - modes[k]) > OUTPUT["anchor_tol"]]
749
+ off = [f"{k} {s['title'][k]:.0f} vs {modes[k]}" for k in modes if abs(s["title"][k] - modes[k]) > OUTPUT["anchor_tol"]]
700
750
  if off:
701
- found.append(_finding("OF-113", "HIGH", s["n"], s["title"]["name"], f"{treatment} title off its frame: {', '.join(off)}",
702
- "Every slide with one treatment keeps its title frame; fix the source, never nudge a title."))
751
+ found.append(_finding("OF-113", "HIGH", s["n"], s["title"]["name"], f"{s['treatment']} title off the shared {frame} title frame: {', '.join(off)}",
752
+ "Every title sits on the slide grid's title zone; fix the source, never nudge a title."))
703
753
  found += empty_regions(deck)
704
754
  found += agenda_numerals(deck)
705
755
  return found
@@ -708,16 +758,9 @@ def analyse_output(prs) -> list:
708
758
  # ── OF-115: no region left empty ────────────────────────────────────────────
709
759
  #
710
760
  # The bottom band (OF-112) reads the body as one page. A region can still stand empty beside a full one:
711
- # the floor under a bottom title, the rail under a side title, the takeaway column beside a chart that runs
712
- # to the floor, the panel that carries a title over a picture, and the open page above a plate. Each reading
713
- # is a share of its own region (40 %) or, under a bottom title, a distance (12 pt).
714
- REGION = {"floor_gap": 12.0, "share": 0.40}
715
-
716
-
717
- def _text_bottom(title):
718
- """Where a top-aligned title's last line ends: frames keep spare lines, so the frame's own bottom does not say."""
719
- lines = _wrapped_lines(title["shape"]) or 1
720
- return title["y"] + lines * max(title["sizes"] or [0.0]) * 1.15
761
+ # the takeaway column beside a chart that runs to the floor, the panel that carries a title over a picture,
762
+ # and the open page above a plate. Each reading is a share of its own region (40 %).
763
+ REGION = {"share": 0.40}
721
764
 
722
765
 
723
766
  def _largest_gap(top, bottom, spans):
@@ -731,18 +774,17 @@ def _largest_gap(top, bottom, spans):
731
774
  return max(gap, bottom - cursor)
732
775
 
733
776
 
734
- def _short_column(s, content, title, treatment, body_floor, col5):
777
+ def _short_column(s, content, title, body_floor):
735
778
  """A column of a two-column body that stops short of its neighbour: the largest empty band inside it, from
736
779
  the body's top down to where the neighbour ends, is over 40 % of the body. A source or note strip that
737
780
  closes the column does not hide the band above it (spec-v2 Amendments 8). Beside the figures of a kpi-row or
738
781
  big-number slide the column is measured to the body floor (Amendments 9)."""
739
782
  tol = OUTPUT["tol"]
740
- # The body starts under a top title; beside a side title (in its rail) or over a bottom title it starts at the top.
741
- top_of_title = title["y"] + title["h"] if treatment not in ("bottom-anchor", "side-rail") else 0.0
783
+ top_of_title = title["y"] + title["h"]
742
784
  W, H = s["W"], s["H"]
743
785
  fields = [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and e["w"] * e["h"] >= 0.1 * W * H]
744
786
  body = [e for e in content if e["y"] >= top_of_title - tol and e["y"] < body_floor and e["w"] > 0 and e["h"] > 0
745
- and not (treatment == "side-rail" and e["x"] + e["w"] <= col5 + tol) and not any(_centre_in(e, f) for f in fields)]
787
+ and not any(_centre_in(e, f) for f in fields)]
746
788
  if len(body) < 2:
747
789
  return None
748
790
  left_edge, right_edge = min(e["x"] for e in body), max(e["x"] + e["w"] for e in body)
@@ -787,7 +829,6 @@ def _short_column(s, content, title, treatment, body_floor, col5):
787
829
  def empty_regions(deck) -> list:
788
830
  W, H = deck["W"], deck["H"]
789
831
  floor = OUTPUT["band_floor"]
790
- col5 = RAIL.get(round(W), RAIL[960])[1]
791
832
  tol = OUTPUT["tol"]
792
833
  found = []
793
834
  for s in deck["slides"]:
@@ -795,21 +836,9 @@ def empty_regions(deck) -> list:
795
836
  content = [e for e in s["els"] if e is not title and e["role"] != "decoration" and not _footer(e)
796
837
  and not (e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H)]
797
838
  if s["kind"] in ("content", "closing") and title is not None and title["sizes"]:
798
- if treatment == "bottom-anchor":
799
- gap = floor - _text_bottom(title)
800
- if gap > REGION["floor_gap"]:
801
- found.append(_finding("OF-115", "HIGH", s["n"], title["name"], f"the bottom title ends {gap:.0f} pt above the body floor",
802
- "Stand the title's last line on the floor and give the visual above the room."))
803
- if treatment == "side-rail" and s["family"] not in ("quote", "statement"):
804
- top = title["y"] + title["h"] # the title frame keeps a spare line for a title that wraps once more
805
- rail = [e for e in content if e["x"] + e["w"] <= col5 + tol and e["y"] + e["h"] > top]
806
- share = _largest_gap(top, floor, [(e["y"], e["y"] + e["h"]) for e in rail]) / max(1.0, floor - top)
807
- if share > REGION["share"]:
808
- found.append(_finding("OF-115", "HIGH", s["n"], title["name"], f"{share:.0%} of the side rail under the title is empty",
809
- "Put the slide's criteria labels, takeaways or source in the rail, or take a top or bottom title."))
810
839
  # A takeaway column beside a chart, table or picture that runs on below it.
811
- body_floor = title["y"] - tol if treatment == "bottom-anchor" else floor
812
- short = _short_column(s, content, title, treatment, body_floor, col5)
840
+ body_floor = floor
841
+ short = _short_column(s, content, title, body_floor)
813
842
  if short:
814
843
  found.append(short)
815
844
  for v in ([] if short else [e for e in content if e["kind"] in ("chart", "table", "picture")]):
@@ -851,30 +880,43 @@ def empty_regions(deck) -> list:
851
880
  return found
852
881
 
853
882
 
854
- # ── OF-116: another tonality of the same source draws another skeleton ─────
883
+ # ── OF-116: another tonality of the same source sets everything in the same places ─────
855
884
  #
856
- # A deck's skeleton is each content slide's title zone and column partition, read as OF-111 reads them (a
857
- # kicker numeral title is a top title). Two tonalities of one source whose skeletons are identical differ in
858
- # colour only: at least one content slide must take another zone or partition.
885
+ # Titles, headers and the body sit on the shared slide grid (slide-grid.js), so two tonalities of one source
886
+ # may differ in every look but never in where a slide's title frame and its body's top-left corner stand.
887
+ # Slides are compared in order; a slide the other deck lacks is not compared.
859
888
 
860
889
 
861
- def skeleton(prs) -> list:
862
- return [s["signature"][:2] for s in read_deck(prs)["slides"] if s["kind"] == "content"]
890
+ def placement(prs) -> list:
891
+ """Per slide: the title frame and the top-left corner of what stands under it, in points."""
892
+ out = []
893
+ for s in read_deck(prs)["slides"]:
894
+ t = s["title"]
895
+ if t is None:
896
+ out.append(None)
897
+ continue
898
+ under = [e for e in s["els"] if e is not t and e["role"] != "decoration" and not _footer(e) and e["y"] >= t["y"] + t["h"] - OUTPUT["tol"]
899
+ and not e["name"].startswith(("header@", "numeral@", "subtitle@"))]
900
+ corner = (min(e["x"] for e in under), min(e["y"] for e in under)) if under and s["kind"] == "content" else None
901
+ out.append({"n": s["n"], "title": (t["x"], t["y"], t["w"], t["h"]), "body": corner})
902
+ return out
863
903
 
864
904
 
865
- def compare_skeletons(path: Path, sibling: Path) -> list:
866
- a, b = skeleton(Presentation(str(path))), skeleton(Presentation(str(sibling)))
867
- n = min(len(a), len(b))
868
- if not n:
869
- return []
870
- differ = sum(1 for x, y in zip(a, b) if x != y)
871
- # Two slides at least once the deck has four content slides (spec-v2 Amendments 8): one differing slide
872
- # left the alternatives reading as one deck in two colours.
873
- need = 2 if n >= 4 else 1
874
- if differ >= need:
905
+ def compare_placement(path: Path, sibling: Path) -> list:
906
+ a, b = placement(Presentation(str(path))), placement(Presentation(str(sibling)))
907
+ tol = OUTPUT["anchor_tol"]
908
+ moved = []
909
+ for x, y in zip(a, b):
910
+ if x is None or y is None:
911
+ continue
912
+ if any(abs(p - q) > tol for p, q in zip(x["title"], y["title"])):
913
+ moved.append(f"slide {x['n']} title at {[round(v) for v in x['title']]} vs {[round(v) for v in y['title']]}")
914
+ elif x["body"] and y["body"] and any(abs(p - q) > tol for p, q in zip(x["body"], y["body"])):
915
+ moved.append(f"slide {x['n']} body from {tuple(round(v) for v in x['body'])} vs {tuple(round(v) for v in y['body'])}")
916
+ if not moved:
875
917
  return []
876
- return [_finding("OF-116", "HIGH", None, None, f"{differ} of {n} content slides differ in title zone or partition from {Path(sibling).name} (needs {need})",
877
- "Give the tonality its own structure: its role defaults, a different title zone or partition for the slides it shares with the other.")]
918
+ return [_finding("OF-116", "HIGH", None, None, f"{len(moved)} slide(s) placed differently from {Path(sibling).name}: {'; '.join(moved[:4])}",
919
+ "A tonality changes the look of a zone, never its place: draw the title and the body on the slide grid's zones.")]
878
920
 
879
921
 
880
922
  # ── OF-117: no light figure card on a dark ground ───────────────────────────
@@ -1004,13 +1046,15 @@ def analyse(path: Path) -> dict:
1004
1046
  W, H = prs.slide_width / EMU_PER_IN, prs.slide_height / EMU_PER_IN
1005
1047
  page_area = W * H
1006
1048
  findings = analyse_output(prs) + check_labels(prs)
1049
+ allowed = pack_allowances(prs)
1007
1050
  for number, slide in enumerate(prs.slides, start=1):
1008
1051
  shapes = [s for s in slide.shapes if not s.name.startswith("lit-notice")]
1009
1052
  layout = deck_craft.slide_layout(shapes, W, H, page_area)
1010
1053
  findings += check_run_effects(number, slide)
1011
1054
  findings += check_run_ins(number, slide)
1012
1055
  findings += light_figures(number, slide, W * PT_PER_IN, H * PT_PER_IN)
1013
- findings += check_accents(slide, number, shapes, page_area, layout["display"])
1056
+ findings += check_accents(slide, number, shapes, page_area, layout["display"], allowed)
1057
+ findings += check_shadows(number, slide, allowed)
1014
1058
  findings += check_numeric_columns(number, shapes)
1015
1059
  findings += check_concentric(number, shapes)
1016
1060
  if layout["display"]:
@@ -29,7 +29,7 @@ import os as _os
29
29
  import sys as _sys
30
30
 
31
31
  _sys.dont_write_bytecode = True # the installed skill directory stays read-only
32
- _sys.path.insert(0, _os.path.dirname(_os.path.abspath(__file__)))
32
+ _sys.path.insert(0, _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "..", "..", "..", "lib"))
33
33
  from office_runtime_bootstrap import ensure_runtime # noqa: E402
34
34
 
35
35
  ensure_runtime(["pptx"])
@@ -6,7 +6,7 @@ python-pptx has no font-embedding API, so this post-processes the OOXML package
6
6
  directly: it adds /ppt/fonts/*.fntdata parts, a fntdata content-type default,
7
7
  presentation relationships, and a <p:embeddedFontLst> in ppt/presentation.xml.
8
8
 
9
- Only families with a bundled OTF (fonts/pretendard, fonts/a2z) are embedded; unknown families (fonts a learned
9
+ Only families with a bundled font file (fonts/pretendard, fonts/a2z, fonts/jetbrains-mono) are embedded; unknown families (fonts a learned
10
10
  template names but this skill does not bundle) are warned
11
11
  about and skipped — never corrupting the file.
12
12
 
@@ -49,6 +49,11 @@ def _a2z(weight):
49
49
  return p if os.path.exists(p) else None
50
50
 
51
51
 
52
+ def _mono(weight):
53
+ p = os.path.join(ROOT, "fonts", "jetbrains-mono", f"JetBrainsMono-{weight}.ttf")
54
+ return p if os.path.exists(p) else None
55
+
56
+
52
57
  def resolve_family(typeface):
53
58
  """Return {slot: otf_path} for a typeface, or {} if no bundled file.
54
59
 
@@ -62,6 +67,13 @@ def resolve_family(typeface):
62
67
  if _pretendard("Bold"):
63
68
  slots["bold"] = _pretendard("Bold")
64
69
  return slots
70
+ if tf == "JetBrains Mono":
71
+ slots = {}
72
+ if _mono("Regular"):
73
+ slots["regular"] = _mono("Regular")
74
+ if _mono("Bold"):
75
+ slots["bold"] = _mono("Bold")
76
+ return slots
65
77
  # Per-weight families: "에이투지체 7 Bold", "에이투지체 4 Regular", ...
66
78
  last = tf.split()[-1] if tf.split() else ""
67
79
  if ("에이투지체" in tf or tf.startswith("A2Z")) and last in A2Z_WEIGHTS:
@@ -33,7 +33,7 @@ import os as _os
33
33
  import sys as _sys
34
34
 
35
35
  _sys.dont_write_bytecode = True # the installed skill directory stays read-only
36
- _sys.path.insert(0, _os.path.dirname(_os.path.abspath(__file__)))
36
+ _sys.path.insert(0, _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "..", "..", "..", "lib"))
37
37
  from office_runtime_bootstrap import ensure_runtime # noqa: E402
38
38
 
39
39
  ensure_runtime(["pptx", "PIL"])
@@ -20,7 +20,7 @@ import os as _os
20
20
  import sys as _sys
21
21
 
22
22
  _sys.dont_write_bytecode = True # the installed skill directory stays read-only
23
- _sys.path.insert(0, _os.path.dirname(_os.path.abspath(__file__)))
23
+ _sys.path.insert(0, _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "..", "..", "..", "lib"))
24
24
  from office_runtime_bootstrap import ensure_runtime # noqa: E402
25
25
 
26
26
  ensure_runtime(["defusedxml"])