It is currently Mon Oct 20, 2014 4:46 pm

All times are UTC [ DST ]




 Page 1 of 2 [ 34 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Oct 09, 2012 10:40 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
hey all!

i'm just in the process of putting together an 'ebook' version of my first novel on the Electron; it will end up as a bootable disk that gives you a contents page that you can use to jump to any chapter and read it on screen on your Elk.. just like an eBook for pc, etc.

i was wondering if folks had encountered books available in this way on the Elk or BBC back in the day?



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Tue Oct 09, 2012 10:47 pm 
User avatar

Joined: Wed Jun 13, 2012 6:23 pm
Posts: 1574
Location: Newton Aycliffe
Hmmm . . . Sounds interesting. What's the Genre?

Dave H :D



_________________
Retired :D - Well that didn't last long - taken a 6 month contract - couldn't resist . . .
Offline
 Profile  
 
PostPosted: Tue Oct 09, 2012 10:53 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
daveejhitchins wrote:
Hmmm . . . Sounds interesting. What's the Genre?

Dave H :D


Its fantasy fiction! Book I and II in the series are available in paperback and conventional eBook, and we've just started work on an audio book version of Book I :)

Plug plug further details at http://www.realm-of-lorroth.com plug plug plug

:D :D



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Wed Oct 10, 2012 8:12 am 
User avatar

Joined: Wed Jun 13, 2012 6:23 pm
Posts: 1574
Location: Newton Aycliffe
aerworuld wrote:
Its fantasy fiction! Book I and II in the series are available in paperback and conventional eBook, and we've just started work on an audio book version of Book I :)

Plug plug further details at http://www.realm-of-lorroth.com plug plug plug

:D :D

Stuart, I'm not usually 'into' Fantasy (science fiction for me :D ), however, I'll give it a go, always after a good read :D

Dave H :D



_________________
Retired :D - Well that didn't last long - taken a 6 month contract - couldn't resist . . .
Offline
 Profile  
 
PostPosted: Wed Oct 10, 2012 3:24 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
Might take me a while to get the Elk version together Dave; I've got a few formatting issues but everything else is going in nicely! :)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 12, 2012 5:47 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
Folks, can I pick your brains?

I'm writing my ebook in BASIC and it is basic :) but I'm happy with the results so far. When you delve into a chapter a screenful of text comes up at a time and you press a key when you ready to move on, fine.

Only thing is I can't find a way to get the text to word wrap effectively; short of manually altering each PRINT to stop a word getting split across two lines, what can I do?

Any ideas friends? [-o<

Stuart



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 12, 2012 7:28 pm 
User avatar

Joined: Thu Jan 13, 2005 6:20 pm
Posts: 595
Location: Málaga, Spain
Best I can come up with in 10 mins is this. Just call PROCprint("your string...") instead of PRINT"your string", and it will automatically word-wrap (assuming a 40 column screen):
Code:
1000 DEF PROCprint(A$)
1010 LOCAL N%,M%
1020 FOR N%=1 TO LEN A$
1030 M%=INSTR(A$," ",N%)
1040 IF M%=0 M%=LEN A$+1
1050 IF POS+M%-N%>40 PRINT
1060 PRINT MID$(A$,N%,M%-N%);
1070 IF POS>0 VDU 32
1080 N%=M%
1090 NEXT
1100 ENDPROC

It's not really very elegant code, but frankly I've forgotten how to program in BASIC after all these years. Hope that helps!


Offline
 Profile  
 
PostPosted: Fri Oct 12, 2012 8:17 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
It works superbly! Rich, you are my new hero for today!! :D



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 12, 2012 9:21 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
Thank you Jon! You have completely lost me but it sounds good!! I'll give that a go over the weekend :)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 12, 2012 11:14 pm 
User avatar

Joined: Sun Nov 11, 2007 11:11 pm
Posts: 562
aerworuld wrote:
i was wondering if folks had encountered books available in this way on the Elk or BBC back in the day?


It's not quite the same thing, but I thought that there was at least one Fighting Fantasy adaptation. Wasn't it Starship Traveller?


Offline
 Profile  
 
PostPosted: Sat Oct 13, 2012 9:39 am 

Joined: Sat May 21, 2011 1:42 pm
Posts: 790
Location: South Coast of England
aerworuld wrote:
Thank you Jon! You have completely lost me but it sounds good!! I'll give that a go over the weekend :)


Sorry, I saw a flaw and zapped the post. I am going to have a proper go at it on my Electron today and will post the result later on.

Stick with Rich's code for now, and when I am finished you can compare and choose.

Great fun!


Offline
 Profile  
 
PostPosted: Sat Oct 13, 2012 10:07 am 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
David, now that you mention the Fighting Fantasy conversions I think I remember.. 8 bit was well ahead of the new batch of iphone,etc, reworks of FF!! :)

That's ok Jon; I guessed it was something like that!

It is a truly wonderful way to spend some time :D



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Sat Oct 13, 2012 10:57 am 

Joined: Wed Sep 01, 2010 3:26 pm
Posts: 320
If you need stuff like italics, bold text or underline I have a couple of BASIC procedures that do stuff like that, from an old WYSIWYG text processor I wrote BitD.


Offline
 Profile  
 
PostPosted: Sat Oct 13, 2012 11:44 am 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
tautology wrote:
If you need stuff like italics, bold text or underline I have a couple of BASIC procedures that do stuff like that, from an old WYSIWYG text processor I wrote BitD.


That would be most appreciated!! :D

I was playing about with VDU chars making some Old English letters yesterday..



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 19, 2012 2:39 pm 

Joined: Wed Sep 01, 2010 3:26 pm
Posts: 320
My routines for italic and underline:
Code:
 1360DEFPROCun(und$)
 1370FOR j=1 TO LENund$:?&70=ASCMID$(und$,j,1):A%=10:X%=&70:Y%=0:CALL&FFF1
 1380VDU23,255,?&71,?&72,?&73,?&74,?&75,?&76,?&77,?&78 EOR &FF:PRINT;CHR$255;:NEXT:ENDPROC
 1390:
 1400DEFPROCit(it$)
 1410FOR j=1 TO LENit$:?&70=ASCMID$(it$,j,1):A%=10:X%=&70:Y%=0:CALL&FFF1 
 1420VDU23,255,?&71 DIV2,?&72 DIV2,?&73 DIV2,?&74,?&75,?&76*2,?&77*2,?&78*2:PRINT;CHR$255;:NEXT:ENDPROC

They basically work by calling OSWORD 10 to read the character definition, then redefining character 255 to use the altered version.

Underline is done by EORing the last row with 255. Italic is don by shifting the top 3 rows left and the bottom 3 rows right. I did remember writing a bold version but I can't see it. The routines were designed for mode 3, to maximise memory but still give the 80 column wysiwyg view.

The word wrap and justify procedures:
Code:
  820DEFPROCwordwrp
  830a$=t$(y)
  840IF RIGHT$(a$,1)=" " a$=LEFT$(a$,LENa$-1):GOTO840
  850J=75:REPEAT:J=J-1:UNTIL MID$(a$,J,1)=" "
  860b$=MID$(a$,J+1):a$=LEFT$(a$,J-1)
  870t$(y)=a$+STRING$(75-LENa$," "):t$(y+1)=b$+" "+t$(y+1)
  880PRINTTAB(5,y-page);STRING$(75," ")TAB(5,y-page);t$(y);
  890IF X=0 X=LENb$
  900PRINT TAB(0,0)X,b$
  910y=y+1:IF LENt$(y)>75:PROCwordwrp
  920PRINTTAB(5,y-page);STRING$(75," ");TAB(5,y-page)t$(y);:IF x=0 x=1
  930y=Y+1:x=X:ENDPROC
 1210DEFFNj(width):PROCstrip:ne=1:q=2:ls=LENt$(y):REPEATls=ls-1:UNTIL MID$(t$(y),ls,1)=" " OR ls=1
 1220REPEATIFLENt$(y)>width GOTO1240 ELSEC%=INSTR(t$(y)," ",ne)
 1230t$(y)=LEFT$(t$(y),C%-1)+" "+MID$(t$(y),C%):ne=C%+1:REPEATne=ne+1:UNTILMID$(t$(y),ne,1)<>" ":IF ne>ls:ne=1
 1240UNTILLENt$(y)>width:=t$(y)

The justify function was always a bit buggy, which I never sorted.

It's been a long time since I've done any messing with Olde Englisc, but you should be able to get away with just upper and lower case thorns, eths and maybe a wynn if you're doing it from that time period.


Offline
 Profile  
 
PostPosted: Fri Oct 19, 2012 2:43 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
many thanks for the code; i'll have a play with that this weekend! :D :D



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Fri Oct 19, 2012 2:53 pm 
User avatar

Joined: Fri Dec 29, 2006 1:15 am
Posts: 495
Location: Glasgow, UK
Another text wrapping routine that I done a few years ago.

Code:
  10 MODE 0
  20 A$="This is a text wrapping example. Here you can see the text being dynamically wrapped to a user defined width. Pretty neat stuff isn't it?"
  30 REPEAT
  40 INPUT'"Enter text width: " W%
  50 IF W% THEN PRINT'STRING$(W%,"-"):PROCwrap(A$):PRINT
  60 UNTIL W%=0
  70 END
  80
  90 DEF PROCwrap(A$)
 100 L%=W%:O%=1
 110 REPEAT
 120 P%=INSTR(A$," ",O%)
 130 IF P%=0 THEN P%=LEN(A$)
 140 S%=P%-O%
 150 IF S%>=L% AND POS>1 THEN PRINT
 160 IF S%>=L% THEN L%=W%-S%-1 ELSE L%=L%-S%-1
 170 PRINT MID$(A$,O%,S%+1);
 180 IF POS=1 THEN PRINT CHR$(127);
 190 O%=P%+1
 200 UNTIL P%=LEN(A$)
 210 ENDPROC


Kind regards,

Francis



_________________
Dreamland Fantasy Studios
http://www.dfstudios.co.uk
Offline
 Profile  
 
PostPosted: Tue Oct 23, 2012 4:11 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
Thank you Francis :)

