bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Glyph "figuredash" is missing


From: Bjarni Ingi Gislason
Subject: Glyph "figuredash" is missing
Date: Mon, 11 Nov 2013 00:19:54 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

                           Groff Bug Report

GROFF VERSION: 1.22.2
'current-groff' from 12th October 2013

MACHINE: laptop i586

OS: Linux 3.2.46-1-rt67-1 (Debian)

COMPILER: gcc (Debian 4.7.2-5) 4.7.2

INPUT FILES:

1\[u2012]9, 1\[u2013]9

COMMAND LINE:

groff -ww -Z < <input file>

DESCRIPTION OF INCORRECT BEHAVIOUR OR DEFECTS IN (INPUT) SOURCE:

  Character \[u2012] (Postscript 'figuredash') is not in any font file. 
It is used between digits (and uppercase letters) as the en-dash is
constucted for lowercase letters

  Standard error:

<standard input>:1: warning: can't find special character `u2012'

  Standard output:

x T ps
x res 72000 1 1
x init
p1
x font 5 TR
f5
s10000
V12000
H72000
md
DFd
t19,
wh2500
t1
Cen
h5000
t9
n12000 0
x trailer
V792000
x stop

SUGGESTED FIX [optional]:

  Until the character is available:

.\" figuredash, UCS code 2012, defined as a string, a character and a macro
.\" To be used between digits or uppercase letters, like 1-5, A-Z
.\" Approximation; glyph is an en-dash, moved to about half the heigh
.\" of the previous character or the character 'M'
.\" Register \n[.cht] is not available (or zero) in a ".char" request

.ie \n(.g \{\
. ie !c\[u2012] \{\
.
.\" Height of the dash is half the height of 'M'
.   do fchar \[figuredash] \
address@hidden'M'address@hidden'-\En[rst]u/2u'address@hidden'\(en'address@hidden
\v'\En[rst]u'address@hidden'M\(en'address@hidden(address@hidden'\(en'u@
.
.\" Height of the dash is half the height of the previous character
.   ds figuredash \
\h#\w'\(en'u#\h#-\w'\(en'u#\Z#\v'-(\En[.cht]u/2u-\En[rst]u)'\(en#\h#\w'\(en'u#
.
.\" Height of the dash is half the height of the previous character
.de Figuredash
. nr en_dash_width \w'\(en'u
. nop \E$1\c
. nr elevate \En[.cht]u/2u-\En[rst]u
. nop \Z#\v'-\En[elevate]u'\(en#\h'\En[en_dash_width]u'\E$2
..
. \}
. el \{\
.   if !'\[figuredash]'\[u2012]' .tr \[figuredash] \[u2012] 
.   ds figuredash \[u2012]
.   de Figuredash
.     nop \E$1\[u2012]\E$2
.   .
. \}
.\}
.\" Not groff
.el \{\
. tm String, character, macro "figuredash" can only be used with "groff" or 
equivalent
.\}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]