473,320 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Ruby

I'm beginning some experiments with Ruby in XHTML 1.1. I'm finding very
odd results which surprise me.

I'm using a PHP snippet which serves application/xml+xhtml and XHTML 1.1
to those browsers which accept it, and text/html XHTML 1.0 otherwise. I
included a simple Ruby setup, first without using the <rp> elements, then
with. My results?

O7.23 does not render simple Ruby with the overtext as described in the
spec, but does not display rt text at all - unless using rp, when the rp
and rt content is rendered.

M1.6, NN4.01 and Lynx ignore Ruby markup, and render the contents. Lynx is
no surprise, but Mozilla?

IE6, IE5.5, even IE5.01, observes and renders simple Ruby, and does not
display rp content, preferring the overtext rendering as in the spec in
both cases. Oddly, they are served XHTML1.0 in text/html, yet they are the
only ones which render the Ruby as I anticipated. (Mind you, my 5.5 and
5.01 are standalones, and I cannot verify this is the behavior the full
install of these browser versions would exhibit.)

I'm assuming Microsoft invented Ruby based on my experiment. Hmm?

As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?
Jul 20 '05 #1
10 2255
Neal wrote:
As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?


I can try with Konqueror if I have a URL to test with.

--
Shawn K. Quinn
Jul 20 '05 #2
On Mon, 21 Jun 2004 01:54:39 -0500, Shawn K. Quinn
<sk*****@xevious.kicks-ass.net> wrote:
Neal wrote:
As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?


I can try with Konqueror if I have a URL to test with.


http://www.opro.org/phpnew/rubytest.php
Jul 20 '05 #3
On Mon, 21 Jun 2004 00:52:27 -0400, Neal <ne*****@yahoo.com> wrote:
O7.23 does not render simple Ruby with the overtext as described in the
spec, but does not display rt text at all - unless using rp, when the rp
and rt content is rendered.


Odd- the current test shows the rp-less bit displaying the rt. Originally
it was within an anchor, perhaps that made a difference. I assume the
original test was faulted.
Jul 20 '05 #4
Neal wrote:
On Mon, 21 Jun 2004 01:54:39 -0500, Shawn K. Quinn
<sk*****@xevious.kicks-ass.net> wrote:
Neal wrote:
As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?


I can try with Konqueror if I have a URL to test with.


http://www.opro.org/phpnew/rubytest.php


Konqueror appears to ignore ruby markup, as I suspected it might.

--
Shawn K. Quinn
Jul 20 '05 #5
Neal <ne*****@yahoo.com> wrote:
O7.23 does not render simple Ruby with the overtext as described in
the spec, but does not display rt text at all - unless using rp, when
the rp and rt content is rendered.
Sounds like a bug.
M1.6, NN4.01 and Lynx ignore Ruby markup, and render the contents.
Lynx is no surprise, but Mozilla?
Well, at least they present the intended fallback. Regarding Mozilla,
I think its authors just didn't regard Ruby as important enough. After
all, to people who don't know Eastern Asian writing systems, Ruby
is a mystery. I must admit that I still understand fairly little of Ruby,
despite writing a few pages about it for a book - more than I've ever
_read_ in books.
IE6, IE5.5, even IE5.01, observes and renders simple Ruby,
Yes, probably in the intended way, which means that if you use it for
texts written (say) in Latin letters, the ruby annotations are virtually
unreadably small. Setting
rt { font-size: 70%; font-family: Verdana; }
makes it probably readable. Yes, I _do_ think this is an exceptional
situation where Verdana could make sense.
Oddly, they are served XHTML1.0 in text/html, yet
they are the only ones which render the Ruby as I anticipated.


IE, like other browsers, don't actually care about document types or
DTDs, they just look at magic _names_ and identifiers for them and make
wild guesses. They don't, for example, switch off all proprietary ideas
of markup, like <blink> and <marquee>, just because a document declares a
document type definition does not contain them. So could we expect them
to switch off support to markup that _has_ been defined by the W3C,
though not in the version declared, if such support has been built into
the browser?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6
Neal <ne*****@yahoo.com> wrote in message news:<op**************@news.individual.net>...
I'm beginning some experiments with Ruby in XHTML 1.1. I'm finding very
odd results which surprise me.
Simple or complex Ruby ? If you do the full-blown version (with the
<rtc>'s and the brackets embedded in the document) then it ought to be
(and IMHE, is) very robust for legacy support. It's inherent in the
design of Ruby that totally Ruby-unaware UA's have some sensible,
although typographically boring, behaviour.

The only aspect I've had trouble with was the direction. Small ruby
over main text works fine. Anything else; ruby beneath, rubies above
and below, vertical character direction, now that really does seem to
fall apart.

That said though, I've used little Ruby and rarely been too fussy
about its accuracy. If it does anything vaguely "right", then that has
been enough for my needs.

I'm assuming Microsoft invented Ruby based on my experiment. Hmm?


My understanding (based on an almost total absence of knowledge) is
that Ruby existed in the document markup world for some time
beforehand, then made its way onto the web via Keio university and a
W3C working group. M$oft were on-board early on, but didn't really
invent or drive the process.
BTW - I assume we're talking about Ruby (the markup), not Ruby (the
programming language)
http://www.w3.org/TR/ruby/
Jul 20 '05 #7


