Dimensions in feet and inches should use correct typographic characters
Just a quick correction on some typography -- hopefully this is a quick fix?
Formatting for feet and inches (my house is 6'3" x 3'4") should be single and double primes. If we got this right, Dean would be proud:
′ ′ ′ ′ prime = minutes = feet
″ ″ ″ ″ double prime = seconds = inches
Was going to clone & submit a pull request, but after five minutes of looking at the ragel i realized it was futile.
If it requires writing up entirely new rules, maybe it's not worth it? Five people in the world will see the difference.
Comments and changes to this ticket
I'd like to see this be implemented too. The current problem is that the final number in a dimension sequence like 2x3x4 isn't part of the sequence. For the dimension pattern, 2x is captured and it looks ahead to verify a digit comes next. That's one "dim." Then 3x is captured and it looks ahead to see the 4. That's another one. But then the 4 is captured as just a normal phrase, so a prime or double prime after it wouldn't be able to be transformed.
I've tried to make a pattern that matches a number (with optional decimal and ' or ") followed by one or more of x and that digit pattern again, but it must be too ambiguous because it's always omitting the factors after the first one.
I'd like to see the entire dim phrase be captured and then use gsub in the formatter method to do the required x, prime, and double-prime transformations.
I'm going to leave it alone for a bit and hope someone comes up with a patch so I don't have to. :-)