| 1 | # Contributing to opustags |
| 2 | |
| 3 | opustags should now be mature enough, and contributions for new features are |
| 4 | welcome. |
| 5 | |
| 6 | Before you open a pull request, you might want to talk about the change you'd |
| 7 | like to make to make sure it's relevant. In that case, feel free to open an |
| 8 | issue. You can expect a response within a week. |
| 9 | |
| 10 | ## Submitting pull requests |
| 11 | |
| 12 | opustags has nothing really special, so basic git etiquette is just enough. |
| 13 | |
| 14 | Please make focused pull requests, one feature at a time. Don't make huge |
| 15 | commits. Give clear names to your commits and pull requests. Extended |
| 16 | descriptions are welcome. |
| 17 | |
| 18 | Stay objective in your changes. Adding a feature or fixing a bug is a clear |
| 19 | improvement, but stylistic changes like renaming a function or moving a few |
| 20 | braces around won't help the project move forward. |
| 21 | |
| 22 | You should check that your changes don't break the test suite by running |
| 23 | `make check` |
| 24 | |
| 25 | Following these practices is important to keep the history clean, and to allow |
| 26 | for better code reviews. |
| 27 | |
| 28 | You can submit pull requests on GitHub at <https://github.com/fmang/opustags>, |
| 29 | or email me your patches at <[email protected]>. |
| 30 | |
| 31 | ## History of opustags |
| 32 | |
| 33 | opustags is originally a small project made to fill a need to edit tags in Opus |
| 34 | audio files when most taggers didn't support Opus at all. It was written in C |
| 35 | with libogg, and should be very light and fast compared to most alternatives. |
| 36 | However, because it was written on a whim, the code is hardly structured and |
| 37 | might even be fragile, who knows. |
| 38 | |
| 39 | An ambitious desire to rewrite it in C++ with bells and whistles gave birth to |
| 40 | the `next` branch, but sadly it wasn't finalized and is currently not usable, |
| 41 | though it contains good pieces of code. |
| 42 | |
| 43 | With the growing support of Opus in tag editors, the usefulness of opustags was |
| 44 | questioned, and it was thus abandoned for a few years. Judging by the |
| 45 | inquiries and contributions, albeit few, on GitHub, it looks like it remains |
| 46 | relevant, so let's dust it off a bit. |
| 47 | |
| 48 | Today, opustags is written in C++ and features a unit test suite in C++, and |
| 49 | an integration test suite in Perl. The code was refactored, organized into |
| 50 | modules, and reviewed for safety. |
| 51 | |
| 52 | 1.3.0 was focused on correctness, and detects edge cases as early as possible, |
| 53 | instead of hoping something will eventually fail if something is weird. |
| 54 | |
| 55 | Subsequent releases have been adding new features. |
| 56 | |
| 57 | ## Candidate features |
| 58 | |
| 59 | The code contains a few `\todo` markers where something could be improved in the |
| 60 | code. |
| 61 | |
| 62 | More generally, here are a few features that could be added in the future: |
| 63 | |
| 64 | - Discouraging non-ASCII field names. |
| 65 | - Logicial stream listing and selection for multiplexed files. |
| 66 | - Escaping control characters with --escape. |
| 67 | - Edition of the arbitrary binary block past the comments. |
| 68 | - Colored output. |
| 69 | |
| 70 | Don't hesitate to contact me before you do anything, I'll give you directions. |