# Plan: Vedic accent marks, and one Devanagari engine for Vedic and Classical Sanskrit Status: design of 2026-11-16, tasks VSA-100 and the design half of VSA-110 of [Deck-Work-Queue-VSA](Deck-Work-Queue-VSA.md) (tracker #1206). Nothing here is built: the only code written is a scratch prototype outside the repository, used to measure the tables below against the 30 existing cards. Every file and line cited was read on `origin/main` (`f8d59607`) or `origin/decks-live` (`d05ac818`) on 2026-11-16. Two questions are answered: (1) can a `vsn` card carry Vedic accent marks, and (2) what is the one engine that writes the `reading` and `ipa` of `vsn` and `sa` (Classical Sanskrit, owned by another session). Section 4 is the GitHub issue for the parent session to file. A claim about the language itself (a sound value, a spelling convention) is marked **to pin** until VSA-001 has read it in a public-domain work (Whitney 1879, Macdonell 1916); values taken from Wikipedia's *Vedic Sanskrit* and *Sanskrit* articles (read 2026-11-16, CC BY-SA 4.0) are named as such. Nothing about the language is written from memory. ## 1. Vedic accent marks: what the validator, the font and the app do ### The marks | Code point | Unicode name | Class | Use here | |---|---|---|---| | U+0951 | DEVANAGARI STRESS SIGN UDATTA | Mn, 230 | In Rigveda and Atharvaveda editions this glyph (॑) marks the **svarita**; Unicode's name says udātta, the encoding is the editors' (to pin: Macdonell, *Vedic Grammar for Students*, on the accent signs) | | U+0952 | DEVANAGARI STRESS SIGN ANUDATTA | Mn, 220 | The anudātta (॒); the udātta itself is unmarked in these editions | | U+0953, U+0954 | DEVANAGARI GRAVE / ACUTE ACCENT | Mn, 230 | Not Vedic accents; refuse | | U+1CD0 to U+1CF9 | Vedic Extensions | mostly Mn; U+1CD3 Po; U+1CE9 to U+1CF3 and U+1CF5, U+1CF6 Lo; U+1CE1, U+1CF7 Mc | The other recitation traditions' tone signs (U+1CDA is the double svarita), visarga and anusvara variants, and **U+1CF5 jihvāmūlīya, U+1CF6 upadhmānīya**, which are letters, not marks | | U+A8E0 to U+A8FF | Devanagari Extended | Mn (A8E0 to A8F1), Lo, Po | Combining digits and letters used in Sāmaveda notation; out of scope | Categories are from Python's `unicodedata` (Unicode 15.1). ### 1.1 Does the validator accept them in `target`? **Yes, for U+0951 and U+0952 and for every other mark, in a card's own `target`.** The script checks that could reject them do not look at `target`: - `check_card` reads `target` only for being a non-empty string, having no outer whitespace (`tools/validate_decks.py:1273-1291`) and being NFC, which is a **warning**, not an error (`:1289-1290`, `r.warn(... "target is not NFC-normalised")`). NFC reorders marks by combining class; the Unicode order (base, vowel sign, then accent) is already canonical, so a properly typed target does not trip it. - `SCRIPT_BLOCKS["devanagari"]` is `((0x0900, 0x097F), (0xA8E0, 0xA8FF))` (`:103`). It is used by `_letters_in` (`:958-966`), which checks every letter and mark (category L or M) against the blocks, in exactly two places: a card's `target_scripts.