sheet.git
2 years agocommon: bump version to 1.9 v1.9
Mischa POSLAWSKY [Thu, 23 Mar 2017 03:23:50 +0000 (04:23 +0100)]
common: bump version to 1.9

Mark significant changes since v1.8 and force CSS reload.

2 years agodigraphs: mark new vim entries by comparing to v7.4 copy
Mischa POSLAWSKY [Thu, 23 Mar 2017 02:11:36 +0000 (03:11 +0100)]
digraphs: mark new vim entries by comparing to v7.4 copy

Vim version 8.0 introduced «.,» so save the old output to be able to
distinguish such new features, as a lot of users are unlikely to upgrade
for a while yet.

Reported-by: Skef Iterum
2 years agodigraphs: reclassify vim support levels
Mischa POSLAWSKY [Thu, 23 Mar 2017 01:31:15 +0000 (02:31 +0100)]
digraphs: reclassify vim support levels

Instead of custom u-* classes, reuse common l1-5 in include:

.u-di      → l4 (vim + rfc)
.u-prop    → l3 (vim)
.u-prop.ex → l2 (shiar)
.ex        → l1 (rfc only)

Prepend u- on page to avoid conflicting with script styling (leave
background colour unaltered).

Loses ascii/latin1 distinction, but clarifies (vim) compatibility and
allows for easier extension later on.

2 years agodigraphs: annotate generator reference in vim include
Mischa POSLAWSKY [Wed, 22 Mar 2017 23:38:19 +0000 (00:38 +0100)]
digraphs: annotate generator reference in vim include

2 years agodigraphs: run vim parser with safety options
Mischa POSLAWSKY [Wed, 22 Mar 2017 23:25:35 +0000 (00:25 +0100)]
digraphs: run vim parser with safety options

Preclude customisations and unneeded requirements to avoid possible
side-effects.  Options copied from Text::VimColor interface.

2 years agodigraphs: ignore ansi commands in vim version output
Mischa POSLAWSKY [Wed, 22 Mar 2017 23:18:48 +0000 (00:18 +0100)]
digraphs: ignore ansi commands in vim version output

Recent versions of Vim v7.4 prepend the expected version number by various
escapes (probably terminal-dependent), causing an unreadable result of:

