Render Greek math commands as their letters
\alpha through \omega, the uppercase Greek commands and the varepsilon / vartheta / varrho / varsigma / varphi / varpi / varkappa variants were not in the math command table, so a formula such as $\alpha+\beta$ painted "?" glyphs. Map them to their Unicode code points. The math renderer already treats the Greek ranges as math letters and sends them through the math-italic fallback, so the formula now previews as α+β=γ with no warnings; the widths still use the TFM fallback constant rather than per-letter cmmi metrics. A core test pins the parsed symbols and a route-D test checks the previewed characters.
This commit is contained in:
1 parent
5a1a04d029
commit
4b28d65006
4 files changed
+81
-5
No files matched your search
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`). 984 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 986 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
|
||||
Reference in new issue
Block a user