Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bionic Reading -like Experience #1268

Open
majora2007 opened this issue May 21, 2022 · 7 comments · May be fixed by #3512
Open

Bionic Reading -like Experience #1268

majora2007 opened this issue May 21, 2022 · 7 comments · May be fixed by #3512
Labels
enhancement New feature or request

Comments

@majora2007
Copy link
Member

https://bionic-reading.com/

Goal: Implement a comparable solution to this. This ticket is here to serve as documentation on how to implement and how it should function.

@majora2007 majora2007 added the enhancement New feature or request label May 21, 2022
@therobbiedavis
Copy link
Collaborator

Due to this being Trademarked in America we can not call the implementation anything similar to the trademarked name "Bionic Reading"

image

For good faith we should also try to implement some code to check against location or specific timezones and disable the implementation in locations where it is patented (currently only France)

@therobbiedavis
Copy link
Collaborator

This serves as an example implementation.

Before:
image

After:
image

@mohitmujawdiya
Copy link

I would love to see a similar implementation on Kavita!

Here is the patent and trademark discussion on the Obsidian sub (https://www.reddit.com/r/ObsidianMD/comments/uv995v/bionic_reading_seems_great_but_patent_is_a_bummer/). I am sure it will not be much of a problem.

A chrome extension has already been made, https://github.com/ansh/bionic-reading, in case the code can be helpful.

@majora2007
Copy link
Member Author

Chrome extension makes this very easy to implement, thanks for the link @mohitmujawdiya

@mohitmujawdiya
Copy link

You're most welcome @majora2007, thanks for such an amazing piece of software!

@majora2007 majora2007 moved this to To do in Backlog Aug 23, 2024
@dtheurer-control4
Copy link

@majora2007,
I'd love this to and it would really help those of us with dyslexia.

@meek2100
Copy link

meek2100 commented Dec 10, 2024

Here is an example formula for python to accomplish this,.

`
def dyslexia_assistance(text):
"""
Applies a text formatting technique to assist with dyslexia by highlighting the first half of each word.

Args:
text: The input text to be processed.

Returns:
The formatted text with highlighted characters.
"""

words = text.split()
formatted_text = ""

for word in words:
half_length = len(word) // 2
first_half = word[:half_length]
second_half = word[half_length:]
formatted_word = f"\033[1m{first_half}\033[0m{second_half} "
formatted_text += formatted_word

return formatted_text

Example usage:

text = "This is an example of dyslexia assistance."
formatted_text = dyslexia_assistance(text)
print(formatted_text)
`

@therobbiedavis therobbiedavis linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

5 participants