Permalink
Browse files

Updated the README code to be slightly less painful.

  • Loading branch information...
1 parent f80deb1 commit b16587e44f3906221f16030c93420a04cc01e1ee Matt Colyer committed Nov 5, 2010
Showing with 10 additions and 3 deletions.
  1. +10 −3 README.md
View
13 README.md
@@ -42,12 +42,19 @@ Note: codepoints should only include normalized unicode codepoints.
require 'rubygems'
require 'speakeasy'
- Speakeasy::Language.supported_language_ids.each do |id|
- language = Speakeasy::Language.new(id)
- puts "#{language.anglicized_name} (#{language.native_name})"
+ Speakeasy::Language.each do |language|
+ print "#{language.anglicized_name} (#{language.native_name}) "
puts language.codepoints[0..10].inspect
end
+It should return
+
+ Catalan (Català) [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75]
+ Czech (Česky) [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75]
+ German (Deutsch) [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75]
+ English (English) [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75]
+ ....
+
## Contributing
* Fork speakeasy

0 comments on commit b16587e

Please sign in to comment.