Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2011, 10:02 PM   #1
Diten Retni
Junior Member
Diten Retni began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: Ipad
Random page

Hi,

I would like to create an ebook with one poem per page, and in which when you turn a page, the next will be random (but non repeating itself before going randomly throuhg all of them). Is it possible and how?
I hope my question is clear enough (more than my english anyway).
Thank you.



(macbook pro & ipad)
Diten Retni is offline   Reply With Quote
Old 09-11-2011, 11:32 PM   #2
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Not without creating an app.
susan_cassidy is offline   Reply With Quote
Advert
Old 09-12-2011, 08:51 AM   #3
Quexos
Member Retired
Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.
 
Posts: 1,999
Karma: 11348924
Join Date: Jan 2011
Location: Limbo
Device: none
If somehow you manage to create a random turning of pages, wouldn't you risk that in the process of reading the book, previously read poems will just return and be read again ?
Quexos is offline   Reply With Quote
Old 09-12-2011, 09:56 AM   #4
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
Quote:
Originally Posted by Quexos View Post
If somehow you manage to create a random turning of pages, wouldn't you risk that in the process of reading the book, previously read poems will just return and be read again ?
That's why the OP wrote "non-repeating itself before going randomly through all of them" Would need to done as some type of app as would require an indicator/counter to keep track of this process...
elcreative is offline   Reply With Quote
Old 09-12-2011, 10:00 AM   #5
Quexos
Member Retired
Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.Quexos ought to be getting tired of karma fortunes by now.
 
Posts: 1,999
Karma: 11348924
Join Date: Jan 2011
Location: Limbo
Device: none
Oops, my mistake.
Also the app you suggest should be compatible with nowadays e-readers. I assume a firmware update could do the trick.

Quote:
Originally Posted by elcreative View Post
That's why the OP wrote "non-repeating itself before going randomly through all of them" Would need to done as some type of app as would require an indicator/counter to keep track of this process...
Quexos is offline   Reply With Quote
Advert
Old 09-12-2011, 01:31 PM   #6
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
One other issue is that you cannot know what size a "page" is. If the user has the font size jacked up really high, it might take 2 or more screens to display an entire poem.

Edited to add: and the size of the screen varies among ereaders. Example: K3 vs. iPad.
susan_cassidy is offline   Reply With Quote
Old 09-12-2011, 01:53 PM   #7
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Quote:
Originally Posted by susan_cassidy View Post
One other issue is that you cannot know what size a "page" is. If the user has the font size jacked up really high, it might take 2 or more screens to display an entire poem.

Edited to add: and the size of the screen varies among ereaders. Example: K3 vs. iPad.
Probably would have to make each poem a "chapter", then randomize the chapters. I could see each chapter having a link at the end that sent you to a random unread chapter.
kjk is offline   Reply With Quote
Old 09-12-2011, 02:27 PM   #8
Diten Retni
Junior Member
Diten Retni began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: Ipad
And using images instead of text?But anyway, only the app way to achieve the random unread page feature then?
Diten Retni is offline   Reply With Quote
Old 09-12-2011, 04:12 PM   #9
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Images would be bad for poetry.

Yes, an app is the only way. There is no facility in either ePub or Mobipocket format (or any other format, that I know of), to select random pages. And "pages" don't exist, per se, in ebooks.
susan_cassidy is offline   Reply With Quote
Old 09-12-2011, 05:06 PM   #10
anamardoll
Chasing Butterflies
anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.anamardoll ought to be getting tired of karma fortunes by now.
 
anamardoll's Avatar
 
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
Quote:
Originally Posted by kjk View Post
Probably would have to make each poem a "chapter", then randomize the chapters. I could see each chapter having a link at the end that sent you to a random unread chapter.
This smells like it should be feasible. I'd be interested in this.

I don't think you could confine a random link to "not yet accessed" though. I could be wrong.
anamardoll is offline   Reply With Quote
Old 09-13-2011, 12:15 AM   #11
emellaich
Wizard
emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.
 
Posts: 1,101
Karma: 4388403
Join Date: Oct 2007
Device: Palm>Ebookman>IPaq>Axim>Cybook>Kndl2>IPAD>Kndl3SO>Voyager>Oasis
I'd think it would be pretty easy as an HTML/Web app. Say you have 100 poems. Put each on it's own web page with a next poem button.

Name each poem numerically 1.html, 2.HTML, ...

Now use javacript to select a random number from one to one hundred. Stick this into the target address for the next poem button. So the next poem might take you to:
"http:\\www.mypoems.com\" + random-number + ".html". Which might translate to:

http:\\www.mypoems.com\56.html
emellaich is offline   Reply With Quote
Old 09-13-2011, 01:05 PM   #12
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
Quote:
Originally Posted by emellaich View Post
I'd think it would be pretty easy as an HTML/Web app. Say you have 100 poems. Put each on it's own web page with a next poem button.

Name each poem numerically 1.html, 2.HTML, ...

Now use javacript to select a random number from one to one hundred. Stick this into the target address for the next poem button. So the next poem might take you to:
"http:\\www.mypoems.com\" + random-number + ".html". Which might translate to:

http:\\www.mypoems.com\56.html
Since the OP doesn't want a repeat of any poem until a complete run through, it is necessary to keep a list of every number used and not allow a reuse until all used, this could lead to a long hunt time after 98 poems while your random number generator generates used numbers. Better approach is a list of the 100 poems and as a number is used then delete from list and drop random number generator by one...
elcreative is offline   Reply With Quote
Old 09-14-2011, 04:52 PM   #13
MartinC
Hanger on
MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.MartinC ought to be getting tired of karma fortunes by now.
 
MartinC's Avatar
 
Posts: 148
Karma: 1355233
Join Date: Feb 2011
Location: Dorset, UK
Device: Kindle 3, Galaxy S, Sony PRS-505, Sony tablet
If it were a Kindle you could save the poems as images and use the screensaver.
MartinC is offline   Reply With Quote
Old 09-14-2011, 04:54 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,576
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It might be able to be done in iBooks with javascript.
JSWolf is offline   Reply With Quote
Old 09-15-2011, 03:59 AM   #15
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With an ePUB, it can be as easy as shuffling the items in the <spine> section of the OPF. It wouldn't be hard to create a script (python, perl, bash...) to randomize the book. This wouldn't be "on the fly" on the reader, but off-line before copying the file to the reader (or after).
Jellby is offline   Reply With Quote
Reply

Tags
page, random


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ask a Random Question? DrDln Lounge 214 07-17-2011 07:02 AM
Random page breaks and random subscripts? sark666 Kobo Reader 2 09-04-2010 02:25 AM
What's up with Random House? Skydog General Discussions 9 04-08-2010 01:05 AM
Random page breaks on PRS-600 and Irex DR1000S gaphic2 ePub 10 04-05-2010 01:32 PM
Unutterably Silly Random Insanity RWood Lounge 16 09-24-2008 09:22 AM


All times are GMT -4. The time now is 05:17 AM.


MobileRead.com is a privately owned, operated and funded community.