News for hackers. Stuff that matters.
Re:The New Web Typography by nitrogen on Monday January 09, 2012 @07:28PM (#3445045)
Yeah, it can only support those fractions that are included in the specification and the font itself, like 1/2, 3/4, 5/8. It's a typographic special case.
Re:The New Web Typography by mbq on Monday January 09, 2012 @08:11PM (#3445160)
I know -- the problem is the syntax. You can't safely apply this to any document, because it may change the meaning of it. Such things should only exist as unicode characters or character entities.
Re:The New Web Typography by sukuriant on Monday January 09, 2012 @08:34PM (#3445221)
I'm not sure your argument is valid. How is the decision made to convert x/y to fraction form? Is it white-space/punctuation+whitespace on either side? If that's the case, then: xxx/yyy will never become fraction form; however, x/y and x/y. (as in the end of a sentence) will.
Re:The New Web Typography by yeswecan on Tuesday January 10, 2012 @03:40AM (#3446209)
The only way to guarantee it is to have an HTML tag to identify the fraction - <frac>11/63</frac> or similar.
Re:The New Web Typography by mbq on Tuesday January 10, 2012 @03:59AM (#3446247)
But this does not work this way -- it seems it just blindly consumes char before and after / and converts if this fraction has a glyph in the font. Also, what you suggest is hard to implement since there are numerous localisation-dependent options what a whitespace/punctuation is and where to search it.