dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zzjj66/dsh-skill-pdf-math
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness skill for reading mathematics out of PDFs and formula screenshots without guessing.
Vision models misread formulas in predictable ways: a \mathcal{L} becomes \angle,
a summation subscript j=1 becomes \cdot, a tall bracket turns into [[[.
Most of that is unnecessary, because a LaTeX-produced PDF stores formulas as
positioned text, not images — glyphs, baselines, sizes and font names are all there.
So the skill teaches one rule:
read the text layer first, let formula OCR supply the structure, and cross-check the two.
pdf_formula.py — turns a PDF region into readable (approximate) LaTeX by restoring
sub/superscripts from baseline offsets, plus a small TeX cmex10 operator table.--probe — decides whether a page's formulas are extractable text or images.--crosscheck — compares the OCR result against the text layer's letters and their fonts
(cmsy10's L is \mathcal{L}), so a wrong glyph is named instead of merely suspected.--verify — re-recognises with a different crop and resolution; disagreement is reported.Measured on four numbered equations from a real paper:
| render | mean similarity | exact |
|---|---|---|
| 400 dpi | 0.941 | 2/4 |
| 600 dpi | 0.977 | 3/4 |
--check requires the optional rapid_latex_ocr runtime; without it the text-layer
channel still works and the skill says so instead of failing.
dsh plugin --profile <name> add dsh-skill-pdf-math
or install it from the DSH plugin marketplace. The skill registers itself as
pdf-math and is model-invocable.
try/catch: a broken asset can disable the skill,
never the host application.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。