Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
# 拓扑序:依赖在前,被依赖在后(与 workspace 的 path 依赖一致)
for crate in ratex-types ratex-font ratex-lexer ratex-parser ratex-layout ratex-ffi ratex-render ratex-wasm; do
for crate in ratex-types ratex-font ratex-lexer ratex-parser ratex-layout ratex-svg ratex-ffi ratex-render ratex-wasm; do
echo "Publishing $crate..."
cargo publish -p "$crate"
done
234 changes: 64 additions & 170 deletions README.md

Large diffs are not rendered by default.

228 changes: 61 additions & 167 deletions README.zh-CN.md

Large diffs are not rendered by default.

148 changes: 0 additions & 148 deletions docs/KATEX_SVG_PATH_PLAN.md

This file was deleted.

7 changes: 4 additions & 3 deletions docs/LOW_SCORE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ Default **pass threshold** for the script summary is **0.30** (see `--threshold`
|-------|---------------------|--------|
| `\url` / `\href` | 0831, 0359 | Web/hyperlink semantics; raster baseline may not be comparable. |
| `\imageof`, `\origof` | 0375, 0599 | Symbol/glyph or metric mismatch vs KaTeX. |
| `\overbrace` / `\underbrace` + `\text` | 0603, 0810 | Brace + label layout; see also `docs/KATEX_SVG_PATH_PLAN.md`. |
| `\overbrace` / `\underbrace` + `\text` | 0603, 0810 | Brace + label layout. |
| `\cancel`, `\bcancel`, `\xcancel` | 0074, 0146, 0890 | Strikeout drawing vs KaTeX. |
| `\copyright`, `\textregistered`, `\char"263a` | 0198, 0770, 0157 | Text/compound symbol rendering. |
| Arrays / environments | 0061, 0286, 0315, 0037, 0880, 0878, 0879, 0730 | `arraystretch`, `equation`, `gather`, `alignat`, starred matrices, `smallmatrix`. |
| Delimiters / `\genfrac` | 0454, 0695, 0662, 0092, 0321 | `\llbracket`, `\rrbracket`, `\rBrace`, `\Biggm\vert`, `\genfrac`. |
| Brace notation | 0138 | `{n\brace k}` glyph/metric mismatch. |
| Other | 0699 (`\rule`), 0156 (`\cfrac`), 0263 (`\dotsi`) | Spacing, nested fractions, dots. |

Stretchy-arrow SVG work is still documented in [`KATEX_SVG_PATH_PLAN.md`](./KATEX_SVG_PATH_PLAN.md); **this** list is driven by whatever scores below 0.5 **today**, not only arrows.
This list is driven by whatever scores below 0.5 **today**.

---

Expand Down Expand Up @@ -85,7 +86,7 @@ Then mark the row below with `[x]`.

## SOP: Fixing low-scoring **stretchy arrow** cases

Applies to `\xrightarrow`, `\xleftarrow`, `\xtwoheadrightarrow`, `\xtwoheadleftarrow`, `\xmapsto`, and similar commands. For **braces**, prefer the brace path plan in [`KATEX_SVG_PATH_PLAN.md`](./KATEX_SVG_PATH_PLAN.md).
Applies to `\xrightarrow`, `\xleftarrow`, `\xtwoheadrightarrow`, `\xtwoheadleftarrow`, `\xmapsto`, and similar commands. For **braces**, the same `katex_stretchy_path()` in `crates/ratex-layout/src/katex_svg.rs` handles `overbrace`/`underbrace`.

### 1. Find KaTeX SVG path data

Expand Down
3 changes: 2 additions & 1 deletion docs/PROJECT_STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RaTeX/
│ ├── test_case_ce.txt # mhchem \\ce / \\pu examples (fixtures_ce/ refs); parser uses Rust mhchem
├── scripts/
│ ├── set-version.sh # Sync version to all platform manifests
│ └── update_golden_output.sh # Renders all test_cases.txt → output/
└── demo/ # Web demo + sample apps (web, ios, android, flutter, RN)
Expand All @@ -85,7 +86,7 @@ members = [
]

[workspace.package]
version = "0.0.10" # bump with VERSION + scripts/set-version.sh; see RELEASING.md
version = "0.0.12" # bump with VERSION + scripts/set-version.sh; see RELEASING.md
edition = "2021"
authors = ["RaTeX Contributors"]
license = "MIT"
Expand Down
Loading
Loading