Giter VIP home page Giter VIP logo

ass-parser's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

totto16

ass-parser's Issues

Improve library

  • Add toggleable timestamp parsing: almost every time I use this parser I need to implement a timestamp parser/stringifier
  • Add toggleable tag parsing: event.value.Text gets converted from a string to an Tag[] representing the tags
  • Document the Tag object (which can be a Class or a POJO)
  • Add helper functions:
    • One to convenient get Info, Styles and Events sections
    • One to iterate sections ignoring formatting lines
    • One to transform the Style section into a Map<StyleName> and vice-versa

Also, ass-stringify should be updated to support stringifying those features.

Empty text.

Hi, in some lines where the text is enclosed in animation tags, the text is Empty.

Example

Dialogue: 0,0:06:23.04,0:06:23.96,top,Text,0000,0000,0000,,{\b1\c&H000200&\3c&HFFFFFF&}ЖАРЕНАЯ РЫБА{\b0}
Dialogue: 0,0:06:24.67,0:06:25.63,top,Text,0000,0000,0000,,{\b1\c&H000200&\3c&HFFFFFF&}СУП С ЖАРЕНОЙ РЫБОЙ{\b0}
Dialogue: 0,0:06:26.17,0:06:27.21,top,Text,0000,0000,0000,,{\b1\c&H000200&\3c&HFFFFFF&}САЛАТ С ЖАРЕНОЙ РЫБОЙ{\b1\b0}
Dialogue: 0,0:06:27.92,0:06:28.92,top,Text,0000,0000,0000,,{\b1\c&H000200&\3c&HFFFFFF&}ДЕСЕРТ ИЗ ЖАРЕНОЙ РЫБЫ{\b1\b0}
Dialogue: 0,0:06:29.55,0:06:30.28,top,Text,0000,0000,0000,,{\b1\c&H000200&\3c&HFFFFFF&}ЧТО-ТО С ЖАРЕНОЙ РЫБОЙ{\b1\b0}

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.