unitsml 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +66 -11
- data/lib/unitsml/version.rb +1 -1
- data/unitsdb/dimensions.yaml +859 -0
- data/unitsdb/docs/README.adoc +12 -0
- data/unitsdb/docs/navigation.adoc +7 -0
- data/unitsdb/prefixes.yaml +294 -0
- data/unitsdb/quantities.yaml +2467 -0
- data/unitsdb/unit_systems.yaml +16 -0
- data/unitsdb/units.yaml +10502 -0
- metadata +8 -1
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            = UnitsDB
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            This data repository is used in conjunction with UnitsML.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Sources include:
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * https://www.bipm.org/en/publications/si-brochure/[BIPM SI Brochure]
         | 
| 8 | 
            +
            * https://www.nist.gov/pml/special-publication-811[NIST SP 811]
         | 
| 9 | 
            +
            * ISO 80000 series
         | 
| 10 | 
            +
            * (in some cases, "Encyclopaedia of Scientific Units, Weights and Measures, Their SI Equivalences and Origins" by François Cardarelli, is consulted)
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            NOTE: Conversion factors here are not updated with the revised SI.
         | 
| @@ -0,0 +1,294 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            NISTp10_24:
         | 
| 3 | 
            +
              name: yotta
         | 
| 4 | 
            +
              symbol:
         | 
| 5 | 
            +
                ascii: Y
         | 
| 6 | 
            +
                html: Y
         | 
| 7 | 
            +
                latex: Y
         | 
| 8 | 
            +
                unicode: Y
         | 
| 9 | 
            +
              base: 10
         | 
| 10 | 
            +
              power: 24
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            NISTp10_21:
         | 
| 13 | 
            +
              name: zetta
         | 
| 14 | 
            +
              symbol:
         | 
| 15 | 
            +
                ascii: Z
         | 
| 16 | 
            +
                html: Z
         | 
| 17 | 
            +
                latex: Z
         | 
| 18 | 
            +
                unicode: Z
         | 
| 19 | 
            +
              base: 10
         | 
| 20 | 
            +
              power: 21
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            NISTp10_18:
         | 
| 23 | 
            +
              name: exa
         | 
| 24 | 
            +
              symbol:
         | 
| 25 | 
            +
                ascii: E
         | 
| 26 | 
            +
                html: E
         | 
| 27 | 
            +
                latex: E
         | 
| 28 | 
            +
                unicode: E
         | 
| 29 | 
            +
              base: 10
         | 
| 30 | 
            +
              power: 18
         | 
| 31 | 
            +
             | 
| 32 | 
            +
            NISTp10_15:
         | 
| 33 | 
            +
              name: peta
         | 
| 34 | 
            +
              symbol:
         | 
| 35 | 
            +
                ascii: P
         | 
| 36 | 
            +
                html: P
         | 
| 37 | 
            +
                latex: P
         | 
| 38 | 
            +
                unicode: P
         | 
| 39 | 
            +
              base: 10
         | 
| 40 | 
            +
              power: 15
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            NISTp10_12:
         | 
| 43 | 
            +
              name: tera
         | 
| 44 | 
            +
              symbol:
         | 
| 45 | 
            +
                ascii: T
         | 
| 46 | 
            +
                html: T
         | 
| 47 | 
            +
                latex: T
         | 
| 48 | 
            +
                unicode: T
         | 
| 49 | 
            +
              base: 10
         | 
| 50 | 
            +
              power: 12
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            NISTp10_9:
         | 
| 53 | 
            +
              name: giga
         | 
| 54 | 
            +
              symbol:
         | 
| 55 | 
            +
                ascii: G
         | 
| 56 | 
            +
                html: G
         | 
| 57 | 
            +
                latex: G
         | 
| 58 | 
            +
                unicode: G
         | 
| 59 | 
            +
              base: 10
         | 
| 60 | 
            +
              power: 9
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            NISTp10_6:
         | 
| 63 | 
            +
              name: mega
         | 
