]> gitweb.factorcode.org Git - factor.git/commitdiff
unicode.collation: Fix ducet for Tibetan using allkeys.txt
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 28 Jul 2019 20:04:32 +0000 (15:04 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 30 Jul 2019 07:12:41 +0000 (02:12 -0500)
Fixes two more tests.

basis/unicode/collation/collation-tests.factor
basis/unicode/collation/collation.factor

index b44788396b73b7784ed44ab42086b7c1dbb7a943..faa5a67ede761bb955272fc0e75d2a672c6bd66e 100644 (file)
@@ -57,7 +57,9 @@ IN: unicode.collation.tests
 ] unit-test
 
 ! FIXME: ducet table is wrong
-{ +lt+ } [ { 4019 98 } { 4019 3953 1 3968 97 } [ >string ] bi@ string<=> ] unit-test
+! Fixed by fixing ducet table
+! { +lt+ } [ { 4019 98 } { 4019 3953 1 3968 97 } [ >string ] bi@ string<=> ] unit-test
+
 { +lt+ } [ { 4018 820 3969 } { 3959 33 } [ >string ] bi@ string<=> ] unit-test
 { +lt+ } [ { 4019 3953 820 3968 } { 3961 33 } [ >string ] bi@ string<=> ] unit-test
 
@@ -68,8 +70,8 @@ IN: unicode.collation.tests
 { { 12748 12741 0 32 74 32 0 2 2 2 0 65535 65535 65535 } }
 [ { 4018 820 3953 3968 } >string collation-key/nfd drop ] unit-test
 
-{ { 12748 12741 0 32 74 32 0 2 2 2 0 65535 65535 65535 } }
-[ { 0x0FB2 0x0334 0x0F80 0x0F71 } >string collation-key/nfd drop ] unit-test
+{ { 12748 12741 0 32 74 32 0 2 2 2 0 65535 65535 65535 } }
+[ { 0x0FB2 0x0334 0x0F80 0x0F71 } >string collation-key/nfd drop ] unit-test
 
 { { 12748 12741 0 32 74 32 0 2 2 2 0 65535 65535 65535 } }
 [ { 4018 820 3969 } >string collation-key/nfd drop ] unit-test
@@ -88,3 +90,4 @@ IN: unicode.collation.tests
 
 { { 12722 12741 12744 7817 0 32 32 32 32 0 2 2 2 2 0 65535 65535 65535 65535 } }
 [ { 4019 3953 1 3968 97 } >string collation-key/nfd drop ] unit-test
+! { 0xfb3 0x0f71 0x0334 0x0f80 }
\ No newline at end of file
index 7942840f802b27fff9752bf4dd61a7988d743090..4c0ad626c19707d4725a40c2474ca3ce587222f0 100644 (file)
@@ -61,7 +61,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             { 0x0FB3 0x0F71 } ! CE(0FB3) CE(0F71)
             {
                 T{ weight-levels
-                    { primary 12720 }
+                    { primary 12722 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -73,7 +73,6 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             }
         }
 
-        ! FIXME: WRONG WEIGHTS
         {
             { 0x0FB2 0x0F71 0x0F72 } ! CE(0FB2) CE(0F71 0F72)
             {
@@ -83,7 +82,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12743 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -98,7 +97,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12743 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -113,7 +112,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12747 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -128,7 +127,7 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12747 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -138,12 +137,12 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             { 0x0FB3 0x0F71 0x0F72 } ! CE(0FB3) CE(0F71 0F72)
             {
                 T{ weight-levels
-                    { primary 12719 }
+                    { primary 12722 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12743 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -153,12 +152,12 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             { 0x0FB3 0x0F73        } ! CE(0FB3) CE(0F71 0F72)
             {
                 T{ weight-levels
-                    { primary 12719 }
+                    { primary 12722 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12743 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -168,12 +167,12 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             { 0x0FB3 0x0F71 0x0F74 } ! CE(0FB3) CE(0F71 0F74)
             {
                 T{ weight-levels
-                    { primary 12719 }
+                    { primary 12722 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12747 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
@@ -183,12 +182,12 @@ TUPLE: weight-levels primary secondary tertiary ignorable? ;
             { 0x0FB3 0x0F75        } ! CE(0FB3) CE(0F71 0F74)
             {
                 T{ weight-levels
-                    { primary 12719 }
+                    { primary 12722 }
                     { secondary 32 }
                     { tertiary 2 }
                 }
                 T{ weight-levels
-                    { primary 12741 }
+                    { primary 12747 }
                     { secondary 32 }
                     { tertiary 2 }
                 }