basic.pod - Test of various basic POD features in translators. |
is
a ``level 1'' headingis
a ``level 1'' heading
basic.pod - Test of various basic POD features in translators.
Try a few different levels of headings, with embedded formatting codes and other interesting bits.
is
a ``level 1'' heading
weird stuff "" (double quote)
heading
Now try again with intermixed text.
is
a ``level 1'' headingText.
Text.
weird stuff
Text.
heading
Text.
These are all taken from the Pod::Parser tests.
Try out LOTS of different ways of specifying references:
Reference the manpage/section
Reference the manpage / section
Reference the manpage/ section
Reference the manpage /section
Reference the manpage/section
Reference the manpage``/section
Reference the manpage/``section''
Reference the manpage/ section
Reference the manpage /section
Now try it using the new ``|'' stuff ...
Reference the thistext|
Reference the thistext |
Reference the thistext|
Reference the thistext |
Reference the thistext|
Reference the thistext |
Reference the thistext|
Reference the thistext|
Reference the thistext |
And then throw in a few new ones of my own.
foo
foo/bar
foo/``baz boo''
foo bar/baz boo
foo bar / baz boo
foo bar baz / boo
foobar
Testing italics
foo/Italic text
foo|bar/Section with
other markup
Nested http://www.perl.org/
Taken from Pod::Parser tests, this is a test to ensure that multiline =item paragraphs get indented appropriately.
There should be whitespace now before this line.
Taken from Pod::Parser tests, this is a test to ensure the nested =item paragraphs get indented appropriately.
Now some additional weirdness of our own. Make sure that multiple tags for one paragraph are properly compacted.
baz
Let's also make it multiple paragraphs to be sure that works.
Test use of =over without =item as a block ``quote'' or block paragraph.
This should be indented four spaces but otherwise formatted the same as any other regular text paragraph. Make sure it's long enough to see the results of the formatting.....
Now try the same thing nested, and make sure that the indentation is reset back properly.
This paragraph should be doubly indented.
This paragraph should only be singly indented.
Should be back to the single level of indentation.
Should be back to regular indentation.
Now also check the transformation of * into real bullets for man pages.
and now test the numbering of item blocks.
Another test taken from Pod::Parser.
This is a test to see if I can do not only $self
and method()
, but
also $self->method()
and $self->{FIELDNAME}
and
$Foo <=> $Bar
without resorting to escape sequences. If
I want to refer to the right-shift operator I can do something
like $x >> 3
or even $y >> 5
.
Now for the grand finale of $self->method()->{FIELDNAME} = {FOO=>BAR}
.
And I also want to make sure that newlines work like this
<<
$self-
{FOOBAR} >> 3 and [$b => $a]->[$a <=> $b]
>>>
Of course I should still be able to do all this with escape sequences
too: $self->method()
and $self->{FIELDNAME}
and
{FOO=>BAR}
.
Dont forget $self->method()->{FIELDNAME} = {FOO=>BAR}
.
And make sure that 0
works too!
Now, if I use << or >> as my delimiters, then I have to use whitespace.
So things like <$self-
method()>> and <$self-
{FIELDNAME}>> wont end
up doing what you might expect since the first > will still terminate
the first < seen.
Lets make sure these work for empty ones too, like >> and >>
(just to be obnoxious)
The statement: This is dog kind's finest hour!
is a parody of a
quotation from Winston Churchill.
The following tests are added to those:
Make sure that a few other odd things still work. This should be a vertical bar: |. Here's a test of a few more special escapes that have to be supported:
Try to get this bit of text over towards the edge so |that all of this text inside S<> won't| be wrapped. Also test the |same thing with non-breaking spaces.|
There is a soft hyphen in hyphen at hy-phen.
This is a test of an index entry.
Throw in a few verbatim paragraphs.
use Term::ANSIColor; print color 'bold blue'; print "This text is bold blue.\n"; print color 'reset'; print "This text is normal.\n"; print colored ("Yellow on magenta.\n", 'yellow on_magenta'); print "This text is normal.\n"; print colored ['yellow on_magenta'], "Yellow on magenta.\n";
use Term::ANSIColor qw(uncolor); print uncolor '01;31', "\n";
But this isn't verbatim (make sure it wraps properly), and the next paragraph is again:
use Term::ANSIColor qw(:constants); print BOLD, BLUE, "This text is in bold blue.\n", RESET;
use Term::ANSIColor qw(:constants); $Term::ANSIColor::AUTORESET = 1; print BOLD BLUE "This text is in bold blue.\n"; print "This text is normal.\n";
(Ugh, that's obnoxiously long.) Try different spacing:
Starting with a tab. Not starting with a tab. But this should still be verbatim. As should this.
This isn't.
This is. And this: is an internal tab. It should be: |--| <= lined up with that.
(Tricky, but tabs should be expanded before the translator starts in on the text since otherwise text with mixed tabs and spaces will get messed up.)
And now we test verbatim paragraphs right before a heading. Older versions of Pod::Man generated two spaces between paragraphs like this and the heading. (In order to properly test this, one may have to visually inspect the nroff output when run on the generated *roff text, unfortunately.)
That's all, folks!
basic.pod - Test of various basic POD features in translators. |