OpenModelica icon indicating copy to clipboard operation
OpenModelica copied to clipboard

Also convert URIs when running conversion scripts

Open casella opened this issue 3 years ago • 2 comments

See modelica/ModelicaSpecification#3199.

@perost, are we doing that already?

casella avatar Jun 08 '22 21:06 casella

@perost, are we doing that already?

No, the compiler doesn't parse documentation strings. I guess we can search for modelica:// URIs and replace those in the text, though quoted identifiers complicates things a bit.

I'm not sure about names used in other contexts than URIs though. URIs should be fairly safe to convert, but other uses could potentially reference old names on purpose (like in changelogs). Though if the name is used as link text in a HTML link with a modelica:// URI it's probably safe to convert it.

perost avatar Jun 09 '22 07:06 perost

I would stick to URIs that refer to the library being converted, wherever they show up (e.g. in documentation layers or loadResource() function calls)

casella avatar Jun 09 '22 12:06 casella