View Single Post
Old 05-20-2022, 03:20 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by evilone View Post
I am sorry about that code can't run in my cailbre additional CSS, I don't have program konwlege,think your reply,Can you give me some more code to make sure the additional CSS works on cailbre
No it can't be done that way.

Quote:
Originally Posted by evilone View Post
Code:
p{    
font-weight: bolder; 
}
this is bolder all of text code in cailbre ,pls give me more help :谢谢:
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.
davidfor is offline   Reply With Quote