Skip to content

Feature Req: 'flexible_max_line_width' #428

@GOvEy1nw

Description

@GOvEy1nw

I'm not sure how easy this would be to implement, but while --standard works a treat for the most part, I've found that there are often times where a final word or two end up on their own section, for example:

81
00:07:40,330 --> 00:07:43,430
They're old, old Virginia money,
plantations, shipping and industry,

82
00:07:43,610 --> 00:07:43,910
arms.

I think the ability to flexibly assign 'padding' for 'max_line_width' parameter could solve this issue.

For example, setting --flex_line_width 3 would allow a buffer of up to 3 additional words on the second line (beyond the set max_line_width value), but only if a full stop occurs within those 3 words. So in the case of:

81
00:07:40,330 --> 00:07:43,430
They're old, old Virginia money,
plantations, shipping and industry,

82
00:07:43,610 --> 00:07:43,910
arms.

--flex_line_width 3 would make it:

81
00:07:40,330 --> 00:07:43,910
They're old, old Virginia money,
plantations, shipping and industry, arms.

I hope that makes sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions