]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unicode/script/script.factor
factor: trim some using lists
[factor.git] / basis / unicode / script / script.factor
index ed804760848a07c8c275b4e6dbce4c3d719678e4..7d7f7a6946868bfaa37f3325783af957207963df 100644 (file)
@@ -1,20 +1,8 @@
 ! Copyright (C) 2008 Daniel Ehrenberg.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors values kernel sequences assocs io.files
-io.encodings ascii math.ranges io splitting math.parser
-namespaces make byte-arrays locals math sets io.encodings.ascii
-words words.symbol compiler.units arrays interval-maps
-unicode.data ;
+USING: literals simple-flat-file ;
 IN: unicode.script
 
-<PRIVATE
-
-VALUE: script-table
-
-"vocab:unicode/script/Scripts.txt" load-key-value
-to: script-table
-
-PRIVATE>
-
-: script-of ( char -- script )
-    script-table interval-at ;
+CONSTANT: script-table $[
+    "vocab:unicode/UCD/Scripts.txt" load-interval-file
+]