| 64 | 
            +
              symbol:
         | 
| 65 | 
            +
                ascii: M
         | 
| 66 | 
            +
                html: M
         | 
| 67 | 
            +
                latex: M
         | 
| 68 | 
            +
                unicode: M
         | 
| 69 | 
            +
              base: 10
         | 
| 70 | 
            +
              power: 6
         | 
| 71 | 
            +
             | 
| 72 | 
            +
            NISTp10_3:
         | 
| 73 | 
            +
              name: kilo
         | 
| 74 | 
            +
              symbol:
         | 
| 75 | 
            +
                ascii: k
         | 
| 76 | 
            +
                html: k
         | 
| 77 | 
            +
                latex: k
         | 
| 78 | 
            +
                unicode: k
         | 
| 79 | 
            +
              base: 10
         | 
| 80 | 
            +
              power: 3
         | 
| 81 | 
            +
             | 
| 82 | 
            +
            NISTp10_2:
         | 
| 83 | 
            +
              name: hecto
         | 
| 84 | 
            +
              symbol:
         | 
| 85 | 
            +
                ascii: h
         | 
| 86 | 
            +
                html: h
         | 
| 87 | 
            +
                latex: h
         | 
| 88 | 
            +
                unicode: h
         | 
| 89 | 
            +
              base: 10
         | 
| 90 | 
            +
              power: 2
         | 
| 91 | 
            +
             | 
| 92 | 
            +
            NISTp10_1:
         | 
| 93 | 
            +
              name: deka
         | 
| 94 | 
            +
              symbol:
         | 
| 95 | 
            +
                ascii: da
         | 
| 96 | 
            +
                html: da
         | 
| 97 | 
            +
                latex: da
         | 
| 98 | 
            +
                unicode: da
         | 
| 99 | 
            +
              base: 10
         | 
| 100 | 
            +
              power: 1
         | 
| 101 | 
            +
             | 
| 102 | 
            +
            # NO_PREFIX: Unity, added by RT
         | 
| 103 | 
            +
            NISTp10_0:
         | 
| 104 | 
            +
              name: ""
         | 
| 105 | 
            +
              symbol:
         | 
| 106 | 
            +
                ascii: ""
         | 
| 107 | 
            +
                html: ""
         | 
| 108 | 
            +
                latex: ""
         | 
| 109 | 
            +
                unicode: ""
         | 
| 110 | 
            +
              base: 10
         | 
| 111 | 
            +
              power: 0
         | 
| 112 | 
            +
             | 
| 113 | 
            +
            NISTp10_-1:
         | 
| 114 | 
            +
              name: deci
         | 
| 115 | 
            +
              symbol:
         | 
| 116 | 
            +
                ascii: d
         | 
| 117 | 
            +
                html: d
         | 
| 118 | 
            +
                latex: d
         | 
| 119 | 
            +
                unicode: d
         | 
| 120 | 
            +
              base: 10
         | 
| 121 | 
            +
              power: -1
         | 
| 122 | 
            +
             | 
| 123 | 
            +
            NISTp10_-2:
         | 
| 124 | 
            +
              name: centi
         | 
| 125 | 
            +
              symbol:
         | 
| 126 | 
            +
                ascii: c
         | 
| 127 | 
            +
                html: c
         | 
| 128 | 
            +
                latex: c
         | 
| 129 | 
            +
                unicode: c
         | 
| 130 | 
            +
              base: 10
         | 
| 131 | 
            +
              power: -2
         | 
| 132 | 
            +
             | 
| 133 | 
            +
            NISTp10_-3:
         | 
| 134 | 
            +
              name: milli
         | 
| 135 | 
            +
              symbol:
         | 
| 136 | 
            +
                ascii: m
         | 
| 137 | 
            +
                html: m
         | 
| 138 | 
            +
                latex: m
         | 
| 139 | 
            +
                unicode: m
         | 
| 140 | 
            +
              base: 10
         | 
