plugin:xhtmlruby
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:xhtmlruby [2010-05-01 00:30] – 86.89.151.209 | plugin:xhtmlruby [2023-10-30 23:26] (current) – Klap-in | ||
---|---|---|---|
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-14 |
tags : ruby, furigana | tags : ruby, furigana | ||
+ | |||
+ | downloadurl: | ||
---- | ---- | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
- | + | ||
- | * [[http:// | + | |
- | + | ||
- | To install | + | |
- | * style.css - CSS styling for the ruby markup | + | * [[http:// |
- | * conf.ini - an ini file for setting whether to parse wiki text or not, and TOC text or not. | + | * [[http:// |
- | * script.js - a script that ensures the CSS styling is correct for the browser that's loading the page | + | |
- | * action.php - the plugin | + | |
- | The plugin is now installed. | ||
===== Important installation note ===== | ===== Important installation note ===== | ||
Line 96: | Line 91: | ||
===== Bugs ===== | ===== Bugs ===== | ||
- | None known at the time of writing. | + | <del>None known at the time of writing.</ |
+ | |||
+ | Unfortunately, | ||
+ | ReferenceError: | ||
+ | addInitEvent(function(){ fixRubyAlignment(); | ||
+ | js.php? | ||
+ | |||
+ | I have changed '' | ||
+ | |||
+ | So finally I decided to: | ||
+ | - remove script.js in the plugin folder | ||
+ | - disable the plugin | ||
+ | - re-enable it again | ||
+ | -> seems no problem so far, the action.php and the CSS file still do their jobs. I know that script.js can deal some compatibility problems across browsers, but I don't have the ability to debug it. --- [[user> | ||
===== Source ===== | ===== Source ===== | ||
Line 222: | Line 230: | ||
// 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 288: | Line 290: | ||
* Postprocesses the HTML that was built from that, to rubify kanji that have associated furigana. | * Postprocesses the HTML that was built from that, to rubify kanji that have associated furigana. | ||
*/ | */ | ||
- | function register(&$controller) | + | function register(Doku_Event_Handler |
{ | { | ||
// initialise variables | // initialise variables | ||
Line 334: | Line 336: | ||
?> | ?> | ||
</ | </ | ||
- | ===== 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, |
plugin/xhtmlruby.1272666612.txt.gz · Last modified: 2010-05-01 00:30 by 86.89.151.209