From 1131085d0fa1b175af47da4bdeea467aafbe38b3 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 10 Nov 2023 09:45:32 -0500 Subject: [PATCH] Added "u" as a recognized suffix to dimensions, meaning the same thing as "micron" or "um", since it is regularly used that way. --- commands/CmdSubrs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/CmdSubrs.c b/commands/CmdSubrs.c index 3c77ac7a..c5cdf734 100644 --- a/commands/CmdSubrs.c +++ b/commands/CmdSubrs.c @@ -190,6 +190,11 @@ cmdScaleCoord(w, arg, is_relative, is_x, scale) return round(dval); } } + else if (!strcmp(endptr, "u")) + /* Maybe "u" is too ambiguous but it is very commonly used as + * an abbreviation for "micron". + */ + mscale = 1000; else if (!strncmp(endptr, "micron", 6)) mscale = 1000; else if (!strncmp(endptr, "centimicron", 11) || !strcmp(endptr, "cu"))