fix(report): no book titles, author citations, pages or chapter numbers in front of the reader (BUG-2129)

Owner 2026-11-21: after BUG-2115 the full-data report still printed source
lines and book references (Goel 出处 line, the PVR 2014 article in the
conditional-dasha note, PVR / Light on Life / BPHS verse in the calculation
notes, Tithi lord table source, rashi-dasha 出处 lines, Narayana p.43 label and
p.50 / Table 13 direction notes, functional profile source row, Ashtakavarga
book calibration). Method names stay; the book, page, chapter and ruling round
go. Engine labels for the consultation card are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
This commit is contained in:
2026-11-21 19:36:15 +08:00
co-authored by Claude Opus 5.5
parent 10639255c1
commit d70866e493
31 changed files with 337 additions and 119 deletions
+12 -7
View File
@@ -23,9 +23,13 @@ for the public reader rather than exposing empty or machine-key rows.
from __future__ import annotations
try: # scripts/ on sys.path
from narayana_legacy_label import RATH_LABEL_EN, RATH_LABEL_ZH, legacy_line_en, legacy_line_zh
from narayana_legacy_label import RATH_REPORT_LABEL_EN as RATH_LABEL_EN, RATH_REPORT_LABEL_ZH as RATH_LABEL_ZH, legacy_line_en, legacy_line_zh
except ImportError: # pragma: no cover - package import
from scripts.narayana_legacy_label import RATH_LABEL_EN, RATH_LABEL_ZH, legacy_line_en, legacy_line_zh
from scripts.narayana_legacy_label import RATH_REPORT_LABEL_EN as RATH_LABEL_EN, RATH_REPORT_LABEL_ZH as RATH_LABEL_ZH, legacy_line_en, legacy_line_zh
try: # scripts/ on sys.path
from report_render.book_refs import strip_book_refs
except ImportError: # pragma: no cover - package import
from scripts.report_render.book_refs import strip_book_refs
try: # scripts/ on sys.path
from report_render.audit_chapters import STATUS
from report_render.english_gaps import english_effects, first_clean_english
@@ -2224,14 +2228,15 @@ def render_pl9_parity_markdown(packet: dict) -> str:
lines.extend([
'### p51-p60 Ashtakavarga SAV / BAV / Pinda',
'',
f"- 方法:{_cell(ashtakavarga.get('method'))}",
# BUG-2129: the method's book calibration note is not shown to the reader.
f"- 方法:{_cell(str(ashtakavarga.get('method') or '').replace('(BPHS/PVR书例校准v2.1)', '(v2.1)') or None)}",
# BUG-2095: the check result in words (was the code `all_valid`, or a bare True/False).
f"- BAV 校验:{_cell({True: 'All passed' if english else '全部通过', False: 'Not all passed' if english else '未全部通过'}.get(ashtakavarga.get('all_bav_valid'), ashtakavarga.get('all_bav_valid')))}",
])
if sodhita_ok:
lines.append(
f"- Reduction: {_cell(sodhita.get('method'))}" if english
else f"- 净化:{_cell(sodhita.get('method_zh') or sodhita.get('method'))};原始值并列"
f"- Reduction: {_cell(strip_book_refs(str(sodhita.get('method') or '')) or None)}" if english
else f"- 净化:{_cell(strip_book_refs(str(sodhita.get('method_zh') or sodhita.get('method') or '').replace('(BPHS 第 67 章,逐行 BAV)', '(逐行 BAV)')) or None)};原始值并列"
)
lines.extend([
'',
@@ -2589,9 +2594,9 @@ def render_pl9_parity_markdown(packet: dict) -> str:
if kalachakra_classical:
# BUG-1656: sign periods from the natal Moon longitude.
lines.extend([
'- Sign periods start from the natal Moon longitude (PVR ch. 24). Sub-periods follow the published proportions; the third level repeats the same rule and is parameter-sensitive.'
'- Sign periods start from the natal Moon longitude. Sub-periods follow the standard proportions; the third level repeats the same rule and is parameter-sensitive.'
if _lang == 'en'
else '- 按本命月亮实际经度起算星座期(PVR 第 24 章)。小运按书中比例划分,细运用同一比例再分一层,结果对参数敏感。',
else '- 按本命月亮实际经度起算星座期。小运按固定比例划分,细运用同一比例再分一层,结果对参数敏感。',
'',
])
elif 'Kala Chakra' in title_text: