You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text props: an unknown writing-system handle is saved as ws="", which no reader can load #411
When a text property holds a writing-system handle the writing-system factory does not know, TsPropsSerializer / TsStringSerializer write ws="" (the id lookup returns empty). Both the StyleRules reader and the run reader reject an empty ws, so the object fails to load ("corrupted record").
Repro: build props or a run with ws (or baseWs) set to a handle not registered in the factory, serialize, then deserialize.
Suggested fix: the writer should never emit ws="": leave the attribute out (and log) or fail at the point the unknown handle is set; optionally make the reader tolerate an empty ws by dropping it. Add round-trip tests alongside TextPropsRoundTripTests.
Activity
Give runs with an unknown or empty ws a fallback ws instead of throwi…
Skip MultiUnicode alternatives with an unknown ws when saving (sillsd…
Resolve the enclosing AStr ws lazily when reading runs (sillsdev#411)