Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added xm #68

Merged
merged 1 commit into from
Aug 10, 2018
Merged

added xm #68

merged 1 commit into from
Aug 10, 2018

Conversation

KOLANICH
Copy link
Contributor

@KOLANICH KOLANICH commented Oct 16, 2017

It is not very ready (I'm stuck with problems with packed data, KOLANICH-specs@2e90f42, it surprisingly doesn't work even though it is consistent with the spec, it may be byte alignment issue (even though all the packed_note structs take integer count of bytes), I tried to remove align_to_ call from note and the parsing finished without an error (I have not verified the result)), but instrument part is quite ready.

title: Extended Module
application:
- FastTracker 2
- Protracker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please list only applications that originated the format, not all applications that support it. It's like you list only "Adobe Photoshop" for .psd, not all possible viewers / raster image editors with kind of support .psd.

- id: preheader
type: preheader
- id: header
size: preheader.header_size - 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't like prefixes proposed in the style guide that much (i.e. len_, num_, ofs_, etc)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I really don't like them:
1 it is a bit weird to put low-level details first and high-level last
2 combining verbose words with non-verbose ones also looks weird

Copy link
Member

@GreyCat GreyCat Oct 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, could you raise your concerns in kaitai-io/kaitai_struct#140? Current "silent protest" won't get us anywhere — I still think that any standard at all is better than no standard, and until we'll discuss your objections, I would just take time to enforce it manually, i.e. by fixing your contributions. This will, in turn, will probably just annoy you, because:

  • It takes longer time to get your ksys into this repository
  • After that, "that guy" comes and mangles it in a way you don't like it

I see that you do a lot of interesting stuff here, and it would be bad if all that would go to waste just because we couldn't agree on some basic stuff.

I actually have an idea. Can I contact you using your mail.ru address?

Copy link
Contributor Author

@KOLANICH KOLANICH Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually have an idea. Can I contact you using your mail.ru address?

Of course you can, but why not to discuss it on GH? Have I made you angry? If you contact by email, please leave a comment on GH about that.

After that, "that guy" comes and mangles it in a way you don't like

Completely OK: it's your repo, it's OK to do what you want in it, even completely wiping it.

Also
kaitai-io/kaitai_struct_doc#7

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you contact by email, please leave a comment on GH about that.

Confirming, I've sent you the e-mail.

file-extension: xm
license: Unlicense
endian: le
encoding: utf-8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, given that xm originated from FastTracker in early 1990s, I highly doubt that any utf-8 support existed back there at all.

Copy link
Contributor Author

@KOLANICH KOLANICH Oct 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is quite safe to put utf-8 everywhere where ASCII is assummed because it is compatible with ASCII and because it is natural to think about utf-8 as about ASCII extension.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I see, there are tons of xm modules which make liberal use of non-ASCII names everywhere, usually assuming something like cp437 or some similar IBM codepage.

Copy link
Contributor Author

@KOLANICH KOLANICH Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make it an array then. But it is not very good idea - ksy descriptions are also a documentation, module name is meant to be a string, but we don't have strings of unknown encoding for now.
How about encoding: ? triggering heuristical encoding detection?

@GreyCat GreyCat merged commit f67340f into kaitai-io:master Aug 10, 2018
@GreyCat
Copy link
Member

GreyCat commented Aug 10, 2018

@KOLANICH Thanks! Finally, I've got to merge this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants