Character Palettes Help
Name:Character Palettes
Version:0.1
Last update:2020-06-30 07:41:39






Introduction

This package contains various palettes that make it easy to insert special characters into a document without switching to another keyboard.
It is an always-on package, so there is nothing to do to activate it.
It inserts a submenu called Palettes in the Edit menu.

Default palettes

Currently, the following palettes are available:
Arrows
Chess
Circled Digits
Country Flags
Enclosed Letters
Greek
IPA
Japanese
Maths
Musical Symbols
Vowels
Arrows
various Unicode arrow symbols.
Arrows Palette
Chess
the chess pieces symbols.
Chess Palette
Circled Digits
the digits characters in a single or double circle.
Circled Digits Palette
Country Flags
the characters for the national flags.
Flags Palette
Enclosed Letters
the roman letters enclosed in a square or a circle.
Enclosed Letters Palette
Greek
the modern greek letters.
Greek Letters Palette
IPA
the International Phonetic Alphabet symbols. The combining marks (lower rows of the palette) must be inserted after the symbol they are attached to.
IPA Palette
Japanese
the Hiragana and Katakana japanese syllabaries. This palette has a segmented control to switch from one syllabary to the other.
Hiragana Palette Katakana Palette
Maths
mathematical symbols gathered in six different categories: Symbols, Operators, Equalities, Inequalities, Relations, Sets & Logics. This palette has a segmented control to switch from one category to the other.
Maths Symbols Palette Maths Operators Palette Maths Equalities Palette
Maths Inequalities Palette Maths Relations Palette Maths Sets & Logics Palette
Musical Symbols
a small set of musical symbols (notes, alterations, keys).
Musical Palette
Vowels
all accented roman vowels.
Vowels Palette
All palettes are resizable. If you hover over a palette cell with the mouse cursor, a tooltip window appears with brief information about the corresponding character.

Developer notes

Third party packages may define their own palettes and register them to be displayed in the Palettes menu. See for instance the Box Drawings package.
A new palette is declared using the charpal::registerPalette proc. It takes two arguments: The declared proc should return the token of the floating window containing the palette. A palette may be deregistered using the charpal::deregisterPalette proc which takes the palette's name as single argument.
For instance, the Box Drawings package registers its palette like this:
charpal::registerPalette "Box Drawings" boxdraw::buildBoxesPalette
To deregister it, the instruction is:
charpal::deregisterPalette "Box Drawings"
In order to build palettes, the file palettes.tcl contains very useful procs, in particular palette::create. See the information inside this file.

Known problems

Please report any problem or bug you encounter to Alpha's Bug Tracker.

License and Disclaimer

Copyright (c) 2019-2020, Bernard Desgraupes.
All rights reserved.
The characterPalettes package is free software and distributed under the terms of the new BSD license:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BERNARD DESGRAUPES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.