UPMILab.
☰

Research & practice

Fixing a Hangul form by changing what the tool edits

I traced a broken HWPX form to text being merged across table cells. I changed the editing unit to cell paragraphs and carried that rule into the generator and OpenClaw skill.

01

The problem

Editing a table-heavy Hangul form tangled text from separate cells.

02

My approach

I changed the generator to edit actual cell paragraphs and put the same rule in the skill.

03

What changed

The merged-paragraph symptom disappeared in the repair test, leaving an editing rule for later forms.

BUILD DETAILS

Build details & ideas to reuse

01The file passed checks, but the form was wrong

I wanted to replace wording while keeping the form’s tables and formatting. Yet a file could pass ZIP and XML checks and still have tangled text. The generator was collecting all text under a table-enclosing paragraph, merging multiple cells into one long editing unit.

02Edit the paragraphs inside each cell

With Codex I excluded table-enclosing paragraphs and selected the actual cell paragraphs. Replacement, rebuilding, inspection and previews now use that same boundary. I also documented field-based edits for fixed forms and clarified input, output and backup roles after restoring a wrongly changed file.

03Update the preview and layout metadata too

I preserved the package order and compression, with mimetype first and uncompressed. Editing the body also rebuilds preview text and clears cached line layouts for Hangul to recalculate. The requested 95% character width and −5 spacing were specific to that form.

04Test the symptom that led to the repair

Testing the revised generator against the original symptom found no merged paragraphs over 500 characters; the longest editable paragraph was 99 characters. I also ran syntax, ZIP and form checks.

05Make the repair useful for the next form

For the next form, I can reuse the sequence: inspect the structure, identify fields, preserve their surroundings, then check the package, preview and rendered page. The lasting result is the rule shared by the tool and skill. Its output is HWPX; binary HWP still requires conversion in Hangul.

Scope and things to consider

This account follows the form failure and my generator/skill repair, distinguishing the repair tests from structural checks on an older file. ZIP/XML checks on the older retained output establish its package condition, not the rendered appearance of the repaired output.

More from this field →
문서 제출 전 체크 · 무료 체험UPMI 익명 방문 통계 안내·중지