all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mirek Kaim <mirek.kaim@outlook.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: "nljlistbox2@gmail.com" <nljlistbox2@gmail.com>,
	"rms@gnu.org" <rms@gnu.org>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>,
	"cloos@jhcloos.com" <cloos@jhcloos.com>,
	"larsi@gnus.org" <larsi@gnus.org>, Eli Zaretskii <eliz@gnu.org>
Subject: RE: Turning off colorization
Date: Tue, 11 Nov 2014 18:58:56 +0100	[thread overview]
Message-ID: <COL131-W635A8DAC6EF612C7E78F1484810@phx.gbl> (raw)
In-Reply-To: <CAP_d_8UH5S8fpcymCJCcdN6zd6oETiEyRgHfCAVevaZe1PgW5A@mail.gmail.com>

> From: yuri.v.khan@gmail.com
>
> You’re talking about 256 colors as if it were a whole lot.
>
> In fact, 256 is a very limited color space. It includes 16 base
> colors, a 6×6×6 color cube, and some 24 shades of gray. The color cube
> is typically configured with rather light colors, suitable for use as
> foreground on black (hex RGB value starting at 0x5f or something). As
> a consequence, there are very few dark non-gray colors in the
> 256-color palette.

it's what a lot of people have. there's nothing wrong with having support for true color terminals - if it's available, by all means, use it. some fallback for those with 256 colors should exist, though. writing some converter that maximizes contrast while preserving the hue as much as possible should be doable, but that's not my point.

my point is that current background and terminal/emacs theme shouldn't matter when rendering a website. terminal theme usually redefines base 16 colors, right? checking the background color suggests doing some fancy matching of the website palette to that background color, and possibly to all base 16 colors as well. kinda pointless, imho. current background should NOT be used. at all.

agreed, mapping rgb to 256 (-16) colors is far from being perfect either, but if that's the only (colorful) option available, there's no other way without touching the current terminal theme.

> Nowadays, nobody bothers about web-safe colors any more. We have the
> Tango palette, the Solarized palette, and a zillion other palettes,
> none mapping well to the xterm space.

it so happens that i am using solarized palette. 16 colors, defined as rgb values in mintty config. works pretty well and doesn't have to do anything with 256-color palette. one can change the base 16 colors on the fly using escape codes to any rgb values whatsoever on quite a few terminals, even those without full truecolor support, but that's changing the terminal theme altogether and the escape codes vary across terminals as well as across the environment (screen, tmux), so it's kinda useless here.

> Instead of coming up with clever heuristics about color remapping, we
> had better push for true color support in terminal emulators,
> libraries and applications.
>
> https://gist.github.com/XVilka/8346728

as i've said, fallback for 256-color terminals should be in place, imho. without remapping colors to the 256-color palette, probably the only sane option to preserve readability on such terminals would be to render the website in 24 shades of gray. far from perfect, but readable. i'm all for truecolor support in all terminal emulators, but we're simply not there yet.

on different note, for truecolor terminals/gui mode, it would be possible to get a nice 'easy on the eyes' website rendering for those that don't care about original website colors that much - and prefer solarized palette. for each rgb color, hue would be preserved, but saturation would change and luminosity would be mapped to solarized values depending if it's a background or foreground color, for constant contrast across the website. the mapping function would need to know if the rgb values describe foreground or background color, but that shouldn't be a problem for website renderer.

proper mapping of rgb values to 256-color palette shouldn't be that hard though, nor cpu intensive. the trick would be to map colors using foreground-background pairs to preserve contrast, even at the cost of changing one of the hues dramatically. it certainly wouldn't be as pretty as the truecolor original or - especially - truecolor solarized variant of the original, but it should remain readable when done right. which is, i guess, the main point of all this.

one more alternative i can think of is using 24 shades of gray together with shades of a single (selectable) color for 'accents'. the renderer would have to choose where to use those accents though (links/buttons/headers/whatever), but it would be easier to navigate than plain grayscale variant.