| 141 | 
            +
              power: -3
         | 
| 142 | 
            +
             | 
| 143 | 
            +
            NISTp10_-6:
         | 
| 144 | 
            +
              name: micro
         | 
| 145 | 
            +
              symbol:
         | 
| 146 | 
            +
                ascii: u
         | 
| 147 | 
            +
                html: "µ"
         | 
| 148 | 
            +
                latex: $mu$
         | 
| 149 | 
            +
                unicode: μ
         | 
| 150 | 
            +
              base: 10
         | 
| 151 | 
            +
              power: -6
         | 
| 152 | 
            +
             | 
| 153 | 
            +
            NISTp10_-9:
         | 
| 154 | 
            +
              name: nano
         | 
| 155 | 
            +
              symbol:
         | 
| 156 | 
            +
                ascii: n
         | 
| 157 | 
            +
                html: n
         | 
| 158 | 
            +
                latex: n
         | 
| 159 | 
            +
                unicode: n
         | 
| 160 | 
            +
              base: 10
         | 
| 161 | 
            +
              power: -9
         | 
| 162 | 
            +
             | 
| 163 | 
            +
            NISTp10_-12:
         | 
| 164 | 
            +
              name: pico
         | 
| 165 | 
            +
              symbol:
         | 
| 166 | 
            +
                ascii: p
         | 
| 167 | 
            +
                html: p
         | 
| 168 | 
            +
                latex: p
         | 
| 169 | 
            +
                unicode: p
         | 
| 170 | 
            +
              base: 10
         | 
| 171 | 
            +
              power: -12
         | 
| 172 | 
            +
             | 
| 173 | 
            +
            NISTp10_-15:
         | 
| 174 | 
            +
              name: femto
         | 
| 175 | 
            +
              symbol:
         | 
| 176 | 
            +
                ascii: f
         | 
| 177 | 
            +
                html: f
         | 
| 178 | 
            +
                latex: f
         | 
| 179 | 
            +
                unicode: f
         | 
| 180 | 
            +
              base: 10
         | 
| 181 | 
            +
              power: -15
         | 
| 182 | 
            +
             | 
| 183 | 
            +
            NISTp10_-18:
         | 
| 184 | 
            +
              name: atto
         | 
| 185 | 
            +
              symbol:
         | 
| 186 | 
            +
                ascii: a
         | 
| 187 | 
            +
                html: a
         | 
| 188 | 
            +
                latex: a
         | 
| 189 | 
            +
                unicode: a
         | 
| 190 | 
            +
              base: 10
         | 
| 191 | 
            +
              power: -18
         | 
| 192 | 
            +
             | 
| 193 | 
            +
            NISTp10_-21:
         | 
| 194 | 
            +
              name: zepto
         | 
| 195 | 
            +
              symbol:
         | 
| 196 | 
            +
                ascii: z
         | 
| 197 | 
            +
                html: z
         | 
| 198 | 
            +
                latex: z
         | 
| 199 | 
            +
                unicode: z
         | 
| 200 | 
            +
              base: 10
         | 
| 201 | 
            +
              power: -21
         | 
| 202 | 
            +
             | 
| 203 | 
            +
            NISTp10_-24:
         | 
| 204 | 
            +
              name: yocto
         | 
| 205 | 
            +
              symbol:
         | 
| 206 | 
            +
                ascii: y
         | 
| 207 | 
            +
                html: y
         | 
| 208 | 
            +
                latex: y
         | 
| 209 | 
            +
                unicode: y
         | 
| 210 | 
            +
              base: 10
         | 
| 211 | 
            +
              power: -24
         | 
| 212 | 
            +
             | 
| 213 | 
            +
             | 
| 214 | 
            +
            # Binary Prefixes:
         | 
| 215 | 
            +
             | 
| 216 | 
            +
            NISTp2_10:
         | 
| 217 | 
            +
              name: kibi
         | 
| 218 | 
            +
              symbol:
         | 
| 219 | 
            +
                ascii: Ki
         | 
