9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] toff fonts
@ 2011-09-18  5:55 cinap_lenrek
  2011-09-18 14:05 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: cinap_lenrek @ 2011-09-18  5:55 UTC (permalink / raw)
  To: 9fans

trying to render special unicode character 0x2019
in troff.

but pr2post fails with:

/386/bin/aux/tr2post: <stdin>:31 :WARNING: cannot find glyph, rune=0x2019 stoken=<’> troff font R

now looking in:

/sys/lib/postscript/troff/R

0x2000 0x20ff LucidaSansUnicode20

but in:

/sys/lib/troff/font/devutf/R

there is no reference to 0x2019 at all, only in

/sys/lib/troff/font/devutf/LucidaSans:12: ' 32 2 8217 2019

setting to front to LucidaSans in the troff source works.

so whats the relation between /sys/lib/postscript/troff/*
and /sys/lib/troff/font/dev*/*?

should the stuff in /sys/lib/troff/font/dev*/* be autogeneated
somehow?

--
cinap



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] toff fonts
  2011-09-18  5:55 [9fans] toff fonts cinap_lenrek
@ 2011-09-18 14:05 ` Russ Cox
  2011-09-18 14:16   ` cinap_lenrek
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2011-09-18 14:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

why are you trying to render U+2019?
the usual way to do that is to write U+0027.

russ


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] toff fonts
  2011-09-18 14:05 ` Russ Cox
@ 2011-09-18 14:16   ` cinap_lenrek
  2011-09-18 15:07     ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: cinap_lenrek @ 2011-09-18 14:16 UTC (permalink / raw)
  To: 9fans

that char comes from a xhtml file from a ebook in
epub format.

--
cinap



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] toff fonts
  2011-09-18 14:16   ` cinap_lenrek
@ 2011-09-18 15:07     ` Russ Cox
  2011-09-18 15:22       ` cinap_lenrek
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2011-09-18 15:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Honestly, the easiest thing to do is run the input through sed.
Or use Heirloom troff, which has much better support
for Unicode and modern fonts.

Russ


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] toff fonts
  2011-09-18 15:07     ` Russ Cox
@ 2011-09-18 15:22       ` cinap_lenrek
  2011-09-19  1:01         ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: cinap_lenrek @ 2011-09-18 15:22 UTC (permalink / raw)
  To: 9fans

i was just wondering because all these special unicode
characters work with the LucidaSans font. and the
/sys/lib/postscript/troff/R file *suggested* to me that
it should fall back to the Lucida font for special
characters...

how are the troff font descriptions in /sys/lib/troff/font/devutf
generated? this builtables program is all wired bash script
and doesnt work on plan9.

--
cinap



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] toff fonts
  2011-09-18 15:22       ` cinap_lenrek
@ 2011-09-19  1:01         ` Russ Cox
  0 siblings, 0 replies; 6+ messages in thread
From: Russ Cox @ 2011-09-19  1:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sun, Sep 18, 2011 at 11:22 AM,  <cinap_lenrek@gmx.de> wrote:
> i was just wondering because all these special unicode
> characters work with the LucidaSans font. and the
> /sys/lib/postscript/troff/R file *suggested* to me that
> it should fall back to the Lucida font for special
> characters...
>
> how are the troff font descriptions in /sys/lib/troff/font/devutf
> generated?

i don't know, sorry.
i worked it all out once but i've forgotten it.
the different directories are consulted by
different tools.  troff uses one to find character
metrics, and then tr2post uses another to map
unicode code points to specific postscript (256-char) fonts.

russ


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-19  1:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-18  5:55 [9fans] toff fonts cinap_lenrek
2011-09-18 14:05 ` Russ Cox
2011-09-18 14:16   ` cinap_lenrek
2011-09-18 15:07     ` Russ Cox
2011-09-18 15:22       ` cinap_lenrek
2011-09-19  1:01         ` Russ Cox

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).