factor/basis/unicode/data/data-docs.factor

49 lines
1.9 KiB
Factor
Raw Normal View History

2009-03-18 21:02:03 -04:00
! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license.
2009-01-07 22:45:33 -05:00
USING: help.syntax help.markup strings ;
IN: unicode.data
ABOUT: "unicode.data"
ARTICLE: "unicode.data" "Unicode data tables"
"The " { $vocab-link "unicode.data" "unicode.data" } " vocabulary contains core Unicode data tables and code for parsing this from files."
{ $subsection canonical-entry }
{ $subsection combine-chars }
{ $subsection combining-class }
{ $subsection non-starter? }
{ $subsection name>char }
{ $subsection char>name }
{ $subsection property? } ;
HELP: canonical-entry
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "seq" string } }
2009-01-07 22:45:33 -05:00
{ $description "Finds the canonical decomposition (NFD) for a code point" } ;
HELP: combine-chars
2009-01-08 16:38:03 -05:00
{ $values { "a" "a code point" } { "b" "a code point" } { "char/f" "a code point" } }
2009-01-07 22:45:33 -05:00
{ $description "If a followed by b can be combined in NFC, this returns the code point of their combination." } ;
HELP: compatibility-entry
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "seq" string } }
2009-01-07 22:45:33 -05:00
{ $description "This returns the compatibility decomposition (NFKD) for a code point" } ;
HELP: combining-class
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "n" "an integer" } }
2009-01-07 22:45:33 -05:00
{ $description "Finds the combining class of a code point." } ;
HELP: non-starter?
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "?" "a boolean" } }
2009-01-07 22:45:33 -05:00
{ $description "Returns true if the code point has a combining class." } ;
HELP: char>name
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "name" string } }
2009-01-07 22:45:33 -05:00
{ $description "Looks up the name of a given code point. Warning: this is not optimized for speed, to save space." } ;
HELP: name>char
2009-01-08 16:38:03 -05:00
{ $values { "name" string } { "char" "a code point" } }
2009-01-07 22:45:33 -05:00
{ $description "Looks up the code point corresponding to a given name." } ;
HELP: property?
2009-01-08 16:38:03 -05:00
{ $values { "char" "a code point" } { "property" string } { "?" "a boolean" } }
2009-01-07 22:45:33 -05:00
{ $description "Tests whether the code point is listed under the given property in PropList.txt in the Unicode Character Database." } ;