]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixing unicode script help
authorDaniel Ehrenberg <littledan@Macintosh-122.local>
Thu, 19 Mar 2009 06:06:25 +0000 (01:06 -0500)
committerDaniel Ehrenberg <littledan@Macintosh-122.local>
Thu, 19 Mar 2009 06:06:25 +0000 (01:06 -0500)
basis/unicode/script/script-docs.factor

index 730c361fb91905bcfb9f84190e3e6dfd235ed4ca..2860f83befd02f51143800755f324501859e9165 100644 (file)
@@ -3,8 +3,12 @@
 USING: help.syntax help.markup strings ;\r
 IN: unicode.script\r
 \r
-ABOUT: script-of\r
+ABOUT: "unicode.script"\r
+\r
+ARTICLE: "unicode.script" "Unicode script properties"\r
+"The unicode standard gives every character a script. Note that this is different from a language, and that it is non-trivial to detect language from a string. To get the script of a character, use"\r
+{ $subsection script-of } ;\r
 \r
 HELP: script-of\r
-{ $values { "char" "a code point" } { "script" "a symbol" } }\r
-{ $description "Gets a symbol representing the code point of a given character. The word name of the symbol is the same as the one " } ;\r
+{ $values { "char" "a code point" } { "script" string } }\r
+{ $description "Finds the script of the given Unicode code point, represented as a string." } ;\r