[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [xliff-omos] JLIFF and Metadata
Ø … Ø From an implementation standpoint, do those objects need some sort of hint to deserializers that the first two (version, phase) are meta objects, and the third one is a metaGroup? It may be an issue. I have not worked much on the deserialization part, but initially I had the meatGroup and the meta objects share a “isGroup” field, so they could be stored in a single array of objects. After I’ve looked at the Github examples, I figured we could use the “meta” (or “metas”) key to distinguish group from meta entry. I suppose it also depends on how the deserialization is done: using annotations and automated (un/)marshalling may require extra things while doing it manually may be more flexible. Yves Savourel From: Chase Tingley [mailto:chase@spartansoftwareinc.com] On Mon, May 8, 2017 at 3:18 PM, Yves Savourel <ysavourel@enlaso.com> wrote:
Unfortunately, you are correct. The XLIFF spec doesn't even explain why this @id exists! Ugh.
I think the answer here needs to be coordinated both with the OM and probably with the regular TC as well. As written, you're right that JLIFF is taking a risk. I think this also gets at the point you were making in your other email about working entirely from XLIFF as opposed to working through an OM.
I don't have a strong opinion. However, I do have a question about whether the way nested metagroups are working caused you any problems. For example (from jliff-example3-0.9.3.json) -- "metadata" : [ { "category": "document", "appliesTo": "source", "meta": [ { "version" : "3" }, { "phase": "draft" }, { "category": "subgroup", "meta": [ { "breakfast" : "eggs" } ] } ] } ] From an implementation standpoint, do those objects need some sort of hint to deserializers that the first two (version, phase) are meta objects, and the third one is a metaGroup? |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]