libsub.git
2 months agoThrow a specific exception when no WEBVTT header is found. main v1.6.47
Carl Hetherington [Tue, 6 Feb 2024 10:32:26 +0000 (11:32 +0100)]
Throw a specific exception when no WEBVTT header is found.

3 months agoDon't convert pkg-config output to utf-8 v1.6.46
Benjamin Radel [Tue, 16 Jan 2024 19:39:05 +0000 (20:39 +0100)]
Don't convert pkg-config output to utf-8

Don't convert pkg-config output to utf-8 to prevent failure if obscure
non ascii characters are present

3 months agoMake SSA reader more tolerant of missing styles (DoM #2685). v1.6.45
Carl Hetherington [Fri, 22 Dec 2023 18:37:12 +0000 (19:37 +0100)]
Make SSA reader more tolerant of missing styles (DoM #2685).

13 months agoSupport single quotes in font color tags. v1.6.44
Carl Hetherington [Sat, 4 Mar 2023 20:57:22 +0000 (21:57 +0100)]
Support single quotes in font color tags.

13 months agoSupport font color attributes with alpha channel (even if it's ignored). v1.6.43
Carl Hetherington [Fri, 24 Feb 2023 21:32:13 +0000 (22:32 +0100)]
Support font color attributes with alpha channel (even if it's ignored).

13 months agoChange from_argb_hex() (which wasn't being used) to from_rgba_hex().
Carl Hetherington [Fri, 24 Feb 2023 21:31:51 +0000 (22:31 +0100)]
Change from_argb_hex() (which wasn't being used) to from_rgba_hex().

14 months agoFix format of versions in .pc files.
Carl Hetherington [Sun, 4 Dec 2022 23:35:38 +0000 (00:35 +0100)]
Fix format of versions in .pc files.

16 months agoRemove DCP subtitle support. v1.6.41
Carl Hetherington [Thu, 1 Dec 2022 21:44:38 +0000 (22:44 +0100)]
Remove DCP subtitle support.

This was only a thin wrapper around libdcp, used by videocon but
not by DCP-o-matic.  It seems very unlikely that anybody else will
want it, and the dependency of libsub on libdcp causes hassle that
will be gladly avoided.

16 months agoBump libdcp for new equality option. v1.6.40
Carl Hetherington [Thu, 24 Nov 2022 09:19:49 +0000 (10:19 +0100)]
Bump libdcp for new equality option.

17 months agoFix WebVTT milliseconds separator (should be . it seems, not ,) v1.6.39
Carl Hetherington [Sun, 13 Nov 2022 23:39:25 +0000 (00:39 +0100)]
Fix WebVTT milliseconds separator (should be . it seems, not ,)

17 months agoAllow SubripReader::convert_time to take a milliseconds separator.
Carl Hetherington [Sun, 13 Nov 2022 23:38:49 +0000 (00:38 +0100)]
Allow SubripReader::convert_time to take a milliseconds separator.

Maybe this method should just be on its own somewhere now.

17 months agoBe more tolerant of metadata in WebVTT.
Carl Hetherington [Sun, 13 Nov 2022 23:32:33 +0000 (00:32 +0100)]
Be more tolerant of metadata in WebVTT.

17 months agoAdd exception missing from previous commit.
Carl Hetherington [Sun, 13 Nov 2022 23:32:16 +0000 (00:32 +0100)]
Add exception missing from previous commit.

17 months agoAdd primitive WebVTT reader. v1.6.38
Carl Hetherington [Sun, 13 Nov 2022 18:46:35 +0000 (19:46 +0100)]
Add primitive WebVTT reader.

17 months agoMake SubripReader::convert_time usable by other classes.
Carl Hetherington [Sun, 13 Nov 2022 18:46:18 +0000 (19:46 +0100)]
Make SubripReader::convert_time usable by other classes.

17 months agoHandle unicode LINE SEPARATOR properly in subrip files. v1.6.37
Carl Hetherington [Thu, 10 Nov 2022 10:25:57 +0000 (11:25 +0100)]
Handle unicode LINE SEPARATOR properly in subrip files.

17 months agoBump libdcp for Z position fix. v1.6.36
Carl Hetherington [Thu, 3 Nov 2022 08:32:32 +0000 (09:32 +0100)]
Bump libdcp for Z position fix.

17 months agoBump libdcp for rec2020 fix. v1.6.35
Carl Hetherington [Mon, 17 Oct 2022 22:22:49 +0000 (00:22 +0200)]
Bump libdcp for rec2020 fix.

18 months agoMake iso6937.py work with Python 3 and update iso6937_tables.cc
Carl Hetherington [Sat, 15 Oct 2022 21:58:32 +0000 (23:58 +0200)]
Make iso6937.py work with Python 3 and update iso6937_tables.cc

18 months agoBump libdcp for encrypted 3D verification crash fix. v1.6.34
Carl Hetherington [Tue, 11 Oct 2022 22:46:59 +0000 (00:46 +0200)]
Bump libdcp for encrypted 3D verification crash fix.

18 months agoBump libdcp for DoM #2344. v1.6.33
Carl Hetherington [Mon, 26 Sep 2022 18:40:17 +0000 (20:40 +0200)]
Bump libdcp for DoM #2344.

18 months agoAlso bump asdcplib. v1.6.32
Carl Hetherington [Mon, 19 Sep 2022 22:06:27 +0000 (00:06 +0200)]
Also bump asdcplib.

18 months agoBump waf here and in libdcp for Python 3.10 support. v1.6.31
Carl Hetherington [Mon, 19 Sep 2022 21:58:37 +0000 (23:58 +0200)]
Bump waf here and in libdcp for Python 3.10 support.

19 months agoBump libdcp for rating fixes. v1.6.30
Carl Hetherington [Sat, 3 Sep 2022 21:07:50 +0000 (23:07 +0200)]
Bump libdcp for rating fixes.

19 months agoBump libdcp for ContentKind fixes. v1.6.29
Carl Hetherington [Sat, 3 Sep 2022 15:11:22 +0000 (17:11 +0200)]
Bump libdcp for ContentKind fixes.

19 months agoCorrectly parse \c tags in SSA (with no specified colour) to return to PrimaryColour.
Carl Hetherington [Fri, 2 Sep 2022 21:37:33 +0000 (23:37 +0200)]
Correctly parse \c tags in SSA (with no specified colour) to return to PrimaryColour.

This seems to be what libssa does.

20 months agoBump libdcp to be more tolerant of some missing XML tags. v1.6.28
Carl Hetherington [Mon, 15 Aug 2022 17:15:34 +0000 (19:15 +0200)]
Bump libdcp to be more tolerant of some missing XML tags.

20 months agoFix parsing of SSA colour tags which have their leading zeros omitted. v1.6.27
Carl Hetherington [Wed, 10 Aug 2022 18:58:19 +0000 (20:58 +0200)]
Fix parsing of SSA colour tags which have their leading zeros omitted.

20 months agoAdd some more tests.
Carl Hetherington [Wed, 10 Aug 2022 08:48:37 +0000 (10:48 +0200)]
Add some more tests.

20 months agoCleanup: tidy up a test.
Carl Hetherington [Wed, 10 Aug 2022 08:44:35 +0000 (10:44 +0200)]
Cleanup: tidy up a test.

21 months agoIt seems likely that SSA font sizes should be interpreted as v1.6.26
Carl Hetherington [Mon, 18 Jul 2022 21:09:12 +0000 (23:09 +0200)]
It seems likely that SSA font sizes should be interpreted as
1 point == 1 pixel; let's try that.

21 months agoBump libdcp for bug fix. v1.6.25
Carl Hetherington [Fri, 15 Jul 2022 08:59:22 +0000 (10:59 +0200)]
Bump libdcp for bug fix.

21 months agoBump libdcp v1.6.24
Carl Hetherington [Thu, 14 Jul 2022 22:22:15 +0000 (00:22 +0200)]
Bump libdcp

21 months ago(More) properly support MarginV in SSA/ASS.
Carl Hetherington [Tue, 5 Jul 2022 22:55:37 +0000 (00:55 +0200)]
(More) properly support MarginV in SSA/ASS.

21 months agoFix pretty broken SSA alignment code.
Carl Hetherington [Tue, 5 Jul 2022 21:15:37 +0000 (23:15 +0200)]
Fix pretty broken SSA alignment code.

21 months agoAllow running tests on Fedora.
Carl Hetherington [Tue, 5 Jul 2022 21:07:05 +0000 (23:07 +0200)]
Allow running tests on Fedora.

21 months agoBump libdcp for macOS warning fix. v1.6.23
Carl Hetherington [Tue, 21 Jun 2022 09:47:41 +0000 (11:47 +0200)]
Bump libdcp for macOS warning fix.

21 months agoBump asdcplib for build fix. v1.6.22
Carl Hetherington [Mon, 20 Jun 2022 11:05:35 +0000 (13:05 +0200)]
Bump asdcplib for build fix.

22 months agoBump asdcplib for more logging.
Carl Hetherington [Mon, 13 Jun 2022 22:35:05 +0000 (00:35 +0200)]
Bump asdcplib for more logging.

22 months agoBump libdcp. v1.6.21
Carl Hetherington [Sun, 5 Jun 2022 21:50:57 +0000 (23:50 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.20
Carl Hetherington [Thu, 12 May 2022 06:21:28 +0000 (08:21 +0200)]
Bump libdcp.

23 months agoBump libdcp.
Carl Hetherington [Sun, 8 May 2022 22:57:48 +0000 (00:57 +0200)]
Bump libdcp.

23 months agoBump libdcp.
Carl Hetherington [Sun, 8 May 2022 22:41:43 +0000 (00:41 +0200)]
Bump libdcp.

23 months agoBump libdcp.
Carl Hetherington [Thu, 5 May 2022 22:34:20 +0000 (00:34 +0200)]
Bump libdcp.

23 months agoBump asdcplib to match libdcp.
Carl Hetherington [Thu, 5 May 2022 21:47:18 +0000 (23:47 +0200)]
Bump asdcplib to match libdcp.

23 months agoBump libdcp.
Carl Hetherington [Thu, 5 May 2022 21:38:25 +0000 (23:38 +0200)]
Bump libdcp.

23 months agoBump libdcp (right this time).
Carl Hetherington [Thu, 5 May 2022 21:07:06 +0000 (23:07 +0200)]
Bump libdcp (right this time).

23 months agoBump libdcp.
Carl Hetherington [Thu, 5 May 2022 21:05:47 +0000 (23:05 +0200)]
Bump libdcp.

23 months agoMissing asdcplib bump.
Carl Hetherington [Sun, 1 May 2022 19:14:55 +0000 (21:14 +0200)]
Missing asdcplib bump.

23 months agoBump libdcp.
Carl Hetherington [Sun, 1 May 2022 18:48:46 +0000 (20:48 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.19
Carl Hetherington [Sat, 30 Apr 2022 21:52:36 +0000 (23:52 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.18
Carl Hetherington [Sat, 30 Apr 2022 19:22:05 +0000 (21:22 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.17
Carl Hetherington [Fri, 22 Apr 2022 10:48:47 +0000 (12:48 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.16
cah [Thu, 21 Apr 2022 23:05:33 +0000 (01:05 +0200)]
Bump libdcp.

23 months agoBump libdcp. v1.6.15
Carl Hetherington [Wed, 20 Apr 2022 19:14:47 +0000 (21:14 +0200)]
Bump libdcp.

2 years agoAdd missing override. v1.6.14
Carl Hetherington [Sat, 9 Apr 2022 12:06:25 +0000 (14:06 +0200)]
Add missing override.

2 years agoBump libdcp. v1.6.13
Carl Hetherington [Thu, 24 Mar 2022 12:33:03 +0000 (13:33 +0100)]
Bump libdcp.

2 years agoBump libdcp. v1.6.12
cah [Tue, 15 Mar 2022 14:36:46 +0000 (15:36 +0100)]
Bump libdcp.

2 years agoBump libdcp version. v1.6.11
Carl Hetherington [Sat, 19 Mar 2022 21:32:29 +0000 (22:32 +0100)]
Bump libdcp version.

2 years agoBump libdcp for build fix. v1.6.10
cah [Thu, 3 Mar 2022 21:29:12 +0000 (22:29 +0100)]
Bump libdcp for build fix.

2 years agoBump libdcp to 1.8.9. v1.6.9
cah [Thu, 3 Mar 2022 21:11:26 +0000 (22:11 +0100)]
Bump libdcp to 1.8.9.

2 years agoAdd -x32/-x64 suffix to boost libraries when building for Windows. v1.6.8
Carl Hetherington [Tue, 22 Feb 2022 21:58:19 +0000 (22:58 +0100)]
Add -x32/-x64 suffix to boost libraries when building for Windows.

2 years agoBump libdcp to 1.8.7. v1.6.7
Carl Hetherington [Sat, 12 Feb 2022 22:14:53 +0000 (23:14 +0100)]
Bump libdcp to 1.8.7.

2 years agoBump libdcp. v1.6.6
Carl Hetherington [Mon, 17 Jan 2022 19:03:18 +0000 (20:03 +0100)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Tue, 4 Jan 2022 20:55:45 +0000 (20:55 +0000)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Tue, 4 Jan 2022 00:10:29 +0000 (00:10 +0000)]
Bump libdcp.

2 years agoBump libdcp to 1.8.5. v1.6.5
Carl Hetherington [Tue, 9 Nov 2021 22:50:11 +0000 (23:50 +0100)]
Bump libdcp to 1.8.5.

2 years agoBump libdcp to 1.8.4. v1.6.4
Carl Hetherington [Sun, 24 Oct 2021 19:04:36 +0000 (21:04 +0200)]
Bump libdcp to 1.8.4.

2 years agoBump libdcp for <Space> tag implementation. v1.6.3
Carl Hetherington [Sat, 16 Oct 2021 20:50:32 +0000 (22:50 +0200)]
Bump libdcp for <Space> tag implementation.

2 years agoTidy up a little.
Carl Hetherington [Fri, 8 Oct 2021 10:53:46 +0000 (12:53 +0200)]
Tidy up a little.

2 years agoBump to libdcp 1.8.2. v1.6.2
Carl Hetherington [Fri, 8 Oct 2021 10:52:05 +0000 (12:52 +0200)]
Bump to libdcp 1.8.2.

2 years agoRequire libdcp 1.8.1. v1.6.1
Carl Hetherington [Thu, 7 Oct 2021 20:53:13 +0000 (22:53 +0200)]
Require libdcp 1.8.1.

2 years agoMerge. v1.6.0
Carl Hetherington [Sun, 3 Oct 2021 20:31:18 +0000 (22:31 +0200)]
Merge.

2 years agoRequire libdcp 1.8.0.
Carl Hetherington [Sun, 3 Oct 2021 20:30:57 +0000 (22:30 +0200)]
Require libdcp 1.8.0.

2 years agoBump libdcp for verification fixes.
Carl Hetherington [Wed, 11 Aug 2021 23:25:48 +0000 (01:25 +0200)]
Bump libdcp for verification fixes.

2 years agoBump libdcp.
Carl Hetherington [Wed, 4 Aug 2021 20:46:30 +0000 (22:46 +0200)]
Bump libdcp.

2 years agoHandle angle brackets / tags better in SubRip files.
Carl Hetherington [Sun, 1 Aug 2021 00:01:06 +0000 (02:01 +0200)]
Handle angle brackets / tags better in SubRip files.

Before we would assume that < starts a tag, and so parse things
like << some text >> incorrectly.  Now we search for the tags
we are interested in and pass anything else through.

2 years agoRemove some out-of-date comments.
Carl Hetherington [Sat, 31 Jul 2021 16:05:25 +0000 (18:05 +0200)]
Remove some out-of-date comments.

2 years agoBump libdcp.
Carl Hetherington [Thu, 15 Jul 2021 12:09:34 +0000 (14:09 +0200)]
Bump libdcp.

2 years agoFix boost bind warning.
Carl Hetherington [Wed, 14 Jul 2021 17:15:43 +0000 (19:15 +0200)]
Fix boost bind warning.

2 years agoBump libdcp.
Carl Hetherington [Thu, 24 Jun 2021 15:02:50 +0000 (17:02 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Fri, 18 Jun 2021 18:02:04 +0000 (20:02 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Sat, 12 Jun 2021 18:53:03 +0000 (20:53 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Fri, 4 Jun 2021 20:29:58 +0000 (22:29 +0200)]
Bump libdcp.

2 years agoFix line numbers in binary STL files.
Carl Hetherington [Thu, 3 Jun 2021 19:08:37 +0000 (21:08 +0200)]
Fix line numbers in binary STL files.

Here we make sure that line numbers end up not larger than the
MNR (maximum number of rows) to try to avoid subtitles going
off the screen.

2 years agoAdd "U8" character code table for binary STL.
Carl Hetherington [Thu, 3 Jun 2021 14:13:58 +0000 (16:13 +0200)]
Add "U8" character code table for binary STL.

A file was sent that has "U8" as a STL CCT.  I presume this means
"UTF-8" but I can't see any documentation about it anywhere.

This change accepts U8 as a CCT.  It doesn't look like this value
is actually used anywhere to change how text is parsed, but at
least it doesn't fail now.

2 years agoSmall C++11 tidy-up.
Carl Hetherington [Thu, 3 Jun 2021 14:05:26 +0000 (16:05 +0200)]
Small C++11 tidy-up.

2 years agoBump libdcp.
Carl Hetherington [Tue, 1 Jun 2021 23:45:04 +0000 (01:45 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Thu, 27 May 2021 12:26:13 +0000 (14:26 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Fri, 7 May 2021 16:22:07 +0000 (18:22 +0200)]
Bump libdcp.

2 years agoBump libdcp.
Carl Hetherington [Fri, 7 May 2021 16:16:01 +0000 (18:16 +0200)]
Bump libdcp.

2 years agoBump libdcp for fix to DoM bug #1976.
Carl Hetherington [Thu, 22 Apr 2021 20:00:45 +0000 (22:00 +0200)]
Bump libdcp for fix to DoM bug #1976.

3 years agoBump libdcp.
Carl Hetherington [Wed, 14 Apr 2021 14:50:04 +0000 (16:50 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Wed, 14 Apr 2021 14:31:08 +0000 (16:31 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Tue, 13 Apr 2021 23:00:42 +0000 (01:00 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Mon, 12 Apr 2021 20:18:27 +0000 (22:18 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Fri, 9 Apr 2021 21:50:24 +0000 (23:50 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Thu, 8 Apr 2021 22:02:35 +0000 (00:02 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Thu, 8 Apr 2021 18:42:49 +0000 (20:42 +0200)]
Bump libdcp.

3 years agoBump libdcp.
Carl Hetherington [Tue, 6 Apr 2021 12:34:42 +0000 (14:34 +0200)]
Bump libdcp.