Giter Club home page Giter Club logo

Comments (6)

teak avatar teak commented on July 16, 2024 1

I had a quick look at your source, your right it does not seem to be a simple change. I think how I would implement it would be to create a separate function (not an option on the main) and use an HTML parsing library like 'htmlparser2' to preprocess the text.

from text-vide.

teak avatar teak commented on July 16, 2024 1

Hey thank you for getting this done, honestly not 'late' at all. So far it is all working great. If all goes well we'll be adding this as an optional accessibility feature in our education app.

from text-vide.

Gumball12 avatar Gumball12 commented on July 16, 2024

Hi. Thanks for posting this issue. But it seems difficult to add this feature to the module. sorry.

Text-Vide module focuses on implementing the Bionic Reading API for use in JavaScript. I think it is inappropriate to put any other additional features here.

Even if implemented, I don't think it's going to be very different from the way you mentioned, as the removed (ignored) characters have to be restored. Instead, it seems appropriate to handle it somewhere that uses the Text-Vide module.

Sorry for not giving you the answer you want.

from text-vide.

teak avatar teak commented on July 16, 2024

Perhaps the ability to provide a regex and any matches could be ignored?

I will also point out that the official Bionic Reading API does accept HTML content and correctly parses it.

from text-vide.

Gumball12 avatar Gumball12 commented on July 16, 2024

I just checked... you're right. I've seen the HTML code removed and Bionic Reading applied only to the actual string. I'll find a way to fix this.

However, I can't devote time to this module because of my job, so I hope you understand even if it's a little late. Or maybe it would be very helpful if you could implement a simpler version of that logic.

  • Apply the Bionic Reading technique without HTML code

from text-vide.

Gumball12 avatar Gumball12 commented on July 16, 2024

@teak
Hi. It's me again. I just implemented a function that ignores HTML tags(v1.6.0). A little late, but can you confirm that it is working properly?

Note: The Bionic-Reading API ignores HTML tags by default, so this module also ignores tags by default. I just made it possible to include tags using an optional value (ignoreHtmlTag).

from text-vide.

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.