unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 20707@debbugs.gnu.org
Subject: bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors
Date: Mon, 8 Jun 2015 17:18:04 +0000	[thread overview]
Message-ID: <20150608171804.GA3184@acm.fritz.box> (raw)
In-Reply-To: <55738BA9.7050104@cs.ucla.edu>

Hello, Paul.

On Sat, Jun 06, 2015 at 05:09:13PM -0700, Paul Eggert wrote:
> Alan Mackenzie wrote:
> > Up till now, all messages output have been ASCII (with the exception of user
> > supplied characters and in some other rare instances such as outputting
> > `sentence-end').

> No, even the current stable version of Emacs (24.4) regularly outputs
> curved quotes on typical displays.  I just now ran emacs -Q, typed "C-h
> i m emacs RET", and saw curved quotes on the first screenful of the
> Emacs manual.

The topic was specifically "message output".  And up till now this has
been ASCII.  Saying "somebody else did it first, therefore it must be all
right for us" is a red herring.  I hope you never use that as an excuse
in a court of law.  Further, we don't control Info output, there's
nothing much we can do about it, and you have been amongst the loudest
complaining about Info 5, albeit about a different aspect.

> So we're not making such a drastic change here; we're just evolving
> Emacs in the natural direction.

Sorry Paul, but that's not so.  There's nothing "natural" about
"evolving" from ubiquitous common characters to obscure, difficult to
type, difficult to display ones.  The change in philosopy is marked.
"There's a massive movement afloat, and we're just allowing ourselves to
be swept along with it" isn't the Emacs norm.

What you want to do is to change Emacs so that it works less well on many,
if not most[*], current setups.  The one justification you've given is that
you personally find the current use of ASCII quote marks irritating,
which I would accept as a good reason, but you could fix that by fixing
your fonts, in much the same way you're advocating I fix my fonts.  I
don't think "everybody else is doing it" counts as justification at all.

[*] Even on GUI systems with all these quirky characters displayable,
it's going to be more difficult to do search operations involving them.

> > does the code test the output display setup to decide what sort of
> > quotes to output (best), or is it up to some user option (middling)
> > or is it hard coded (worst)?

> It tests the output display setup.

Excellent!  I've just updated and built my master copy, and tried it out
on the Emacs manual as bundled with the 24.5 release.  That still
displays double curly quotes as inverse question marks, though.  Could I
have misunderstood you, and the code that does this test hasn't yet found
its way into master?

> >> This is not too much to ask of an Emacs developer.

> > Of course not, but could it be too much to ask of an Emacs user?

> Emacs users in 8-bit environments shouldn't need to worry about this; they 
> should just see straight quotes where the Emacs manual etc. uses curved ones. 

And they'll see C-s searches involving "these" characters failing
inexplicably.  And this will happen in more than just "8-bit"
environments.

> This thread is more about the special case of a developer who's using a Linux 
> console that doesn't support the full Unicode gamut.

It's potentially about the "special case" of USERS of all display
environments other than unicode GUI ones.  How many environments other
than the Linux terminal are there in which these new characters won't be
displayed properly?  As the proponent of the change, you'll surely have
done this research, yes?.

> > this warrants an extensive entry in NEWS.

> Makes sense, and the next iteration of this patch will add a NEWS entry.

> > I don't think that's the font for me.  It has one-pixel thick spidery
> > characters, rather than the two-pixel thick ones the default fonts have.

> The font has a bold variant.  I'll attach Lat15-TerminusBold16.psf.gz.  There 
> are other variants that are even bigger, if you like.

I don't think it makes too much sense to talk about my personal setup.
I've already resigned myself to spending many hours on the topic, and
finding out about how Linux console fonts work has already consumed the
first few hours of this.  The real question is what support is to be
given to the bulk of other users of non-full-unicode terminals.

> > ... Its apostrophe is a vertical line rather than a top right to bottom left
> > sloping character, and I find its curly single quotes too indistinct

> If you just want to continue to use the same font, how about the attached font 
> lat1-16.psfu.gz instead?

That's the one I'm using anyway.  :-).  It's an excellent font, but it
lacks curly double quotes and distinct glyphs for curly single quotes.  I
have the requisite programs for editing fonts, namely psf2txt, and
txt2psf, part of the GNU/Linux psftools package.  psf2txt dumps a font
into a readable (and editable) format, and txt2psf does the reverse.

> It's taken from the current stable version of kbd 
> <http://kbd-project.org/>; see 
> <http://kbd-project.org/download/kbd-2.0.2.tar.xz> and extract the file 
> kbd-2.0.2/data/consolefonts/lat1-16.psfu and then use gzip to get the compressed 
> version.  This handles curved single quotes and if it's the same lat1-16 font 
> you're used to you should find it comfortable.  Curved double quotes don't come 
> up as often, but if you want them to be displayed using a graphical 
> representation other than '"', you can do something like the following:

> (printf '0x0d3 U+201C\n0x0d9 U+201D\n'; psfgettable lat1-16.psfu) |
> psfaddtable lat1-16.psfu - lat1-16-double.psfu
> gzip -9n lat1-16-double.psfu

> and then use the font lat1-16-double.psfu.gz instead.

This, indeed, is another approach.

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2015-06-08 17:18 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01  7:39 bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors Paul Eggert
     [not found] ` <mailman.4052.1433144480.904.bug-gnu-emacs@gnu.org>
2015-06-01 10:49   ` Alan Mackenzie
2015-06-01 16:01     ` Paul Eggert
2015-06-01 17:17       ` Alan Mackenzie
2015-06-01 18:50         ` Paul Eggert
2015-06-02 11:56           ` Alan Mackenzie
2015-06-02 13:25             ` Drew Adams
2015-06-02 15:39             ` Paul Eggert
2015-06-02 15:51               ` Dmitry Gutov
2015-06-02 20:05                 ` Paul Eggert
2015-06-02 17:07               ` Alan Mackenzie
2015-06-02 20:44                 ` Alan Mackenzie
2015-06-04 15:43                   ` Paul Eggert
2015-06-06 15:54                     ` Alan Mackenzie
2015-06-06 18:11                       ` Paul Eggert
2015-06-06 20:50                         ` Alan Mackenzie
2015-06-07  0:09                           ` Paul Eggert
2015-06-08 17:18                             ` Alan Mackenzie [this message]
2015-06-09  6:53                               ` Paul Eggert
2015-06-09 13:34                                 ` Alan Mackenzie
2015-06-09 20:49                                   ` Paul Eggert
2015-06-09 22:46                                     ` Alan Mackenzie
2015-06-09 23:42                                       ` Paul Eggert
2015-06-10 13:39                                         ` Alan Mackenzie
2015-06-10 16:20                                           ` Paul Eggert
2015-06-10 17:39                                             ` Dmitry Gutov
2015-06-10 19:42                                               ` Paul Eggert
2015-06-10 19:17                                             ` Alan Mackenzie
2015-06-10 19:44                                               ` Paul Eggert
2015-06-11 19:06                                                 ` Alan Mackenzie
2015-06-12  2:41                                                   ` Paul Eggert
2015-06-12 11:25                                                     ` Alan Mackenzie
2015-06-12 23:46                                                       ` Paul Eggert
2015-06-13 11:54                                                         ` Alan Mackenzie
2015-06-13 17:54                                                           ` Paul Eggert
2015-06-07 13:17                       ` Wolfgang Jenkner
2015-06-09 16:58                         ` Alan Mackenzie
2015-06-02 23:26                 ` Paul Eggert
2015-06-01 14:34 ` Eli Zaretskii
2015-06-01 16:48   ` Glenn Morris
2015-06-01 17:55   ` Paul Eggert
2015-06-01 18:29     ` Eli Zaretskii
2015-06-01 21:13     ` Stefan Monnier
2015-06-09 19:44 ` Wolfgang Jenkner
2015-06-11 13:06 ` bug#20707: " Andy Moreton
2020-08-12 13:02 ` bug#20707: [PROPOSED PATCH] " Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20150608171804.GA3184@acm.fritz.box \
    --to=acm@muc.de \
    --cc=20707@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).