mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-24 10:27:44 -06:00
* Content controls: typed text takes the control's formatting, in any language Text typed in place of a content control's placeholder takes the control's own run properties (w:sdtPr/w:rPr, ECMA-376 §17.5.2.27), as in Word: in a protected form filled in Word for Mac, all 17 entered values carry the style their control's rPr names. WordCraft kept that rPr only as XML to write back and gave typed text the placeholder's formatting minus the placeholder style. It also knew the placeholder style only by its English id, PlaceholderText. German Word writes Platzhaltertext (the name stays "Placeholder Text"), so in forms from German Word every entry stayed grey, on screen and in the saved file, and restoring a placeholder added a second Placeholder Text style. The style is now found by its built-in name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Content controls: typing drops a showing placeholder's own style A control without run properties that shows its placeholder: text typed over it drops the placeholder run's character style whatever its id and name. Word localizes only the placeholder style's id, but another program may localize its name too, and the name lookup then misses it. Restoring a placeholder and new controls keep the name lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>