Re: [svgwg] Add circular arc path command 'R'. (#767)

Two letter commands are possible, but only if existing commands have required paramers after them (at least one).
But most commands accept empty lists of parameters (numbers) and exist in two forms: absolute coordinates when uppercased, relative coordinates when lowercased. If there are extensions, may be we could use "_" as a prefix for multiletter command tokens (just forbidding "_" in the middle of a command token), and allow optional "tagged" parameters by using a /"prefix before the parameter token.

E.g.
_CR <numbers>* /tagone <numbers> /tagtwo <numbers>
(parameter tags or command tags would consist only in letters, whitespaces would remain optional, numbers could still be separated by whitespaces, commas)

Additional parsing rules would allow setting variables names and values and create references (possibly definitions of referencable objects by using parentheses and # to reference them by name, and = to define references. The parser would just have to allow feeding an associative array/dictionnary and manage naming scopes with these parentheses (acting as definitions of new subdictionnaries or subobjects).


-- 
GitHub Notification of comment by verdy-p
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/767#issuecomment-1033155036 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 8 February 2022 23:13:31 UTC