KTX-Specification icon indicating copy to clipboard operation
KTX-Specification copied to clipboard

It may make sense to rewrite the specs defining binary structures here from pseudocode into Kaitai Struct

Open KOLANICH opened this issue 3 years ago • 6 comments

This would allow to automatically generate parsers for them for multiple languages.

KOLANICH avatar Mar 14 '21 19:03 KOLANICH

Until you opened this issue I was unaware of Kaitai. Thanks for pointing it out to me. I took a look at the web site and also at the Kaitai definition for PNG. My conclusions are:

  1. I would like to provide a Kaitai struct for .ktx2.
  2. It is more complicated than I have time to learn.
  3. It is too complex (maybe just long-winded) for me to want to replace the short pseudo-code at the start of the spec. with it.

I would welcome a contribution of a .ktx2 definition.

I am curious about the intended meaning of kaitai. The kanji character used on the web page is 力 (ryoku) which means power. However none of the homonyms of "kaitai" that I am aware of use 力 and all have fairly negative meanings, e.g. demolish, coastal erosion, absconding with money. Maybe it doesn't come from Japanese even though it sounds like it.

MarkCallow avatar May 05 '21 06:05 MarkCallow

I am curious about the intended meaning of kaitai.

I think they meant something like disassembly / dismantling.

lexaknyazev avatar May 05 '21 07:05 lexaknyazev

I am curious about the intended meaning of kaitai. The kanji character used on the web page is 力 (ryoku) which means power. However none of the homonyms of "kaitai" that I am aware of use 力 and all have fairly negative meanings, e.g. demolish, coastal erosion, absconding with money. Maybe it doesn't come from Japanese even though it sounds like it.

It is named after https://en.wikipedia.org/wiki/Kaitai_Shinsho .

KOLANICH avatar May 10 '21 19:05 KOLANICH