@lifeaitools/rdc-skills 0.13.0 → 0.13.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.
- package/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/skills/convert/SKILL.md +25 -11
package/package.json
CHANGED
package/skills/convert/SKILL.md
CHANGED
|
@@ -31,17 +31,25 @@ fetch and run the tool in its own session (this is how claude.ai uses it).
|
|
|
31
31
|
The command is always `build-corpus <input> [flags]`. Resolve the binary like this:
|
|
32
32
|
|
|
33
33
|
1. **Already on PATH?** Use it directly: `build-corpus --help`.
|
|
34
|
-
2. **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
2. **Install straight from GitHub — REQUIRED for current behavior** (native LaTeX→OMML
|
|
35
|
+
equations, the fidelity report, and the escaped-currency fix; the PyPI/npm packages
|
|
36
|
+
below currently LAG GitHub):
|
|
37
|
+
```bash
|
|
38
|
+
pip install "git+https://github.com/LIFEAI/build-corpus.git@feat/dual-package-ubuntu"
|
|
39
|
+
# once merged to main, drop the @branch:
|
|
40
|
+
# pip install "git+https://github.com/LIFEAI/build-corpus.git"
|
|
41
|
+
```
|
|
42
|
+
This installs the `build-corpus` CLI and its deps (latex2mathml, mathml2omml,
|
|
43
|
+
python-docx, Pillow, omml2latex). On Debian/Ubuntu externally-managed Python, add
|
|
44
|
+
`--break-system-packages`, use a venv, or `pipx install "git+https://github.com/LIFEAI/build-corpus.git@feat/dual-package-ubuntu"`.
|
|
45
|
+
3. **PyPI / npm (only if you do NOT need the latest fixes — these lag GitHub):**
|
|
46
|
+
`pipx install build-corpus` · `npx -y -p regen-mde build-corpus <input> [flags]`
|
|
40
47
|
4. **Legacy `.ppt` input** additionally needs LibreOffice (`soffice`) on PATH
|
|
41
48
|
(`sudo apt install libreoffice`). `.docx`/`.pptx` need nothing extra.
|
|
49
|
+
5. **S3/R2 image upload** needs the extra: append `[s3]` to the package spec.
|
|
42
50
|
|
|
43
|
-
claude.ai note:
|
|
44
|
-
|
|
51
|
+
claude.ai note: install from GitHub (step 2) into the analysis/session sandbox and run
|
|
52
|
+
`build-corpus` there. GitHub is the source of truth until PyPI/npm are republished.
|
|
45
53
|
|
|
46
54
|
## Command Reference
|
|
47
55
|
|
|
@@ -73,9 +81,15 @@ Prefer keeping S3 secrets in `--config`, not on the command line.
|
|
|
73
81
|
- `base64` — embed images directly as Markdown data URIs.
|
|
74
82
|
- `s3` — upload to S3-compatible storage (Cloudflare R2 / AWS S3); needs the S3 flags or `--config`.
|
|
75
83
|
|
|
76
|
-
###
|
|
77
|
-
- `tex`
|
|
78
|
-
- `image`
|
|
84
|
+
### Equations (both directions are real)
|
|
85
|
+
- **docx → markdown** (`--equations`): `tex` converts Word OMML equations to
|
|
86
|
+
KaTeX-readable TeX (default); `image` renders them as images (debug only).
|
|
87
|
+
- **markdown → word** (`--to word`): inline `$...$` and display `$$...$$` LaTeX
|
|
88
|
+
are converted to **native Office Math (OMML)** that Word renders as real
|
|
89
|
+
equations (`\sum`, `\int`, `\frac`, `\Delta`, `\rightarrow`, `\leq`, …) — not
|
|
90
|
+
raw text in a math font. Unparseable fragments fall back to Cambria Math text
|
|
91
|
+
and are flagged in the export report. Requires build-corpus ≥ 0.4.0. Fence
|
|
92
|
+
display math with `$$` on their own lines, no blank lines inside the fence.
|
|
79
93
|
|
|
80
94
|
## Editor — `regen-mde` (Windows only)
|
|
81
95
|
|