fix(ephemeris): alias the engine's three panchanga spellings to the table
Coordinator ruling (brief author, 2026-09-26): Aindra -> Indra (因陀罗), Variyana -> Variyan (安逸), Dhanishtha -> Dhanishta (虚宿). Spelling aliases only; the brief's table and its typed test copy are unchanged. BLOCKED item struck through, PROGRESS / checklist / task index updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2981da6fbc
commit
dd8912fea0
@@ -9,7 +9,10 @@
|
||||
*
|
||||
* Matching ignores case, spaces and hyphens. The three spelling aliases the
|
||||
* brief lists (Garija/Gara, Dwitiya/Dvitiya, Shashthi/Shashti) live in
|
||||
* `PANCHANGA_NAME_ALIASES`; no other alias is accepted.
|
||||
* `PANCHANGA_NAME_ALIASES`, plus three the coordinator ruled on 2026-09-26 so
|
||||
* the engine's own spellings (`scripts/muhurta.py`) reach the existing
|
||||
* entries: Aindra → Indra, Variyana → Variyan, Dhanishtha → Dhanishta. These
|
||||
* are spellings, not translations; no other alias is accepted.
|
||||
*/
|
||||
|
||||
export type PanchangaNameKind = "tithi" | "nakshatra" | "yoga" | "karana";
|
||||
@@ -114,11 +117,14 @@ export const KARANA_ZH: Readonly<Record<string, string>> = {
|
||||
Kimstughna: "金斯图格纳",
|
||||
};
|
||||
|
||||
/** Spelling alias → table key. Only the three pairs the brief names. */
|
||||
/**
|
||||
* Spelling alias → table key. The brief's three pairs, plus the engine's three
|
||||
* spellings (coordinator ruling 2026-09-26).
|
||||
*/
|
||||
export const PANCHANGA_NAME_ALIASES: Readonly<Record<PanchangaNameKind, Readonly<Record<string, string>>>> = {
|
||||
tithi: { Dvitiya: "Dwitiya", Shashti: "Shashthi" },
|
||||
nakshatra: {},
|
||||
yoga: {},
|
||||
nakshatra: { Dhanishtha: "Dhanishta" },
|
||||
yoga: { Aindra: "Indra", Variyana: "Variyan" },
|
||||
karana: { Gara: "Garija" },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user