unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: drew.adams@oracle.com, Emacs-devel@gnu.org
Subject: Re: ASCII-only startup message?
Date: Sun, 27 Dec 2015 17:56:20 +0200	[thread overview]
Message-ID: <83k2nzhom3.fsf@gnu.org> (raw)
In-Reply-To: <567F3A5D.80502@cs.ucla.edu> (message from Paul Eggert on Sat, 26 Dec 2015 17:09:49 -0800)

> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sat, 26 Dec 2015 17:09:49 -0800
> Cc: Emacs-devel@gnu.org
> 
> Section 6.2 of the Unicode Standard states:
> 
> U+2019 right single quotation mark is preferred where the character is to represent a punctuation mark, as for contractions: “We’ve been here before.” In this latter case, U+2019 is also referred to as a punctuation apostrophe. 

The Unicode recommendations should be taken with a grain of salt when
applying them to Emacs, especially for major modes which aren't
derived from Text mode.  Unicode Standard is about typesetting and
displaying plain text, it says that much in many places.  See "Plain
Text" in Chapter 2 of the standard, which says, inter alia:

  The Unicode Standard encodes plain text. The distinction between
  plain text and other forms of data in the same data stream is the
  function of a higher-level protocol and is not specified by the
  Unicode Standard itself.

Even in the passage quoted in this thread, it says "When text is set"
(with "set" meaning "typeset" here).  Whenever any markup is used, or
some other high-level protocols are applicable, Unicode (voluntarily)
takes a back seat.

The issue at hand is not with plain text, but with comments in a major
mode that supports Lisp, i.e. the text in the buffer has syntax of a
source of a program.  Text handling in such buffers has its own
high-level protocols that override Unicode recommendations where
needed.  As a trivial example, we fontify comments and strings in this
mode to have special appearances that are outside of the Unicode
scope.  As a less trivial example, evaluate the following in a buffer
under Fundamental mode:

  (insert ";; אבגדה\n")

You will see that this "Lisp comment" is displayed starting at the
right edge of the window, as prescribed by the UBA, the Unicode
Bidirectional Algorithm, which Emacs supports.  Now do the same in
*scratch* -- the comment is displayed starting at the left window edge
instead, as you'd expect for a comment, because a buffer whose mode is
for program sources overrides the UBA wrt to the "base paragraph
direction".

IOW, Emacs already behaves slightly differently in major modes that
derive from prog-mode, and therefore there's nothing inherently wrong
with deviating from plain-text related Unicode recommendations
regarding the apostrophe, quotes, etc.

So I think we should use our own judgment in this case, and what the
Unicode Standard says is not the only source of wisdom we should
consider.



  reply	other threads:[~2015-12-27 15:56 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-26 17:25 ASCII-only startup message? Paul Eggert
2015-12-26 18:16 ` Eli Zaretskii
2015-12-26 18:41   ` Random832
2015-12-26 18:50     ` Paul Eggert
2015-12-26 19:11       ` Eli Zaretskii
2015-12-26 19:01     ` Eli Zaretskii
2015-12-26 18:45   ` Paul Eggert
2015-12-26 19:10     ` Eli Zaretskii
2015-12-26 19:40       ` Paul Eggert
2015-12-26 20:50         ` Eli Zaretskii
2015-12-26 23:28           ` Paul Eggert
2015-12-27  0:17             ` Drew Adams
2015-12-27  1:03               ` Clément Pit--Claudel
2015-12-27  2:51                 ` Drew Adams
2015-12-27  1:09               ` Paul Eggert
2015-12-27 15:56                 ` Eli Zaretskii [this message]
2015-12-27 18:45                   ` Paul Eggert
2015-12-27  6:58               ` Random832
2015-12-27 14:17                 ` Per Starbäck
2015-12-27 14:55                   ` Drew Adams
2015-12-27 16:35                     ` Per Starbäck
2015-12-27 17:42                       ` Drew Adams
2015-12-27 19:27                         ` Per Starbäck
2015-12-27 22:47                           ` Drew Adams
2015-12-27 23:45                             ` Per Starbäck
2015-12-28  2:01                               ` Drew Adams
2015-12-28  5:51                                 ` Random832
2015-12-28 10:09                                   ` Drew Adams
2015-12-28  6:05                                 ` Per Starbäck
2015-12-28 10:13                                   ` Drew Adams
2015-12-28  9:12                                 ` Nikolai Weibull
2015-12-28 10:15                                   ` Drew Adams
2015-12-28 14:59                                     ` Nikolai Weibull
2015-12-28 18:39                                       ` Drew Adams
2015-12-28  9:37                             ` Paul Eggert
2015-12-28 10:16                               ` Drew Adams
2015-12-29  7:05                                 ` Random832
2015-12-29  8:01                                   ` Yuri Khan
2015-12-29 14:38                                     ` Random832
2015-12-29 15:58                                     ` Eli Zaretskii
2015-12-29 17:05                                     ` Paul Eggert
2015-12-29 18:00                                       ` Drew Adams
2015-12-29 18:16                                       ` Eli Zaretskii
2015-12-29 19:24                                         ` Paul Eggert
2015-12-29 15:55                                   ` Eli Zaretskii
2015-12-29 17:40                                   ` Drew Adams
2015-12-28 16:31                               ` Eli Zaretskii
2015-12-27  3:44             ` Eli Zaretskii
2015-12-27  8:12               ` Nikolai Weibull
2015-12-28 20:04               ` John Wiegley
2015-12-29  6:50                 ` Richard Stallman
2015-12-29 16:55                   ` John Wiegley
2015-12-29 17:30                     ` Paul Eggert
2015-12-29 18:18                       ` Drew Adams
2016-01-01 13:29                       ` Marcin Borkowski
2016-01-01 17:48                         ` John Wiegley
2016-01-01 17:50                           ` John Wiegley
2016-01-02  8:14                           ` Paul Eggert
2015-12-29 15:05                 ` Random832
2015-12-29 16:49                   ` John Wiegley
     [not found]                 ` <<n5u7gn$6vh$1@ger.gmane.org>
2015-12-29 17:46                   ` Drew Adams
     [not found] <<567ECD8C.1070408@cs.ucla.edu>

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=83k2nzhom3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=Emacs-devel@gnu.org \
    --cc=drew.adams@oracle.com \
    --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).