I'm making slow progress - into chapter 3 now :D I've had more keyboard failures in these few weeks than I had in the years of continuous use prior to storage of the elk!!

Its all good fun!



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Wed Oct 24, 2012 4:43 pm 
User avatar

Joined: Sun Nov 11, 2007 11:11 pm
Posts: 562
davidb wrote:
It's not quite the same thing, but I thought that there was at least one Fighting Fantasy adaptation. Wasn't it Starship Traveller?


I was mistaken. Thanks to the h2g2 page on Fighting Fantasy Gamebooks and the Fighting Fantasy Wiki, we learn that I was probably thinking of Rebel Planet.


Offline
 Profile  
 
PostPosted: Sat Dec 01, 2012 9:36 am 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
hey friends, i haven't dropped this project - it's just taken a bit of a back-seat while i play with my new beeb :D

This morning i had a cunning plan; i tried saving the files from the Elk in .wav format so that i could work on them in an emulator on my PC (once they were .euf) but i didn't have much success. All this while I have had no problems loading wavs from media player on the PC into the beeb/elk via the cassette lead and saving them into Voice Recorder the same way, but voice recorder only saves up to 60 seconds worth! I have Audacity which is a wonderful piece of kit but no matter how much i tweak the levels i cannot get the beeb or the elk to load the saved wavs from it! Voice Recorder, for all its lack of bells and whistles, does the job first time every time :/

