Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2012 22:46:49 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: Tidy and HTML tab spacing
Message-ID:  <alpine.BSF.2.00.1201262148480.25316@wonkity.com>
In-Reply-To: <20120127.124619.1645166101623286100.hrs@allbsd.org>
References:  <alpine.BSF.2.00.1201201231090.61386@wonkity.com> <alpine.BSF.2.00.1201261055280.20643@wonkity.com> <alpine.BSF.2.00.1201261121550.21319@wonkity.com> <20120127.124619.1645166101623286100.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---902635197-1977355660-1327643209=:25316
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 27 Jan 2012, Hiroki Sato wrote:

> Changes look good to me, but it is better to use something like this
>
> REINPLACE_TABS_CMD?=${SED} -i -e 's/	/\&#09;/g'
>
> in doc.common.mk (with some comments explaining this is a hack to
> preserve literal tab characters) and use it in these three.

Revised patch attached (for real, this time).  Only lightly tested but 
no problems noticed.

On Windows XP, IE8 and Firefox 9 render the tabs in the new version 
correctly.


There is another issue: PDFs.  A PDF version with the patch above is at 
http://www.wonkity.com/~wblock/porters/book.pdf.bz2

Actual tabs come out as a single space in the PDF.  Compare that with 
the unpatched tabs-to-spaces version at
ftp://ftp.freebsd.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/book.pdf.bz2

...which still isn't quite right.  Tabs at the beginning of lines are 
removed.  (That file has not been rebuilt in quite a while, either.)

I'm thinking the conversion will be different with DocBook XML, possibly 
more correct.  There are other problems with the current PDFs that might 
also be cured.

As far as the other formats, book.txt looks somewhat okay, but I've 
honestly never looked at the .txt or .rtf formats before.
---902635197-1977355660-1327643209=:25316
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-tidytabs-oscar.diff
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.BSF.2.00.1201262246490.25316@wonkity.com>
Content-Description: 
Content-Disposition: attachment; filename=patch-tidytabs-oscar.diff

SW5kZXg6IGRvYy9zaGFyZS9tay9kb2MuZG9jYm9vay5taw0KPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9ob21lL2RjdnMvZG9jL3NoYXJl
L21rL2RvYy5kb2Nib29rLm1rLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4x
MjkNCmRpZmYgLXUgLXIxLjEyOSBkb2MuZG9jYm9vay5taw0KLS0tIGRvYy9z
aGFyZS9tay9kb2MuZG9jYm9vay5tawkxNSBNYXkgMjAxMSAyMDo0MTozMSAt
MDAwMAkxLjEyOQ0KKysrIGRvYy9zaGFyZS9tay9kb2MuZG9jYm9vay5tawky
NyBKYW4gMjAxMiAwNDo0ODozMiAtMDAwMA0KQEAgLTUyNSw2ICs1MjUsNyBA
QA0KIAkJJHtET0N9LnhtbA0KIC5lbmRpZg0KIC5pZiAhZGVmaW5lZChOT19U
SURZKQ0KKwkke1JFSU5QTEFDRV9UQUJTX0NNRH0gJCQoJHtYQVJHU30gPCBI
VE1MLm1hbmlmZXN0KQ0KIAktJHtUSURZfSAke1RJRFlPUFRTfSAkJCgke1hB
UkdTfSA8IEhUTUwubWFuaWZlc3QpDQogLmVuZGlmDQogDQpAQCAtNTQ1LDYg
KzU0Niw3IEBADQogCQkke0RPQ30ueG1sID4gJHsuVEFSR0VUfQ0KIC5lbmRp
Zg0KIC5pZiAhZGVmaW5lZChOT19USURZKQ0KKwkke1JFSU5QTEFDRV9UQUJT
X0NNRH0gJHsuVEFSR0VUfQ0KIAktJHtUSURZfSAke1RJRFlPUFRTfSAkey5U
QVJHRVR9DQogLmVuZGlmDQogDQpJbmRleDogZG9jL3NoYXJlL21rL2RvYy5j
b21tb24ubWsN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ogLiBp
ZiAhZGVmaW5lZChOT19USURZKSB8fCBlbXB0eShOT19USURZKQ0KIC4gIGlm
ICFkZWZpbmVkKE5PX1RJRFkuJHtfSUR9KSB8fCBlbXB0eShOT19USURZLiR7
X0lEfSkNCisJJHtSRUlOUExBQ0VfVEFCU19DTUR9ICR7LlRBUkdFVH0NCiAJ
LSR7VElEWX0gJHtUSURZT1BUU30gJHsuVEFSR0VUfQ0KIC4gIGVuZGlmDQog
LiBlbmRpZg0K

---902635197-1977355660-1327643209=:25316--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1201262148480.25316>