Console Function Reference

This is the console function reference for the console functions of Unicode Viewer.
Here you will find a description for every function of the application which can use in the console. Every function has a flag -h to print a help for the function in the console. Optional arguments are marked with an asterisk (*). The search commands allow the use of regular expressions. See Regular Expressions for a description.


 


 

add


Usage: add(<Blockname>,<Blockname>*,...)
 
Example: add("Basic Latin")
 
Adds the given blocks to the visible table.
 
See also: show, hide, clear


 


 

addItems


Usage: addItems
 
Appends the letters that were found by the last search to the table.
 
See also: search, showItems


 


 

addGlyph


Usage: addGlyph(<Letter codepoint>)
 
Example: addGlyph("0041")
 
Appends one letter to the visible table.
 
See also: showGlyph, hideGlyph


 


 

addRange


Usage: addRange(<start>,<end>)
 
Example: addRange("0","5a")
 
Appends all letters between the range of two codepoints to the visible table.
 
See also: showRange, hideRange


 


 

addWeightRange


Usage: addWeightRange(<start>,<end>,<levels>,<indices>)
 
Example: addWeightRange("FB80;0020","FB85;0040","l1l2","0;1")
Ranges over Level 1 (FB80-FB85) and Level 2 (0020-0040). It uses only the collations in column 0 and 1.
 
Appends letters by ranging over their collations to the visible table. The first parameter is the beginning of the ranges and second argument is the end of the range. If more than one level is used to range the weights, then the different ranges for the levels are seperated by a semicolon.
The third argument are the flags of the range:

's' The beginning and the end argument are strings.
'l1' Ranged by level 1
'l2' Ranged by level 2
'l3' Ranged by level 3
'l4' Ranged by level 4
'v' The collation can be variable
'n' The collation can't be variable

If 's' is chosen, the range by level can't be used.
The fourth argument are the indices of the collation. The indicies start at 0. Multiple collation indices can be used with semicolons.
 
See also: showWeightRange


 


 

clear


Usage: clear
 
Clears the visible table.
 
See also: show


 


 

hide


Usage: hide(<Blockname>,<Blockname>*,...)
 
Example:hide("Basic Latin")
 
Hides the given blocks.
 
See also: show, add


 


 

hideGlyph


Usage: hideGlyph(<codepoint>)
 
Example:hideGlyph("0042")
 
Hides a letter from the visible table.
 
See also: showGlyph, addGlyph


 


 

hideRange


Usage: hideRange(<start>,<end>)
 
Example:hideRange("10","20")
 
Hides all letters between the range of two codepoints.
 
See also: showRange, addRange


 


 

next


Usage: next
 
Select and shows the next letter that was hit by the search function.
 
See also: search, previous


 


 

numberOfHits


Usage: numberOfHits
 
Shows the number of hits for the search.
 
See also: search, next, previous


 


 

previous


Usage: previous
 
Select and shows the previous letter that was hit by the search function.
 
See also: search, next


 


 

print


Usage: print(<output>,<output>*,...)
 
Example:print("Hello Unicode Viewer!")
 
Print the arguments in the console.


 


 

search


Usage: search(,)
 
Example:search("0042", "rc")
 
Hits all letters which contains the search string. The first parameter is the search string. The second parameter are the search flags:
'd' Search in the comments
'w' Search in collation
'c' Search codepoints
'D' Case sensitive
'r' Search as regular expression or imprecise
'l1' Search in level 1 of weights
'l2' Search in level 2 of weights
'l3' Search in level 3 of weights
'l4' Search in level 4 of weights

This function searches in the visible table.
 
See also: searchTable, next, previous, selectAll, numberOfHits, showItems


 


 

searchTable


Usage: searchTable(,)
 
Example:searchTable("0042", "rc")
 
Appends all letters from the unicode table which contains the search string in the visible table. The first parameter is the search string. The second parameter are the search flags:
'd' Search in the comments
'w' Search in collation
'c' Search codepoints
'D' Case sensitive
'r' Search as regular expression or imprecise
'l1' Search in level 1 of weights
'l2' Search in level 2 of weights
'l3' Search in level 3 of weights
'l4' Search in level 4 of weights

This function searches in the unicode table.
 
See also: search, next, previous, selectAll, numberOfHits, showItems


 


 

selectAll


Usage: selectAll
 
Select all letters that were hit by the search function.
 
See also: search, next, previous


 


 

show


Usage: show(<Blockname>,<Blockname>*,..)
 
Example:show("Basic Latin")
 
Shows only the given blocks to the visible table..
 
See also: clear, hide, add


 


 

showItems


Usage: showItems
 
Shows the letters in the visible table which were hit by the search function.
 
See also: search, next, previous, selectAll


 


 

showGlyph


Usage: showGlyph(<codpoint>)
 
Example:showGlyph("0041")
 
Show the given letter in the visible table.
 
See also: addGlyph, hideGlyph


 


 

showRange


Usage:showRange(<start>,<end>)
 
Example:show("0","5a")
 
Show only the letters between the range of two codepoints.
 
See also: addRange, hideRange


 


 

showWeightRange


Usage: showWeightRange(<start>,<end>,<levels>,<indices>)
 
Example: showWeightRange("FB80;0020","FB85;0040","l1l2","0;1")
Ranges over Level 1 (FB80-FB85) and Level 2 (0020-0040). It uses only the collations in column 0 and 1.
 
Shows letters by ranging over their collations to the visible table. The first parameter is the beginning of the ranges and second argument is the end of the range. If more than one level is used to range the weights, then the different ranges for the levels are seperated by a semicolon.
The third argument are the flags of the range:

's' The beginning and the end argument are strings.
'l1' Ranged by level 1
'l2' Ranged by level 2
'l3' Ranged by level 3
'l4' Ranged by level 4
'v' The collation can be variable
'n' The collation can't be variable

If 's' is chosen, the range by level can't be used.
The fourth argument are the indices of the collation. The indicies start at 0. Multiple collation indices can be used with semicolons.
 
See also: addWeightRange


 


 

scrollTo


Usage: scrollTo(<codepoint>)
 
Example:scrollTo("0042")
 
Go to the codepoint.
 
See also: search, next, previous