opustags/CONTRIBUTING.md
2020-12-26 16:51:36 +01:00

2.9 KiB

Contributing to opustags

opustags should now be mature enough, and contributions for new features are welcome.

Before you open a pull request, you might want to talk about the change you'd like to make to make sure it's relevant. In that case, feel free to open an issue. You can expect a response within a week.

Submitting pull requests

opustags has nothing really special, so basic git etiquette is just enough.

Please make focused pull requests, one feature at a time. Don't make huge commits. Give clear names to your commits and pull requests. Extended descriptions are welcome.

Stay objective in your changes. Adding a feature or fixing a bug is a clear improvement, but stylistic changes like renaming a function or moving a few braces around won't help the project move forward.

You should check that your changes don't break the test suite by running make check

Following these practices is important to keep the history clean, and to allow for better code reviews.

History of opustags

opustags is originally a small project made to fill a need to edit tags in Opus audio files when most taggers didn't support Opus at all. It was written in C with libogg, and should be very light and fast compared to most alternatives. However, because it was written on a whim, the code is hardly structured and might even be fragile, who knows.

An ambitious desire to rewrite it in C++ with bells and whistles gave birth to the next branch, but sadly it wasn't finalized and is currently not usable, though it contains good pieces of code.

With the growing support of Opus in tag editors, the usefulness of opustags was questioned, and it was thus abandoned for a few years. Judging by the inquiries and contributions, albeit few, on GitHub, it looks like it remains relevant, so let's dust it off a bit.

Today, opustags is written in C++ and features a unit test suite in C++, and an integration test suite in Perl. The code was refactored, organized into modules, and reviewed for safety.

1.3.0 was focused on correctness, and detects edge cases as early as possible, instead of hoping something will eventually fail if something is weird.

Candidate features

The code contains a few \todo markers where something could be improved in the code.

More generally, here are a few features that could be added in the future:

  • Discouraging non-ASCII field names.
  • Logicial stream listing and selection for multiplexed files.
  • Escaping control characters with --escape.
  • Dump binary packets with --binary.
  • Edition of the vendor string.
  • Edition of the arbitrary binary block past the comments.
  • Support for OpusTags packets spanning multiple pages (> 64 kB).
  • Interactive edition of comments inside the EDITOR (--edit).
  • Support for cover arts.
  • Load tags from a file with --set-all=tags.txt.
  • Colored output.

Don't hesitate to contact me before you do anything, I'll give you directions.