From cda24b662b7eb3fd988eb08b6fd14f18d65bd4a8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 12 Apr 2016 15:05:45 +0100 Subject: Parse Interop subtitle directions. --- src/types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.cc b/src/types.cc index 30c565c9..7853d11c 100644 --- a/src/types.cc +++ b/src/types.cc @@ -253,11 +253,11 @@ dcp::direction_to_string (Direction v) Direction dcp::string_to_direction (string s) { - if (s == "ltr") { + if (s == "ltr" || s == "horizontal") { return DIRECTION_LTR; } else if (s == "rtl") { return DIRECTION_RTL; - } else if (s == "ttb") { + } else if (s == "ttb" || s == "vertical") { return DIRECTION_TTB; } else if (s == "btt") { return DIRECTION_BTT; -- cgit v1.2.3