Mailing List archive

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

[vdr] Re: [PATCH] vdr.1, vdr.5 and UTF-8



Darren Salt wrote:
I demand that Klaus Schmidinger may or may not have written...


Darren Salt wrote:

I demand that Klaus Schmidinger may or may not have written...

Darren Salt wrote:

Even if vdr doesn't get along with UTF-8 locales, there's no reason why
the man pages shouldn't be properly displayable in them. The attached
patch fixes this by escaping hyphens in option names and replacing
non-ASCII characters with equivalent macros.
[ ...manpage_locale_independent.patch...]
Just wondering: is there a particular reason why you left out these:
[snip]

Yes. It's only those which really must be literal '-'s which need to be
escaped. (BTW, "set-top box" is correct.)
[snip]

I guess a simple "change all '-' to '\-'" should be ok, shouldn't it?

No. Normal practice is to use '\-' only where ASCII '-' is required and
'-' where a hyphen is required. (I'm not sure what to do where a minus
sign is required, though: Unicode uses code point 0x2012 for this.
Presumably there's a *roff macro for it.)

To be honest, I find it a little confusing having to distinguish between
normal '-', "hyphen" and "minus" - they're all the same to me.

They are, in most 8-bit encodings of which I'm aware.


So, does it hurt if _all_ '-' are escaped? And I mean, does it _really_
hurt? If not, I'll just escape _all_ '-' characters.

There's something else to consider: '\-' is non-breaking whereas '-' isn't,
as the attached file, when viewed via 'man -l', demonstrates.



------------------------------------------------------------------------

.PP
a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a
a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a
.PP
b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b
b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b\-b
Ok, I'll make it so that only actual '-' characters are escaped.

Klaus




Home | Main Index | Thread Index