Skip to content

Change red squiggly line #52

Closed
Closed

Description

@ariaofdelusion

Currently, on example sentences, Jitendex uses a red squiggly line to show where a specific word is in the sentence. I feel like this looks kind of like it's a grammatical mistake, since the same squiggly red line is used in Google Docs and many other platforms.

To me, I would suggest maybe a simple highlight of the word, or just a different text color. Or maybe just change the color of the squiggly line. It sometimes gets me confused. (I have seen others say the same)

Activity

  1. parfait8566 commented on Jan 11, 2024

    @parfait8566

    You can use custom CSS.

    To change the color:

    [data-sc-content="example-sentence-a"] span {
      text-decoration: underline wavy blue !important;
    }
    

    Normal underline:

    [data-sc-content="example-sentence-a"] span {
      text-decoration: underline red !important;
    }
    

    Personally, I like the default red squiggly line and didn't find it confusing so I don't think it should be changed.

  2. Morgawr commented on Jan 11, 2024

    @Morgawr

    Thanks for the custom CSS, that helps. I also am not a fan of the red squiggly line. I frequently share screenshots of yomitan dictionary definitions with people on discord and if I had to guess probably a good 50-70% of the time the conversation gets derailed by people asking "what's wrong with that sentence?" and "why is it marked as a mistake?" because everyone just assumes the squiggly lines are a mistake.

    There's basically an implied UI code about certain things and we've been trained for decades now that red squiggly line = mistake.
    Even changing the color I think it's still a bit confusing (but better than red at least). I'd suggest maybe having just a single flat line and make it a different color (like light blue? green? I don't know, also no idea how it'd work across dark/light modes). Just my two cents.

  3. stephenmk commented on Jan 11, 2024

    @stephenmk
    Member

    Thank you all for the feedback. I think I'll change it to a double underline in the next version. This should hopefully be equally effective and less contentious.

    The default thickness of the underlines will vary between different browsers, so I will need to submit a patch to Yomitan to ensure that it is displayed identically everywhere.

    Click to expand image

    underline

  4. ariaofdelusion commented on Jan 11, 2024

    @ariaofdelusion
    Author

    @stephenmk Thanks. I do have a question, though. Why does the underline have to be red by default? Is it some style youre trying to fit? Even the double underline gives that sense of incorrectness...

  5. stephenmk commented on Jan 11, 2024

    @stephenmk
    Member

    It needs to be a color that stands out and works well with both light and dark themes. I think it might become visually overwhelming if too many different colors are used at once, so I'd like to stick to one color as much as possible.

  6. bgslavcho commented on Jan 12, 2024

    @bgslavcho

    How about highlighting the word red instead of underlining it ?
    Kind of what the midict addon does when you search for something:

    Click to expand image

    midict

    Or weblio:

    Click to expand image

    weblio

  7. bgslavcho commented on Jan 12, 2024

    @bgslavcho

    I find any lines distracting and highlighting is more pleasant for me to look at.

    Here is how it looks in red. I used the CSS from above.

    [data-sc-content="example-sentence-a"] span {
      color: red; 
      text-decoration: none !important;
    }
    
    Click to expand image

    Screenshot 2024-01-12 at 08-08-22 weblio英語例文検索

  8. bgslavcho commented on Jan 12, 2024

    @bgslavcho

    Another suggestion would be to make the text bold + underline it since the red highlight can be too conspicuous.

    [data-sc-content="example-sentence-a"] span {
      font-weight: bold;
      text-decoration: underline !important;
    }
    
    Click to expand image

    Screenshot 2024-01-12 at 09-05-25 weblio英語例文検索

  9. ariaofdelusion commented on Jan 12, 2024

    @ariaofdelusion
    Author

    I honestly prefer the bold + underline, to be honest.

  10. stephenmk commented on Jan 13, 2024

    @stephenmk
    Member

    I made a wiki page to explain how to add custom styles to Yomitan.

    text-shadow seems like an interesting option. Yomitan would need to be patched to support that style if I want to use it in the dictionary by default.

    orange

  11. self-assigned this
    on Jan 13, 2024
  12. stephenmk commented on Jan 22, 2024

    @stephenmk
    Member

    The newest version of Jitendex for Yomitan uses a reddish font instead of the wavy line.

    I'm planning to add a small amount of text shadow when Yomitan is updated to support that feature.

    shadow

  13. stephenmk commented on Jan 24, 2024

    @stephenmk
    Member

    The current setup has grown on me, actually. Even though I submitted a patch for text-shadow support to Yomitan, I think I'll keep things simple and leave it as it is now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions