Jump to content

Dummy text generators


Robin S
 Share

Recommended Posts

I'm looking for suggestions of dummy text generators.

Some things on my wishlist:

  • Not the usual cod-latin "lorem ipsum" - you'd be surprised how many people out there have no idea that this is dummy text ("What's with all the foreign words? I want an English website").
  • Uses actual English words, but such that it is obviously nonsense text to be replaced.
  • Nothing that is going to tread on any toes (e.g. I can imagine some clients not seeing the humour in corporate ipsum).

I really liked the generator that Ryan used in the blog profile (it had a great "fairy tale" option) but unfortunately it has folded: http://duckisland.com/GreekMachine.php

I have done some Googling BTW, just haven't found anything ideal.

Link to comment
Share on other sites

Maybe it would be a good idea to build something like a textformatter module, that serves the desired content via placeholders (like Hanna), but more simple.
For example:

{{loremipsum::w=200,p=5,s=en-nonsense}}

inserts 200 words in 5 paragraphs from a textbase called "en-nonsense".

This way we would be able to collect and share textbases.

Optionally I would like to behave the textformatter to only insert content in $config->debug mode. Without $config->debug, it silently should extract the placeholders without injecting content.

Should we start on this? :)

 

edit: additionally there should be an API method to retrieve content from within template files.

Edited by horst
  • Like 2
Link to comment
Share on other sites

4 minutes ago, horst said:

Maybe it would be a good idea to build something like a textformatter module, that serves the desired content via placeholders (like Hanna), but more simple.
For example:


{{loremipsum::w=200,p=5,s=en-nonsense}}

 

@DaveP's module can be useful for this. It can be extended for other verbs and providers too.

 

  • Like 1
Link to comment
Share on other sites

3 more lists (there will be duplicates, certainly) - haven't checked them all out, so be careful. 

  1. http://mentalfloss.com/article/61003/10-funnier-alternatives-lorem-ipsum
  2. https://www.buzzfeed.com/saraboboltz/18-lorem-ipsum-alternatives-for-design-nerds-af7c?utm_term=.dtLA3o6mO#.tqQLJyEBK
  3. https://www.sitepoint.com/10-lorem-ipsum-alternatives/

I like filerati but their website seems to have been hacked?

Link to comment
Share on other sites

9 minutes ago, horst said:

Optionally I would like to behave the textformatter to only insert content in $config->debug mode. Without $config->debug, it silently should extract the placeholders without injecting content.

This solution should have its own config setting as my local dev sites are always in debug mode but with real content already in place. We would need a way to disable those textformatters quickly and maybe conditionally like: created>2017-10-16 

Link to comment
Share on other sites

@netcarver has already forked my module and when I figure out how, I will pull (some of) his changes into mine. Anyone else is welcome to fork and create pull requests.

For example, @horst's suggestions could be quite easily incorporated - it could also be made configurable so that different dummy text source files could be selectable, but that would be stretching my skills somewhat, so I would welcome others' input.

  • Like 2
Link to comment
Share on other sites

How could I missed it? ???

Will have a look at your module, @DaveP, and come back here, if there is something that I miss. :)

 

@szabesz, with my logic, there will be nothing injected into your output, unless you have explicitly inserted a placeholder into your text-inputfield. But if you have inserted a placeholder plus other content, then only the other content will be displayed. The placeholder gets stripped out without $config->debug enabled. (Also should be a configurable setting)

  • Like 2
Link to comment
Share on other sites

Not meaning to hijack, so maybe any further conversation should be continued in its thread, but what aboutL https://processwire.com/talk/topic/11016-autocontent-generator/

If someone finds a better non-lorum text generator I'd be happy to integrate it into that module. What do you guys think of the approach used in that module vs the manual approach discussed here?

post-985-0-32483800-1444654053.thumb.png.98ab61dbbe7bbd2839c171775cb131d4.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...