We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
renshuu.org is a SRS quizzing site by many thought as superior to Anki.
On Chrome browser using rikaikun or yomichan they are capable of properly highlight words on renshuu, as shown in the image below:
On Firefox using rikaichamp however, words aren't properly highlighted, image below:
All the kanji are analized separately. Would be possible to make rikaichamp work as well as rikaikun and yomichan when used on renshuu.org?
The text was updated successfully, but these errors were encountered:
It looks like this site uses content like the following:
<div class="fleft" style="padding-left: "> <ruby class="k10"> <rb> <span class="klook">引</span> </rb> <rt>ひ</rt> </ruby> <ruby class="k10"> <rb>く</rb> <rt> </rt> </ruby> <div class="ib little" style="vertical-align: bottom"><svg>...</svg></div> </div>
But it seems like the site is doing its own faux-ruby layout with rules like:
/* ルビベース */ ruby > rb, ruby > rbc { display: table-row-group; line-height: 120%; /* 120% */ }
Which means that rikaichamp fails to detect the <rb> element as a inline element when it does this check:
<rb>
const isInline = (element: Element | null) => element && ['inline', 'ruby', 'ruby-base', 'ruby-text'].includes( getComputedStyle(element).display! );
We might need to add specific faux-ruby handling that treats <rb> / <ruby> etc. as inline elements regardless of their computed style.
<ruby>
Sorry, something went wrong.
Thanks for the report by the way. Very helpful.
476694b
I've tested this and the next version of Rikaichamp, when released, should work correctly with renshuu.org. Thanks for the report!
Awesome, thanks! :D
No branches or pull requests
renshuu.org is a SRS quizzing site by many thought as superior to Anki.
On Chrome browser using rikaikun or yomichan they are capable of properly highlight words on renshuu, as shown in the image below:
![immagine](https://user-images.githubusercontent.com/29839218/49489562-e3a0c500-f84b-11e8-9993-6394460e746a.png)
On Firefox using rikaichamp however, words aren't properly highlighted, image below:
![immagine](https://user-images.githubusercontent.com/29839218/49489598-1f3b8f00-f84c-11e8-9034-9e7498697456.png)
All the kanji are analized separately. Would be possible to make rikaichamp work as well as rikaikun and yomichan when used on renshuu.org?
The text was updated successfully, but these errors were encountered: