9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Giacomo Tesio <giacomo@tesio.it>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] unexpected tabs in man pages after font change
Date: Thu,  5 Mar 2015 16:22:42 +0100	[thread overview]
Message-ID: <CAHL7psF=OTvtjra8GRspn=-dhwSc-CRiwpY9RMvc9CHCfRoLfQ@mail.gmail.com> (raw)
In-Reply-To: <faaa823d36313b8cfa399aaa4753c501@brasstown.quanstro.net>

[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]

Which font are you using?
With all mono-spaced (fixed-width) fonts everything works fine. The problem
occurs just with  variable spaced fonts.

Btw I noted that the fix is not perfect: the table at the end of man(1) is
misaligned, with or without the fix. Even without calling col at all.

This could be due to troff assuming fixed with font and inserting spaces
instead of tabs. And its a pity, because  probably libframe would align
tabs properly.

But this is just a guess, I had no time to check the troff code for this
second issue.

Giacomo
Il 05/Mar/2015 15:23 "erik quanstrom" <quanstro@quanstro.net> ha scritto:

> > Interestingly enough the problem disappears with a mono font.
> >
> > I suspect that troff is inserting such tabs instead of spaces when it
> > thinks they are the same. Indeed libframe (as far I could understand from
> > the manual and the sources) properly handles such variable width fonts.
> >
> > Looks like I've to inform troff about the glyphs sizes... but how?
>
> i don't use a mono font so i don't like your col -x solution, and this
> works for me regardless.
>
> if $font is set correctly, i believe all this should work out.  make sure
> that $tabstop=acme tabstop as well.  the default for acme is 4, but
> it is imported by $tabstop, and overridden with Tab.
>
> cpu'ing can screw with your $font.
>
> - erik
>
>

[-- Attachment #2: Type: text/html, Size: 1780 bytes --]

  reply	other threads:[~2015-03-05 15:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04 16:13 Giacomo Tesio
2015-03-04 17:11 ` Giacomo Tesio
2015-03-05 14:15   ` erik quanstrom
2015-03-05 15:22     ` Giacomo Tesio [this message]
2015-03-04 21:31 ` Aram Hăvărneanu
2015-03-04 22:29   ` Giacomo Tesio
2015-03-04 22:39     ` Stanley Lieber
2015-03-04 23:09       ` Giacomo Tesio
2015-03-05  0:02         ` Giacomo Tesio
2015-03-04 23:56 sl
2015-03-05  0:17 ` Giacomo Tesio
2015-03-05 14:10 ` erik quanstrom

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='CAHL7psF=OTvtjra8GRspn=-dhwSc-CRiwpY9RMvc9CHCfRoLfQ@mail.gmail.com' \
    --to=giacomo@tesio.it \
    --cc=9fans@9fans.net \
    /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.
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).