2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								USING:  help.syntax  help.markup  strings  ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								IN:  unicode.data 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ABOUT: "unicode.data" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "unicode.data"  "Unicode data tables" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"The "  { $vocab-link "unicode.data"  "unicode.data"  } " vocabulary contains core Unicode data tables and code for parsing this from files." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection load-script }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection canonical-entry }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection combine-chars }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection combining-class }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection non-starter? }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection name>char }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection char>name }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection property? } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  load-script 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "filename"  string  } { "table"  "an interval map"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "This loads a file that looks like Script.txt in the Unicode Character Database and converts it into an efficient interval map, where the keys are characters and the values are strings for the properties."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  canonical-entry 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "seq"  string  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Finds the canonical decomposition (NFD) for a code point"  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  combine-chars 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "a"  "a code point"  } { "b"  "a code point"  } { "char/f"  "a code point"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "If a followed by b can be combined in NFC, this returns the code point of their combination."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  compatibility-entry 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "seq"  string  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "This returns the compatibility decomposition (NFKD) for a code point"  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  combining-class 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "n"  "an integer"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Finds the combining class of a code point."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  non-starter? 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "?"  "a boolean"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Returns true if the code point has a combining class."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  char>name 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "name"  string  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Looks up the name of a given code point. Warning: this is not optimized for speed, to save space."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  name>char 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "name"  string  } { "char"  "a code point"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Looks up the code point corresponding to a given name."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  property? 
							 
						 
					
						
							
								
									
										
										
										
											2009-01-08 16:38:03 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "char"  "a code point"  } { "property"  string  } { "?"  "a boolean"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-01-07 22:45:33 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Tests whether the code point is listed under the given property in PropList.txt in the Unicode Character Database."  } ;