Using Opentype fractions

ttmt's picture

Hi all

I'm using the opentype code from Tal Lemming to create fractions

http://talleming.com/2009/10/01/fraction-fever-2/

Fractions like ½ on there own are working as expected in Indeisgn

If I try 1½ I get 11 as the top of the fraction and 2 as the bottom of the fraction.

I know the code is meant to work like this but how would I get 1½

Should a number followed by a fraction have a space between the number and the following fraction.

ttmt

JanekZ's picture

yes
and the space is substituted by the thin space

hrant's picture

And I guess deleting the space after the "½" kicks in makes it go to "11/2"? Is being forced to have a space between the "1" and "½" an acceptable compromise?

hhp

Té Rowan's picture

I reckon you could hack it to accept other spaces and nonjoiners and replace them with your own choice of space or nonjoiner.

ttmt's picture

I've come across another problem with this method that I'm not sure how to fix.

Fractions aren't created if I'm using Oldstyle figures.

How can I include Oldstyle figures in the code?

Jens Kutilek's picture

Fractions aren't created if I'm using Oldstyle figures.

How can I include Oldstyle figures in the code?

Put the frac feature before the onum feature.

gargoyle's picture

And I guess deleting the space after the "½" kicks in makes it go to "11/2"? Is being forced to have a space between the "1" and "½" an acceptable compromise?

Deleting the space before the "½" makes it into "11/2", I think is what you meant. Which of course would cause "one-and-one-half" to be incorrectly read as "eleven-halves." But in plain text, you'd almost always have a space (or something) between the "1" and the "1/2" for precisely that reason. Tal noted the pros and cons in his original post of the code, and the "space" compromise is mentioned in both categories.

hrant's picture

Yes, before, sorry.

So this code never involves virgule or nut fractions?
http://typophile.com/files/Pseudo-nut-fraction_5178.png

hhp

Nick Shinn's picture

I experimented with nut fractions when I was making Scotch Modern, but couldn’t get them to work in the Fraction feature in both InD and Quark, so just implemented the basic fractions as pre-composed.

However, I have since thought of a better way to do nut fractions in the feature—but haven’t had cause to implement it, as all my subsequent faces have had “slash” fractions, not nut.

Syndicate content Syndicate content