Maybe by throwing in the letter "t", or with a checkbox, or any other way.
[Fun] Lorem Ipsum generator
-
Stef123
Re: [Fun] Lorem Ipsum generator
You know what would be the icing on the cake? To optionally get the paragraphs wrapped in html paragraph tags
Maybe by throwing in the letter "t", or with a checkbox, or any other way.
Maybe by throwing in the letter "t", or with a checkbox, or any other way.
Re: [Fun] Lorem Ipsum generator
Now you can wrap paragraphs in <p></p> tags...
Input examples:
Input examples:
10 = 10 paragraphs, between 5 and 35 sentences each (random - default values)
10,5 = 10 paragraphs, 5 sentences each
10,1-10 = 10 paragraphs, between 1 and 10 sentences each (random)
10,5-20,w = 10 paragraphs, between 5 and 20 sentences each (random), wrapped in tags
One of my scripts helped you out? Please donate via Paypal
Re: [Fun] Lorem Ipsum generator
Thank you all for your interest in this
btw, I've converted the original script to a UDF. See first post. It can now also read a file for the words.
One of the example generates paragraphs.
Alter `ceil($maxWordsCount*80/100)` this bit in that example for more random paragraph lengths
. (lazy day today?
)btw, I've converted the original script to a UDF. See first post. It can now also read a file for the words.
One of the example generates paragraphs.
Alter `ceil($maxWordsCount*80/100)` this bit in that example for more random paragraph lengths
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: [Fun] Lorem Ipsum generator
Thanks for the variations, guyz!
I was just moving towards the full randomization... luckily I've checked the forums first, today!
Have a nice day, all!
-yesterday I noticed how hard it is to find large bits of sample text across the net, with zero patience to look after txt e-books which could fit (or not!) my demand...
I was just moving towards the full randomization... luckily I've checked the forums first, today!
Have a nice day, all!
-yesterday I noticed how hard it is to find large bits of sample text across the net, with zero patience to look after txt e-books which could fit (or not!) my demand...
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
Stef123
Re: [Fun] Lorem Ipsum generator
Brilliant.
Many thanks highend
And thanks to Sammay for getting this started.
@SkyFrontier - try the attached philosophy generator.
And thanks to Sammay for getting this started.
@SkyFrontier - try the attached philosophy generator.
- Attachments
-
- Philosophy_Oracle.zip
- (3.55 KiB) Downloaded 194 times
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: [Fun] Lorem Ipsum generator
Haha, thank you, Stef!
A most productive approach on ipsumnation...
A most productive approach on ipsumnation...
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
Irwin of Upton
- Posts: 131
- Joined: 28 Feb 2015 19:42
Re: [Fun] Lorem Ipsum generator
"It can now also read a file for the words."
How to do this?
How to do this?
Re: [Fun] Lorem Ipsum generator
Suppose the lipsumgen function is saved in <xyscripts>\inc\lipsumgen.xyi and you have a space-separated wordlist saved as <xydata>\wordlist.txt
Then here's an example that will create a 500-word text from that file.
Then here's an example that will create a 500-word text from that file.
Code: Select all
INCLUDE "inc\LipsumGen.xyi";
"lipsumFileTest"
text LipsumGen(500, "<xydata>\wordlist.txt");Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Irwin of Upton
- Posts: 131
- Joined: 28 Feb 2015 19:42
Re: [Fun] Lorem Ipsum generator
Will put together the first "wordlist" and try it out. Looks promising!
Re: [Fun] Lorem Ipsum generator
Forget that, I just added a separator variable. You can create a |-separated wordlist and do this now: ::text lipsumgen(40, "wordlist.txt", "|");
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club