revert(802-1): 801-1 wip 옛 나무 위 고침 걷음 — 요구 664 수식 문서로 다시 짬
- 걷음: 43784a4c0 의 옛 수식 나무 위 고침(서버 · 화면 · css) = 그 앞 판으로 되돌림
- 남김: master_equation_sign.py · ui_template_equation_text.ts · ui_template_equation_edit.ts(다시 쓸 조각 · 지금 안 부름) · text 는 `입력글` 을 제 타입에
- 지움: test_801_1_equation_inline.py — 걷은 옛 나무 고침을 재는 시험
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,23 +44,9 @@ def _typed(eq: dict, row: dict) -> dict:
|
||||
for line in eq.get("줄") or []:
|
||||
if line.get("식"):
|
||||
line["입력글"] = me.keyboard_of(fx.to_name(str(line["식"]), row), row)
|
||||
_atoms(line.get("이름식"), lambda raw: me.keyboard_of(fx.to_name(raw, row), row))
|
||||
return eq
|
||||
|
||||
|
||||
def _atoms(tree, word) -> None:
|
||||
"""식 속 표 찾기 · 요소 · 로직 부름 마디 `입력글` = 키보드 글(801 그 자리 고침 · 블록 속 나무 빼고)."""
|
||||
if isinstance(tree, dict):
|
||||
if tree.get("식") and (tree.get("꼴") == "블록" or tree.get("갈래") in ("찾기", "요소")):
|
||||
tree["입력글"] = word(str(tree["식"]))
|
||||
for k, v in tree.items():
|
||||
if k != "나무":
|
||||
_atoms(v, word)
|
||||
elif isinstance(tree, list):
|
||||
for v in tree:
|
||||
_atoms(v, word)
|
||||
|
||||
|
||||
def export_row(whole, row: dict, inputs: dict | None = None) -> dict:
|
||||
"""로직 줄(정본 · 사본) → 수식 — 마스터에 그 줄을 얹어 셈."""
|
||||
eq = meq.export(me.swap(whole, row), str(row.get("키")), _given(inputs))
|
||||
|
||||
Reference in New Issue
Block a user