README.md in unicode-scripts-1.0.0 vs README.md in unicode-scripts-1.1.0
- old
+ new
@@ -1,10 +1,10 @@
# Unicode::Scripts [![[version]](https://badge.fury.io/rb/unicode-scripts.svg)](http://badge.fury.io/rb/unicode-scripts) [![[travis]](https://travis-ci.org/janlelis/unicode-scripts.png)](https://travis-ci.org/janlelis/unicode-scripts)
Retrieve the [Unicode script(s)](https://en.wikipedia.org/wiki/Script_%28Unicode%29) a string belongs to. Can also return the *Script_Extension* property which is defined as characters which are "commonly used with more than one script, but with a limited number of scripts".
-Unicode version: **8.0.0**
+Unicode version: **9.0.0**
Supported Rubies: **2.3**, **2.2**, **2.1**
## Gemfile
@@ -50,36 +50,40 @@
require "unicode/scripts"
puts Unicode::Scripts.names
# # # Output # # #
-Caucasian_Albanian
+Adlam
Ahom
+Anatolian_Hieroglyphs
Arabic
-Imperial_Aramaic
Armenian
Avestan
Balinese
Bamum
Bassa_Vah
Batak
Bengali
+Bhaiksuki
Bopomofo
Brahmi
Braille
Buginese
Buhid
-Chakma
Canadian_Aboriginal
Carian
+Caucasian_Albanian
+Chakma
Cham
Cherokee
+Common
Coptic
+Cuneiform
Cypriot
Cyrillic
-Devanagari
Deseret
+Devanagari
Duployan
Egyptian_Hieroglyphs
Elbasan
Ethiopic
Georgian
@@ -87,118 +91,121 @@
Gothic
Grantha
Greek
Gujarati
Gurmukhi
-Hangul
Han
+Hangul
Hanunoo
Hatran
Hebrew
Hiragana
-Anatolian_Hieroglyphs
-Pahawh_Hmong
-Katakana_Or_Hiragana
-Old_Hungarian
-Old_Italic
+Imperial_Aramaic
+Inherited
+Inscriptional_Pahlavi
+Inscriptional_Parthian
Javanese
-Kayah_Li
+Kaithi
+Kannada
Katakana
+Katakana_Or_Hiragana
+Kayah_Li
Kharoshthi
Khmer
Khojki
-Kannada
-Kaithi
-Tai_Tham
+Khudawadi
Lao
Latin
Lepcha
Limbu
Linear_A
Linear_B
Lisu
Lycian
Lydian
Mahajani
+Malayalam
Mandaic
Manichaean
+Marchen
+Meetei_Mayek
Mende_Kikakui
Meroitic_Cursive
Meroitic_Hieroglyphs
-Malayalam
+Miao
Modi
Mongolian
Mro
-Meetei_Mayek
Multani
Myanmar
-Old_North_Arabian
Nabataean
+New_Tai_Lue
+Newa
Nko
Ogham
Ol_Chiki
+Old_Hungarian
+Old_Italic
+Old_North_Arabian
+Old_Permic
+Old_Persian
+Old_South_Arabian
Old_Turkic
Oriya
+Osage
Osmanya
+Pahawh_Hmong
Palmyrene
Pau_Cin_Hau
-Old_Permic
Phags_Pa
-Inscriptional_Pahlavi
-Psalter_Pahlavi
Phoenician
-Miao
-Inscriptional_Parthian
+Psalter_Pahlavi
Rejang
Runic
Samaritan
-Old_South_Arabian
Saurashtra
-SignWriting
-Shavian
Sharada
+Shavian
Siddham
-Khudawadi
+SignWriting
Sinhala
Sora_Sompeng
Sundanese
Syloti_Nagri
Syriac
+Tagalog
Tagbanwa
-Takri
Tai_Le
-New_Tai_Lue
-Tamil
+Tai_Tham
Tai_Viet
+Takri
+Tamil
+Tangut
Telugu
-Tifinagh
-Tagalog
Thaana
Thai
Tibetan
+Tifinagh
Tirhuta
Ugaritic
+Unknown
Vai
Warang_Citi
-Old_Persian
-Cuneiform
Yi
-Inherited
-Common
-Unknown
```
-### Script Extension Names
+### Short Script Names
-You can extract all script extensions names from the gem like this:
+You can extract all 4 letter script names from the gem like this:
```ruby
require "unicode/scripts"
-puts Unicode::Scripts.extension_names
+puts Unicode::Scripts.names(format: :short)
# # # Output # # #
+Adlm
Aghb
Ahom
Arab
Armi
Armn
@@ -206,10 +213,11 @@
Bali
Bamu
Bass
Batk
Beng
+Bhks
Bopo
Brah
Brai
Bugi
Buhd
@@ -217,11 +225,10 @@
Cans
Cari
Cham
Cher
Copt
-Qaac
Cprt
Cyrl
Deva
Dsrt
Dupl
@@ -265,10 +272,11 @@
Lyci
Lydi
Mahj
Mand
Mani
+Marc
Mend
Merc
Mero
Mlym
Modi
@@ -277,25 +285,29 @@
Mtei
Mult
Mymr
Narb
Nbat
+Newa
Nkoo
Ogam
Olck
Orkh
Orya
+Osge
Osma
Palm
Pauc
Perm
Phag
Phli
Phlp
Phnx
Plrd
Prti
+Qaac
+Qaai
Rjng
Runr
Samr
Sarb
Saur
@@ -312,10 +324,11 @@
Tagb
Takr
Tale
Talu
Taml
+Tang
Tavt
Telu
Tfng
Tglg
Thaa
@@ -327,13 +340,14 @@
Wara
Xpeo
Xsux
Yiii
Zinh
-Qaai
Zyyy
Zzzz
```
+
+See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related micro libraries.
## MIT License
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1