feat(849-1): 기계 산출근거 용어 아홉 이름 변경 — 일 · 일일근무시간 · 상여율 · 연간지급월수 · 연간월수 · 휴지율 · 월간급여지급일 · 월간가동일수 · 노무비 계수

- 그리기 사전만(문서 자료 · 식 글 id · 계산 불변) — 중간 줄 이름은 짝 사전(pairName)으로
- 노무비 계수(빈 칸 든 이름) = 식 글 고침 칸 왕복 보강(aliasText) · 체인톱 식은 「환산」 유지
- 낡은 기대 글을 새 이름으로 고침(test_839_1 · test_845_2 · helper_804_2)
This commit is contained in:
2026-11-16 18:29:57 +09:00
parent 2ab373080b
commit e207e06170
7 changed files with 49 additions and 20 deletions
+6 -1
View File
@@ -247,8 +247,13 @@ export function tableAlias(doc: FormulaDoc): Record<string, string> {
/** 식 글의 기호를 화면 이름으로(또는 `back` = 화면 이름을 기호로) */
export function aliasText(text: string, alias: Record<string, string>, back = false): string {
// 이름에 빈 칸이 든 것(「노무비 계수」)은 식 풀이가 못 읽음 — 오는 길은 맨 마지막 · 가는 길은 맨 먼저 글로 바꿈
const all = Object.entries(alias);
const gap = all.filter(([, now]) => /\s/.test(now));
let t = text;
for (const [id, now] of Object.entries(alias))
if (back) for (const [id, now] of gap) t = t.split(now).join(id);
for (const [id, now] of all.filter((e) => !gap.includes(e)))
t = String(back ? renameText(t, now, id) : renameText(t, id, now));
if (!back) for (const [id, now] of gap) t = String(renameText(t, id, now));
return t;
}