unic0rn
 		 	   		  


  reply	other threads:[~2014-11-11 17:58 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 16:43 Turning off colorization Richard Stallman
2014-11-04 17:11 ` Phillip Lord
2014-11-05  4:57   ` Richard Stallman
2014-11-05  9:11     ` David Kastrup
2014-11-05 11:31       ` Ted Zlatanov
2014-11-05 11:51         ` Tassilo Horn
2014-11-05 12:49           ` Andreas Schwab
2014-11-05 13:05             ` Tassilo Horn
2014-11-05 11:52         ` Phillip Lord
2014-11-05 12:03           ` Ted Zlatanov
2014-11-05 12:30             ` Phillip Lord
2014-11-05 12:23         ` Lars Magne Ingebrigtsen
2014-11-05 12:52           ` Andreas Schwab
2014-11-05 17:06             ` Lars Magne Ingebrigtsen
2014-11-05 17:30               ` Eli Zaretskii
2014-11-05 17:35               ` Andreas Schwab
2014-11-05 19:56                 ` Lars Magne Ingebrigtsen
2014-11-05 20:17                   ` Eli Zaretskii
2014-11-05 12:55           ` Tassilo Horn
2014-11-05 13:00           ` Yoni Rabkin
2014-11-05 14:00           ` James Cloos
2014-11-05 18:13             ` Richard Stallman
2014-11-05 23:37               ` James Cloos
2014-11-06 10:05                 ` David Kastrup
2014-11-06 15:26                   ` Stefan Monnier
2014-11-06 16:03                     ` Alan Mackenzie
2014-11-06 16:53                       ` Stefan Monnier
2014-11-07  7:13                         ` Richard Stallman
2014-11-07 14:43                           ` Stefan Monnier
2014-11-08  6:44                             ` Richard Stallman
2014-11-08 15:26                               ` Stefan Monnier
2014-11-09 20:06                                 ` Richard Stallman
2014-11-07  7:12                     ` Richard Stallman
2014-11-05 15:02         ` Stefan Monnier
2014-11-06 20:13           ` N. Jackson
2014-11-06 21:42             ` Tim Cross
2014-11-06 23:14             ` Stefan Monnier
2014-11-07  0:10               ` Daniel Colascione
2014-11-07  4:13                 ` Stefan Monnier
2014-11-05 18:12       ` Richard Stallman
2014-11-05 11:05     ` Phillip Lord
2014-11-04 20:59 ` Nic Ferrier
     [not found]   ` <CAG-q9=a+nTM3KhYeBfzvSZOWKMjdDgaUyQw25_NkAkoad3QwOw@mail.gmail.com>
2014-11-05  1:09     ` Kelvin White
2014-11-05  2:10       ` Stephen J. Turnbull
2014-11-05  8:23         ` Harald Hanche-Olsen
2014-11-06 16:47 ` N. Jackson
2014-11-06 17:36   ` Eli Zaretskii
2014-11-06 19:55     ` N. Jackson
2014-11-06 18:00   ` Wolfgang Jenkner
2014-11-06 19:44     ` N. Jackson
2014-11-06 19:44   ` Tassilo Horn
2014-11-06 19:49     ` Eli Zaretskii
2014-11-07  6:36       ` Tassilo Horn
2014-11-07  7:06         ` Eli Zaretskii
2014-11-07  7:59           ` Tassilo Horn
2014-11-07  9:00             ` Eli Zaretskii
2014-11-06 21:55   ` Lars Magne Ingebrigtsen
2014-11-07  0:04   ` James Cloos
2014-11-07 13:57     ` Gregor Zattler
2014-11-07 14:02       ` Eli Zaretskii
2014-11-07 14:47         ` Gregor Zattler
2014-11-07 15:06           ` Eli Zaretskii
2014-11-07 15:27             ` Gregor Zattler
2014-11-07 16:59       ` James Cloos
2014-11-07 19:12         ` Mirek Kaim
2014-11-07 18:36       ` Andreas Schwab
2014-11-07  7:13   ` Richard Stallman
2014-11-07  8:43     ` Eli Zaretskii
2014-11-08  6:44       ` Richard Stallman
2014-11-08  8:15         ` Eli Zaretskii
2014-11-08 21:36           ` Richard Stallman
2014-11-08 22:18           ` James Cloos
2014-11-08 22:30             ` Lars Magne Ingebrigtsen
2014-11-08 22:51               ` James Cloos
2014-11-09  1:30                 ` Lars Magne Ingebrigtsen
2014-11-09  3:51                   ` Eli Zaretskii
2014-11-10 15:29                   ` Mirek Kaim
2014-11-10 16:21                     ` Eli Zaretskii
2014-11-10 18:37                       ` Mirek Kaim
2014-11-11  1:32                         ` Yuri Khan
2014-11-11 17:58                           ` Mirek Kaim [this message]
2014-11-09  3:45                 ` Eli Zaretskii
2014-11-09 14:57                   ` James Cloos
2014-11-09 16:26                     ` Eli Zaretskii
2014-11-09 20:07                   ` Richard Stallman
2014-11-09 20:13                     ` Eli Zaretskii
2014-11-10 19:07                       ` Richard Stallman
2014-11-10 19:57                         ` Eli Zaretskii
     [not found]     ` <<83r3xfs8mx.fsf@gnu.org>
2014-11-07 14:43       ` Drew Adams
2014-11-07 15:28         ` Stefan Monnier
2014-11-07 15:40           ` Eli Zaretskii
2014-11-07 16:08             ` Stefan Monnier
2014-11-08  6:44             ` Richard Stallman
2014-11-09  4:14 ` Paul W. Rankin
2014-11-09 20:08   ` Richard Stallman
2014-11-09 22:03   ` Stefan Monnier
2014-11-10  1:41     ` Paul Rankin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=COL131-W635A8DAC6EF612C7E78F1484810@phx.gbl \
    --to=mirek.kaim@outlook.com \
    --cc=cloos@jhcloos.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=nljlistbox2@gmail.com \
    --cc=rms@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.