Firefox不会在连字符处断行 [英] Firefox doesn't break lines at hyphens

查看:75
本文介绍了Firefox不会在连字符处断行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE确实如此,我不记得曾经是Netscape中的一个问题。我猜想,Mozilla团队中的某个人想出了一个关于Hyphen Minus角色的真实语义的智能想法。 :-(我如何使IE

和Firefox同意使连字符触发换行?


Gustaf

解决方案

2004年8月30日星期一08:17:28 +0200,Gustaf Liljegren

< gu ***** @ algonet.se>写道:

IE确实如此,我不记得这曾经是Netscape中的一个问题。我猜想Mozilla团队中的某个人想出了一个关于< Hyphen Minus角色的真实语义。:-(如何使IE
和Firefox同意使连字符触发换行符?




你为什么要那样做呢?


另外请知道这个主题当然已经讨论过了。

你可能想要使用,作为一个可能的搜索起点,定义

以及对实体讨论的参考和害羞;找出到目前为止已经说过的内容是什么。

http://groups.google.com/groups?q=%2...authoring。 html


请注意,除了最初的目标之外,还有更多内容。


-

Rex


Jan Roland Eriksson写道:

On Mon,30 Aug 2004 08:17:28 +0200 ,Gustaf Liljegren
< gu ***** @ algonet.se>写道:

IE确实如此,我不记得这曾经是Netscape中的一个问题。我想Mozilla团队中的某个人想出了关于Hyphen Minus角色的真实语义的智能想法。
:-(我如何让IE和Firefox同意使连字符触发一个



为什么要这样做?




要加入对话,请换行在连字符正常之后

在书籍,报纸等中的使用。所以问题是为什么一个人不会*想要那个?b / b

我最近遇到了同样的问题。我使用像素值表示

表格单元格,Firefox不敢破坏状态名称,例如

" ; Baden-Wurtemberg,即使是Internet Explorer也是如此。火狐只是

忽略了CSS中定义的表格单元格宽度并使表格

移出布局我们的设计师建议的框架。(现在我

假设有人会告诉我,我不能在

Web和sho上有像素完美的布局而不是去寻找PDF ...很棒。因为换行符* * *

通常都有效,而且HTML也适合这种情况。)


顺便说一句,玩弄跨度技巧等等。这里和

没有解决问题。我最后不得不通过提供页面的ASP插入硬打破

("< br />")。


-

Google Blogoscoped
http://blog.outer-court .com


Jan Roland Eriksson写道:

我如何制作IE和Firefox同意使连字符触发
换行?


为什么要这样做?




我的文字有它中有很多连字符。事实上,

每个空格字符被替换为连字符,(以说明稳定的

无人机状态发声而不会暂停)。我不希望这里隐形柔软的

连字符,我不想要不破坏连字符。如果需要,我想要显示可能触发换行的
连字符。


我在连字符[1]上找到了Jukkas页面并且它说:A减号标志可能不是

与以下数字字符分开或后面打开

字符,即使空格字符介入。


如果在打开字符后意味着正常的字母,然后Firefox

做正确的事情,但那时似乎没有办法实现这个

效果。在今天之前,我的印象是使用了连字符

来说这个词在下一行继续。现在似乎是Unicode

需要一个打破连字符角色。


Gustaf


[1] http://www.cs.tut.fi/~jkorpela/dashes.html


IE does, and I can''t remember this used to be a problem in Netscape. I
guess someone in the Mozilla team just came up with a Smart Idea about
the True Semantics of the Hyphen Minus character. :-( How do I make IE
and Firefox agree to make hyphens trigger a linebreak?

Gustaf

解决方案

On Mon, 30 Aug 2004 08:17:28 +0200, Gustaf Liljegren
<gu*****@algonet.se> wrote:

IE does, and I can''t remember this used to be a problem in Netscape. I
guess someone in the Mozilla team just came up with a Smart Idea about
the True Semantics of the Hyphen Minus character. :-( How do I make IE
and Firefox agree to make hyphens trigger a linebreak?



Why would you want to do that?

Also please know that this subject has been discussed before of course.
You may want to use, as one possible search starting point, definition
and references to discussions on the entity ­ to find out what has
been said so far.

http://groups.google.com/groups?q=%2...authoring.html

Mind you that there is more to this than what meets the eye initially.

--
Rex


Jan Roland Eriksson wrote:

On Mon, 30 Aug 2004 08:17:28 +0200, Gustaf Liljegren
<gu*****@algonet.se> wrote:

IE does, and I can''t remember this used to be a problem in
Netscape. I guess someone in the Mozilla team just came up with a
Smart Idea about the True Semantics of the Hyphen Minus character.
:-( How do I make IE and Firefox agree to make hyphens trigger a
linebreak?



Why would you want to do that?



To jump in the conversation, a line-break after a hyphen is normal
usage in books, newspapers etc. So the question would be why would one
*not* want that?

I ran into the same problem recently. I was using pixel-values for
table-cells and Firefox did not dare to break state names such as
"Baden-Wurtemberg", even though Internet Explorer did. Firefox just
ignored the table-cell widths as defined in the CSS and made the table
move out of the layout frame as suggested by our designers. (Now I
suppose someone will tell me I can''t have pixel-perfect layout on the
Web and should rather go for PDF... great. Because line-breaks *do*
usually work, and HTML is well for this.)

By the way, playing around with putting span trickery etc. here and
there didn''t solve the problem. I finally had to insert hard breaks
("<br />") via the ASP that served the pages.

--
Google Blogoscoped
http://blog.outer-court.com


Jan Roland Eriksson wrote:

How do I make IE and Firefox agree to make hyphens trigger a
linebreak?

Why would you want to do that?



My text has a lot of hyphens in it. In fact,
every-space-character-is-replaced-with-a-hyphen, (to illustrate a steady
drone-like phonation without pauses). I don''t want the invisible soft
hyphens here, and I don''t want the non-breaking hyphen. I want visible
hyphens that may trigger a linebreak, if needed.

I found Jukkas page on hyphens [1] and it says: "A minus sign may not be
separated from following numeric characters or following opening
characters, even if a space character intervenes."

If "following opening characters" means normal letters, then Firefox
does the right thing, but then there seem to be no way to achieve this
effect. Before today, I was under the impression that hyphens are used
to say "this word continues on the next line". Now it seems Unicode
needs a "breaking hyphen" character.

Gustaf

[1]http://www.cs.tut.fi/~jkorpela/dashes.html


这篇关于Firefox不会在连字符处断行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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