I suppose it's for the best as my plan was to cut and paste the text of the book from my original files on the PC to save all the typing into the elk, but this is cheating right? :shock:

I'll do it the old-fashioned way, might just take me a while 8)

Mind you, I will find a way to figure it in the end as I understand the elk ADFS disk format might not be the most accessible for folks who would like to read the eBook!

Stuart :)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Tue Nov 26, 2013 11:07 am 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
I'm almost half way through typing to book into the Electron so I've floated the idea of the eBook as a freeware Electron ssd download over at Retro Software to see if there is any interest. Will probably carry discussions on it over on that thread.

cheers,
Stuart :)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Tue Nov 26, 2013 12:29 pm 
User avatar

Joined: Wed May 18, 2005 10:09 am
Posts: 751
Location: Newcastle upon Tyne
Hi mate. If you want a quick way of getting text files onto ssd try this:

1. Open beebem.
2. File->Disc Options->New Disc 0
3. Make sure the disk is not write protected.
4. Edit->Import Files to Disc->Disc 0
5. Select the text file you want transfer on your pc.
6. Done!

You can check the file(s) are there with view:
1. *word
2. load "filename"
3. press escape

Hope this helps.



_________________
Hello, my name is Simon and I'm a retroholic.
Offline
 Profile  
 
PostPosted: Tue Nov 26, 2013 12:57 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
Hey Simon, that's a handy tip, thank you! I'm writing the ebook as a Basic programme on the elk though, to allow for jumping between chapters and pages, etc, so I'm not sure if id be able to get that text into the right format from View.

