Giter Club home page Giter Club logo

sabre.js's People

Contributors

eleontev avatar geraalcantara avatar ilovepie avatar notacsstudent avatar octo-git avatar sachinraja avatar segfal avatar tcnevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sabre.js's Issues

Get Pre-commit hooks working.

Get pre-commit hooks working for prettier and eslint.

eslint needs to have compatibility configs for both closure compiler and prettier and.

Prettier should have the following options configured:

{
    “tabWidth”: 4,
    “quoteProps”: “preserve”,
    “trailingComma”: “none”
}

`&H` is optional in hex parsing

The parser simply drops leading and trailing &s and Hs from hex strings before parsing them, they're not actually used for matching. Additionally, hex args can have a 0x prefix (any &H must come before that, if present).

Color storage in styles handled incorrectly.

colors are mapped to the primary color.
See src/style.js:111, src/style.js:118, src/style.js:125, src/style.js:132, src/style.js:139 and src/style.js:146

SABRE.js/src/style.js

Lines 109 to 149 in 4e0a42a

"setSecondaryColor":{
value: function(/** SSAColor */color){
obj.primaryColor = color;
},
writable: false
},
"getSecondaryColor":{
value: function(){
return obj.primaryColor;
},
writable: false
},
"setTertiaryColor":{
value: function(/** SSAColor */color){
obj.primaryColor = color;
},
writable: false
},
"getTertiaryColor":{
value: function(){
return obj.primaryColor;
},
writable: false
},
"setQuaternaryColor":{
value: function(/** SSAColor */color){
obj.primaryColor = color;
},
writable: false
},
"getQuaternaryColor":{
value: function(){
return obj.primaryColor;
},
writable: false
},

Vertical line artifacting on subtitles.

Describe the bug
Vertical line artifacts appear on subtitles.

To Reproduce
Unknown at this time.

Expected behavior
There should be no vertical lines appearing between letters.

Screenshots and Test Cases
TODO: Add some screenshots

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: All

Add support for the browser debugging tools by adding function names in addition to the variable names.

This is a simple change, we need someone to go through and change the functions like so:

     _parseTime: {
        /**
         * Parses a string into a time
         * @param {string} timestring the string containing the time.
         * @return {number} time in seconds.
         */
        value: function (timestring) {
            let array = timestring.split(":");
            let time = 0;
            for (let i = 0; i < array.length; i++) {
                if (i !== array.length - 1) {
                    time += global.parseInt(array[i], 10);
                    time *= 60;
                } else {
                    time += global.parseFloat(array[i]);
                }
            }
            return time;
        },
        writable: false
    },

becomes:

     _parseTime: {
        /**
         * Parses a string into a time
         * @param {string} timestring the string containing the time.
         * @return {number} time in seconds.
         */
        value: function _parseTime (timestring) {
            let array = timestring.split(":");
            let time = 0;
            for (let i = 0; i < array.length; i++) {
                if (i !== array.length - 1) {
                    time += global.parseInt(array[i], 10);
                    time *= 60;
                } else {
                    time += global.parseFloat(array[i]);
                }
            }
            return time;
        },
        writable: false
    },

We need to add the variable names to the functions so the debuggers can identify them.

Enhancements needed to subtitle parser test suite.

We need more tests for the parsing code, both unit and comprehensive tests. Comprehensive tests can be made using Aegisub. I am willing to peer program with/work with/mentor anyone who tackles this issue for hacktoberfest as it's a little more complex than some of the other ones we have available. Background as a typesetter for subtitles is useful but not needed.

Need GLSL 2-Pass Gaussian Blur Shaders

Need 2-Pass Gaussian Blur shaders for the blurring step in the compositor.
these should be placed in a new folder inside src called shaders.
I'm not the best with math, so a efficient way to implement this has been an issue for me.

All tags support parens

E.g. \an(8) is valid and equivalent to \an(8). If both parenthesized and non-parenthesized args are present, then the parenthesized args are treated as being first, with the non-parenthesized one treated as last. E.g. \1a0(FF) is equivalent to \1a(FF,0), which is equivalent to \1aFF, not \1a0 as you might expect.

\blur is slow due to texture size being too large.

Describe the bug
The \blur tag is to be evalutated to a size of 3*sigma+0.5. We currently evaluate it for the whole video width and height.

To Reproduce
Use the \blur tag

Expected behavior
A reasonably fast speed for the blur

Desktop (please complete the following information):

  • OS: all
  • Browser: all
  • Version: all

Request for Basic Demo Example for SABRE.js

Hello SABRE.js Team,

I am currently exploring JavaScript libraries for my upcoming project and came across SABRE.js. Your library seems very promising and aligns well with my project's requirements. However, I am having some challenges in understanding how to get started effectively.

I kindly request if you could provide a basic demo or example that illustrates the core functionalities of SABRE.js. A simple demonstration, possibly in the form of a GitHub repository or a CodePen/JSFiddle example, would be incredibly helpful. Specifically, I am looking for examples that showcase:

  1. Basic setup and initialization of SABRE.js
  2. A simple use case implementation, demonstrating the library's unique features

This demo will not only assist me but also help other new users to understand the practical implementation of SABRE.js in a real-world scenario.

Thank you for your hard work on this library and for considering this request. I believe a basic demo would be a valuable addition to your documentation.

Best regards,

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.