Giter Club home page Giter Club logo

character-picker's Introduction

Character Picker for Windows

doc/images/theta.png

A quick and convenient pop-up interface that allows you to search for and type Unicode characters.

Installation

The ready-made files can be downloaded from the releases page (choose character-picker-YY-MM-DD.zip).

The exe file must be run in the same folder as the characters.txt file.

In order to be useful, you should bind a keyboard shortcut to execute the character picker so that you can quickly access it anywhere on demand. For instance, you could download AutoHotKey and create a script (.ahk file) that runs on system startup.

Here is an example of such a script:

; Runs the program when Ctrl+Win+Space is pressed
; Also see: http://www.autohotkey.com/docs/Hotkeys.htm
; Important to set the working directory to the same folder as the `characters.txt` file

#^Space::
  SetWorkingDir c:\Users\luis\mdata\util\character-picker
  Run "C:\Users\luis\mdata\util\character-picker\picker.exe"
  Return

After installing AutoHotKey, you can double-click the script file for the shortcuts to take effect. Then, you can create a shortcut to this file (Ctrl+Shift+drag) and move it to the Start-up folder which can be accessed by typing shell:startup into the Run box (Windows+R).

Usage

While the program is open, your keystrokes will be captured by the search box. The search allows exact matches using double quotes (e.g. ​"latin capital"​ ), as well as basic natural query language (e.g. ​(greek AND letter) OR "latin capital"​ ). Note that you may need to type in an entire word before getting any matches.

To type a character, you can click on it or press Enter to type the selected character.

To change the selection, use the keybindings Ctrl+h (left), Ctrl+j (down), Ctrl+k (up) and Ctrl+l (right).

To close the window, click the cross, press Escape, or press Ctrl+g.

You can resize the window and scroll the results if needed.

Configuration

The characters.txt has the following format:

  • One line per character
  • Each line consists of the character, then a space, then a description

Example:

Δ GREEK CAPITAL LETTER DELTA

These descriptions power the search function, so you can modify the description of a character to make it easier to search for. Additionally, you can remove lines with any characters that you do not want to show up, or simply start afresh with a minimal list of useful characters.

Building from Source

This character picker is a simple Rust program that can be built using cargo. Note that it depends on a custom version of the druid crate found here.

The characters.txt file can be generated from the DerivedName.txt file which can be downloaded from the Unicode website. Then, execute extractor/extract_chars.clj in the same directory using, for instance, Babashka.

License

Copyright © 2021 Luis Thiam-Nye.

Distributed under Eclipse Public License 2.0, see LICENSE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.