Semantic numbers in narration: bold yellow (bold alone was hard to see)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sora 2026-09-11 03:02:03 +00:00
parent a1fa75bf89
commit a8c04311c0

View File

@ -207,7 +207,7 @@ def _narration(msg: str) -> str:
import re as _re0 import re as _re0
msg = _re0.sub(r'(?<![\w/%.])(\d+(?:/\d+)?)(?=[\s]|$)', msg = _re0.sub(r'(?<![\w/%.])(\d+(?:/\d+)?)(?=[\s]|$)',
r'[bold]\1[/bold]', msg) r'[bold yellow]\1[/bold yellow]', msg)
icon = '' icon = ''
m = msg.lower() m = msg.lower()