2008-10-05 19:36:56 -04:00
|
|
|
! Copyright (C) 2008 Daniel Ehrenberg.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2008-06-28 03:36:20 -04:00
|
|
|
USING: accessors values kernel sequences assocs io.files
|
2008-12-17 23:29:32 -05:00
|
|
|
io.encodings ascii math.ranges io splitting math.parser
|
2008-09-10 23:11:40 -04:00
|
|
|
namespaces make byte-arrays locals math sets io.encodings.ascii
|
2008-12-17 23:29:32 -05:00
|
|
|
words words.symbol compiler.units arrays interval-maps
|
|
|
|
unicode.data ;
|
2008-05-05 00:33:54 -04:00
|
|
|
IN: unicode.script
|
|
|
|
|
2009-03-17 20:39:04 -04:00
|
|
|
<PRIVATE
|
|
|
|
|
2008-05-06 00:47:22 -04:00
|
|
|
VALUE: script-table
|
2008-05-05 00:33:54 -04:00
|
|
|
|
2009-03-18 22:04:36 -04:00
|
|
|
"vocab:unicode/script/Scripts.txt" load-key-value
|
2009-01-07 13:23:07 -05:00
|
|
|
to: script-table
|
2008-05-06 00:47:22 -04:00
|
|
|
|
2009-03-17 20:39:04 -04:00
|
|
|
PRIVATE>
|
|
|
|
|
2008-05-05 00:33:54 -04:00
|
|
|
: script-of ( char -- script )
|
2009-01-07 13:23:07 -05:00
|
|
|
script-table interval-at ;
|