Lorem Ipsum in Tiddlywiki

There are cases I need lorem ipsum dummy text when I am experimenting with Tiddlywiki.
I have found two macros:

  1. in Tiddlywiki.com there is a macro <<.lorem>> which generate a one paragraph standard lorem ipsum
  2. in kookma/Utility there is macro <<.lorem n>> which accepts a parameter n which determines how many paragraphs (how many times repeat the standard paragraph) should be displayed.

Question

Is there any other solution, or can you propose your own solution, for having a .lorem macro with below features:

  1. <<.lorem>> print the standard one paragraph lorem ipsum
  2. have one parameter to let user
    2.1 print n words
    2.2 print n lines
    2.3 print n paragraphs

a crude idea

I thought may be I can have a <<lorem n>> and in macro I parse the parameter for number of items requested by user. Here item means: Character, Word, Line, Paragraph e.g.

  • <<.lorem 25c>> print 25 characters
  • <<.lorem 60w>> print 60 words
  • <<.lorem 10l>> print 10 lines
  • <<.lorem 4p>> print 4 paragraphs

I am sure you will propose better solution!

3 Likes

If you seperate the number and letter perhaps using a full word it would be easier to write the macro.

Personal i usualy go to a lorum site and copy fron there as needed because it is often the editing of the text i need to test.

You could create template tiddlers in varying sizes to transclude. For example, create templates for 25 words, 1 paragraph, 4 paragraphs, etc… Then you can transclude those as needed.