GithubHelp home page GithubHelp logo

Comments (9)

tkarabela avatar tkarabela commented on May 28, 2024 1

Sure @toroConverter , I will add a parameter to keep all ASS tags as-in when saving to SRT. Thanks for using the library :)

from pysubs2.

toroConverter avatar toroConverter commented on May 28, 2024 1

Thanks for your fantastic work ;)

from pysubs2.

tkarabela avatar tkarabela commented on May 28, 2024 1

Hi @toroConverter , hopefully new version 1.4.1 solves your problem :) I've added parser option to keep all HTML tags, so if you use both options together it should keep everything.

import pysubs2
subs = pysubs2.load("test.srt", keep_html_tags=True)
subs.save("test-output.srt", keep_ssa_tags=True)

from pysubs2.

tkarabela avatar tkarabela commented on May 28, 2024

Hi @toroConverter it's in version 1.4.0 of the library:

subs.to_file("subs.srt", keep_ssa_tags=True)

(For completeness, it's also available as --srt-keep-ssa-tags from the CLI.)

from pysubs2.

toroConverter avatar toroConverter commented on May 28, 2024

Thanks a lot!

from pysubs2.

toroConverter avatar toroConverter commented on May 28, 2024

@tkarabela I think that you forgot to replace the text formatting tags.
Example of output save > {\i1}Blah blah blah{\i0}

from pysubs2.

tkarabela avatar tkarabela commented on May 28, 2024

So you would like to have both HTML tags and any ASS tags not convertible to HTML kept as-is, like this?

{\an7}Example <i>text</i>.

from pysubs2.

toroConverter avatar toroConverter commented on May 28, 2024

Yes, if it is possibile.
Very often I manage srt files that have both

from pysubs2.

toroConverter avatar toroConverter commented on May 28, 2024

@tkarabela it is working well! Thanks a lot for your effort ;)

from pysubs2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.