Skip to content

Using translate_document with SRT format leads to Internal Server Error or broken HTML #146

@Tomac1

Description

@Tomac1

When I send SRT document for translation with translate_document method and I have encountered two problems:

  1. If SRT is missing a paired html tag, for example <i>, then Internal server error is returned. ** I would expect a more understandable error message.** It takes a long time to figure out what the error is. Example:
504
10:19:30,427 --> 10:19:33,028
It's a work in progress,
but here it goes.</i>
  1. If I send this title for translation:
504
10:19:30,427 --> 10:19:33,028
<i>It's a work in progress,
but here it goes.</i>

then DeepL will add additional tags to the end and beginning of the lines. That would be fine, but unfortunately it will also remove important line breaks and merge two sentences into one! Example:

504
10:19:30,427 --> 10:19:33,028
<i>It's a work in progress,</i><i>but here it goes.</i>

We do not want automatic HTML correction. Not under these circumstances!

  1. SRT is not usable for documents. I am currently solving this by using the TXT format for SRT (sad).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions