I don't like any of them. I'd expect doc6:// (or 6doc://) to go to perldoc for Perl 6 (and I hope we won't need that, being able to just use Perl documentation because I hope that site will host both Perl5 and Perl6 documentation). I don't see the Perl 6 design documents as being equivalent to the Perl 5 manuals. I expect there to be Perl 6 manuals written at some point that don't focus on the design nor the difference between Perl 5 and Perl6 but just thorough document how to use Perl 6. That documentation will likely be based on the exeg (or perhaps not since they seem to be getting quite out-of-date), but they'll be different than any of the AES.
Using syn for all of apoc, synop, and exeg doesn't work for me either. If apoc, synop, and exeg weren't all so hard to spell and so hard to consistently abbreviate (as in people natually abbreviating them the same, which I don't see happening), then they'd be good choices for what to put in front of ://, but I don't think syn6:// works, in particular.
Corion's patch used syn:// for the following code:
if (! $escsuffix) {
("http://perlcabal.org/syn/", "Perl 6 Synopses")
} elsif ($escsuffix =~ m!^(S\d\d)(?:[:/](.*))$!) {
my ($page,$esc) = $2;
my $display = $suffix;
if ($suffix =~ m!^S\d\d([:/].*)$!) {
$display = $2;
};
("http://perlcabal.org/syn/S$page.html#$esc", "$page$display")
} else {
# error in spec, just pass it through with a prefix
"http://perlcabal.org/syn/$escsuffix"
};
which suffers from ignoring the apocs and exegs (perhaps those are currently less important but as the design solidifies again, they will likely become more important again).
And I think we need more research on how anchors work. For example, I think the POD parsers use some rule for turning lots of characters into underscores and we need to encode those same rules here.
|