Skip to main content

Python Implementation of Lorem Ipsum. Test your typesetting!

Project description

loremify

Lorem Ipsum

Below is a paragraph of randomly generated words resembling human language, but which are in fact just random. Because of the superficial appearance of this text, it finds use when testing typesetting. For example in Latex.

Dolore tempore nobis labore nostrum, culpa aliqua ut fuga dolores incididunt
dolor, hic unde amet error iste aliqua quos. Rem iure, perferendis aliqua
amet, magni expedita perferendis ipsum excepturi, rem amet consectetur
placeat id, tempore lorem, rem dolore, dolor. Hic sed quasi consectetur
aliqua dolor autem sed tenetur libero perferendis accusamus tempor, ipsum
repellat laboriosam et magna. Labore eveniet et do libero ratione, voluptate
dolores magna suscipit adipisicing porro ducimus lorem rem esse magna. Amet
nam aliqua repellat sit et quae similique, elit sapiente magna saepe vel do
voluptatem ea dolor repellat assumenda alias. Dolor hic eiusmod, sunt aliqua
eum lorem, voluptate ipsum eos labore ut inventore reprehenderit labore
consequuntur aspernatur amet, labore aliqua, quo sed.

The implementation provided in this package creates a string containing this placeholder text. It can be dropped immediately into your existing framework.

Example:

from loremify import lorem
ipsum = lorem(300)
ipsum
>>> Libero eiusmod magna, velit iusto, veniam fugiat consectetur adipisicing
repudiandae do placeat aliqua, sit? natus illo tempor consectetur ut
laudantium quia, aliqua et do et labore et in error non nostrum elit amet.
totam do aliqua aliquid vero elit sed ratione et dolore dolor, ipsum,
consectetur?

Future Features:

The following ideas are currently under development:

Customizable Word List:

The word lists used to create early versions are somewhat crude, consisting of two text files, one containing common words and the other uncommon words. The random process then applies weights to the common ones.

We are considering different approaches to open up this functionality to direct manipulation. Perhaps a sponsored word might find its way in?

Direct Interaction with Latex:

Presently, loremify just creates a string of text. This could be expanded to include numbers, links, equations, figures and more. Rather than just creating a random paragraph, write an entire, albeit random, scientific article with sources, equations, tables and everything.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loremify-0.0.10.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

loremify-0.0.10-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file loremify-0.0.10.tar.gz.

File metadata

  • Download URL: loremify-0.0.10.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for loremify-0.0.10.tar.gz
Algorithm Hash digest
SHA256 18e742d0420705c72ffdb95a9dba4a6a4416d795a85a97a242c43c71a87e6c29
MD5 6b3e7f87d3415912c33c0155b5496af4
BLAKE2b-256 9bca6dd80329b7314bc60a2a304bd31d2b02b2729c823430b9325de5803009db

See more details on using hashes here.

File details

Details for the file loremify-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: loremify-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for loremify-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc8a431d04c5b2ba8e0c0b62289c57d7102b69265402215a3f30ee5f2c3abf0
MD5 210ee30be7e93045add95041dd085d98
BLAKE2b-256 9476a3e00dfa0dce3f3a8681d50f58f1bc47a28571248b525e329535a7f910ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page