Frédéric Mangano
89dc000927
Rework the encoding converter to support std::u8string
2023-03-03 15:03:07 +09:00
Frédéric Mangano
befae72d2a
Support reading the cover art from a stream
2023-03-02 16:21:25 +09:00
Frédéric Mangano
46cc78bfff
Deduce the cover’s MIME type from its signature
2023-03-02 15:17:41 +09:00
Frédéric Mangano
558160d5c3
Add option --set-cover
2023-03-01 18:32:13 +09:00
Frédéric Mangano
74e42ee917
Introduce byte strings
2023-02-28 17:04:03 +09:00
Frédéric Mangano
92b320f9d9
Warn on multiple cover arts
2023-02-28 15:41:09 +09:00
Frédéric Mangano
ec68f5c0e9
Add option --output-cover
2023-02-27 12:22:28 +09:00
Frédéric Mangano
66fb3574a1
Implement embedded picture decoding
2023-02-27 12:22:28 +09:00
Frédéric Mangano
9652f50316
Allow std literals everywhere
2023-02-22 17:15:21 +09:00
Frédéric Mangano
a435a28e9f
Implement base64 encoding and decoding
2023-02-22 17:15:21 +09:00
Frédéric Mangano
55e7e9b64e
Fix a rare error message in run_single()
2023-02-21 16:02:22 +09:00
Frédéric Mangano
2afd126380
Release 1.7.0
2023-02-13 11:25:37 +09:00
Frédéric Mangano
3b20617de4
Parse continuation lines in --set-all
2023-02-10 15:21:07 +09:00
Frédéric Mangano
d8a1a78274
Decode --set-all’s input before parsing it
...
getline may return bytes in a non-ASCII compatible encoding, so it’s safer to look for the key
characters after the conversion than before.
2023-02-10 15:20:59 +09:00
Frédéric Mangano
6d6722fb24
Support multiline tags in non-UTF-8 environments
...
The \t to \t\n substitution assumed an ASCII-compatible environment and would not have worked under
UTF-16. It’s therefore safer to perform the operation before the encoding conversion.
2023-02-07 15:59:44 +09:00
b9
d95fd45aef
Format multiline tags with TAB for continuation
2023-02-07 15:12:33 +09:00
Frédéric Mangano
7eea19633c
Support multiple-page OpusTags packets
2023-02-02 15:05:37 +09:00
Frédéric Mangano
d88498e4fd
Renumber the pages past the OpusTags packet
...
We will soon be able to process OpusTags packets spanning multiple pages, which would offset the
page number of all the succeeding pages. This change prepares the process loop for that feature.
2023-02-02 15:05:37 +09:00
Frédéric Mangano
bbe03f8030
Add .editorconfig
2023-01-27 15:54:37 +09:00
Frédéric Mangano
953ae490d4
Fix the test suite on macOS
2023-01-27 15:53:15 +09:00
Frédéric Mangano
ba435b26a4
Upgrade to C++20
2023-01-27 15:37:03 +09:00
Frédéric Mangano
712830e247
Mention in the README that opustags is tag-agnostic
2022-05-09 20:59:35 +02:00
Frédéric Mangano
a898ed4877
Finalize the migration for using exceptions
2021-01-17 15:54:23 +01:00
Frédéric Mangano
d453af2563
Migrate the system module to use exceptions
2021-01-17 15:43:16 +01:00
Frédéric Mangano
8a54361b8f
Migrate the opus module to use exceptions
2021-01-17 15:07:56 +01:00
Frédéric Mangano
1c03c31e82
Migrate the ogg module to use exceptions
2021-01-17 14:58:50 +01:00
Frédéric Mangano
b8f2518ef5
Move the page counting logic in the Ogg reader
2021-01-17 14:41:36 +01:00
Frédéric Mangano
6758ae23ff
Migrate the cli module to use exeptions
2021-01-17 12:55:30 +01:00
Frédéric Mangano
937cdc37a7
Exit with 2 on CLI arguments error
2021-01-17 12:36:22 +01:00
Frédéric Mangano
51c7f29c1a
Make the top-level functions deal with exceptions
2021-01-17 12:32:38 +01:00
Frédéric Mangano
ea00b8fd80
Update the CMake version requirement to 3.11
...
This is required for FindIconv.
2021-01-08 19:05:31 +01:00
Frédéric Mangano
2d5db09bda
Release 1.6.0
2021-01-01 11:41:03 +01:00
Frédéric Mangano
3e0b3fa56e
Make encoding errors fatal
...
With --raw there is a workaround.
The tolerant approach was cool and nice until you want to edit something
non-interactively and get the warning telling you you might have lost
data after the file was written. Failing fast is most likely the better
option here.
2020-12-27 10:55:25 +01:00
Frédéric Mangano
3e7b42062a
Discard incompatible comments entirely
...
//IGNORE is not portable either. Now that we have --raw it’s less an
issue though.
2020-12-27 10:55:20 +01:00
Frédéric Mangano
4cae6c44ee
Introduce --raw for disabling transcoding
2020-12-26 16:51:36 +01:00
Frédéric Mangano
6db7f07bd5
Factor CLI argument transcoding
2020-12-26 13:00:20 +01:00
Frédéric Mangano
fd5fa3cd5f
Make ot::encoding_converter use string views
2020-12-26 12:42:37 +01:00
Frédéric Mangano
c43704a0a7
Use //IGNORE instead of //TRANSLIT when transcoding
...
//TRANSLIT is not a well supported, and in most cases there’s not much
transliteration can help with when the encoding is limiting. Besides,
it sounds reasonable to assume most people use UTF-8 nowadays.
2020-12-26 12:30:44 +01:00
Frédéric Mangano
f98208c1a1
Support the various stat structures across systems
2020-11-25 20:07:23 +01:00
Frédéric Mangano
64fc6f8f6d
Include config.h globally
2020-11-25 20:05:46 +01:00
Frédéric Mangano
1d03da324c
Release 1.5.1
2020-11-21 11:05:56 +01:00
Frédéric Mangano
30b7f44ead
Include endian.h or sys/endian.h depending on the platform
2020-11-14 20:27:08 +01:00
Frédéric Mangano
b8c8be453f
Include headers for mkstemps
...
Linux requires <stdlib.h>, but FreeBSD requires <unistd.h>.
2020-11-14 18:18:42 +01:00
Frédéric Mangano
4a1b8705cc
Release 1.5.0
2020-11-08 10:32:46 +01:00
Frédéric Mangano
7c8396ca45
run_editor: Pass the editor command through the shell
...
wordexp doesn’t work on OpenBSD, and escaping the path ourselves then
calling system() is actually easier than using wordexp.
2020-11-01 11:57:48 +01:00
Frédéric Mangano
639d46ed0f
Introduce ot::shell_escape
2020-11-01 10:41:24 +01:00
Frédéric Mangano
d54bada7e6
Open handles with O_CLOEXEC
...
opustags’s only use of a sub-process is for spawning the EDITOR, and we
don’t want it to access our file handles.
2020-10-31 18:44:46 +01:00
Frédéric Mangano
57a4c0d5a0
Flush the writer before exec’ing
...
In the unlikely event the child process fails without exec’ing, we don’t
want both the child process and parent process to flush the OpusHead
header.
Thanks @omar-polo for reporting this!
2020-10-31 18:44:46 +01:00
Frédéric Mangano
d071b6cabd
Fix error reporting when EDITOR fails
2020-10-31 18:10:33 +01:00
Frédéric Mangano
d8c36a3d3f
Forbid mixing --edit with non-interactive edition options
2020-10-31 12:15:01 +01:00