红宝石 [英] Ruby

查看:132
本文介绍了红宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在XHTML 1.1中使用Ruby进行一些实验。我发现了很多奇怪的结果让我感到惊讶。


我正在使用一个PHP代码片段来提供application / xml + xhtml和XHTML 1.1

给那些接受它的浏览器,否则是text / html XHTML 1.0。我的
包含一个简单的Ruby设置,首先不使用< rp>元素,然后

with。我的结果?


O7.23不会使用

规范中描述的超文本渲染简单的Ruby,但根本不显示rt文本 - 除非使用rp,当rp

和rt内容呈现时。

M1.6,NN4.01和Lynx忽略Ruby标记,并渲染内容。 Lynx是

毫不奇怪,但是Mozilla?


IE6,IE5.5,甚至是IE5.01,观察并呈现简单的Ruby,而不是

显示rp内容,优先选择

两种情况下的超文本呈现。奇怪的是,它们以text / html的形式提供给XHTML1.0,但它们只是那些按照我的预期呈现Ruby的

。 (请注意,我的5.5和

5.01是standalones,我无法验证这些浏览器版本的完整

安装会出现的行为。)


我假设微软根据我的实验发明了Ruby。嗯?


由于我无意重新发明轮子,任何人都知道更多关于UA支持红宝石的信息以及在何种程度上和其他任何方面的信息

有趣的信息?

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?

推荐答案

Neal写道:
Neal wrote:
我有没有意图重新发明轮子,任何人都知道更多关于UA支持红宝石的信息以及在何种程度上以及任何其他有趣的信息?
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?




我可以尝试使用Konqueror,如果我有一个要测试的URL。


-

Shawn K. Quinn



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

--
Shawn K. Quinn


2004年6月21日星期一01:54:39 -0500,Shawn K. Quinn

< sk ***** @ xevious.kicks-ass.net>写道:
On Mon, 21 Jun 2004 01:54:39 -0500, Shawn K. Quinn
<sk*****@xevious.kicks-ass.net> wrote:
Neal写道:
Neal wrote:
由于我无意重新发明轮子,任何人都知道更多关于什么的信息UA支持ruby以及在何种程度上以及任何其他有趣的信息?
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?



如果我有一个要测试的URL,我可以尝试使用Konqueror。



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



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


2004年6月21日星期一00:52:27 -0400,Neal< ne ***** @ yahoo.com>写道:
On Mon, 21 Jun 2004 00:52:27 -0400, Neal <ne*****@yahoo.com> wrote:
O7.23不会使用
规范中描述的超文本渲染简单的Ruby,但根本不显示rt文本 - 除非使用rp,当rp
和rt内容呈现。
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.




奇数 - 当前测试显示rp-less位显示rt。最初

它是在一个锚点内,也许这有所不同。我认为

原始测试出现了问题。



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.


这篇关于红宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