2 basic.pod - Test of various basic POD features in translators.
4 H
\bHE
\bEA
\bAD
\bDI
\bIN
\bNG
\bGS
\bS
5 Try a few different levels of headings, with embedded formatting codes
6 and other interesting bits.
8 T
\bTh
\bhi
\bis
\bs
\b "
\b"i
\bis
\bs"
\b"
\b a
\ba
\b "
\b"l
\ble
\bev
\bve
\bel
\bl
\b 1
\b1"
\b"
\b h
\bhe
\bea
\bad
\bdi
\bin
\bng
\bg
9 `
\b``
\b`L
\bLe
\bev
\bve
\bel
\bl'
\b''
\b'
\b "
\b"2
\b2
\b h
\bhe
\bea
\bad
\bdi
\bin
\bng
\bg
10 _
\bL_
\be_
\bv_
\be_
\bl_
\b _
\b3_
\b _
\bh_
\be_
\ba_
\bd_
\bi_
\bn_
\bg_
\b _
\bw_
\bi_
\bt_
\bh_
\b _
\b"_
\bw_
\be_
\bi_
\br_
\bd_
\b _
\bs_
\bt_
\bu_
\bf_
\bf_
\b _
\b"_
\b"_
\b _
\b(_
\bd_
\bo_
\bu_
\bb_
\bl_
\be_
\b _
\bq_
\bu_
\bo_
\bt_
\be_
\b)_
\b"
11 _
\bL_
\be_
\bv_
\be_
\bl_
\b _
\b"_
\b4_
\b _
\b"_
\bh_
\be_
\ba_
\bd_
\bi_
\bn_
\bg_
\b"
12 Now try again with i
\bin
\bnt
\bte
\ber
\brm
\bmi
\bix
\bxe
\bed
\bd _
\bt_
\be_
\bx_
\bt.
14 T
\bTh
\bhi
\bis
\bs
\b "
\b"i
\bis
\bs"
\b"
\b a
\ba
\b "
\b"l
\ble
\bev
\bve
\bel
\bl
\b 1
\b1"
\b"
\b h
\bhe
\bea
\bad
\bdi
\bin
\bng
\bg
17 `
\b``
\b`L
\bLe
\bev
\bve
\bel
\bl'
\b''
\b'
\b 2
\b2
\b h
\bhe
\bea
\bad
\bdi
\bin
\bng
\bg
20 _
\bL_
\be_
\bv_
\be_
\bl_
\b _
\b3_
\b _
\bh_
\be_
\ba_
\bd_
\bi_
\bn_
\bg_
\b _
\bw_
\bi_
\bt_
\bh_
\b _
\b"_
\bw_
\be_
\bi_
\br_
\bd_
\b _
\bs_
\bt_
\bu_
\bf_
\bf_
\b"
23 _
\bL_
\be_
\bv_
\be_
\bl_
\b _
\b"_
\b4_
\b _
\b"_
\bh_
\be_
\ba_
\bd_
\bi_
\bn_
\bg_
\b"
27 These are all taken from the Pod::Parser tests.
29 Try out _
\bL_
\bO_
\bT_
\bS of different ways of specifying references:
31 Reference the "section" in manpage
33 Reference the "section" in manpage
35 Reference the "section" in manpage
37 Reference the "section" in manpage
39 Reference the "manpage/section"
41 Reference the "section" in "manpage"
43 Reference the "section" in manpage
45 Reference the "section" in manpage
47 Reference the "section" in manpage
49 Now try it using the new "|" stuff ...
51 Reference the thistext|
53 Reference the thistext |
55 Reference the thistext|
57 Reference the thistext |
59 Reference the thistext|
61 Reference the thistext |
63 Reference the thistext|
65 Reference the thistext|
67 Reference the thistext |
69 And then throw in a few new ones of my own.
95 "boo bar baz / baz boo"
97 "boo", "bar", and "baz"
101 Testing _
\bi_
\bt_
\ba_
\bl_
\bi_
\bc_
\bs
103 "_
\bI_
\bt_
\ba_
\bl_
\bi_
\bc text" in foo
105 "Section "with" _
\bo_
\bt_
\bh_
\be_
\br_
\b _
\bm_
\ba_
\br_
\bk_
\bu_
\bp" in foo|bar
107 Nested <http://www.perl.org/>
109 O
\bOV
\bVE
\bER
\bR
\b A
\bAN
\bND
\bD
\b I
\bIT
\bTE
\bEM
\bMS
\bS
110 Taken from Pod::Parser tests, this is a test to ensure that multiline
111 =item paragraphs get indented appropriately.
115 There should be whitespace now before this line.
117 Taken from Pod::Parser tests, this is a test to ensure the nested =item
118 paragraphs get indented appropriately.
133 d This is item c & d.
135 Now some additional weirdness of our own. Make sure that multiple tags
136 for one paragraph are properly compacted.
141 There shouldn't be any spaces between any of these item tags; this
142 idiom is used in perlfunc.
144 Some longer item text
145 Just to make sure that we test paragraphs where the item text
146 doesn't fit in the margin of the paragraph (and make sure that this
147 paragraph fills a few lines).
149 Let's also make it multiple paragraphs to be sure that works.
151 Test use of =over without =item as a block "quote" or block paragraph.
153 This should be indented four spaces but otherwise formatted the same
154 as any other regular text paragraph. Make sure it's long enough to
155 see the results of the formatting.....
157 Now try the same thing nested, and make sure that the indentation is
160 This paragraph should be doubly indented.
162 This paragraph should only be singly indented.
164 * This is an item in the middle of a block-quote, which should be
167 * We're also testing tagless item commands.
169 Should be back to the single level of indentation.
171 Should be back to regular indentation.
173 Now also check the transformation of * into real bullets for man pages.
175 * An item. We're also testing using =over without a number, and making
176 sure that item text wraps properly.
180 and now test the numbering of item blocks.
186 F
\bFO
\bOR
\bRM
\bMA
\bAT
\bTT
\bTI
\bIN
\bNG
\bG
\b C
\bCO
\bOD
\bDE
\bES
\bS
187 Another test taken from Pod::Parser.
189 This is a test to see if I can do not only $self and "method()", but
190 also "$self->method()" and "$self->{FIELDNAME}" and "$Foo <=> $Bar"
191 without resorting to escape sequences. If I want to refer to the
192 right-shift operator I can do something like "$x >> 3" or even "$y >>
195 Now for the grand finale of "$self->method()->{FIELDNAME} = {FOO=>BAR}".
196 And I also want to make sure that newlines work like this
197 "$self->{FOOBAR} >> 3 and [$b => $a]->[$a <=> $b]"
199 Of course I should still be able to do all this _
\bw_
\bi_
\bt_
\bh escape sequences
200 too: "$self->method()" and "$self->{FIELDNAME}" and "{FOO=>BAR}".
202 Dont forget "$self->method()->{FIELDNAME} = {FOO=>BAR}".
204 And make sure that 0 works too!
206 Now, if I use << or >> as my delimiters, then I have to use whitespace.
207 So things like "<$self-"method()>> and "<$self-"{FIELDNAME}>> wont end
208 up doing what you might expect since the first > will still terminate
211 Lets make sure these work for empty ones too, like and ">>" (just to be
214 The statement: "This is dog kind's _
\bf_
\bi_
\bn_
\be_
\bs_
\bt hour!" is a parody of a
215 quotation from Winston Churchill.
217 The following tests are added to those:
219 Make sure that a few other odd _
\bt_
\bh_
\bi_
\bn_
\bg_
\bs still work. This should be a
220 vertical bar: |. Here's a test of a few more special escapes that have
229 > A greater-than sign.
231 " A double quotation mark.
235 Try to get this bit of text over towards the edge so
236 |that all of this text inside S<> won't| be wrapped. Also test the
237 |same thing with non-breaking spaces.|
239 There is a soft hyphen in hyphen at hy-phen.
241 This is a test of an index entry.
243 V
\bVE
\bER
\bRB
\bBA
\bAT
\bTI
\bIM
\bM
244 Throw in a few verbatim paragraphs.
247 print color 'bold blue';
248 print "This text is bold blue.\n";
250 print "This text is normal.\n";
251 print colored ("Yellow on magenta.\n", 'yellow on_magenta');
252 print "This text is normal.\n";
253 print colored ['yellow on_magenta'], "Yellow on magenta.\n";
255 use Term::ANSIColor qw(uncolor);
256 print uncolor '01;31', "\n";
258 But this isn't verbatim (make sure it wraps properly), and the next
261 use Term::ANSIColor qw(:constants);
262 print BOLD, BLUE, "This text is in bold blue.\n", RESET;
264 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";
266 (Ugh, that's obnoxiously long.) Try different spacing:
273 tab. But this should still be verbatim.
278 This is. And this: is an internal tab. It should be:
279 |--| <= lined up with that.
281 (Tricky, but tabs should be expanded before the translator starts in on
282 the text since otherwise text with mixed tabs and spaces will get messed
285 And now we test verbatim paragraphs right before a heading. Older
286 versions of Pod::Man generated two spaces between paragraphs like this
287 and the heading. (In order to properly test this, one may have to
288 visually inspect the nroff output when run on the generated *roff
289 text, unfortunately.)
291 C
\bCO
\bON
\bNC
\bCL
\bLU
\bUS
\bSI
\bIO
\bON
\bN