factor/basis/unicode/script/script.factor

19 lines
378 B
Factor
Raw Normal View History

2008-10-05 19:36:56 -04:00
! Copyright (C) 2008 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
USING: interval-maps namespaces parser simple-flat-file
words.constant ;
2008-05-05 00:33:54 -04:00
IN: unicode.script
<PRIVATE
<<
"script-table" create-word-in
"vocab:unicode/script/Scripts.txt" load-interval-file
define-constant
>>
2008-05-06 00:47:22 -04:00
PRIVATE>
2008-05-05 00:33:54 -04:00
: script-of ( char -- script )
script-table interval-at ;