[LAD] [ANN] XSL stylesheets for converting specimen banks to petri-foo banks

Thomas Mayer thomas at residuum.org
Mon Feb 3 09:53:59 UTC 2014


David Robillard schrieb am 03.02.2014 07:12:

> On Sun, 2014-02-02 at 16:07 +0100, Thomas Mayer wrote:

>> There are two stylesheets, depending on your locale settings, i.e. if
>> your locale uses comma or dot as decimal separator (if 1/2 is saved as
>> 0.5 or 0,5 on your system).
> 
> Eeck.  XML documents should really be using the standard XSD types for
> numeric literals, e.g. xsd:decimal[1], which are not locale dependent
> (they use "." for a decimal separator).
> 
> [1] http://www.w3.org/TR/xmlschema-2#decimal

Yes, sure. But both specimen and petri-foo both make 

snprintf(buf, CHARBUFSIZE, "%f", val); 

when writing the float values, see e.g. https://github.com/jwm-art-net/Petri-Foo/blob/master/libpetrifui/dish_file.c#L368

That leaves me no choice when converting the saves.

All the best,
Thomas


More information about the Linux-audio-dev mailing list