Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@Tomac1

Description

@Tomac1
Issue body actions

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).
Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.