I hate Adobe Illustrator

apparently in addition to dropping the delimiter before negative numbers, because you can infer from the hyphen that it's the start of a new number, they also drop it before numbers that start with a decimal point iff the previus number has a decimal point in it.  this is awful.  why did they do this.  it can't possibly have been worth it.  whatever, I account for it now.
This commit is contained in:
Justin Kunimune 2024-09-14 09:30:09 -04:00
parent 5143922038
commit 7d9136b1bd

View File

@ -34,6 +34,8 @@ public class Path {
i ++;
String argString = d.substring(start, i);
argString = argString.replaceAll("([0-9.])-", "$1,-"); //this is necessary because some Adobe products leave out delimiters between negative numbers
argString = argString.replaceAll("\\.([0-9]+)\\.", ".$1,."); //this is necessary because some Adobe products also leave out delimiters between a number containing a decimal point and a number starting with a decimal point
argString = argString.replaceAll("\\.([0-9]+)\\.", ".$1,."); //you have to call it twice in case there are multiple point-separated numbers in a row
// separate the arguments
String[] argStrings;