fix(chart): 上升的状态格改成「/」

上升不是行星,本命、月亮盘和分盘的状态格不再写「不适用」。悬停或点一下说明原因。报告同一格写「/」,并在表下加中英文说明。

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jesse-ux
2026-10-22 00:03:19 +08:00
co-authored by Grok (agent loop) Cursor
parent 9812f31737
commit d2edf8b7a8
12 changed files with 154 additions and 20 deletions
+12 -2
View File
@@ -1049,10 +1049,9 @@ def render_pl9_parity_markdown(packet: dict) -> str:
if ascendant:
info = _ascendant_report_fields(ascendant)
asc_label = 'Ascendant' if _lang == 'en' else '上升'
dignity = 'not applicable' if _lang == 'en' else '不适用'
lines.append(
f"| {_cell(asc_label)} | {_cell(_token(info['sign_lord']))} | {_cell(_token(info['nakshatra_lord']))} | "
f"- | - | {_cell(dignity)} | - |"
f"- | - | {_cell('/')} | - |"
)
for planet in ('Sun', 'Moon', 'Mars', 'Mercury', 'Jupiter', 'Venus', 'Saturn', 'Rahu', 'Ketu'):
row = _dict(planets.get(planet))
@@ -1065,6 +1064,17 @@ def render_pl9_parity_markdown(packet: dict) -> str:
)
lines.extend([
'',
*(
[
(
'The ascendant is the starting point of the chart, not a planet, so it has no dignity.'
if _lang == 'en'
else '上升点是命盘的起点,不是行星,不判断入旺或落陷'
),
'',
]
if ascendant else []
),
(
'Sign lord, star lord, sub lord and sub-sub lord name the ruler of the planet sign, nakshatra and KP subdivision. Strength ratio compares Shadbala with the required strength. A ratio of 1 or more meets it.'
if _lang == 'en'