[sword-devel] Japanese <ruby> annotation
niccarter at mac.com
Wed Mar 16 18:26:08 MST 2011
On 17/03/2011, at 10:06 AM, Peter von Kaehne wrote:
> Had a look today at the implementation for ruby which is a bit "lingering".
> Can someone with knowledge explain to me what exactly is happening with
> and then?
> Is this anywhere rendered further? Does any frontend deal with it?
PocketSword uses it. I was fortunate enough to have that code written by Ian before he passed it over to me. He can read Japanese and so he was very interested in making it work properly. :)
Of course, PS uses WebKit, as that is what iOS has... ;)
But, it seems to just work? I switch on the "OSIS Ruby" global option and then ignore it (I should probably switch it on on a per-module basis if each module supports it, hey!).
If you want to check out the extra CSS that Ian wrote to go with it, take a look at the top of https://bitbucket.org/niccarter/pocketsword/src/8b59fc9eed79/Classes/PSModuleController.mm
BUT, only look if you're not going to yell at me for mixing Obj-C code & CSS code. :P yes, I know it's evil, bite me! ;)
does that answer your questions?
PocketSword Developer - an iPhone Bible Study app
> To start with - webkit supports beautifully a <ruby> tag.
> Try this
> This is a <ruby><rb>RUBY</rb><rt>ruby</rt></ruby> test.
> FF/Xul does not do anything with it.
> So, frontends based on webkit really should consider this - the pain
> implementing must be minimal. Simply allow the Optionfilter to be
> toggled and then see what happens.
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel