Quote:
Originally Posted by davidfor
No it can't be done that way.
But, that won't work. What that will do is change all test in a paragraph to "bolder". That isn't what the Bionic Reading is doing. It is making parts of each word, or some words bolder. Which is what my code is doing. I doubt there is a way to do this via just CSS. You will need to wrap the parts of the word that need to be different in a tag to change its style.
As to my code, that is used in the calibre editor. It would allow you to change one book at a time to see if it works for you. It is a regex function that is used as part of the search and replace. With it, you do a search using the regex specified, and the function doe the replace side of. I would suggest you look at the help for the editor to see how to use it. If you still have problems after that, then ask questions.
And my code is just a sample. It is what I thought of when I saw the page that is referred to above. It is an simplistic implementation that would only be good to get an idea of whether the Bionic Reading would work for you. Which I only did as a I was curious about whether I could. And I see lots of problems that I have no interest in solving as I don't have an interest in reading in that way.
If this was to be done "properly" it would probably need to be in a plugin. And, as the Bionic Reading clearly states, there are Patents around it, so it should be licensed to use their API. Maybe someone will be interested in doing that.
|
I find new regex,
,maybe fix
we can achieve our purpose