Text props: an unknown writing-system handle is saved as ws="", which no reader can load

オープン
#411 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@johnml1135 がすでに取り組んでいます。

2026年11月5日 から。

  • #413 @johnml1135 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

Start with TsPropsSerializer, TsStringSerializer, and TextPropsRoundTripTests, then trace how the StyleRules reader and run reader handle an empty ws. Add round-trip coverage for props or runs using an unknown writing-system handle; done means serialization and deserialization no longer produce a corrupted-record failure. Pull request #413 is already open for this issue.

索引モデルが issue の本文から書いたものです。

説明

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").

Found while reviewing #410 (it predates that PR).

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.

🤖 Generated with Claude Code

主要言語
C#
スター
3
フォーク
15
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sillsdev/liblcm のほかの issue

sillsdev/liblcm の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。