Comments (6)
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.
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.
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.
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.
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.
@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)
- support multiple languages
- Handling of hyphenated words and period delineated acronyms, backticks (other punctuations)? HOT 2
- Rendered differently for Numbers
- Use '<br>' instead of '\n' when in HTML mode.
- Support saccade HOT 1
- The 'b' tag is not recommended. HOT 1
- Performance improvements
- Bionic Reading® Legal Stuff HOT 3
- Add support for emojis HOT 1
- Question: Possible highlighting of root-words HOT 2
- Add a description of the BR effect to README
- Add examples HOT 1
- Add contributing doc
- Hello I want to ask a question HOT 3
- Ignore element tags, i.e. `<a ... >` HOT 3
- License Requirement HOT 1
- Add a description of license requirements
- The documentation for the sep option is incorrect.
- Any way to embed this directly into HTML without a JS project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text-vide.