\e[?1049h\e[?1h\e=\e[1;63r\e[?25h\e[?25h\e[?25l\e[63;1H704

Assume nothing is put after the wanted number, so capture only that.

2 years agodigraphs: exclude backslash in proposals escape
Mischa POSLAWSKY [Wed, 22 Mar 2017 22:55:22 +0000 (23:55 +0100)]
digraphs: exclude backslash in proposals escape

Fixes parsing of escapes such as "\8203" introduced in v1.6-199-g5eb5e3456f
(2015-03-29) [digraphs: allow proposals by decimal code point escape].

2 years agobrowser: escape titles in resource links
Mischa POSLAWSKY [Wed, 22 Mar 2017 22:29:35 +0000 (23:29 +0100)]
browser: escape titles in resource links

Recent data includes at least "<textarea>" in #readonly-attr,
breaking further HTML if left unescaped.

2 years agoindex: link to latin page
Mischa POSLAWSKY [Wed, 22 Mar 2017 19:41:47 +0000 (20:41 +0100)]
index: link to latin page

Sufficiently fleshed out to warrant some promotion (reference from writing
seems too subtle).

2 years agolatin: introduction, update keywords
Mischa POSLAWSKY [Wed, 22 Mar 2017 19:41:40 +0000 (20:41 +0100)]
latin: introduction, update keywords

2 years agowriting: siddham
Mischa POSLAWSKY [Wed, 22 Mar 2017 19:22:45 +0000 (20:22 +0100)]
writing: siddham

Straight-forward Nāgarī predecessor, as featured in Doctor Strange.

2 years agowriting: annotate brahmic script ancestry in include
Mischa POSLAWSKY [Wed, 22 Mar 2017 19:38:29 +0000 (20:38 +0100)]
writing: annotate brahmic script ancestry in include

2 years agodigraphs: prefer (coloured) text over emoji variants
Mischa POSLAWSKY [Wed, 22 Mar 2017 18:56:34 +0000 (19:56 +0100)]
digraphs: prefer (coloured) text over emoji variants

Prevent unfortunate default on "modern" platforms (well, only macs for now)
of replacing characters by unstylable icons.

2 years agodigraphs: link to xorg variant, adapt title and intro
Mischa POSLAWSKY [Wed, 22 Mar 2017 18:04:30 +0000 (19:04 +0100)]
digraphs: link to xorg variant, adapt title and intro

2 years agodigraphs: prefer xorg path over parameter
Mischa POSLAWSKY [Wed, 22 Mar 2017 18:51:12 +0000 (19:51 +0100)]
digraphs: prefer xorg path over parameter

Major subpage selector similar to other pages.

2 years agotermcol: 64 for common 4x4x4 rgbmap
Mischa POSLAWSKY [Mon, 23 Jan 2017 04:45:41 +0000 (05:45 +0100)]
termcol: 64 for common 4x4x4 rgbmap

2 years agoperl: minor update to v5.25.10 features
Mischa POSLAWSKY [Fri, 10 Mar 2017 12:36:53 +0000 (13:36 +0100)]
perl: minor update to v5.25.10 features

2 years agoperl: indicate features distinct from experimental
Mischa POSLAWSKY [Fri, 3 Mar 2017 16:18:18 +0000 (17:18 +0100)]
perl: indicate features distinct from experimental

Describe attributes as hash after all, especially with this additional
parameter.

2 years agoperl: missing major v5.10 features
Mischa POSLAWSKY [Fri, 3 Mar 2017 14:16:27 +0000 (15:16 +0100)]
perl: missing major v5.10 features

2 years agotermcol: merge iterm with putty, put in ansi preset
Mischa POSLAWSKY [Sat, 12 Nov 2016 04:43:00 +0000 (05:43 +0100)]
termcol: merge iterm with putty, put in ansi preset

Not especially distinct, but probably the most frequently used for terminal
emulators outside of linux.

2 years agotermcol: ignore duplicate xcolor palettes
Mischa POSLAWSKY [Sat, 12 Nov 2016 01:51:47 +0000 (02:51 +0100)]
termcol: ignore duplicate xcolor palettes

2 years agotermcol: numeric module version requirements
Mischa POSLAWSKY [Sat, 12 Nov 2016 01:51:47 +0000 (02:51 +0100)]
termcol: numeric module version requirements

Only unquoted arguments are checked as minimum, despite the module version
being declared as string.

2 years agoperl: upcoming features upto v5.25.8
Mischa POSLAWSKY [Sun, 1 Jan 2017 23:22:13 +0000 (00:22 +0100)]
perl: upcoming features upto v5.25.8

2 years agotermcol: scalar colour shorthand
Mischa POSLAWSKY [Tue, 8 Nov 2016 01:15:47 +0000 (02:15 +0100)]
termcol: scalar colour shorthand

2 years agotermcol: personal 5-bit table shiar32
Mischa POSLAWSKY [Tue, 8 Nov 2016 02:01:06 +0000 (03:01 +0100)]
termcol: personal 5-bit table shiar32

Attempt another type of terminal design, combining features of various
schemes: 12 saturated colours for categorisation (cpc, solarized); 6 hues
each for background and highlight alternatives, half of each desaturated
(1: dark backgrounds like arnegame, 2: rgb indicator backgrounds,
 4: lighter text colours, and 5: prominent markers).

2 years agotermcol: visible names for arnegame
Mischa POSLAWSKY [Tue, 8 Nov 2016 00:34:09 +0000 (01:34 +0100)]
termcol: visible names for arnegame

2 years agotermcol: reorder cpcboy greens to better match grid brightness
Mischa POSLAWSKY [Sun, 6 Nov 2016 02:20:26 +0000 (03:20 +0100)]
termcol: reorder cpcboy greens to better match grid brightness

2 years agotermcol: configurable xcolors input location
Mischa POSLAWSKY [Sun, 30 Oct 2016 15:59:45 +0000 (16:59 +0100)]
termcol: configurable xcolors input location

Checkout at data/xcolors defined in makefile but no longer hardcoded in
parser tool.

2 years agotermcol: include named xcolors colours
Mischa POSLAWSKY [Sat, 29 Oct 2016 15:25:31 +0000 (17:25 +0200)]
termcol: include named xcolors colours

Preserve foreground and background for future distinction from 7/0.

2 years agotermcol: exclude monochromatic xcolors palettes
Mischa POSLAWSKY [Sun, 23 Oct 2016 05:47:20 +0000 (07:47 +0200)]
termcol: exclude monochromatic xcolors palettes

2 years agotermcol: parse Xcolors.net checkout
Mischa POSLAWSKY [Sun, 23 Oct 2016 04:48:35 +0000 (06:48 +0200)]
termcol: parse Xcolors.net checkout

Prepare a separate (optional) include with themes from the popular
ansi palettes repository <https://github.com/tlatsas/xcolors.git>.

2 years agotermcol: preset groups in include
Mischa POSLAWSKY [Sun, 23 Oct 2016 04:08:14 +0000 (06:08 +0200)]
termcol: preset groups in include

2 years agotermcol: named function to parse table data
Mischa POSLAWSKY [Sun, 23 Oct 2016 04:02:19 +0000 (06:02 +0200)]
termcol: named function to parse table data

Prepare for recursive includes.

2 years agotermcol: support image for table palettes
Mischa POSLAWSKY [Mon, 8 Feb 2016 04:37:59 +0000 (05:37 +0100)]
termcol: support image for table palettes

2 years agotermcol: avoid hexadecimal conversion for newyuv colours
Mischa POSLAWSKY [Sun, 7 Feb 2016 23:18:05 +0000 (00:18 +0100)]
termcol: avoid hexadecimal conversion for newyuv colours

Simplify default initialiser; previous version available as newyuv8().

2 years agotermcol: define solarized
Mischa POSLAWSKY [Tue, 11 Oct 2016 20:52:39 +0000 (22:52 +0200)]
termcol: define solarized

Common alternative to cga/ansi.  Many variants are available at specialised
sites, but at least provide the original version for comparison.

2 years agotermcol: declare and include cgarne
Mischa POSLAWSKY [Tue, 11 Oct 2016 21:06:43 +0000 (23:06 +0200)]
termcol: declare and include cgarne

Redesign of CGA colours as used in icons and games, which is interesting to
show among the mostly terminal-focused alternatives.

2 years agolatin: single-tap simple tap
Mischa POSLAWSKY [Sun, 9 Oct 2016 11:58:46 +0000 (13:58 +0200)]
latin: single-tap simple tap

Common consonants T-H-N-S-X have a trailing 5 taps which can be omitted for
a faster albeit variable-length version.  Further distinguishes it from
regular tap codes, making it more interesting in this list.

2 years agoperl: minor rewording of a few descriptions
Mischa POSLAWSKY [Sun, 24 Jul 2016 00:32:59 +0000 (02:32 +0200)]
perl: minor rewording of a few descriptions

2 years agoperl: complete v5.24 release
Mischa POSLAWSKY [Mon, 9 May 2016 13:24:25 +0000 (15:24 +0200)]
perl: complete v5.24 release

2 years agoperl: release data for aix versions
Mischa POSLAWSKY [Wed, 4 May 2016 22:32:14 +0000 (00:32 +0200)]
perl: release data for aix versions

References:
<http://www.perlmonks.org/?node_id=879834>
<http://www.ibm.com/support/docview.wss?uid=isg1fileset434767588>
<http://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.rnbase720/rnbase720.htm>

2 years agoperl: hint at extremeness of v5.8 compatibility
Mischa POSLAWSKY [Sun, 24 Apr 2016 17:47:49 +0000 (19:47 +0200)]
perl: hint at extremeness of v5.8 compatibility

Debian wheezy is now oldstable, so should not really be called 'up-to-date'.
Replace 'enterprise' by a less subtle adjective.

2 years agoperl: release data for ubuntu versions
Mischa POSLAWSKY [Sun, 24 Apr 2016 17:46:31 +0000 (19:46 +0200)]
perl: release data for ubuntu versions

Data from <http://distrowatch.com/table.php?distribution=ubuntu>.

2 years agoperl: hide experimental features dropped later
Mischa POSLAWSKY [Sun, 24 Apr 2016 17:38:04 +0000 (19:38 +0200)]
perl: hide experimental features dropped later

2 years agobrowser: define known 0% score markers
Mischa POSLAWSKY [Sun, 3 Apr 2016 21:49:29 +0000 (23:49 +0200)]
browser: define known 0% score markers

Same results (undefined is also counted as 0) but allows spotting undeclared
classes by checking for existence.

2 years agobrowser: match support percentage with multiple comment markers
Mischa POSLAWSKY [Sun, 3 Apr 2016 21:47:26 +0000 (23:47 +0200)]
browser: match support percentage with multiple comment markers

Encountered in recent data.

2 years agoperl: upcoming features upto v5.23.8
Mischa POSLAWSKY [Sat, 5 Mar 2016 13:49:44 +0000 (14:49 +0100)]
perl: upcoming features upto v5.23.8

3 years agoperl: lowercase exceptional capital in `use 5.012` description
Mischa POSLAWSKY [Mon, 21 Dec 2015 18:33:52 +0000 (19:33 +0100)]
perl: lowercase exceptional capital in `use 5.012` description

3 years agoperl: lexical topic dropped in v5.23.4
Mischa POSLAWSKY [Mon, 21 Dec 2015 18:32:49 +0000 (19:32 +0100)]
perl: lexical topic dropped in v5.23.4

3 years agotermcol: ppu (nes) palette using 2C04 rgb values
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:29:02 +0000 (01:29 +0100)]
termcol: ppu (nes) palette using 2C04 rgb values

Reference: <http://wiki.nesdev.com/w/index.php/PPU_palettes>

3 years agotermcol: drop archived url for ansi256
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:28:23 +0000 (01:28 +0100)]
termcol: drop archived url for ansi256

Apparently there isn't an official technical reference (a non-existent
site doesn't count).

3 years agotermcol: fix reordered named descriptions
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:23:55 +0000 (01:23 +0100)]
termcol: fix reordered named descriptions

3 years agotermcol: hue order option for comparison with rgb maps
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:17:23 +0000 (01:17 +0100)]
termcol: hue order option for comparison with rgb maps

3 years agotermcol: dawnbringer game palette
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:19:25 +0000 (01:19 +0100)]
termcol: dawnbringer game palette

3 years agotermcol: specific ?order option (=ansi replaces ?v)
Mischa POSLAWSKY [Mon, 21 Dec 2015 00:07:01 +0000 (01:07 +0100)]
termcol: specific ?order option (=ansi replaces ?v)

Preparation to support other orders.

3 years agotermcol: parent attribute to inherit common palette order
Mischa POSLAWSKY [Sun, 20 Dec 2015 23:59:59 +0000 (00:59 +0100)]
termcol: parent attribute to inherit common palette order

Facilitates other fallbacks in the future.

3 years agotermcol: distinct image palette in cga order
Mischa POSLAWSKY [Sun, 20 Dec 2015 23:51:02 +0000 (00:51 +0100)]
termcol: distinct image palette in cga order

Correct image palette regardless of reorder option.

3 years agotermcol: correct apple terminal app palette
Mischa POSLAWSKY [Thu, 19 Nov 2015 23:32:26 +0000 (00:32 +0100)]
termcol: correct apple terminal app palette

Also transcribed from screenshot taken by Jeroen Wiggers.

Corrected for sRGB colourspace; 256-colour palette matched xterm values
exactly so it's probably correct this time.

3 years agotermcol: iterm pastel palette
Mischa POSLAWSKY [Thu, 19 Nov 2015 23:11:53 +0000 (00:11 +0100)]
termcol: iterm pastel palette

"Pastel (Dark Background)" from source, see previous commit.

Other palettes not imported:
- Tango Dark: the same as current tango (except black is 000000)
- Solarized Dark: entirely different scheme alternative to ansi colours;
  based on <http://ethanschoonover.com/solarized> and similar to base16
  <https://github.com/chriskempson/base16> with many compatible themes
  comparable at <http://chriskempson.github.io/base16/>.

3 years agotermcol: retrieve original iterm colour definitions
Mischa POSLAWSKY [Thu, 19 Nov 2015 22:19:24 +0000 (23:19 +0100)]
termcol: retrieve original iterm colour definitions

Original screenshot apparently included some colour transformation
courtesy of Apple.

Converted from source <https://github.com/gnachman/iTerm2.git>:

perl -MMac::PropertyList=:all -E '
my $p = parse_plist_file("plists/ColorPresets.plist");
for my $col ($p->{"Dark Background"}) {
say join " ", map { parsecolor($col->{"Ansi $_ Color"}) } 0 .. 15;
}
sub parsecolor {
return join "", map {
sprintf "%02X", $_[0]->{"$_ Component"}->value * 255 + .5
} qw(Red Green Blue);
}
'

3 years agotermcol: define iterm palette
Mischa POSLAWSKY [Thu, 19 Nov 2015 22:18:43 +0000 (23:18 +0100)]
termcol: define iterm palette

Values from screenshot by Jeroen Wiggers.

3 years agotermcol: rgb table columns from dark to light
Mischa POSLAWSKY [Sat, 7 Nov 2015 22:13:55 +0000 (23:13 +0100)]
termcol: rgb table columns from dark to light

3 years agotermcol: adjust non-ansi palette orders slightly
Mischa POSLAWSKY [Sat, 7 Nov 2015 16:34:20 +0000 (17:34 +0100)]
termcol: adjust non-ansi palette orders slightly

3 years agotermcol: divide list rows over columns with 8 rows each
Mischa POSLAWSKY [Fri, 6 Nov 2015 19:21:12 +0000 (20:21 +0100)]
termcol: divide list rows over columns with 8 rows each

Put dark and light colours of cga next to each other for better comparison.
Still more space efficient for others.

3 years agotermcol: show reordered cell title "0"
Mischa POSLAWSKY [Tue, 3 Nov 2015 00:14:57 +0000 (01:14 +0100)]
termcol: show reordered cell title "0"

3 years agotermcol: support multiple images
Mischa POSLAWSKY [Mon, 2 Nov 2015 17:21:22 +0000 (18:21 +0100)]
termcol: support multiple images

3 years agotermcol: hsv method in Colour module
Mischa POSLAWSKY [Mon, 2 Nov 2015 14:15:32 +0000 (15:15 +0100)]
termcol: hsv method in Colour module

3 years agotermcol: define arne's cpc-derived palette "cpcboy"
Mischa POSLAWSKY [Mon, 2 Nov 2015 13:20:05 +0000 (14:20 +0100)]
termcol: define arne's cpc-derived palette "cpcboy"

3 years agotermcol: index greyscale ramp, include in image palette
Mischa POSLAWSKY [Mon, 2 Nov 2015 14:08:39 +0000 (15:08 +0100)]
termcol: index greyscale ramp, include in image palette

3 years agotermcol: define mirc palette (included in more)
Mischa POSLAWSKY [Mon, 2 Nov 2015 13:04:07 +0000 (14:04 +0100)]
termcol: define mirc palette (included in more)

3 years agotermcol: reindex option to replace colours
Mischa POSLAWSKY [Mon, 2 Nov 2015 06:02:56 +0000 (07:02 +0100)]
termcol: reindex option to replace colours

Append exclamation mark to img name to compare incompatible palette( size)s.

3 years agotermcol: use Imager for generic PNG generation
Mischa POSLAWSKY [Mon, 2 Nov 2015 05:14:51 +0000 (06:14 +0100)]
termcol: use Imager for generic PNG generation

Obviously less efficient than replacing palette at a hardcoded position,
but more flexible and reliable with different sources.

Still only loaded if requested.

3 years agotermcol: ?img option to draw one image with each palette
Mischa POSLAWSKY [Mon, 2 Nov 2015 04:48:59 +0000 (05:48 +0100)]
termcol: ?img option to draw one image with each palette

Manipulate source PNG file at data/indi.png to use palette colours in order
to compare look of an EGA game for each.  Quickly implemented by overwriting
data at certain positions, which will break with unexpected data.

Inline encoding increases page size by 6⋅5kB ≈ 30kB.

3 years agotermcol: float text samples in cells
Mischa POSLAWSKY [Sun, 1 Nov 2015 20:21:41 +0000 (21:21 +0100)]
termcol: float text samples in cells

Simplify to 1 column per colour with more flexible sample styling, at the
cost of difficulty matching line height.

3 years agotermcol: greyscales in hue row if no grey ramp specified
Mischa POSLAWSKY [Sun, 1 Nov 2015 20:04:17 +0000 (21:04 +0100)]
termcol: greyscales in hue row if no grey ramp specified

3 years agotermcol: define 512 and 4k colour rgb maps
Mischa POSLAWSKY [Sun, 1 Nov 2015 19:33:57 +0000 (20:33 +0100)]
termcol: define 512 and 4k colour rgb maps

Common 9- and 12-bit palettes used by various legacy systems.

3 years agotermcol: move common styling to css include
Mischa POSLAWSKY [Sun, 1 Nov 2015 19:06:34 +0000 (20:06 +0100)]
termcol: move common styling to css include

Reduces page size from 109kB to 88kB (though only 400 bytes over 12kB
compressed) for 140 bytes general css (35 bytes or less download).

3 years agotermcol: path argument to request custom palettes, groups
Mischa POSLAWSKY [Sun, 1 Nov 2015 17:35:34 +0000 (18:35 +0100)]
termcol: path argument to request custom palettes, groups

3 years agotermcol: adjust reordering of blues in arnegame
Mischa POSLAWSKY [Sun, 1 Nov 2015 16:28:07 +0000 (17:28 +0100)]
termcol: adjust reordering of blues in arnegame

3 years agotermcol: omit backgrounded sample cells for msx transparancy
Mischa POSLAWSKY [Sun, 1 Nov 2015 16:22:58 +0000 (17:22 +0100)]
termcol: omit backgrounded sample cells for msx transparancy

3 years agotermcol: declare ansi reordering in data include
Mischa POSLAWSKY [Sun, 1 Nov 2015 16:21:03 +0000 (17:21 +0100)]
termcol: declare ansi reordering in data include

3 years agotermcol: reference xterm for 256 colour title, rxvt for 88
Mischa POSLAWSKY [Sun, 1 Nov 2015 16:09:37 +0000 (17:09 +0100)]
termcol: reference xterm for 256 colour title, rxvt for 88

Name the originators and major proponents of these maps.

3 years agotermcol: declare rgb maps in include data
Mischa POSLAWSKY [Sun, 1 Nov 2015 15:42:10 +0000 (16:42 +0100)]
termcol: declare rgb maps in include data

3 years agotermcol: move colour values into data hashes
Mischa POSLAWSKY [Sun, 1 Nov 2015 15:33:52 +0000 (16:33 +0100)]
termcol: move colour values into data hashes

Instead of special-casing the first colour as metadata, declare all colours
as 'list' property of a single construct.

3 years agotermcol: declare palette titles in extensible metadata hashes
Mischa POSLAWSKY [Sun, 1 Nov 2015 15:19:53 +0000 (16:19 +0100)]
termcol: declare palette titles in extensible metadata hashes

Split combined html into distinct name, description, link.

3 years agotermcol: move palette data into separate include
Mischa POSLAWSKY [Sun, 1 Nov 2015 15:15:36 +0000 (16:15 +0100)]
termcol: move palette data into separate include

3 years agotermcol: amstrad cpc palette (27-colour hsv)
Mischa POSLAWSKY [Sun, 1 Nov 2015 03:06:34 +0000 (04:06 +0100)]
termcol: amstrad cpc palette (27-colour hsv)

3 years agotermcol: define palette label in rgb value subroutine
Mischa POSLAWSKY [Sun, 1 Nov 2015 03:29:16 +0000 (04:29 +0100)]
termcol: define palette label in rgb value subroutine

Prepare for palette numbering/naming different from 16+bgr offset.

3 years agotermcol: default values for rgb table colours
Mischa POSLAWSKY [Sun, 1 Nov 2015 03:03:20 +0000 (04:03 +0100)]
termcol: default values for rgb table colours

Continue with an equally distributed palette if unspecified.

3 years agotermcol: omit table tags from coltable_hsv() output
Mischa POSLAWSKY [Sun, 1 Nov 2015 03:05:06 +0000 (04:05 +0100)]
termcol: omit table tags from coltable_hsv() output

Require manual container setup so e.g. captions can be added.

3 years agotermcol: avoid plp code breaks for hsv tables
Mischa POSLAWSKY [Sun, 1 Nov 2015 02:50:47 +0000 (03:50 +0100)]
termcol: avoid plp code breaks for hsv tables

3 years agotermcol: fix cell description fallback of index 0
Mischa POSLAWSKY [Sun, 1 Nov 2015 02:48:47 +0000 (03:48 +0100)]
termcol: fix cell description fallback of index 0

3 years agotermcol: append greyscale ramps to colour tables
Mischa POSLAWSKY [Sun, 1 Nov 2015 02:34:10 +0000 (03:34 +0100)]
termcol: append greyscale ramps to colour tables

3 years agotermcol: use rgb index instead of value for hsv calculation
Mischa POSLAWSKY [Sun, 1 Nov 2015 02:12:48 +0000 (03:12 +0100)]
termcol: use rgb index instead of value for hsv calculation

Final colour value may not map well to table position; prefer original
coordinates to prevent outrageous transforms from breaking grouping
at the cost of adjusting for cumulative exceptions.

3 years agotermcol: pass parameter to rgb formula
Mischa POSLAWSKY [Sun, 1 Nov 2015 01:58:12 +0000 (02:58 +0100)]
termcol: pass parameter to rgb formula

Accidentally used default argument $_ which works in map but isn't safe.

3 years agotermcol: generate 88-colour map using common function
Mischa POSLAWSKY [Sun, 1 Nov 2015 00:38:31 +0000 (01:38 +0100)]
termcol: generate 88-colour map using common function

3 years agotermcol: generic h/s/v table generator function
Mischa POSLAWSKY [Sat, 31 Oct 2015 23:11:47 +0000 (00:11 +0100)]
termcol: generic h/s/v table generator function

Identical results for 256 colours but reusable for other bit sizes.

3 years agotermcol: unsaturated colours from h/s/v table in greyscale ramp
Mischa POSLAWSKY [Sat, 31 Oct 2015 20:54:09 +0000 (21:54 +0100)]
termcol: unsaturated colours from h/s/v table in greyscale ramp

3 years agotermcol: list 256-colour hues starting with red
Mischa POSLAWSKY [Sat, 31 Oct 2015 20:14:44 +0000 (21:14 +0100)]
termcol: list 256-colour hues starting with red

Most wheels have red at 0° so having it on top is more familiar.
Coincidentally also avoids undesirable row breaks.

3 years agotermcol: group h/s/v columns by saturation level
Mischa POSLAWSKY [Sat, 31 Oct 2015 19:53:54 +0000 (20:53 +0100)]
termcol: group h/s/v columns by saturation level