require_relative "lib/unicode/numeric_value" require "unicode/name" # https://github.com/janlelis/unicode-name puts "Codepoint | Character | Numeric Value | Name\n" \ "----------|-----------|---------------|-----\n" + Unicode::NumericValue.chars.map{ |char| [ format("U+%.4X", char.unpack("U")[0]).rjust(9), char.rjust(9), Unicode::NumericValue.of(char).inspect.rjust(13), Unicode::Name.of(char) ].join(" | ") }.join("\n")