whaleprep/scripts
dev 5f4539342a Fix math rendering: inline delimiters, matrix rewrite, TeX-ism cleanup
Source data wraps every math fragment in display-mode $$ delimiters,
which KaTeX rendered as centered blocks mid-sentence. scripts/fix_math.py
normalizes the corpus: $$/$ pairs become inline \\(...\\) (block
derivations with newlines or environments stay display), legacy
\\matrix blocks become begin/end matrix, _\\limits/^\\limits,
\\raise/\\lower boxes, \\root/\\of, \\tag and \\, are rewritten
to KaTeX-supported forms. Batch-validated 60k inline spans: 99.98% render
clean; remaining handful are source pathologies that degrade to text.
import_examgoal.py runs the same normalization at write time.
2026-10-12 23:25:45 +05:30
..
examgoal_model Vendor examgoal unpickle models, portable pickle path 2026-10-12 20:34:50 +05:30
audit_mobile.py Subtopic picker, JEE mode, per-subject timers 2026-10-12 05:13:09 +05:30
bench.py Honour RUST_LOG, add load and scale benchmarks 2026-10-11 21:08:35 +05:30
bench_scale.py Honour RUST_LOG, add load and scale benchmarks 2026-10-11 21:08:35 +05:30
bench_write.py Honour RUST_LOG, add load and scale benchmarks 2026-10-11 21:08:35 +05:30
expand_seed.py Add expand_seed and document data sourcing 2026-10-12 05:19:03 +05:30
fix_math.py Fix math rendering: inline delimiters, matrix rewrite, TeX-ism cleanup 2026-10-12 23:25:45 +05:30
import_examgoal.py Fix math rendering: inline delimiters, matrix rewrite, TeX-ism cleanup 2026-10-12 23:25:45 +05:30
shots.py Make the exam screen work on a phone 2026-10-11 21:54:17 +05:30