Text::Lorem(3pm) User Contributed Perl Documentation Text::Lorem(3pm)NAME
Text::Lorem - Generate random Latin looking text
SYNOPSIS
use Text::Lorem;
my $text = Text::Lorem->new();
# Generate a string of text with 5 words
$words = $text->words(5);
# Generate a string of text with 2 sentences
$sentences = $text->sentences(2);
# Generate 3 paragraphs
$paragraphs = $text->paragraphs(3);
DESCRIPTION
Often when developing a website or other application it's important to have placeholders for content. This module generates prescribed
amounts of fake Latin text.
CONSTRUCTOR
"new()"
The default constructor, "new()" takes no arguments and returns a Text::Lorem object.
METHODS
"words( INTEGER )"
Returns INTEGER fake Latin words.
"sentences( INTEGER )"
Returns INTEGER sentences in fake Latin.
"paragraphs( INTEGER )"
Returns INTEGER paragraphs of fake Latin text.
THANKS
Thanks to the guys who pushed me off the cliff called comfort and into the scary world of Perl: James Duncan, Leon Brocard.
AUTHOR
Adeola Awoyemi (adeola@fotango.com)
SEE ALSO
L<WWW::Lipsum> and L<http://lipsum.com/>
COPYRIGHT
Copyright 2003 Fotango Ltd. All rights reserved. <http://opensource.fotango.com/> This software is released under the same license as Perl
itself.
perl v5.10.1 2011-01-05 Text::Lorem(3pm)
Check Out this Related Man Page
Text::BibTeX::BibFormat(3pm) User Contributed Perl Documentation Text::BibTeX::BibFormat(3pm)NAME
Text::BibTeX::BibFormat - formats bibliography entries
SYNOPSIS
# Assuming $entry comes from a database of the 'Bib' structure
# (i.e., that it's blessed into the BibEntry class, which inherits
# the format method from BibFormat):
@blocks = $entry->format;
DESCRIPTION
The "Text::BibTeX::BibFormat" class is a base class of "Text::BibTeX::BibEntry" for formatting bibliography entries. It thus performs the
main job of any program that would hope to supplant BibTeX itself; the other important job (sorting) is handled by its companion class,
"Text::BibTeX::BibSort".
"BibFormat" (the "Text::BibTeX" prefix will be dropped for brevity) pays attention to almost all of the structure options described in
Text::BibTeX::Bib; it only ignores those that cover sorting, currently just "sortby". In particular, all of the "markup" options control
what language is generated by "BibFormat"; if none of those options are set, then it will generate plain, unmarked text.
The only method in "BibFormat"'s documented interface (so far) is "format". (The class defines many other methods, but these should not be
necessary to outsiders, so they are undocumented and subject to change.)
METHODS
format ()
Formats a single entry for inclusion in the bibliography of some document. The exact processing performed is highly dependent on the
entry type and the fields present; in general, you should be able to join "format"'s outputs together to create a single paragraph for
inclusion in a document of whatever markup language you're working with.
Returns a list of "blocks," which can either be jammed together like sentences (for a traditional "tight" bibliography) or printed on
separate lines (for an "open" bibliography format). Each block is a reference to a list of sentences; sentences should be joined
together with an intervening period. Each sentence is either a single string or a list of clauses; clauses should be joined together
with an intervening comma. Each clause is just a simple string.
See the source code for "btformat" for an example of how to use the output of "format".
SEE ALSO
Text::BibTeX::Structure, Text::BibTeX::Bib, Text::BibTeX::BibSort
AUTHOR
Greg Ward <gward@python.net>
COPYRIGHT
Copyright (c) 1997-2000 by Gregory P. Ward. All rights reserved. This file is part of the Text::BibTeX library. This library is free
software; you may redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-06-02 Text::BibTeX::BibFormat(3pm)