diff --git a/404.html b/404.html index bb9311fab..8ca7ffcb2 100644 --- a/404.html +++ b/404.html @@ -9,15 +9,15 @@ 404 Page not found - - - - - - - + + + + + + + - + - + @@ -861,32 +862,28 @@

Unit file syntax

Defing quantities is recommended, but currently optional for backward compatibility reasons. If tooling supports quantity files it can verify that all units provided in unit files use defined quantities.

-

``

-

[ -: # Identifier preferably taken from a standard, like ISO 80000 -definition: -[remark: ] # remark as defined in for example ISO 80000 -[comment: ] -[deprecation: ] -]*


-
-The VSS list of quantitiess for the standard catalog exists in [quantities.yaml](https://github.com/COVESA/vehicle_signal_specification/blob/master/spec/quantities.yaml).
-
-## Defining custom units
-
-It is possible to define custom units in a unit file.
-Assume for instance you want to have a signal showing remaining range in [furlong](https://en.wikipedia.org/wiki/Furlong).
-Then you could add an additional unit `furlong`. No need to specify `unit` or `symbol` as they equals the default (i.e. "furlong").
+  [
+    <vss-quantity-identifier>: # Identifier preferably taken from a standard, like ISO 80000
+      definition: <string>
+      [remark: <string>] # remark as defined in for example ISO 80000
+      [comment: <string>]
+      [deprecation: <reason>]
+  ]*
+

The VSS list of quantitiess for the standard catalog exists in quantities.yaml.

+

Defining custom units

+

It is possible to define custom units in a unit file. +Assume for instance you want to have a signal showing remaining range in furlong. +Then you could add an additional unit furlong. No need to specify unit or symbol as they equals the default (i.e. “furlong”). As this is unit not commonly used and not described in any standards, it might be relevant to describe how it can be converted to other units. That is however only informative, as it a custom unit a downstream implementation supporting unit conversion may not support automatic conversion -of furlong to other units. -

units: -furlong: -definition: Length measured in furlong, 1 furlong equals 201.1680 m -quantity: length -allowed-datatypes: [’numeric']

-
+of furlong to other units.

+
units:
+  furlong:
+    definition: Length measured in furlong, 1 furlong equals 201.1680 m
+    quantity: length
+    allowed-datatypes: ['numeric']
+