| 220 | 
            +
                html: Ki
         | 
| 221 | 
            +
                latex: Ki
         | 
| 222 | 
            +
                unicode: Ki
         | 
| 223 | 
            +
              base: 2
         | 
| 224 | 
            +
              power: 10
         | 
| 225 | 
            +
             | 
| 226 | 
            +
            NISTp2_20:
         | 
| 227 | 
            +
              name: mebi
         | 
| 228 | 
            +
              symbol:
         | 
| 229 | 
            +
                ascii: Mi
         | 
| 230 | 
            +
                html: Mi
         | 
| 231 | 
            +
                latex: Mi
         | 
| 232 | 
            +
                unicode: Mi
         | 
| 233 | 
            +
              base: 2
         | 
| 234 | 
            +
              power: 20
         | 
| 235 | 
            +
             | 
| 236 | 
            +
            NISTp2_30:
         | 
| 237 | 
            +
              name: gibi
         | 
| 238 | 
            +
              symbol:
         | 
| 239 | 
            +
                ascii: Gi
         | 
| 240 | 
            +
                html: Gi
         | 
| 241 | 
            +
                latex: Gi
         | 
| 242 | 
            +
                unicode: Gi
         | 
| 243 | 
            +
              base: 2
         | 
| 244 | 
            +
              power: 30
         | 
| 245 | 
            +
             | 
| 246 | 
            +
            NISTp2_40:
         | 
| 247 | 
            +
              name: tebi
         | 
| 248 | 
            +
              symbol:
         | 
| 249 | 
            +
                ascii: Ti
         | 
| 250 | 
            +
                html: Ti
         | 
| 251 | 
            +
                latex: Ti
         | 
| 252 | 
            +
                unicode: Ti
         | 
| 253 | 
            +
              base: 2
         | 
| 254 | 
            +
              power: 40
         | 
| 255 | 
            +
             | 
| 256 | 
            +
            NISTp2_50:
         | 
| 257 | 
            +
              name: pebi
         | 
| 258 | 
            +
              symbol:
         | 
| 259 | 
            +
                ascii: Pi
         | 
| 260 | 
            +
                html: Pi
         | 
| 261 | 
            +
                latex: Pi
         | 
| 262 | 
            +
                unicode: Pi
         | 
| 263 | 
            +
              base: 2
         | 
| 264 | 
            +
              power: 50
         | 
| 265 | 
            +
             | 
| 266 | 
            +
            NISTp2_60:
         | 
| 267 | 
            +
              name: exbi
         | 
| 268 | 
            +
              symbol:
         | 
| 269 | 
            +
                ascii: Ei
         | 
| 270 | 
            +
                html: Ei
         | 
| 271 | 
            +
                latex: Ei
         | 
| 272 | 
            +
                unicode: Ei
         | 
| 273 | 
            +
              base: 2
         | 
| 274 | 
            +
              power: 60
         | 
| 275 | 
            +
             | 
| 276 | 
            +
            NISTp2_70:
         | 
| 277 | 
            +
              name: zebi
         | 
| 278 | 
            +
              symbol:
         | 
| 279 | 
            +
                ascii: Zi
         | 
| 280 | 
            +
                html: Zi
         | 
| 281 | 
            +
                latex: Zi
         | 
| 282 | 
            +
                unicode: Zi
         | 
| 283 | 
            +
              base: 2
         | 
| 284 | 
            +
              power: 70
         | 
| 285 | 
            +
             | 
| 286 | 
            +
            NISTp2_80:
         | 
| 287 | 
            +
              name: yobi
         | 
| 288 | 
            +
              symbol:
         | 
| 289 | 
            +
                ascii: Yi
         | 
| 290 | 
            +
                html: Yi
         | 
| 291 | 
            +
                latex: Yi
         | 
| 292 | 
            +
                unicode: Yi
         | 
| 293 | 
            +
              base: 2
         | 
| 294 | 
            +
              power: 80
         |