Using Search

With the search functionality of Unicode Viewer it is possible to search for single letters or sets of letters with a common attribute. It is available in the graphical user interface and in the console. The search window in the GUI allows only searching in the table that is currently visible in the Tableview. The search functions of the console also allow searching in the complete table.

Searching with the GUI

The search window can be opened in the main menu under Search->Search (or using Ctrl+S). It is also possible to open it by clicking the icon with the little magnifier in the toolbar: .
 
The search dialog contains the following elements:
Every search is performed the same way:
  1. Enter the search string.
  2. Select if the search string should be matched case sensitive.
  3. Select if the search string should be matched exactly or inexactly / as a regular Expression.
  4. Select the attributes of the letters to which the search string should be compared.
  5. Hit the "Find" button to perform the search on the visible table.
  6. Use "Next", "Previous" and "Select all" to mark the hits.

Examples

Here are some examples, to get you started quickly. All examples are performed on the full "allkeys.txt" Unicode table with the Tableview showing all letters ( block "-" ).
Exact Codepoints
- Search string: 0042
- Selected checkboxes: Codepoint
Result: "B" is selected in the table.

Exact Collations
- Search string: [.1637.0020.0008.0046]
- Selected checkboxes: Collation
Result: "F" is selected and "Next" or "Select all" select a variation of it.

Exact Comments
- Search string: ASTERISK
- Selected checkboxes: Comment
Result: "*" is selected in the table.

Inexact Codepoints
- Search string: 004
- Selected checkboxes :Regular expression, Codepoint
Result: All letters with codepoint containing the string "004" are found.

Inexact Collations
- Search string: 004
- Selected checkboxes: Regular expression, Collation
Result: All letters with collations containing the string "004" in any of their levels are found.

Inexact Comment
- Search string: latin
- Selected checkboxes: Regular expression, Comment
Result: All letters with comments containing "latin" are found.

Combining Attributes
- Search string: 1243
- Selected checkboxes: Codepoint, Collation, Comment, Regular expression
Result: All letters that have the string "1243" in any of the three attributes are found.

Collations with Levels
- Search string: 1114
- Selected checkboxes: Collation, Level 1
Result: The letter with the level 1 collation "1114" is found (Ace of Spades).

Regular Expressions
- Search string: [1-9]{4}
- Selected checkboxes: Codepoint, Regular expression
Result: All letters with codepoints with four digits and all digits between 1 and 9 are found.

Further Reading

The examples can not demonstrate every combination that is possible with the different attributes. They only show how the search in general works. You might want to play around a little and try to combine some examples. The console provides the same search functionality as the GUI and even extends it (See Using the Console). There is also a description available about the regular Expressions, that can be used in the GUI and the console.