Using Opentype fractions

Primary tabs

9 posts / 0 new
Last post
ttmt's picture
Offline
Joined: 13 Sep 2009 - 7:16am
Using Opentype fractions
0

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

Jan Żurawski's picture
Offline
Joined: 3 Sep 2005 - 12:21pm
0

yes
and the space is substituted by the thin space

Hrant H Papazian's picture
Joined: 3 May 2000 - 11:00am
0

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

Reynir Heiðberg Stefánsson's picture
Joined: 19 Nov 2010 - 11:15am
0

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
Offline
Joined: 13 Sep 2009 - 7:16am
0

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 Kutílek's picture
Offline
Joined: 12 Sep 2007 - 7:55am
0

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.

Justin Callaghan's picture
Joined: 10 Oct 2003 - 12:49am
0

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 H Papazian's picture
Joined: 3 May 2000 - 11:00am
0

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
Offline
Joined: 8 Jul 2003 - 11:00am
0

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.