Skip to content

Support vw and vh units in subtitles #234

@ghost

Description

I have a TTML/DFXP subtitle file that pycaption can't parse due to vw and vh units:

CaptionReadSyntaxError: CaptionReadSyntaxError((ValueError('The specified value is not valid because its unit is not recognized: 80vw. The only supported units are: PIXEL, EM, PERCENT, CELL, PT'),))

It would be nice to have support for those units. I have attached an example file.

example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions