MyNixOS website logo
Description

Functions to work with unicode blocks more convenient.

A package that makes rendering of frames, blocks, subscript and superscript more convenient.

unicode-tricks

Build Status of the package by GitHub actions Build Status of the package by Hackage Hackage version badge

Based on the unicode package by Henning Thielemann.

This library aims to provide functionality to make working with certain blocks of unicode characters more effective.

Currently the package contains the following modules:

  • Data.Char.Core: a module that defines common data structures;
  • Data.Char.BallotBox: rendering boxes that are empty, with a checkmark, or a cross;
  • Data.Char.Block: rendering a 2-by-2 block by a matrix of Bools;
  • Data.Char.Block.Sextant: render blocks that consists out of a 3 × 2 raster;
  • Data.Char.Brackets: determine if a character is a bracket, and find the corresponding bracket;
  • Data.Char.Braille: a module to render Braille characters with six or eight dot cells;
  • Data.Char.Card: a module to work with playing cards;
  • Data.Char.Chess: a module to render chess pieces (and some variants) in unicode;
  • Data.Char.Control: a module that visualizes control characters;
  • Data.Char.Combining: combine a character with a (sequence of) combining characters (diacritics, geometrical shapes, etc.);
  • Data.Char.Currency: translate currencies to Unicode characters and vice versa;
  • Data.Char.Dice: a module to render die unicode characters;
  • Data.Char.Domino: a module to render domino unicode characters;
  • Data.Char.Egyptian: a module that defines pattern synonyms for ancient Egyptian hieroglyphs;
  • Data.Char.Emoji.*: modules that provide functions to render emoji characters (flags, objects, persons, etc.);
  • Data.Char.Enclosed: functions to convert alphanumerical characters to characters where these are enclosed by circles, squares, parenthesis, etc.;
  • Data.Char.Frame: typesetting frame elements. Lines of the frames can be Light or Heavy, and there are additional options to use arcs for corners;
  • Data.Char.Math.*: a set of modules to render mathematical symbols and text, for example in Fraktur, Blackboard bold, etc.
  • Data.Char.Number.Duodecimal: a module to work with duodecimal numbers;
  • Data.Char.Number.Egyptian: a module to render ancient Egyptian numerals;
  • Data.Char.Number.Mayan: a module to render Mayan numerals;
  • Data.Char.Number.Roman: a module to render Roman numerals;
  • Data.Char.Number.Segmented: a module to render numbers on a seven-segment display;
  • Data.Char.Number.Tally: a module to render (Western) tally marks;
  • Data.Char.Number.VulgarFraction: a module to use vulgar fractions defined in the Unicode standard;
  • Data.Char.Private: characters belonging to the private usage area;
  • Data.Char.Private.Klingon: Klingon script characters;
  • Data.Char.Small: making use of subscript and superscript in unicode, and for example formatting Ratio objects; and
  • Data.Char.Tag: a unicode block that is used as emoji modifiers for regional flags.

unicode-tricks is safe Haskell

The modules are marked with the {-# LANGUAGE Safe #-} pragma, it thus provides guarantees, for example about not using unsafePerformIO.

Contribute

You can contribute by making a pull request on the GitHub repository.

You can contact the package maintainer by sending a mail to [email protected].

Contributors:

  • @wismill found a bug and added tests for the Data.Char.Math as well as the Data.Char.Number.Segmented module.
Metadata

Version

0.14.1.0

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows