How the converter reads pasted dimensions
Dimensions get written a dozen ways. The converter finds every number, attaches its unit, and keeps the longest run of numbers joined by x, ×, *, "by", commas or L/W/H labels.
- One unit at the end applies to all. In "18 x 12 x 9 in" all three are inches. A number with no unit takes the next unit written after it, or else the last one before it.
- Each unit can differ. "18 in x 30 cm" converts each number with its own unit and warns that the line mixes systems.
- Feet and inches. 10'6", 10' 6", 10'-6", 10 ft 6 in and 10′6″ are all 126 inches.
- Fractions and decimal commas. 8 3/4, 8¾ and 45,7 cm are read as 8.75 and 45.7. A comma followed by three digits (1,250 mm) is a thousands separator.
- Other numbers are skipped. A number followed by another word (5 lb, 2 pack, model 3000) is not treated as a dimension.