to be honest, I'm enjoying going back through the book this way; it takes me back to when i was first writing it!



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Tue Nov 26, 2013 11:40 pm 
User avatar

Joined: Mon Mar 31, 2008 10:04 pm
Posts: 3376
Location: Obscurity
Since you have UPURS on your Elk, why can't you just export your discs straight to an ssd or dsd on the PC? If you're not doing this because you're using ADFS [me spits], surely there must be a way of porting the files to DFS [me nods approvingly] - does ADFS not support that? *

(* Someone ADFS savvy would need to comment...)


Offline
 Profile  
 
PostPosted: Wed Nov 27, 2013 7:40 am 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
MartinB wrote:
Since you have UPURS on your Elk, why can't you just export your discs straight to an ssd or dsd on the PC? If you're not doing this because you're using ADFS [me spits], surely there must be a way of porting the files to DFS [me nods approvingly] - does ADFS not support that? *

(* Someone ADFS savvy would need to comment...)


hehe dont panic Martin; they are in DFS! That earlier post about wavs and eufs was put up before i had UPURS ;) i started off in adfs but since then i have upgraded to AP34 :D

i think I've just decided to do it all on my real elk for an authentic experience ;)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Wed Nov 27, 2013 7:52 pm 
User avatar

Joined: Thu Sep 24, 2009 12:22 pm
Posts: 981
Location: UK
aerworuld wrote:
I was playing about with VDU chars making some Old English letters yesterday..
How's ROMFont.Gothic strike you?

Image



_________________
Code:
$ bbcbasic
PDP11 BBC BASIC IV Version 0.19 [No trig/exp]
(C) Copyright J.G.Harston 1989,2005-2013
>_
Offline
 Profile  
 
PostPosted: Wed Nov 27, 2013 8:27 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
jgharston wrote:
aerworuld wrote:
I was playing about with VDU chars making some Old English letters yesterday..
How's ROMFont.Gothic strike you?

Image


very well indeed!



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Wed Nov 27, 2013 8:38 pm 
User avatar

Joined: Thu Dec 29, 2011 6:13 am
Posts: 2027
Location: Tauranga, New Zealand
But maybe just for section titles or something?

I think after a while one's eyeballs would bleed if everything in that font? :shock:

But I could very well be wrong. :-#


Offline
 Profile  
 
PostPosted: Wed Nov 27, 2013 8:46 pm 
User avatar

Joined: Tue Sep 25, 2012 9:40 pm
Posts: 1413
Location: Basingstoke, Hampshire
richardtoohey wrote:
But maybe just for section titles or something?

I think after a while one's eyeballs would bleed if everything in that font? :shock:

But I could very well be wrong. :-#



hehe dont panic; its all in good old plain Electron text ;)



_________________
Image

... I call it 'kaleidoscelk' ...
Online
 Profile  
 
PostPosted: Wed Nov 27, 2013 9:16 pm 
User avatar

Joined: Thu Dec 29, 2011 6:13 am
Posts: 2027
Location: Tauranga, New Zealand
Is that as good as BBC B text? :twisted:


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 2 [ 34 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

phpBB skin developed by: John Olson
Powered by phpBB® Forum Software © phpBB Group