diff options
Diffstat (limited to 'cpan/podlators/t/data/snippets/text')
22 files changed, 464 insertions, 0 deletions
diff --git a/cpan/podlators/t/data/snippets/text/alt b/cpan/podlators/t/data/snippets/text/alt new file mode 100644 index 0000000000..9f4e9b73ab --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/alt @@ -0,0 +1,38 @@ +[name] +Alternate output + +[options] +alt 1 + +[input] +=head1 SAMPLE + +=over 4 + +=item F + +Paragraph. + +=item Bar + +=item B + +Paragraph. + +=item Longer + +Paragraph. + +=back + +[output] + +==== SAMPLE ==== + +: F Paragraph. + +: Bar +: B Paragraph. + +: Longer + Paragraph. diff --git a/cpan/podlators/t/data/snippets/text/c-with-spaces b/cpan/podlators/t/data/snippets/text/c-with-spaces new file mode 100644 index 0000000000..466e95e385 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/c-with-spaces @@ -0,0 +1,11 @@ +[name] +C<> with spaces + +[input] +=head1 CE<lt>E<gt> WITH SPACES + +What does C<< this. >> end up looking like? + +[output] +C<> WITH SPACES + What does "this." end up looking like? diff --git a/cpan/podlators/t/data/snippets/text/code b/cpan/podlators/t/data/snippets/text/code new file mode 100644 index 0000000000..89c06bb43e --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/code @@ -0,0 +1,33 @@ +[name] +code option + +[options] +code 1 + +[input] +This is some random text. +This is more random text. + +This is some random text. +This is more random text. + +=head1 SAMPLE + +This is POD. + +=cut + +This is more random text. + +[output] +This is some random text. +This is more random text. + +This is some random text. +This is more random text. + +SAMPLE + This is POD. + + +This is more random text. diff --git a/cpan/podlators/t/data/snippets/text/error-die b/cpan/podlators/t/data/snippets/text/error-die new file mode 100644 index 0000000000..ab4a493bd5 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-die @@ -0,0 +1,25 @@ +[name] +Errors throw exceptions + +[options] +errors die + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT + +[errors] +Pod input around line 7: You forgot a '=back' before '=head1' + +[exception] +POD document had syntax errors diff --git a/cpan/podlators/t/data/snippets/text/error-none b/cpan/podlators/t/data/snippets/text/error-none new file mode 100644 index 0000000000..b0fa47b599 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-none @@ -0,0 +1,19 @@ +[name] +Suppress errors + +[options] +errors none + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT diff --git a/cpan/podlators/t/data/snippets/text/error-normal b/cpan/podlators/t/data/snippets/text/error-normal new file mode 100644 index 0000000000..b99111661a --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-normal @@ -0,0 +1,22 @@ +[name] +Normal error handling + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT +POD ERRORS + Hey! The above document had some coding errors, which are explained + below: + + Around line 7: + You forgot a '=back' before '=head1' diff --git a/cpan/podlators/t/data/snippets/text/error-pod b/cpan/podlators/t/data/snippets/text/error-pod new file mode 100644 index 0000000000..807de010f8 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-pod @@ -0,0 +1,25 @@ +[name] +Errors to POD source + +[options] +errors pod + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT +POD ERRORS + Hey! The above document had some coding errors, which are explained + below: + + Around line 7: + You forgot a '=back' before '=head1' diff --git a/cpan/podlators/t/data/snippets/text/error-stderr b/cpan/podlators/t/data/snippets/text/error-stderr new file mode 100644 index 0000000000..e1ec95b6f5 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-stderr @@ -0,0 +1,22 @@ +[name] +Errors to standard error + +[options] +errors stderr + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT + +[errors] +Pod input around line 7: You forgot a '=back' before '=head1' diff --git a/cpan/podlators/t/data/snippets/text/error-stderr-opt b/cpan/podlators/t/data/snippets/text/error-stderr-opt new file mode 100644 index 0000000000..7547f846da --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/error-stderr-opt @@ -0,0 +1,22 @@ +[name] +Errors to standard error with stderr option + +[options] +stderr 1 + +[input] +=over 4 + +=item Foo + +Bar. + +=head1 NEXT + +[output] + Foo Bar. + +NEXT + +[errors] +Pod input around line 7: You forgot a '=back' before '=head1' diff --git a/cpan/podlators/t/data/snippets/text/for b/cpan/podlators/t/data/snippets/text/for new file mode 100644 index 0000000000..56fb767344 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/for @@ -0,0 +1,28 @@ +[name] +Handling of =for + +[input] +=head1 Test of =for + +=for comment +This won't be seen. + +Yes. + +=for text +This should be seen. + +=for TEXT As should this. + +=for man +But this shouldn't. + +Some more text. + +[output] +Test of =for + Yes. + +This should be seen. +As should this. + Some more text. diff --git a/cpan/podlators/t/data/snippets/text/late-encoding b/cpan/podlators/t/data/snippets/text/late-encoding new file mode 100644 index 0000000000..99c0de938a --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/late-encoding @@ -0,0 +1,28 @@ +[name] +Late use of =encoding + +[input] +=pod + +=head1 NAME + +This is the first ascii text + +=encoding utf8 + +=over 4 + +=item ⇒This is the first non-ascii text⇐ + +This is the second ascii text + +=back + +=cut + +[output] +NAME + This is the first ascii text + + ⇒This is the first non-ascii text⇐ + This is the second ascii text diff --git a/cpan/podlators/t/data/snippets/text/link-rt b/cpan/podlators/t/data/snippets/text/link-rt new file mode 100644 index 0000000000..8669874f71 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/link-rt @@ -0,0 +1,11 @@ +[name] +Link to an RT ticket + +[input] +=head1 RT LINK + +L<[perl #12345]|https://rt.cpan.org/12345> + +[output] +RT LINK + [perl #12345] <https://rt.cpan.org/12345> diff --git a/cpan/podlators/t/data/snippets/text/link-url b/cpan/podlators/t/data/snippets/text/link-url new file mode 100644 index 0000000000..7ef33fd172 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/link-url @@ -0,0 +1,11 @@ +[name] +Link to a URL + +[input] +=head1 LINK TO URL + +This is a L<link|http://www.example.com/> to a URL. + +[output] +LINK TO URL + This is a link <http://www.example.com/> to a URL. diff --git a/cpan/podlators/t/data/snippets/text/margin b/cpan/podlators/t/data/snippets/text/margin new file mode 100644 index 0000000000..786f06b97c --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/margin @@ -0,0 +1,34 @@ +[name] +margin option + +[options] +margin 4 + +[input] +=head1 SAMPLE + +This is some body text that is long enough to be a paragraph that wraps, +thereby testing margins with wrapped paragraphs. + + This is some verbatim text. + +=over 6 + +=item Test + +This is a test of an indented paragraph. + +This is another indented paragraph. + +=back + +[output] + SAMPLE + This is some body text that is long enough to be a paragraph that + wraps, thereby testing margins with wrapped paragraphs. + + This is some verbatim text. + + Test This is a test of an indented paragraph. + + This is another indented paragraph. diff --git a/cpan/podlators/t/data/snippets/text/nonbreaking-space b/cpan/podlators/t/data/snippets/text/nonbreaking-space new file mode 100644 index 0000000000..d57ed73ca1 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/nonbreaking-space @@ -0,0 +1,11 @@ +[name] +Multiple non-breaking spaces + +[input] +=head1 Test of SE<lt>E<gt> + +This is some S< > whitespace. + +[output] +Test of S<> + This is some whitespace. diff --git a/cpan/podlators/t/data/snippets/text/nourls b/cpan/podlators/t/data/snippets/text/nourls new file mode 100644 index 0000000000..a34202a061 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/nourls @@ -0,0 +1,14 @@ +[name] +nourls option + +[options] +nourls 1 + +[input] +=head1 URL suppression + +L<anchor|http://www.example.com/> + +[output] +URL suppression + anchor diff --git a/cpan/podlators/t/data/snippets/text/periods b/cpan/podlators/t/data/snippets/text/periods new file mode 100644 index 0000000000..44fe3a2bb8 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/periods @@ -0,0 +1,11 @@ +[name] +Quoting of periods + +[input] +=head1 PERIODS + +This C<.> should be quoted. + +[output] +PERIODS + This "." should be quoted. diff --git a/cpan/podlators/t/data/snippets/text/quotes-opt b/cpan/podlators/t/data/snippets/text/quotes-opt new file mode 100644 index 0000000000..4d2e6b6408 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/quotes-opt @@ -0,0 +1,14 @@ +[name] +quotes option + +[options] +quotes <<<>>> + +[input] +=head1 FOO C<BAR> BAZ + +Foo C<bar> baz. + +[output] +FOO <<<BAR>>> BAZ + Foo <<<bar>>> baz. diff --git a/cpan/podlators/t/data/snippets/text/s-whitespace b/cpan/podlators/t/data/snippets/text/s-whitespace new file mode 100644 index 0000000000..ff4febc6e7 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/s-whitespace @@ -0,0 +1,11 @@ +[name] +S<> whitespace + +[input] +=head1 Test of SE<lt>E<gt> + +This is S<some whitespace>. + +[output] +Test of S<> + This is some whitespace. diff --git a/cpan/podlators/t/data/snippets/text/sentence-spacing b/cpan/podlators/t/data/snippets/text/sentence-spacing new file mode 100644 index 0000000000..bce8c813c8 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/sentence-spacing @@ -0,0 +1,18 @@ +[name] +Spacing with sentence option + +[options] +sentence 1 + +[input] +=head1 EXAMPLE + +Whitespace around C<< this. >> must be ignored per perlpodspec. >> +needs to eat all of the space in front of it. + +=cut + +[output] +EXAMPLE + Whitespace around "this." must be ignored per perlpodspec. >> needs to + eat all of the space in front of it. diff --git a/cpan/podlators/t/data/snippets/text/utf8 b/cpan/podlators/t/data/snippets/text/utf8 new file mode 100644 index 0000000000..8231a2abd9 --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/utf8 @@ -0,0 +1,38 @@ +[name] +UTF-8 text + +[input] +=encoding utf-8 + +=head1 I can eat glass + +=over 4 + +=item Esperanto + +Mi povas manĝi vitron, ĝi ne damaĝas min. + +=item Braille + +⠊⠀⠉⠁⠝⠀⠑⠁⠞⠀⠛⠇⠁⠎⠎⠀⠁⠝⠙⠀⠊⠞⠀⠙⠕⠑⠎⠝⠞⠀⠓⠥⠗⠞⠀⠍⠑ + +=item Hindi + +मैं काँच खा सकता हूँ और मुझे उससे कोई चोट नहीं पहुंचती. + +=back + +See L<http://www.columbia.edu/kermit/utf8.html> + +[output] +I can eat glass + Esperanto + Mi povas manĝi vitron, ĝi ne damaĝas min. + + Braille + ⠊⠀⠉⠁⠝⠀⠑⠁⠞⠀⠛⠇⠁⠎⠎⠀⠁⠝⠙⠀⠊⠞⠀⠙⠕⠑⠎⠝⠞⠀⠓⠥⠗⠞⠀⠍⠑ + + Hindi + मैं काँच खा सकता हूँ और मुझे उससे कोई चोट नहीं पहुंचती. + + See <http://www.columbia.edu/kermit/utf8.html> diff --git a/cpan/podlators/t/data/snippets/text/verbatim b/cpan/podlators/t/data/snippets/text/verbatim new file mode 100644 index 0000000000..689a60f94d --- /dev/null +++ b/cpan/podlators/t/data/snippets/text/verbatim @@ -0,0 +1,18 @@ +[name] +Verbatim text + +[input] +=pod + +text + + line1 + + line3 + +[output] + text + + line1 + + line3 |