zsh-users
 help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Hyphens, minuses, and dashes (was: Re: How to impose a numeric sort on negative numbers?)
Date: Fri, 03 Jul 2020 16:21:22 +0000	[thread overview]
Message-ID: <b0307ed0-0b11-4edc-9e4b-544d9a04a6b5@www.fastmail.com> (raw)
In-Reply-To: <911983023.281006.1593691210724@mail2.virginmedia.com>

Peter Stephenson wrote on Thu, 02 Jul 2020 12:00 +00:00:
> So it's sort of doing the right thing at least from the point of what's visible
> in text.
> 
> However(!), what we really want here is indeed an ASCII hyphen, because this
> is what your're typing.

To be clear, I never proposed to change the definition of DASH(); I only said
the new text shouldn't use that macro.  We seem to be in agreement on that.

Thanks for the background on TeX's handling of hyphens.  (I was already
familiar with most of those details, actually, though not with info(1)'s
handling of runs of hyphens.)

> (It's not even actually a minus sign because this is an input code,
> not a mathematical expression. For what it's worth, which is very
> little, this would be different in TeX, $-$, but no other format I
> know of really cares.)

TeX is not the only format that distinguishes hyphen and minus; Unicode
does, too.  (There's U+2010 HYPHEN, U+2212 MINUS SIGN, and even U+00AD
SOFT HYPHEN.)

> I have a vague memory we got into problems with such things in YODL
> once, which is why I used the macro.  But looking at the current doc
> source doesn't suggest any trace of it, so I'll abandon that.  There
> have been many improvements in YODL since then.

Hmm.  This reminds me: in the HTML FAQ emdash() renders as «"---"»,
whereas in the HTML manual «DASH()-» is rendered as "—".

Looking at the respective Makefiles, I suspect this might be because the
FAQ is built by yodl2html(1), whereas the manual is built by yodl +
texi2any(1) [= $(TEXI2HTML)].

> pws

Cheers,

Daniel

  reply	other threads:[~2020-07-03 16:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01 17:45 How to impose a numeric sort on negative numbers? Sebastian Gniazdowski
2020-07-01 18:02 ` Mikael Magnusson
2020-07-01 18:07   ` Sebastian Gniazdowski
2020-07-01 18:12     ` Roman Perepelitsa
2020-07-03 18:12     ` Lewis Butler
2020-07-03 18:35       ` Bart Schaefer
2020-07-01 19:42   ` Peter Stephenson
2020-07-02 11:36     ` Daniel Shahaf
2020-07-02 12:00       ` Peter Stephenson
2020-07-03 16:21         ` Daniel Shahaf [this message]
2020-07-02 15:46       ` Bart Schaefer
2020-07-03 20:08         ` Peter Stephenson
2020-07-03 20:15           ` Bart Schaefer
2020-07-03 22:23           ` Daniel Shahaf
2020-07-07 16:14             ` Daniel Shahaf
2020-07-07 16:18               ` Daniel Shahaf
2020-07-01 18:48 ` Lawrence Velázquez
2020-07-06  7:15   ` Sebastian Gniazdowski

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=b0307ed0-0b11-4edc-9e4b-544d9a04a6b5@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-users@zsh.org \
    /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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).