Strip Unicode U+202B (right-to-left-embedding) code; it looks like DoM does RTL ...
[libsub.git] / src / vertical_reference.cc
index 69f9d8436f7da569fd17c2d562297c2e27b7b6a5..d7833a1c9caa8451d92f540ff1021e321c7eb515 100644 (file)
@@ -28,12 +28,12 @@ VerticalReference
 sub::string_to_vertical_reference (string s)
 {
        if (s == "top") {
-               return TOP;
+               return TOP_OF_SCREEN;
        } else if (s == "center") {
-               return CENTRE;
+               return VERTICAL_CENTRE_OF_SCREEN;
        } else if (s == "bottom") {
-               return BOTTOM;
+               return BOTTOM_OF_SCREEN;
        }
-       
+
        throw XMLError ("unknown subtitle valign type");
 }