README.md in unicode-numeric_value-1.4.0 vs README.md in unicode-numeric_value-1.5.0
- old
+ new
@@ -1,14 +1,14 @@
-# Unicode::NumericValue [![[version]](https://badge.fury.io/rb/unicode-numeric_value.svg)](http://badge.fury.io/rb/unicode-numeric_value) [![[travis]](https://travis-ci.org/janlelis/unicode-numeric_value.png)](https://travis-ci.org/janlelis/unicode-numeric_value)
+# Unicode::NumericValue [![[version]](https://badge.fury.io/rb/unicode-numeric_value.svg)](https://badge.fury.io/rb/unicode-numeric_value) [![[travis]](https://travis-ci.org/janlelis/unicode-numeric_value.png)](https://travis-ci.org/janlelis/unicode-numeric_value)
Convert a Unicode character into its numeric value.
-Unicode version: **11.0.0**
+Unicode version: **12.0.0** (March 2019)
-Supported Rubies: **2.5**, **2.4**, **2.3**
+Supported Rubies: **2.6**, **2.5**, **2.4**
-Old Rubies that might still work: **2.2**, **2.1**, **2.0**
+Old Rubies that might still work: **2.3**, **2.2**, **2.1**, **2.0**
## Gemfile
```ruby
gem "unicode-numeric_value"
@@ -24,10 +24,11 @@
Unicode::NumericValue.of("1") # => 1
Unicode::NumericValue.of("β
§") # => 8
Unicode::NumericValue.of("β³") # => 19
Unicode::NumericValue.of("ΒΎ") # => (3/4)
Unicode::NumericValue.of("ΰΌ³") # => (-1/2)
+Unicode::NumericValue.of("πΏ") # => (1/320)
Unicode::NumericValue.of("π‘") # => 1000000000000
Unicode::NumericValue.of("δΊ") # => 5
Unicode::NumericValue.of("A") # => nil
```
@@ -1415,10 +1416,31 @@
U+11DA5 | πΆ₯ | 5 | GUNJALA GONDI DIGIT FIVE
U+11DA6 | πΆ¦ | 6 | GUNJALA GONDI DIGIT SIX
U+11DA7 | πΆ§ | 7 | GUNJALA GONDI DIGIT SEVEN
U+11DA8 | πΆ¨ | 8 | GUNJALA GONDI DIGIT EIGHT
U+11DA9 | πΆ© | 9 | GUNJALA GONDI DIGIT NINE
+ U+11FC0 | πΏ | (1/320) | TAMIL FRACTION ONE THREE-HUNDRED-AND-TWENTIETH
+ U+11FC1 | πΏ | (1/160) | TAMIL FRACTION ONE ONE-HUNDRED-AND-SIXTIETH
+ U+11FC2 | πΏ | (1/80) | TAMIL FRACTION ONE EIGHTIETH
+ U+11FC3 | πΏ | (1/64) | TAMIL FRACTION ONE SIXTY-FOURTH
+ U+11FC4 | πΏ | (1/40) | TAMIL FRACTION ONE FORTIETH
+ U+11FC5 | πΏ
| (1/32) | TAMIL FRACTION ONE THIRTY-SECOND
+ U+11FC6 | πΏ | (3/80) | TAMIL FRACTION THREE EIGHTIETHS
+ U+11FC7 | πΏ | (3/64) | TAMIL FRACTION THREE SIXTY-FOURTHS
+ U+11FC8 | πΏ | (1/20) | TAMIL FRACTION ONE TWENTIETH
+ U+11FC9 | πΏ | (1/16) | TAMIL FRACTION ONE SIXTEENTH-1
+ U+11FCA | πΏ | (1/16) | TAMIL FRACTION ONE SIXTEENTH-2
+ U+11FCB | πΏ | (1/10) | TAMIL FRACTION ONE TENTH
+ U+11FCC | πΏ | (1/8) | TAMIL FRACTION ONE EIGHTH
+ U+11FCD | πΏ | (3/20) | TAMIL FRACTION THREE TWENTIETHS
+ U+11FCE | πΏ | (3/16) | TAMIL FRACTION THREE SIXTEENTHS
+ U+11FCF | πΏ | (1/5) | TAMIL FRACTION ONE FIFTH
+ U+11FD0 | πΏ | (1/4) | TAMIL FRACTION ONE QUARTER
+ U+11FD1 | πΏ | (1/2) | TAMIL FRACTION ONE HALF-1
+ U+11FD2 | πΏ | (1/2) | TAMIL FRACTION ONE HALF-2
+ U+11FD3 | πΏ | (3/4) | TAMIL FRACTION THREE QUARTERS
+ U+11FD4 | πΏ | (1/320) | TAMIL FRACTION DOWNSCALING FACTOR KIIZH
U+12400 | π | 2 | CUNEIFORM NUMERIC SIGN TWO ASH
U+12401 | π | 3 | CUNEIFORM NUMERIC SIGN THREE ASH
U+12402 | π | 4 | CUNEIFORM NUMERIC SIGN FOUR ASH
U+12403 | π | 5 | CUNEIFORM NUMERIC SIGN FIVE ASH
U+12404 | π | 6 | CUNEIFORM NUMERIC SIGN SIX ASH
@@ -1671,10 +1693,30 @@
U+1D7FB | π» | 5 | MATHEMATICAL MONOSPACE DIGIT FIVE
U+1D7FC | πΌ | 6 | MATHEMATICAL MONOSPACE DIGIT SIX
U+1D7FD | π½ | 7 | MATHEMATICAL MONOSPACE DIGIT SEVEN
U+1D7FE | πΎ | 8 | MATHEMATICAL MONOSPACE DIGIT EIGHT
U+1D7FF | πΏ | 9 | MATHEMATICAL MONOSPACE DIGIT NINE
+ U+1E140 | π
| 0 | NYIAKENG PUACHUE HMONG DIGIT ZERO
+ U+1E141 | π
| 1 | NYIAKENG PUACHUE HMONG DIGIT ONE
+ U+1E142 | π
| 2 | NYIAKENG PUACHUE HMONG DIGIT TWO
+ U+1E143 | π
| 3 | NYIAKENG PUACHUE HMONG DIGIT THREE
+ U+1E144 | π
| 4 | NYIAKENG PUACHUE HMONG DIGIT FOUR
+ U+1E145 | π
| 5 | NYIAKENG PUACHUE HMONG DIGIT FIVE
+ U+1E146 | π
| 6 | NYIAKENG PUACHUE HMONG DIGIT SIX
+ U+1E147 | π
| 7 | NYIAKENG PUACHUE HMONG DIGIT SEVEN
+ U+1E148 | π
| 8 | NYIAKENG PUACHUE HMONG DIGIT EIGHT
+ U+1E149 | π
| 9 | NYIAKENG PUACHUE HMONG DIGIT NINE
+ U+1E2F0 | π° | 0 | WANCHO DIGIT ZERO
+ U+1E2F1 | π± | 1 | WANCHO DIGIT ONE
+ U+1E2F2 | π² | 2 | WANCHO DIGIT TWO
+ U+1E2F3 | π³ | 3 | WANCHO DIGIT THREE
+ U+1E2F4 | π΄ | 4 | WANCHO DIGIT FOUR
+ U+1E2F5 | π΅ | 5 | WANCHO DIGIT FIVE
+ U+1E2F6 | πΆ | 6 | WANCHO DIGIT SIX
+ U+1E2F7 | π· | 7 | WANCHO DIGIT SEVEN
+ U+1E2F8 | πΈ | 8 | WANCHO DIGIT EIGHT
+ U+1E2F9 | πΉ | 9 | WANCHO DIGIT NINE
U+1E8C7 | π£ | 1 | MENDE KIKAKUI DIGIT ONE
U+1E8C8 | π£ | 2 | MENDE KIKAKUI DIGIT TWO
U+1E8C9 | π£ | 3 | MENDE KIKAKUI DIGIT THREE
U+1E8CA | π£ | 4 | MENDE KIKAKUI DIGIT FOUR
U+1E8CB | π£ | 5 | MENDE KIKAKUI DIGIT FIVE
@@ -1756,10 +1798,70 @@
U+1ECAF | π²― | (3/4) | INDIC SIYAQ FRACTION THREE QUARTERS
U+1ECB1 | π²± | 1 | INDIC SIYAQ NUMBER ALTERNATE ONE
U+1ECB2 | π²² | 2 | INDIC SIYAQ NUMBER ALTERNATE TWO
U+1ECB3 | π²³ | 10000 | INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND
U+1ECB4 | 𲴠| 100000 | INDIC SIYAQ ALTERNATE LAKH MARK
+ U+1ED01 | π΄ | 1 | OTTOMAN SIYAQ NUMBER ONE
+ U+1ED02 | π΄ | 2 | OTTOMAN SIYAQ NUMBER TWO
+ U+1ED03 | π΄ | 3 | OTTOMAN SIYAQ NUMBER THREE
+ U+1ED04 | π΄ | 4 | OTTOMAN SIYAQ NUMBER FOUR
+ U+1ED05 | π΄
| 5 | OTTOMAN SIYAQ NUMBER FIVE
+ U+1ED06 | π΄ | 6 | OTTOMAN SIYAQ NUMBER SIX
+ U+1ED07 | π΄ | 7 | OTTOMAN SIYAQ NUMBER SEVEN
+ U+1ED08 | π΄ | 8 | OTTOMAN SIYAQ NUMBER EIGHT
+ U+1ED09 | π΄ | 9 | OTTOMAN SIYAQ NUMBER NINE
+ U+1ED0A | π΄ | 10 | OTTOMAN SIYAQ NUMBER TEN
+ U+1ED0B | π΄ | 20 | OTTOMAN SIYAQ NUMBER TWENTY
+ U+1ED0C | π΄ | 30 | OTTOMAN SIYAQ NUMBER THIRTY
+ U+1ED0D | π΄ | 40 | OTTOMAN SIYAQ NUMBER FORTY
+ U+1ED0E | π΄ | 50 | OTTOMAN SIYAQ NUMBER FIFTY
+ U+1ED0F | π΄ | 60 | OTTOMAN SIYAQ NUMBER SIXTY
+ U+1ED10 | π΄ | 70 | OTTOMAN SIYAQ NUMBER SEVENTY
+ U+1ED11 | π΄ | 80 | OTTOMAN SIYAQ NUMBER EIGHTY
+ U+1ED12 | π΄ | 90 | OTTOMAN SIYAQ NUMBER NINETY
+ U+1ED13 | π΄ | 100 | OTTOMAN SIYAQ NUMBER ONE HUNDRED
+ U+1ED14 | π΄ | 200 | OTTOMAN SIYAQ NUMBER TWO HUNDRED
+ U+1ED15 | π΄ | 300 | OTTOMAN SIYAQ NUMBER THREE HUNDRED
+ U+1ED16 | π΄ | 400 | OTTOMAN SIYAQ NUMBER FOUR HUNDRED
+ U+1ED17 | π΄ | 500 | OTTOMAN SIYAQ NUMBER FIVE HUNDRED
+ U+1ED18 | π΄ | 600 | OTTOMAN SIYAQ NUMBER SIX HUNDRED
+ U+1ED19 | π΄ | 700 | OTTOMAN SIYAQ NUMBER SEVEN HUNDRED
+ U+1ED1A | π΄ | 800 | OTTOMAN SIYAQ NUMBER EIGHT HUNDRED
+ U+1ED1B | π΄ | 900 | OTTOMAN SIYAQ NUMBER NINE HUNDRED
+ U+1ED1C | π΄ | 1000 | OTTOMAN SIYAQ NUMBER ONE THOUSAND
+ U+1ED1D | π΄ | 2000 | OTTOMAN SIYAQ NUMBER TWO THOUSAND
+ U+1ED1E | π΄ | 3000 | OTTOMAN SIYAQ NUMBER THREE THOUSAND
+ U+1ED1F | π΄ | 4000 | OTTOMAN SIYAQ NUMBER FOUR THOUSAND
+ U+1ED20 | π΄ | 5000 | OTTOMAN SIYAQ NUMBER FIVE THOUSAND
+ U+1ED21 | π΄‘ | 6000 | OTTOMAN SIYAQ NUMBER SIX THOUSAND
+ U+1ED22 | π΄’ | 7000 | OTTOMAN SIYAQ NUMBER SEVEN THOUSAND
+ U+1ED23 | π΄£ | 8000 | OTTOMAN SIYAQ NUMBER EIGHT THOUSAND
+ U+1ED24 | π΄€ | 9000 | OTTOMAN SIYAQ NUMBER NINE THOUSAND
+ U+1ED25 | π΄₯ | 10000 | OTTOMAN SIYAQ NUMBER TEN THOUSAND
+ U+1ED26 | 𴦠| 20000 | OTTOMAN SIYAQ NUMBER TWENTY THOUSAND
+ U+1ED27 | 𴧠| 30000 | OTTOMAN SIYAQ NUMBER THIRTY THOUSAND
+ U+1ED28 | 𴨠| 40000 | OTTOMAN SIYAQ NUMBER FORTY THOUSAND
+ U+1ED29 | π΄© | 50000 | OTTOMAN SIYAQ NUMBER FIFTY THOUSAND
+ U+1ED2A | π΄ͺ | 60000 | OTTOMAN SIYAQ NUMBER SIXTY THOUSAND
+ U+1ED2B | π΄« | 70000 | OTTOMAN SIYAQ NUMBER SEVENTY THOUSAND
+ U+1ED2C | 𴬠| 80000 | OTTOMAN SIYAQ NUMBER EIGHTY THOUSAND
+ U+1ED2D | π΄ | 90000 | OTTOMAN SIYAQ NUMBER NINETY THOUSAND
+ U+1ED2F | π΄― | 2 | OTTOMAN SIYAQ ALTERNATE NUMBER TWO
+ U+1ED30 | π΄° | 3 | OTTOMAN SIYAQ ALTERNATE NUMBER THREE
+ U+1ED31 | π΄± | 4 | OTTOMAN SIYAQ ALTERNATE NUMBER FOUR
+ U+1ED32 | π΄² | 5 | OTTOMAN SIYAQ ALTERNATE NUMBER FIVE
+ U+1ED33 | π΄³ | 6 | OTTOMAN SIYAQ ALTERNATE NUMBER SIX
+ U+1ED34 | π΄΄ | 7 | OTTOMAN SIYAQ ALTERNATE NUMBER SEVEN
+ U+1ED35 | π΄΅ | 8 | OTTOMAN SIYAQ ALTERNATE NUMBER EIGHT
+ U+1ED36 | π΄Ά | 9 | OTTOMAN SIYAQ ALTERNATE NUMBER NINE
+ U+1ED37 | π΄· | 10 | OTTOMAN SIYAQ ALTERNATE NUMBER TEN
+ U+1ED38 | π΄Έ | 400 | OTTOMAN SIYAQ ALTERNATE NUMBER FOUR HUNDRED
+ U+1ED39 | π΄Ή | 600 | OTTOMAN SIYAQ ALTERNATE NUMBER SIX HUNDRED
+ U+1ED3A | π΄Ί | 2000 | OTTOMAN SIYAQ ALTERNATE NUMBER TWO THOUSAND
+ U+1ED3B | π΄» | 10000 | OTTOMAN SIYAQ ALTERNATE NUMBER TEN THOUSAND
+ U+1ED3C | π΄Ό | (1/2) | OTTOMAN SIYAQ FRACTION ONE HALF
+ U+1ED3D | π΄½ | (1/6) | OTTOMAN SIYAQ FRACTION ONE SIXTH
U+1F100 | π | 0 | DIGIT ZERO FULL STOP
U+1F101 | π | 0 | DIGIT ZERO COMMA
U+1F102 | π | 1 | DIGIT ONE COMMA
U+1F103 | π | 2 | DIGIT TWO COMMA
U+1F104 | π | 3 | DIGIT THREE COMMA
@@ -1786,12 +1888,11 @@
U+22998 | π’¦ | 3 | CJK UNIFIED IDEOGRAPH-22998
U+23B1B | 𣬠| 3 | CJK UNIFIED IDEOGRAPH-23B1B
U+2626D | π¦ | 4 | CJK UNIFIED IDEOGRAPH-2626D
U+2F890 | π―’ | 9 | CJK COMPATIBILITY IDEOGRAPH-2F890
-
See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related micro libraries.
## MIT License
-- Copyright (C) 2016-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
+- Copyright (C) 2016-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1