Jisho

×
B6044f355342bb055fbb03804d9673e3
7 Replies ・ Started by Lisured at 2013-11-30 19:10:00 UTC ・ Last reply by Kimtaro Admin at 2013-12-12 08:34:44 UTC

Ruby

Why don't you use ruby tags for furigana?

B6044f355342bb055fbb03804d9673e3
Lisured at 2013-11-30 19:23:35 UTC

Also jisho OpenSearch link is missing.

B6044f355342bb055fbb03804d9673e3
Lisured at 2013-12-02 01:36:17 UTC

Another thing I noticed, when I click show_more in kanji by handwriting input and then change the kanji, the button appears again – just a small cosmetic detail.
More serious thing is that some radicals aren't displayed (Firefox@Ubuntu)
Screenshot here: http://imgur.com/MAquUTh

2986330e38386f92fee4774b0c54ed66
Kimtaro Admin at 2013-12-03 09:13:32 UTC

There's two reasons that we use custom markup for furigana, instead of ruby tags. First, Firefox doesn't support it natively, and we want to ensure that all browsers render words and sentences the same. The second reason is so that you can select and copy whole words without the furigana interfering. This becomes a problem with ruby tags when you want to align the furigana to the right kanji.

OpenSearch support is on the todo-list, together with a new bookmarklet.

The radicals are because right now I use fonts only to display them, and not all systems come with the necessary fonts installed. Fixing this is high on my list. In the meantime you can install a font like http://www.babelstone.co.uk/Fonts/Han.html to see all of them.

C915bffe771bd9d438ade635fcab3f38
jakobd at 2013-12-10 17:51:16 UTC

The second reason is so that you can select and copy whole words without the furigana interfering.

Quick question not really related to Jisho: Is it intended by the HTML standard to work like that or do we just have crappy clients?

2986330e38386f92fee4774b0c54ed66
Kimtaro Admin at 2013-12-11 04:22:39 UTC

I don't think it's necessarily something they considered when they made the ruby tag. The way it's structured you'll end up with the furigana copied along if your selection spans more than one ruby tag.

B88ab8a696cf6c4ccc58a4a56a155d03
odraencoded at 2013-12-11 14:00:18 UTC

Maybe we should ask about this in the W3C lists? I don't think that is how they are supposed to work, although markup must be linear and has certain drawbacks, that sort of thing cripples a very basic browser feature.

2986330e38386f92fee4774b0c54ed66
Kimtaro Admin at 2013-12-12 08:34:44 UTC

Unfortunately I'd wager that it's not an important enough feature that they'd change the spec for. Especially since browser vendors don't seem very interested in supporting it.

I would like to find a good enough implementation with standard tags and some tricky css and release it as a library that others could use. But we still need to tweak our implementation a bit. I've noticed that the kana position can be a little off in certain situation.

to reply.