>>>>> Ben Morrow <
b...@morrow.me.uk> writes:
>>>>> Quoth Ivan Shmakov <
onei...@gmail.com>:
>>>>> Ben Morrow <
b...@morrow.me.uk> writes:
>>>>> Quoth Ivan Shmakov <
onei...@gmail.com>:
>>>> As it seems, ExtUtils::MakeMaker assumes (SPACE, HYPHEN-MINUS,
>>>> SPACE) for the delimiter while handling ABSTRACT_FROM, and I'm
>>>> considering it a bug (yet to be filed.)
>>> It's not a bug. It's part of the syntax of a properly-formatted
>>> perldoc.
>> Which I see no reason /not/ to extend.
> 'I see no reason not to extend the syntax of HTML to allow Unicode
> quotes as well as ASCII. They're *so* much prettier.' (cf. xthread.)
The HTML syntax /allows/ Unicode quotes. Inside the payload,
that is. (Which the text of the NAME section certainly is.)
The good thing about HTML is that it doesn't try to parse
anything outside of (roughly) the <tags /> and &entities;.
Ever.
[...]
>> Frankly, I consider the unconditional replacement of " - " to be a
>> hack by itself.
> Pod is, by design, a somewhat loosely-specified format, mostly or
> (originally) entirely in ASCII, which relies on the formatter to make
> things look pretty where that's necessary. The format has been
> tightened up a little recently (it's no longer considered appropriate
> for the formatter to turn random references like 'printf(3)' into
> L<>, for instance), but this sort of intuition about punctuation is
> entirely expected. Inconsistency is also, necessarily, expected.
... And so is unpredictability.
>>> so if you don't get endashes in the output it's because your
>>> formatter doesn't know how to produce them.
>> Apparently, the HTML formatter at
http://search.cpan.org/ doesn't
>> know how to produce EN DASHes, either.
> Apparently not. Apparently whoever wrote the relevant bit of code
> didn't think it was terribly important.
But I do. So, assuming that my intent is to provide quality
documentation (both the contents and the form) for the users of
the software I develop, should I satisfy the NAME convention, at
the cost of having to host the /proper/ HTML renditions of the
documentation by myself? Or should I instead disregard the
convention -- used by the developer's tools I won't use myself
anyway, -- to ensure that certain well-known Web resource will
have the documentation rendered properly?
>> ... Indeed, my first thought was to use DocBook or XHTML
> Ewww, yuck. Formats designed by and for pedants.
... Remind me not to ask you about TEI, then...
>> for the documentation right from the start, so to completely avoid
>> all those 40 years of formatting mess. Somehow, however, I became
>> assured that persuading
http://search.cpan.org/ to allow for XHTML
>> documentation would be next to impossible a task, which is why I've
>> ended up following the mainstream.
>> Not that I'm particularly happy with it.
> Heh. I can just picture the conversation... Not to mention that
> command-line perldoc would no longer function, making your modules
> unusable.
"Command-line perldoc"? What's it?
>>> 'groff -man -Tps' at least will get them right.
>> Please note that -Tps produces not a document, but a program to be
>> executed (by a PostScript interpreter, in this case), which has
>> implications to both security
> That is a relevant concern under some circumstances; this is not one
> of them.
It's a valid concern whenever the code comes from a generally
untrusted source. Such as from a Web site its author put it to.
(Which is how the documentation for free software packages is
often distributed.)
> (I have, somewhat reluctantly, moved to using PDF instead of
> PostScript almost exclusively. I like PostScript: it's comfortingly
> insane. (The same could be said about Perl.))
Still, I don't quite understand why one might want to use an
ad-hoc graphics language, when there're general-purpose ones,
with a number of graphics libraries to choose from? (And that
includes Perl, BTW.)
Pretty much the same applies to the ad-hoc formatter languages,
such as roff or TeX. Or to the usual hacks, like having the
"document conversion" chain run as follows:
document.foo -> (conversion) -> program -> (interpreter) -> document.bar
>> and software freedom.
> Don't be so ridiculous.
Well, looking at the license the software I use to produce
PostScript may attach to the pieces of the code which end up in
the resulting "document" isn't exactly the thing I'd like to
spend my time on.
The same applies to the license for the JavaScript code the Web
sites I visit employ. Which is one more reason to prefer Lynx.
>> Therefore, unless there's a very good reason to use PostScript, my
>> suggestion would be to always stick to PDF. (Or perhaps SVG, as
>> long as single-page vector graphics is concerned.)
> In this particular case I had a rather good reason: my version of
> groff doesn't have a -Tpdf device.
To me, it looks much more like a very good reason to update the
particular groff install.
[...]
>>>> (It appears to assume that --quotes= is a string of two /octets/,
>>>> not two /characters,/ though.)
>>> Since the roff emitted by pod2man is normally ASCII-only, what's
>>> the difference?
>> First of all, pod2man(1) supports --utf8.
> That's new(ish), and not particularly well-supported.
The more's the effort, the better's the support. And
identifying (and reporting) bugs is part of such an effort.
(Unless the agreement would be to just drop POD altogether, and
move on to the better tools. Which I still hope for, even
understanding all the improbability of such a decision.)
>> Then, even if ASCII-only roff code is requested, pod2man(1) should
>> try to convert the --quotes= characters to the appropriate roff
>> escapes, just as it's claimed it does for non-ASCII sources:
> The characters passed to --quotes aren't the characters as they will
> appear in the output, they are roff escapes. (I don't really
> understand roff, but the characters you pass are inserted directly
> into a .ds line.)
Which means that it may require a more thorough code change to
fix the issue. (Thanks for the pointer, BTW.)
> Remember, all this stuff comes from perl 5.000, before perl (or
> groff, I expect) had any sort of Unicode support.
How could this justify having the bug remain unfixed?