You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML parser needs to parse units in arbitrary strings, without knowing ahead of time which system is used.
These are the units I've personally observed so far:
Temperature
Length or volume
Weight
Force
Pressure
Combinations of the above, e.g. weight-per-volume
The HTML setup exports can use either measurement system. Some even include a mix of systems. For instance, Dallara P217 with US Standard mixes inches and millimeters:
Our parser needs to keep this in mind. There are a few approaches I will experiment with:
RegEx-based parser.
Heuristics-based parser.
A combination of the two.
The RegEx parser is expected to have many ambiguities to resolve. The heuristics are expected to remain incomplete forever. And the combination might just end up being the best overall. (E.g. heuristics for known patterns, and RegEx for everything else.)
The text was updated successfully, but these errors were encountered:
This will officially support switching between Metric and US Standard measurement systems.
Here's a rough list of considerations:
uom
mag
quantity
cpc
dimensioned
These are the units I've personally observed so far:
The HTML setup exports can use either measurement system. Some even include a mix of systems. For instance, Dallara P217 with US Standard mixes inches and millimeters:
cartunes/fixtures/iracing_lemans_default.htm
Lines 29 to 30 in 2a3b989
Our parser needs to keep this in mind. There are a few approaches I will experiment with:
The RegEx parser is expected to have many ambiguities to resolve. The heuristics are expected to remain incomplete forever. And the combination might just end up being the best overall. (E.g. heuristics for known patterns, and RegEx for everything else.)
The text was updated successfully, but these errors were encountered: