plugin:xhtmlruby
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:xhtmlruby [2010-10-03 15:14] – HåkanS | plugin:xhtmlruby [2013-09-16 04:58] – [Download and Installation] 61.93.201.254 | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : pomax@nihongoresources.com | email : pomax@nihongoresources.com | ||
type : Action | type : Action | ||
- | lastupdate : 2010-05-01 | + | lastupdate : 2010-10-14 |
compatible : 2009-02-14b (not tested on earlier versions) | compatible : 2009-02-14b (not tested on earlier versions) | ||
tags : ruby, furigana | tags : ruby, furigana | ||
- | downloadurl: | + | downloadurl: |
---- | ---- | ||
Line 17: | Line 17: | ||
Download and install the plugin using the [[plugin: | Download and install the plugin using the [[plugin: | ||
- | * [[http://pomax.nihongoresources.com/ | + | * [[http://projects.nihongoresources.com/ |
+ | * [[http:// | ||
To install the plugin manually, download the source to your plugin folder, '' | To install the plugin manually, download the source to your plugin folder, '' | ||
Line 224: | Line 225: | ||
// Opera (9.5x) is even more annoying. Neither " | // Opera (9.5x) is even more annoying. Neither " | ||
else if(browser==" | else if(browser==" | ||
- | + | ||
- | // Chrome 4.x doesn' | + | |
- | else if(browser==" | + | |
- | killCSSRule(' | + | |
- | killCSSRule(' | + | |
- | killCSSRule(' | + | |
- | killCSSRule(' | + | |
// if we don't know what browser this is, assume " | // if we don't know what browser this is, assume " | ||
else { rubyrule.style.verticalAlign = " | else { rubyrule.style.verticalAlign = " | ||
Line 336: | Line 331: | ||
?> | ?> | ||
</ | </ | ||
- | ===== Discussion ===== | ||
- | |||
- | >Thank you thank you so much for this fantastic plugin! I searched for a DokuWiki " | ||
- | > | ||
- | >I do have one question though, and it's regarding support in Chrome and possibly other browsers. These adhere to HTML5 standards for ruby tags, and therefore the ruby texts, as well as chunks of the page, don't display correctly. Would it be very complicated to add a conditional < | ||
- | |||
- | Actually, the reason it malrenders in Chrome is because for a while now it's been using a version of webkit that messes up ruby code. If there is no stylesheet CSS rule for the ruby element, things looks fine, but if there is, good chance the ruby markup magically disappears (see [[http:// | ||
- | |||
- | I've updated the javascript responsible for massaging the CSS based on browsers, so that it actually dynamically removes all css ruby rule when it sees Chrome is being used. This seems to be the only working fix at the moment (hopefully the damn Chrome team reads my @#%! bug reports. The webkit people responded immediately, | ||
- | |||
- | update: Chrome 5 has finally worked in this updated webkit, so in the interest of backward compatibility I'll leave the code as is for a month or three, and then remove the Chrome workaround again -- // Pomax 2010/06/18 // |
plugin/xhtmlruby.txt · Last modified: 2023-10-30 23:26 by Klap-in