Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1568 > unrolled thread

FAMILY-dependent apostrophe behaviour with -mom

Started byMarc Simpson <marc@0branch.com>
First post2019-12-01 11:08 -0800
Last post2019-12-01 11:08 -0800
Articles 1 — 1 participant

Back to article view | Back to gnu.groff.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  FAMILY-dependent apostrophe behaviour with -mom Marc Simpson <marc@0branch.com> - 2019-12-01 11:08 -0800

#1568 — FAMILY-dependent apostrophe behaviour with -mom

FromMarc Simpson <marc@0branch.com>
Date2019-12-01 11:08 -0800
SubjectFAMILY-dependent apostrophe behaviour with -mom
Message-ID<mailman.73.1575227349.1979.bug-groff@gnu.org>
Hi all,

I've noticed a difference in the typesetting of apostrophes depending
on selected font family with groff -mom.

Steps to reproduce (GNU groff version 1.22.4, from MacPorts):

- Fetch Peter Schaffter's font installation script from
  https://www.schaffter.ca/mom/bin/install-font.sh.
  - (Peter, if you're here: thanks for 'mom' and this script!)
- Install a macOS system font, e.g. Georgia; I did this interactively,
  creating Georgia +R, +I, +B and +BI.
- Typeset the following (minimal) document:

  --8<------------------------
  .PRINTSTYLE TYPESET
  \#.FAMILY H
  \#.FAMILY Georgia
  .START
  .PP
  Here's an example.
  --8<------------------------

- Note how the apostrophe is typeset as ’ (closing single quotation
  mark) with Times.
- Specify another builtin FAMILY, like H (uncomment line 2); typeset
  and observe the same.
- Now specify that the document is should be typeset in Georgia
  instead (comment out line 2, uncomment line 3).
- Note that the apostrophe is now typeset as ' (a typewriter quote).

Workaround: specify

  .char ' \[cq]

before START.  Note too that this is what .CODE OFF is doing; my
document originally had _inconsistent_ straight and curly apostrophes
as a result of interleaved code blocks.

It's unclear to me why this behaviour differs on the basis of family;
is this a bug, a difference caused by installing a custom font, or
simply user error?  (If the behaviour is intentional, then there's a
related state bug in CODE toggling.)

Thanks,
Marc

[toc] | [standalone]


Back to top | Article view | gnu.groff.bug


csiph-web