AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
fix: calibrate rates per planned script, batch adjust aliases, theme scripts follow the locked face
hugohe38900e87cead6
diff --git a/skills/ppt-master/references/native-shape-authoring.md b/skills/ppt-master/references/native-shape-authoring.mdindex 6f530509..bd3607dd 100644--- a/skills/ppt-master/references/native-shape-authoring.md+++ b/skills/ppt-master/references/native-shape-authoring.md@@ -117,7 +117,7 @@ Operand count, preset choice, geometry, paint, rotation, and grouping come from## 3. Fragment Generation-`render` emits one object; `render-batch --input -` emits several already-selected objects for one page or template construction from a JSON array with the `render` fields (required `preset`, `id`, `frame` `[x, y, w, h]`; optional `object_kind`, `name`, `fill`, `fill_opacity`, `stroke`, `stroke_width`, `stroke_opacity`, `stroke_linecap`, `stroke_linejoin`, `filter_id`, `adjustments` such as `{"adj": "val 42000"}` — the object form of `render --adjust NAME=FORMULA`, keyed by guide name). Paint comes from the page context with `spec_lock.md` roles as anchors (create-template: from the confirmed brief and template Design Spec); mirror/preserve input keeps source paint. The batch is transient input, never a project resource or multi-page plan, and never chooses layout.+`render` emits one object; `render-batch --input -` emits several already-selected objects for one page or template construction from a JSON array with the `render` fields (required `preset`, `id`, `frame` `[x, y, w, h]`; optional `object_kind`, `name`, `fill`, `fill_opacity`, `stroke`, `stroke_width`, `stroke_opacity`, `stroke_linecap`, `stroke_linejoin`, `filter_id`, `adjustments` such as `{"adj": "val 42000"}` — the object form of `render --adjust NAME=FORMULA`, keyed by guide name; a list of `NAME=FORMULA` strings is accepted too). Paint comes from the page context with `spec_lock.md` roles as anchors (create-template: from the confirmed brief and template Design Spec); mirror/preserve input keeps source paint. The batch is transient input, never a project resource or multi-page plan, and never chooses layout.---diff --git a/skills/ppt-master/references/shared-standards-core.md b/skills/ppt-master/references/shared-standards-core.mdindex cefc6cbb..9044a95a 100644--- a/skills/ppt-master/references/shared-standards-core.md+++ b/skills/ppt-master/references/shared-standards-core.md@@ -245,7 +245,7 @@ Serial post-processing and export belong to [`generate-pptx.md`](../workflows/ge| Typography roles | Use the fewest semantic text roles that preserve hierarchy, and make their differences legible at slide-thumbnail scale. Consolidate near-neighbor sizes that serve the same role; otherwise distinguish roles through a deliberate combination of size, weight, color, position, and surrounding space. || Viewing-distance legibility | Resolve delivery context and viewing distance before fixing density and type scale. Preserve necessary text at a readable scale by applying only actions the active route's content and page invariants permit: restructure, shorten, split, or reflow. If none is permitted, surface the unresolved fit instead of silently miniaturizing it. Do not turn this into one universal font-size floor: captions and metadata may be smaller when their role and context remain legible. || Contrast and semantic encoding | Within the active profile's fidelity boundary, keep meaning-bearing text distinguishable from its actual background. For newly authored distinctions, combine luminance, weight, scale, shape, position, or explicit labeling; color may reinforce meaning but never carry a required distinction alone. When fidelity requires preserving source-only color encoding, reproduce it rather than inventing a cue. Reserve lower-contrast treatment for genuinely secondary metadata that remains legible. |-| Natural wrapping | Break at semantic phrase or punctuation boundaries where possible. Reflow the text frame or adjust neighboring geometry before using any permitted local size reduction. Let the final line run naturally shorter; avoid mechanically equal lines or a stranded single-character / single-word line when an earlier natural break preserves meaning. |+| Natural wrapping | Break at semantic phrase or punctuation boundaries where possible. An unspaced script (Thai, Lao, Khmer, Myanmar) breaks only at word boundaries the author chooses — never by inserting spaces or zero-width characters — takes leading toward the upper band for its stacked marks, and keeps native table cells single-line. Reflow the text frame or adjust neighboring geometry before using any permitted local size reduction. Let the final line run naturally shorter; avoid mechanically equal lines or a stranded single-character / single-word line when an earlier natural break preserves meaning. || Content field | Establish the usable body frame before placing modules. Divide it into one or a small set of macro-regions from information weight and reading order: use unequal weight when the information differs, while true peers may share equal weight. Give each region its own local axes / micro-grid while retaining only the cross-region anchors the composition needs. On a dense page, let the planned content system organize that frame; create breathing room through gutters, module spacing, and intentional voids between semantic clusters. Unorganized residual space that leaves content stranded in one part of the frame is leftover blank, not negative space. || Alignment and proximity | Establish shared axes from the current composition. Align related titles, copy, labels, images, and diagram nodes to those edges, centers, or baselines; group related elements more tightly than unrelated groups so spacing carries hierarchy. Break an axis only when the offset performs hierarchy, direction, or tension. || Visual weight | Judge weight from area, darkness, saturation, density, stroke, image detail, and elevation together. Distribute it to support the focal path; symmetry is optional, and deliberate imbalance may create direction. |diff --git a/skills/ppt-master/scripts/preset_shape_svg.py b/skills/ppt-master/scripts/preset_shape_svg.pyindex ae345a08..fff4afd3 100644--- a/skills/ppt-master/scripts/preset_shape_svg.py+++ b/skills/ppt-master/scripts/preset_shape_svg.py@@ -55,9 +55,25 @@ _BATCH_ITEM_FIELDS = frozenset({"stroke_linejoin","filter_id","adjustments",+ "adjust",})+def _batch_adjustments(item: dict[str, object], label: str) -> dict[str, str]:+ """Accept ``adjustments`` as an object or, like ``render --adjust``, NAME=FORMULA strings."""+ raw = item.get("adjustments", item.get("adjust", {}))+ if isinstance(raw, dict):+ return {str(name): str(formula) for name, formula in raw.items()}+ if isinstance(raw, str):+ raw = [raw]+ if isinstance(raw, list) and all(isinstance(value, str) for value in raw):+ return _parse_adjustments(raw)+ raise ValueError(+ f"{label}.adjustments must be a JSON object keyed by guide name "+ '({"adj": "val 32000"}) or a list of NAME=FORMULA strings'+ )++def build_parser() -> argparse.ArgumentParser:parser = argparse.ArgumentParser(description=(@@ -465,9 +481,7 @@ def _render_batch_items(items: Sequence[object]) -> list[str]:frame = raw_item["frame"]if not isinstance(frame, list) or len(frame) != 4:raise ValueError(f"{label}.frame must be a four-number JSON array")- adjustments = raw_item.get("adjustments", {})- if not isinstance(adjustments, dict):- raise ValueError(f"{label}.adjustments must be a JSON object")+ adjustments = _batch_adjustments(raw_item, label)try:style = _style_from_values(diff --git a/skills/ppt-master/scripts/svg_authoring_contract.py b/skills/ppt-master/scripts/svg_authoring_contract.pyindex 5cac93eb..6a240da4 100644--- a/skills/ppt-master/scripts/svg_authoring_contract.py+++ b/skills/ppt-master/scripts/svg_authoring_contract.py@@ -382,7 +382,9 @@ def canonical_authoring_errors(errors.append("Authoring SVG contains noncanonical or redundant inherited "f"style declarations ({stats.styles.changed_declarations} "- "change(s)); examples: "+ "change(s)); examples (group:attr None -> value hoists the shared "+ "value onto that group; child:attr value -> None drops the copy "+ "the child now inherits): "+ "; ".join(examples))if stats.coordinates.changed_attributes:diff --git a/skills/ppt-master/scripts/svg_position_calculator.py b/skills/ppt-master/scripts/svg_position_calculator.pyindex 208e87f2..5cdb2d38 100644--- a/skills/ppt-master/scripts/svg_position_calculator.py+++ b/skills/ppt-master/scripts/svg_position_calculator.py@@ -592,6 +592,17 @@ class DataPoint:label: Optional[str] = None+def slot_midpoint_points(points: List['DataPoint'], coord: 'CoordinateSystem') -> List['DataPoint']:+ """Re-place points at category slot centres across the chart area width."""+ if not points:+ return points+ area = coord.chart_area+ slot = (area.x_max - area.x_min) / len(points)+ for index, point in enumerate(points):+ point.svg_x = round(area.x_min + slot * (index + 0.5), 1)+ return points++class LineChartCalculator:"""Line / scatter chart calculator"""@@ -1373,6 +1384,12 @@ Common commands:line_parser.add_argument('--area', help='Chart area "x_min,y_min,x_max,y_max"')line_parser.add_argument('--x-range', help='X axis range "min,max"')line_parser.add_argument('--y-range', help='Y axis range "min,max"')+ line_parser.add_argument(+ '--slot-midpoints', action='store_true',+ help='Place each point at the centre of its category slot (the native '+ 'category-axis line/area model, crossBetween="between") instead '+ 'of spreading the first and last point to the area edges',+ )# Grid layoutgrid_parser = calc_subparsers.add_parser('grid', help='Grid layout')@@ -1484,6 +1501,8 @@ Common commands:y_range = parse_tuple(args.y_range) if args.y_range else Nonepoints = calc.calculate(data, x_range, y_range)+ if getattr(args, 'slot_midpoints', False):+ points = slot_midpoint_points(points, coord)print(f"\n=== Line / Scatter Chart Coordinate Calculation ===")print(f"Canvas: {CANVAS_FORMATS.get(canvas, {}).get('dimensions', canvas)}")diff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_fonts.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_fonts.pyindex 7c69f864..becf09b3 100644--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_fonts.py+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_fonts.py@@ -55,9 +55,10 @@ class ThemeFontSpec:minor: ThemeFontFacemajor_family: strminor_family: str- # Supplemental theme scripts (``Arab`` / ``Hebr``) a right-to-left deck- # writes in; they take the locked complex-script face.- rtl_scripts: tuple[str, ...] = ()+ # Supplemental theme scripts (``Arab``, ``Hebr``, ``Thai``, ``Deva``, ...)+ # the deck's primary language writes in; they take the locked+ # complex-script face instead of the Office factory default.+ cs_scripts: tuple[str, ...] = ()@dataclass(frozen=True)@@ -201,7 +202,7 @@ def load_theme_font_spec(minor=_font_face(minor_family, language),major_family=major_family,minor_family=minor_family,- rtl_scripts=_rtl_theme_scripts(language),+ cs_scripts=_complex_theme_scripts(language),)@@ -267,17 +268,32 @@ def theme_font_tokens(}-def _rtl_theme_scripts(language: str | None) -> tuple[str, ...]:- """Return the theme supplemental script a right-to-left language uses."""- if not language or not language_uses_rtl(language):+# Theme ``<a:font script="...">`` codes by language base for scripts that+# PowerPoint renders through the complex-script slot.+_COMPLEX_SCRIPT_BY_LANGUAGE = {+ "he": "Hebr", "yi": "Hebr",+ "th": "Thai", "lo": "Laoo", "km": "Khmr", "my": "Mymr", "bo": "Tibt",+ "hi": "Deva", "mr": "Deva", "ne": "Deva", "sa": "Deva", "kok": "Deva",+ "bn": "Beng", "as": "Beng", "pa": "Guru", "gu": "Gujr", "or": "Orya",+ "ta": "Taml", "te": "Telu", "kn": "Knda", "ml": "Mlym", "si": "Sinh",+ "ka": "Geor", "hy": "Armn", "am": "Ethi", "ti": "Ethi",+}+++def _complex_theme_scripts(language: str | None) -> tuple[str, ...]:+ """Return the theme supplemental script(s) the primary language writes in."""+ if not language:return ()- return ("Hebr",) if language_base(language) in {"he", "yi"} else ("Arab",)+ base = language_base(language)+ if base in _COMPLEX_SCRIPT_BY_LANGUAGE:+ return (_COMPLEX_SCRIPT_BY_LANGUAGE[base],)+ return ("Arab",) if language_uses_rtl(language) else ()def _patch_font_collection(collection: ET.Element,face: ThemeFontFace,- rtl_scripts: tuple[str, ...] = (),+ cs_scripts: tuple[str, ...] = (),) -> None:for tag, value in (("latin", face.latin), ("ea", face.ea), ("cs", face.cs)):elem = collection.find(f"{{{DML_NS}}}{tag}")@@ -287,7 +303,7 @@ def _patch_font_collection(for supplemental in collection.findall(f"{{{DML_NS}}}font"):if supplemental.get("script") in _CJK_THEME_SCRIPTS:supplemental.set("typeface", face.ea)- elif supplemental.get("script") in rtl_scripts:+ elif supplemental.get("script") in cs_scripts:supplemental.set("typeface", face.cs)@@ -312,8 +328,8 @@ def apply_theme_font_spec(extract_dir: Path, spec: ThemeFontSpec) -> None:if major is None or minor is None:raise ThemeFontError(f"Theme has no major/minor font collection: {theme_path}")font_scheme.set("name", "PPT Master")- _patch_font_collection(major, spec.major, spec.rtl_scripts)- _patch_font_collection(minor, spec.minor, spec.rtl_scripts)+ _patch_font_collection(major, spec.major, spec.cs_scripts)+ _patch_font_collection(minor, spec.minor, spec.cs_scripts)tree.write(theme_path, encoding="utf-8", xml_declaration=True)diff --git a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.pyindex 9f061703..9749dfe5 100644--- a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py+++ b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py@@ -521,10 +521,10 @@ class RtlAndTemplateExportTests(unittest.TestCase):'<a:lvl1pPr marL="0" algn="r" rtl="1"/><a:lvl1pPr algn="ctr" rtl="1"/>')def test_rtl_theme_script_slot(self) -> None:- from svg_to_pptx.drawingml.theme_fonts import _rtl_theme_scripts- self.assertEqual(_rtl_theme_scripts("ar-SA"), ("Arab",))- self.assertEqual(_rtl_theme_scripts("he-IL"), ("Hebr",))- self.assertEqual(_rtl_theme_scripts("zh-CN"), ())+ from svg_to_pptx.drawingml.theme_fonts import _complex_theme_scripts+ self.assertEqual(_complex_theme_scripts("ar-SA"), ("Arab",))+ self.assertEqual(_complex_theme_scripts("he-IL"), ("Hebr",))+ self.assertEqual(_complex_theme_scripts("zh-CN"), ())class IntakeHousekeepingTests(unittest.TestCase):diff --git a/skills/ppt-master/scripts/tests/test_dogfood_thai_fixes.py b/skills/ppt-master/scripts/tests/test_dogfood_thai_fixes.pynew file mode 100644index 00000000..152b6195--- /dev/null+++ b/skills/ppt-master/scripts/tests/test_dogfood_thai_fixes.py@@ -0,0 +1,66 @@+"""Regressions from the Thai jasmine-rice deck dogfood (2026-09-12)."""++from __future__ import annotations++import sys+import unittest+from pathlib import Path++SCRIPTS_DIR = Path(__file__).resolve().parents[1]+if str(SCRIPTS_DIR) not in sys.path:+ sys.path.insert(0, str(SCRIPTS_DIR))++import preset_shape_svg # noqa: E402+import svg_position_calculator as calc # noqa: E402+import text_measure # noqa: E402+from svg_to_pptx.drawingml.theme_fonts import _complex_theme_scripts # noqa: E402+++class ScriptRateSampleTests(unittest.TestCase):+ def test_thai_outline_yields_a_thai_sample(self) -> None:+ samples = text_measure._script_rate_samples(+ ["ข้าวหอมมะลิ: จากนาสู่โลก ปีการตลาด 2568/69", "ขึ้นทะเบียนสิ่งบ่งชี้ทางภูมิศาสตร์"]+ )+ self.assertIn("Thai", samples)+ self.assertNotIn("Latin", samples)+ self.assertTrue(all("" <= ch <= "" for ch in samples["Thai"]))++ def test_latin_and_cjk_text_add_no_script_column(self) -> None:+ self.assertEqual(text_measure._script_rate_samples(["Clear slides 天地玄黄 2024"]), {})+++class BatchAdjustTests(unittest.TestCase):+ ITEM = {"preset": "chevron", "id": "c1", "frame": [0, 0, 120, 60], "fill": "#123456"}++ def test_name_formula_strings_are_accepted(self) -> None:+ for field, value in (("adjust", ["adj=val 32000"]), ("adjust", "adj=val 32000"),+ ("adjustments", ["adj=val 32000"]), ("adjustments", {"adj": "val 32000"})):+ fragments = preset_shape_svg._render_batch_items([{**self.ITEM, field: value}])+ self.assertEqual(len(fragments), 1, field)+ self.assertIn("32000", fragments[0])++ def test_wrong_shape_names_both_forms(self) -> None:+ with self.assertRaises(ValueError) as ctx:+ preset_shape_svg._render_batch_items([{**self.ITEM, "adjustments": 5}])+ self.assertIn("NAME=FORMULA", str(ctx.exception))+++class ThemeScriptTests(unittest.TestCase):+ def test_complex_scripts_follow_the_language(self) -> None:+ self.assertEqual(_complex_theme_scripts("th-TH"), ("Thai",))+ self.assertEqual(_complex_theme_scripts("hi-IN"), ("Deva",))+ self.assertEqual(_complex_theme_scripts("ar-SA"), ("Arab",))+ self.assertEqual(_complex_theme_scripts("he-IL"), ("Hebr",))+ self.assertEqual(_complex_theme_scripts("zh-CN"), ())+++class SlotMidpointTests(unittest.TestCase):+ def test_points_sit_at_slot_centres(self) -> None:+ coord = calc.CoordinateSystem("ppt169", calc.ChartArea(152, 378, 920, 596))+ points = calc.LineChartCalculator(coord).calculate([(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)], (1, 5), (0, 7))+ xs = [p.svg_x for p in calc.slot_midpoint_points(points, coord)]+ self.assertEqual(xs, [228.8, 382.4, 536.0, 689.6, 843.2])+++if __name__ == "__main__":+ unittest.main()diff --git a/skills/ppt-master/scripts/text_measure.py b/skills/ppt-master/scripts/text_measure.pyindex a19a2f1d..e3526b57 100644--- a/skills/ppt-master/scripts/text_measure.py+++ b/skills/ppt-master/scripts/text_measure.py@@ -60,6 +60,44 @@ _CALIBRATION_DIGITS_SAMPLE = '0123456789'# A source line: dataset ids, years, brackets and caps mixed into prose._CALIBRATION_CITATION_SAMPLE = 'NYC DOE, dataset sgsi-66kk (2018-19 to 2022-23), v2.1'_CORE_CALIBRATION_ROLES = ('body', 'title', 'subtitle', 'annotation')+# Scripts the CJK/Latin columns do not describe; a rate column is added for+# each one the planned outline (or --sample) actually uses.+_SCRIPT_RATE_LABELS = {+ 'THAI': 'Thai', 'LAO': 'Lao', 'KHMER': 'Khmer', 'MYANMAR': 'Myanmar',+ 'TIBETAN': 'Tibetan', 'DEVANAGARI': 'Devanagari', 'BENGALI': 'Bengali',+ 'GURMUKHI': 'Gurmukhi', 'GUJARATI': 'Gujarati', 'TAMIL': 'Tamil',+ 'TELUGU': 'Telugu', 'KANNADA': 'Kannada', 'MALAYALAM': 'Malayalam',+ 'SINHALA': 'Sinhala', 'ARABIC': 'Arabic', 'HEBREW': 'Hebrew',+ 'CYRILLIC': 'Cyrillic', 'GREEK': 'Greek', 'ARMENIAN': 'Armenian',+ 'GEORGIAN': 'Georgian', 'ETHIOPIC': 'Ethiopic',+}+_SCRIPT_SAMPLE_MIN_CLUSTERS = 12+_SCRIPT_SAMPLE_MAX_CLUSTERS = 40+++def _cluster_script(cluster: str) -> str | None:+ """Return the rate label of a grapheme cluster's base letter, if any."""+ for ch in cluster:+ if unicodedata.category(ch)[0] not in {'L', 'N'}:+ continue+ prefix = unicodedata.name(ch, '').split(' ', 1)[0]+ return _SCRIPT_RATE_LABELS.get(prefix)+ return None+++def _script_rate_samples(texts: list[str]) -> dict[str, str]:+ """Collect one measurement sample per script used by the planned text."""+ clusters_by_script: dict[str, list[str]] = {}+ for text in texts:+ for cluster in split_project_text_clusters(text):+ label = _cluster_script(cluster)+ if label is not None:+ clusters_by_script.setdefault(label, []).append(cluster)+ return {+ label: ''.join(clusters[:_SCRIPT_SAMPLE_MAX_CLUSTERS])+ for label, clusters in clusters_by_script.items()+ if len(clusters) >= _SCRIPT_SAMPLE_MIN_CLUSTERS+ }_SLIDE_HEADING_RE = re.compile(r'^#{3,6}[ \t]+Slide[ \t]+([0-9]+|NN)\b.*$',flags=re.IGNORECASE | re.MULTILINE,@@ -530,6 +568,7 @@ def _calibration_payload(source: str,include_outline: bool,weights: dict[str, str] | None = None,+ samples: list[str] | None = None,) -> dict[str, object]:weights = weights or {}longest = (@@ -537,6 +576,13 @@ def _calibration_payload(if include_outlineelse {name: None for name, _family, _size in roles})+ planned_texts = list(samples or [])+ outline_candidates = _outline_candidates(+ project_path / 'design_spec.md',+ {name for name, _family, _size in roles},+ )+ planned_texts.extend(text for rows in outline_candidates.values() for _slide, text in rows)+ script_samples = _script_rate_samples(planned_texts)cjk_length = len(split_project_text_clusters(_CALIBRATION_CJK_SAMPLE))latin_length = len(split_project_text_clusters(_CALIBRATION_LATIN_SAMPLE))digits_length = len(split_project_text_clusters(_CALIBRATION_DIGITS_SAMPLE))@@ -559,10 +605,19 @@ def _calibration_payload('caps_chars_per_100px': round(100.0 * latin_length / caps_width, 1),'digits_chars_per_100px': round(100.0 * digits_length / digits_width, 1),'citation_chars_per_100px': round(100.0 * citation_length / citation_width, 1),+ 'script_clusters_per_100px': {+ label: round(+ 100.0 * len(split_project_text_clusters(sample))+ / measure_text(sample, **style),+ 1,+ )+ for label, sample in script_samples.items()+ },'longest_planned_line': longest[name],}return {'roles': role_rows,+ 'script_samples': script_samples,'source': source,'generated_at': datetime.now(timezone.utc).isoformat(timespec='seconds')@@ -594,6 +649,8 @@ def _render_calibration_table(payload: dict[str, object], *, include_outline: borole_rows = payload['roles']assert isinstance(role_rows, dict)headers = ['role', 'family', 'size', 'CJK ≈chars/100px', 'Latin ≈chars/100px', 'CAPS ≈chars/100px', 'DIGITS ≈chars/100px', 'CITE ≈chars/100px']+ script_labels = sorted(payload.get('script_samples') or {})+ headers.extend(f'{label} ≈clusters/100px' for label in script_labels)if include_outline:headers.append('longest planned line (px, slide, text)')lines = [@@ -613,6 +670,8 @@ def _render_calibration_table(payload: dict[str, object], *, include_outline: bof'{raw_row["digits_chars_per_100px"]:.1f}',f'{raw_row.get("citation_chars_per_100px", 0.0):.1f}',]+ script_rates = raw_row.get('script_clusters_per_100px') or {}+ row.extend(f'{script_rates.get(label, 0.0):.1f}' for label in script_labels)if include_outline:planned = raw_row['longest_planned_line']row.append(@@ -628,6 +687,12 @@ def _render_calibration_table(payload: dict[str, object], *, include_outline: bo'rate) × 100; spaces and punctuation count as Latin, digits use the ''DIGITS rate.')+ if script_labels:+ lines.append(+ '[NOTE] a script column (' + ', '.join(script_labels) + ') counts '+ 'grapheme clusters of that script measured from the planned text; '+ 'use it instead of the Latin rate for runs in that script.'+ )if include_outline:lines.append('[NOTE] the longest planned line is the §IX wording; a line rewritten '@@ -694,6 +759,7 @@ def _run_calibrate(args: argparse.Namespace) -> int:source=source,include_outline=args.outline,weights=weights,+ samples=list(args.sample or []),)payload['notes'] = _fallback_notes(roles, fallbacks)if args.outline and not (project_path / 'design_spec.md').is_file():@@ -780,6 +846,15 @@ def build_parser() -> argparse.ArgumentParser:calibrate = subparsers.add_parser('calibrate', help='Calibrate project typography roles.')calibrate.add_argument('project_path', type=Path)calibrate.add_argument('--outline', action='store_true')+ calibrate.add_argument(+ '--sample',+ action='append',+ default=[],+ metavar='TEXT',+ help='Planned text in a non-Latin, non-CJK script (Thai, Devanagari, '+ 'Arabic, ...) measured as its own rate column; repeatable. The '+ 'design_spec.md outline is scanned for such scripts automatically.',+ )calibrate.add_argument('--role',action='append',diff --git a/skills/ppt-master/workflows/stages/verify-charts.md b/skills/ppt-master/workflows/stages/verify-charts.mdindex 054de09e..365361cf 100644--- a/skills/ppt-master/workflows/stages/verify-charts.md+++ b/skills/ppt-master/workflows/stages/verify-charts.md@@ -56,7 +56,7 @@ If the list is empty, output `verify-charts: active profile declares no data-dri```bashpython3 skills/ppt-master/scripts/svg_position_calculator.py calc bar --data "L1:V1,L2:V2" --area "x_min,y_min,x_max,y_max" --bar-width 120 --value-range=0,axis_max # a Native-ready bar/column passes --gap-width <payload gap_width, default 150> instead of --bar-width so the category axis follows the PowerPoint slot model the parity gate checks- python3 skills/ppt-master/scripts/svg_position_calculator.py calc line --data "x1:y1,x2:y2" --area "x_min,y_min,x_max,y_max" --y-range=0,max+ python3 skills/ppt-master/scripts/svg_position_calculator.py calc line --data "x1:y1,x2:y2" --area "x_min,y_min,x_max,y_max" --y-range=0,max # a Native-ready category line/area adds --slot-midpoints: PowerPoint centres each point in its category slot; the edge-to-edge default is the scatter / numeric-axis modelpython3 skills/ppt-master/scripts/svg_position_calculator.py calc pie --data "S1:V1,S2:V2" --center "cx,cy" --radius 200 [--inner-radius 120] --start-angle -90python3 skills/ppt-master/scripts/svg_position_calculator.py calc radar --data "D1:V1,D2:V2,D3:V3" --center "cx,cy" --radius 200 --max-value 100```