Giter Site home page Giter Site logo

Comments (3)

kobalicek avatar kobalicek commented on May 25, 2024

I think this makes sense when we have locale-independent string to double conversion.

from blend2d.

abu-irrational avatar abu-irrational commented on May 25, 2024

? what does it means ?
Are you talking about the format of the numerical coordinates ?
The only valid format should be the standard (american?) notation,
eg "12345.02" or "3.34e+2" ....
locale specific format such as "1.000,0" (italian notation) or "1,000.0" (english notation) should be forbidden.

see https://www.w3.org/TR/SVG/paths.html
[...]
The path data syntax is a prefix notation (i.e., commands followed by parameters). The only allowable decimal point is a Unicode U+0046 FULL STOP (".") character (also referred to in Unicode as PERIOD, dot and decimal point) and no other delimiter characters are allowed [UNICODE]. (For example, the following is an invalid numeric value in a path data stream: "13,000.56". Instead, say: "13000.56".)

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

I'm talking about functions like atof(), strtod(), etc... that are affected by locale. I have already written SVG path data parser, so it's not a problem from this point of view, just don't want to deal with float parsing at the moment.

So keeping this open as I think it would be nice to have, but at the moment text is a higher priority.

from blend2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.