v0.19.0
Highlights
Math formulas, end to end. LaTeX in lessons, tutor replies, and quiz questions now renders as typeset math (KaTeX). Read-aloud speaks formulas in words instead of backslash commands, so $\frac{a}{b}$ is heard as "a 分之 b". The exercise and exam generators are told they may use LaTeX freely. Underlining and sentence highlighting keep working on formula-heavy lessons, and math that KaTeX can't parse falls back to plain text instead of breaking the page. Saved webpages whose formulas were rendered by KaTeX or MathJax get their TeX recovered on import.
The bot sits quietly by the timer during exams. Start a chapter exam and the companion parks itself beside the countdown, no roaming, no physics, celebration moves silenced, just a small nod when you get one right. It leaves you alone and comes back when you hand in.
Per-question time limits are now dynamic and generous. The old 60/90 seconds flat is gone. The timer is computed from the question itself, reading pace plus options plus extra for code blocks and formulas, between 1 and 5 minutes. A 300-character question gets about 137 seconds, an 800-character one with code about 270.
Added
- Math rendering in the lesson pane and tutor chat (remark-math + rehype-katex, sanitized before rendering, literal fallback on parse errors).
- Spoken math for read-aloud across all four TTS engines and the system tier; a rule table covers fractions, roots, scripts, Greek letters, and common operators, unknown macros degrade letter by letter.
- Webpage import recovers KaTeX/MathJax formulas into
$..$notation instead of garbled text. - Exercise and exam prompts may emit LaTeX.
- Exam quiet perch for the companion, with celebrations, ball taps, whistles, and typing squashes muted during answering.
- Dynamic per-question exam time limit, clamped to 60-300 seconds; historical attempts are untouched.
亮点
数学公式从显示到朗读到做题都顺了。 课文、导师回答、题目里的 LaTeX 渲染成排版公式(KaTeX);朗读把公式念成人话,$\frac{a}{b}$ 听到的是"a 分之 b";出题与考试也放开了 LaTeX。画线和朗读跟句在公式密集的课文上照常工作,解析不了的公式退回原文显示,不炸整页。网页存档课里被 KaTeX/MathJax 渲染过的公式,导入时会把 TeX 原文回收回来。
考试时伴学安静地守在计时条旁。 开考后它钉在倒计时旁边,不漫游、不进物理世界,庆祝动作全部静默,答对只轻轻点个头。交卷即恢复日常。
每题限时改成动态计算,而且宽松了。 60/90 秒一刀切退役,按题干内容算,阅读速度加选项数,代码块和公式各加 25 秒,上下限 1 到 5 分钟。300 字的题约 137 秒,800 字带代码约 270 秒。
新增
- 讲解区与对话流的数学渲染(先消毒后渲染,解析失败退原文)。
- 四档朗读引擎加系统档的公式口语化,规则表覆盖分式、根号、上下标、希腊字母与常见算符,未覆盖记号逐字母降级。
- 网页导入回收 KaTeX/MathJax 公式。
- 出题提示词放开 LaTeX。
- 考试伴学静栖计时区,答题期间庆祝、点球、吹哨、击键压缩全静默。
- 每题限时动态计算,clamp(60,300) 秒,历史 attempt 零迁移。