私は、他の人の身長と体重の推定値を多数含む Excel スプレッドシートを持っています。また、両方の推計セルに「この推計はあれこれ考慮している」などのコメントを残した人もいます。
スプレッドシートからデータを取得し (解析方法は既に理解しています)、それをプレーン テキスト ファイルで表現して、構造化された形式に簡単に解析できるようにしたいと考えています (Perl を使用するのが理想的です)。
もともと私は YAML を使用することを考えていました:
Tom:
Height:
Estimate: 5
Comment: Not that confident
Weight:
Estimate: 7
Comment: Very confident
Natalia: ...
しかし、これは少し読みにくいと思います。読みやすく、解析可能なテキスト表形式の表現があるかどうか疑問に思っていました。
何かのようなもの:
PERSON HEIGHT Weight
-----------------------------
Tom 5 7
___START_HEIGHT_COMMENT___
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed [...]
Wait, what's this project about again?
___END_HEIGHT_COMMENT___
___START_WEIGHT_COMMENT___
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed [...]
Wait, what's this project about again?
___END_WEIGHT_COMMENT___
Natalia 2 4
John 3 3
これを行うより良い方法はありますか?