Neal wrote:
I'm beginning some experiments with Ruby in XHTML 1.1. I'm finding very
odd results which surprise me.

I'm using a PHP snippet which serves application/xml+xhtml and XHTML 1.1
to those browsers which accept it, and text/html XHTML 1.0 otherwise. I
included a simple Ruby setup, first without using the <rp> elements,
then with. My results?

O7.23 does not render simple Ruby with the overtext as described in the
spec, but does not display rt text at all - unless using rp, when the rp
and rt content is rendered.
According to http://www.opera.com/docs/specs/html/ Opera has no support
for Ruby.
M1.6, NN4.01 and Lynx ignore Ruby markup, and render the contents. Lynx
is no surprise, but Mozilla?
Mozilla too has no support for Ruby:
http://bugzilla.mozilla.org/show_bug.cgi?id=33339
IE6, IE5.5, even IE5.01, observes and renders simple Ruby, and does not
display rp content, preferring the overtext rendering as in the spec in
both cases. Oddly, they are served XHTML1.0 in text/html, yet they are
the only ones which render the Ruby as I anticipated. (Mind you, my 5.5
and 5.01 are standalones, and I cannot verify this is the behavior the
full install of these browser versions would exhibit.)


MSIE has some support for <ruby> and <rt>

http://msdn.microsoft.com/library/de...jects/ruby.asp
which dates back from some draft before the W3C published the W3C
recommendation on Ruby as far as I know.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #8

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...

I'm assuming Microsoft invented Ruby based on my experiment. Hmm?
You can't mean that literally, can you? For example, bopomofo, small symbols
placed to the right of characters to indicate their pronunciation, has been
in use in Taiwan since it was designed in 1913, which I presume even
predates Bill Gates' father.

As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?


Jul 20 '05 #9
On Mon, 21 Jun 2004 09:22:54 -0400, Harlan Messinger
<h.*********@comcast.net> wrote:

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...

I'm assuming Microsoft invented Ruby based on my experiment. Hmm?


You can't mean that literally, can you? For example, bopomofo, small
symbols
placed to the right of characters to indicate their pronunciation, has
been
in use in Taiwan since it was designed in 1913, which I presume even
predates Bill Gates' father.


Of course. But I was referring to the Ruby markup.
Jul 20 '05 #10
On Mon, 21 Jun 2004 00:52:27 -0400, Neal <ne*****@yahoo.com> wrote:
As I have no intention of reinventing the wheel, anyone know of more
information on what UAs support ruby and to what extent, and any other
interesting info?


This is rather interesting, I think. I was supposing Ruby would be pretty
useful, but it would seem not yet. Though the more I think about it,
there's not a lot of places it would truly be usable on the www. As Jukka
said, part of the problem is the small text size in the no-CSS version. If
rendered as intended, no one can read the little letters until we're at
say font-size: 180%...

Thanks for all the responses so far.
Jul 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
13
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
30
by: Christian Seberino | last post by:
How does Ruby compare to Python?? How good is DESIGN of Ruby compared to Python? Python's design is godly. I'm wondering if Ruby's is godly too. I've heard it has solid OOP design but then...
65
by: Amol Vaidya | last post by:
Hi. I am interested in learning a new programming language, and have been debating whether to learn Ruby or Python. How do these compare and contrast with one another, and what advantages does one...
22
by: Francois | last post by:
I discovered Python a few months ago and soon decided to invest time in learning it well. While surfing the net for Python, I also saw the hype over Ruby and tried to find out more about it, before...
28
by: robert | last post by:
In very rare cases a program crashes (hard to reproduce) : * several threads work on an object tree with dict's etc. in it. Items are added, deleted, iteration over .keys() ... ). The threads are...
9
by: Erwin Moller | last post by:
Hi Group, This may seem a odd question in a PHP group, but I think this might be a good place to ask since I am mainly a PHP coder these days that maybe starts with Ruby. Situation: A client...
0
by: bruce | last post by:
hey guys... i managed to solve what i was attempting.. my goal was rather simple, to be able to have a python script, call a ruby app, and be able to return a value from the ruby (child) app to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.