Michael created this task. Michael added projects: Wikidata Query Builder, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION Wikibase quantity number parsing happens in QuantityParser.php <https://github.com/wmde/Number/blob/master/src/ValueParsers/QuantityParser.php> and the tests are in QuantityParserTest.php <https://github.com/wmde/Number/blob/master/tests/ValueParsers/QuantityParserTest.php>. Consider implementing this in an extra class or file. That would make the transition to a javascript version of the Number repo easier in the future. NOTE: We (and Wikibase) _do not_ parse the quantity from the number string. But everything else seems accurate, including `100!` and `100~`. I still have to find where the numbers are translated from their localized version to their conceptual representation. NOTE: We (for now) do not parse any numerals except 0-9 and also expect the dot `.` to be the decimal separator. TASK DETAIL https://phabricator.wikimedia.org/T275113 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Michael Cc: Aklapper, Michael, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
