]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: fix a few more errors
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 20 Dec 2021 22:24:48 +0000 (16:24 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 20 Dec 2021 22:24:48 +0000 (16:24 -0600)
basis/bootstrap/image/download/download.factor
basis/unicode/collation/collation.factor
basis/unicode/data/data.factor

index ccef1a0c128c2829fbf1b08bc8ba93464affd034..39fc4ddd957d16a00acef6d22a44c3038173aa6f 100644 (file)
@@ -8,7 +8,7 @@ CONSTANT: url URL" http://downloads.factorcode.org/images/master/"
 
 : 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 ;
index 68a155fd5b6a5011db06b052d49c3a0aea49d215..9e860cf03f5c505f15e4885ad58bfebc576afe1e 100644 (file)
@@ -25,7 +25,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
     ] 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 ;
index c5d3c4703c73b2f731051afba6b81ba5bd20d212..875a310bc88e68ef92236758421dc0d0670ab381 100644 (file)
@@ -100,14 +100,14 @@ PRIVATE>
 
 : (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 )
@@ -157,7 +157,7 @@ PRIVATE>
     ] H{ } assoc-map-as ;
 
 : multihex ( hexstring -- string )
-    words [ hex> ] map sift ;
+    split-words [ hex> ] map sift ;
 
 PRIVATE>