[EMAIL PROTECTED] wrote: > On 9 elo, 18:41, Masayuki Nakano <[EMAIL PROTECTED]> wrote: > >> https://bugzilla.mozilla.org/attachment.cgi?id=275972 > > I think there is an error in the "Should break inside" list where the > second item says that the combination SPACE+NBSP is breakable. > According to UAX 14, a non-breaking character prohibits breaks both > before and after: > http://www.unicode.org/reports/tr14/tr14-20.html#Table1 > > Thus, in practice, SPACE+NBSP is equivalent to NBSP+NBSP (since SPACE > offers a break opportunity only after, and that opportunity is then > overruled by NBSP). > > Another small remark: my understanding is that in PHP code there may > occur strings of the following type: > > $_GET{'x'} > > $_GET['x'] > > (These should basically mean the same thing, but curly brackets are > recommended over square brackets.) > > I know next to nothing about PHP, but I'd assume breaking these > strings would be as unwanted as breaking "Init()" or "sin(x)". Perhaps > these cases too should be added to the "Don't break" list? > > -- > Simo Kaupinmäki >
No, See: > GL: Non-breaking (“Glue”) (XB/XA) (Non-tailorable) > Non-breaking characters prohibit breaks on either side, but that prohibition > can be overridden by SP or ZW. In particular, when NBSP follows SPACE, > there is a break opportunity after the SPACE and NBSP will go as visible > space onto the next line. See also WJ. The following lists the characters > of line break class GL with additional description. We should break here. -- Masayuki Nakano <[EMAIL PROTECTED]> Manager, Internationalization, Mozilla Japan. Personal Web Site (Written in Japanese): http://www.d-toybox.com/studio/ _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

