: download-checksums ( -- alist )
url "checksums.txt" >url derive-url http-get nip
- lines [ " " split1 ] { } map>assoc ;
+ split-lines [ " " split1 ] { } map>assoc ;
: file-checksum ( image -- checksum )
md5 checksum-file bytes>hex-string ;
] map ;
: parse-keys ( string -- chars )
- words [ hex> ] "" map-as ;
+ split-words [ hex> ] "" map-as ;
: parse-ducet ( file -- ducet )
load-data-file [ [ parse-keys ] [ parse-weight ] bi* ] H{ } assoc-map-as ;
: (process-decomposed) ( data -- alist )
5 swap (process-data)
- [ words [ hex> ] map ] assoc-map ;
+ [ split-words [ hex> ] map ] assoc-map ;
: exclusions-file ( -- filename )
"vocab:unicode/UCD/CompositionExclusions.txt" ;
: exclusions ( -- set )
exclusions-file utf8 file-lines
- [ "#" split1 drop [ blank? ] trim-tail hex> ] map
+ [ "#" split1 drop [ ascii:blank? ] trim-tail hex> ] map
[ 0 = ] reject ;
: unique ( seq -- assoc )
] H{ } assoc-map-as ;
: multihex ( hexstring -- string )
- words [ hex> ] map sift ;
+ split-words [ hex> ] map sift ;
PRIVATE>