fix(report): one yoga status table for report and chat; English cell fold keeps real words (BUG-2403)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
This commit is contained in:
@@ -1575,7 +1575,9 @@ def _render_pl9_ai_density_raw_data_markdown_en(packet: dict, language: str = "e
|
||||
text = re.sub(r"^(\d+)weak/$", r"house \1 weak", text)
|
||||
text = re.sub(r"^(\d+)/$", r"house \1 condition", text)
|
||||
text = re.sub(r"^//,\s*", "", text)
|
||||
text = re.sub(r"([A-Za-z]{3,})\1", r"\1", text)
|
||||
# BUG-2403: 原值 r"([A-Za-z]{3,})\1"(无词界,把 assessed 吃成 assed、Darakaraka/Trimsamsa/singing 等也会坏);
|
||||
# 新值只折叠整词重复(ConditionCondition、VenusVenus)。
|
||||
text = re.sub(r"\b([A-Za-z]{3,})\1\b", r"\1", text)
|
||||
text = re.sub(
|
||||
r"\b(Mars|Jupiter|Venus|Saturn|Mercury|Sun|Moon|Rahu|Ketu)(\d{1,2})\b",
|
||||
r"\1 \2",
|
||||
|
||||
@@ -13,7 +13,8 @@ YOGA_STATUS_MAPPING = {
|
||||
# BUG-2311 (产品负责人 2026-11-24): 原值「检测器检出,待核实」;新值不写「待核实」(BUG-2280 同一规则),
|
||||
# 表格本身已分「成立 / 检出组合 / 暂无法判断」。
|
||||
"computed": {"evidence": ["computed"], "text": "检出组合"},
|
||||
"formed_under_source": {"evidence": ["formed_under_source"], "text": "按所选规则的形成条件成立;强度和结果另评"},
|
||||
# BUG-2403 (负责人「不两可」规则): 原值「按所选规则的形成条件成立;强度和结果另评」;新值「条件都满足,成立」,与 Node 同表。
|
||||
"formed_under_source": {"evidence": ["formed_under_source"], "text": "条件都满足,成立"},
|
||||
"conditions_not_met": {"evidence": ["conditions_not_met"], "text": "所选规则的必要条件未满足"},
|
||||
"blocked": {"evidence": ["blocked", "not_available_yet"], "text": "当前无法确认,列明缺项"},
|
||||
}
|
||||
@@ -22,7 +23,7 @@ YOGA_STATUS_MAPPING = {
|
||||
YOGA_STATUS_TEXT_EN = {
|
||||
"candidate": "Rule matched, not fully confirmed",
|
||||
"computed": "Combination detected", # BUG-2311: 原值 "Detected, to be verified"
|
||||
"formed_under_source": "Formed under the chosen source; strength and results assessed separately",
|
||||
"formed_under_source": "All conditions met; formed", # BUG-2403: 原值 "Formed under the chosen source; strength and results assessed separately"
|
||||
"conditions_not_met": "Required conditions of the chosen source not met",
|
||||
"blocked": "Cannot be confirmed yet",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user