Page 1 of 1

Book text extraction?

PostPosted: Sat Sep 19, 2015 1:55 pm
Author: badjabadjabadja
Wondering if anyone can help with this..

One of my PCs has found a fairly long IG book, and I would like to read this out IG.. but preferably without having to type out the entire thing! I have exported the PC's .bic, and with nwnexplorer I can see the start of the book text, but cannot see any way to extract the actual text.

I know I could use several screenshots to capture the text then use OCR to convert back into txt, but that seems rather clunky.

I haven't been able to work out any way to move the item from a saved .bic into a .mod that I can use the toolset on.

Any suggestions?

cheers ~badja

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 3:08 pm
Author: Zerub
Are you just wanting it in text? If so, download leto0.3.1.6.7.

Open the saved bic up. Go to Tools->Advanced Editor and then Item List. Just start opening you items up until you find the book. You can then just copy the text from there.

It is easiest if you have a small inventory and can find the book. That being said, I think if you move the book out of a bag to your inventory and then move nothing else to it, I think it will be listed first.

Scott

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 3:32 pm
Author: Zerub
Looks like you can get Leto1.69 here.

http://neverwintervault.org/project/nwn ... collection

Scott

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 3:59 pm
Author: Commander Morgan
Wow, S. I understood all of that except the actual words. Oh, and the context. ;-)

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 4:11 pm
Author: Zerub
Sorry if I did not say it right.

Just download Leto from here:

http://goo.gl/A62YNP

Install it and then open it up. From there you can open up your local bic file from the Open tab. Usually that is in your NeverWinterNights folder under the localvault.

http://screencast.com/t/sLOfVXAwJfAa

Open up the Advanced Tools

http://screencast.com/t/4LqP1ujzc

Scroll down to the itemlist

http://screencast.com/t/xBQKHgGuPQ

Open up the items one at a time by clicking the '+' until you find what you want. It will look something like this.

http://screencast.com/t/ZpSOK557Hc

Htp.
Scott

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 4:17 pm
Author: Zerub
BTW, what i meant by having to find items and pulling one out of the bag and putting it into your inventory is this. If you have a lot of items in your inventory then you have to go through each "entry" above until you find it. If while IG, you pull the book out of a bag and put it in your inventory and then save your character to a bic file, I believe the book with be the very first "entry" under the item list, but I may be wrong.

Scott

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 5:05 pm
Author: badjabadjabadja
Hey Scott,

thanks for that: worked perfectly!

I had taken the book from a bag & left in open inventory before the export, so yes it turned out to be item one.

The text has lost all formatting, so I will need to re-do that. I think the limit for NWN chat text is 327 characters? That will be fairly simple to break it down into digestible chunks, using Word for example, as I can then check the total characters for each paragraph of text.

cheers! :prost:

Re: Book text extraction?

PostPosted: Sat Sep 19, 2015 7:07 pm
Author: Gorgon
badjabadjabadja wrote:The text has lost all formatting, so I will need to re-do that. I think the limit for NWN chat text is 327 characters? That will be fairly simple to break it down into digestible chunks, using Word for example, as I can then check the total characters for each paragraph of text.


NWN (and therefore LETO) do not use carriage returns + line feeds (CR+LF) for newlines in descriptions, only a line feed. If you paste into something like Windows notepad, you get one long line of text, since it looks for the CR.

Try a text editor that can handle UNIX end of line format (editpad, notepad++ or many others), or even just hit reply here, then paste the text into the reply. It should show the line breaks properly. Copy it back and done.

*edits* The text is not limited to what you can type in chat. The BioWare format docs suggest they not be larger than 1024 characters because of bandwidth issues, but you could probably make an insanely long book. You can imagine the problems IG, including server pauses, when it has to transmit huge amounts of data every time a simple book is examined.

*edit2* And, of course, I didn't reread why you cared about chat length in you first post until after typing that. :oops:
Have fun!

Re: Book text extraction?

PostPosted: Mon Sep 21, 2015 9:07 pm
Author: badjabadjabadja
Thanks Gorgon,

I did stumble upon that as I used Word so I could select a paragraph at a time to check the length...
I was wrong about it being a 327 character limit for IG chat.. and my google-fu failed too.. so I am not sure what the limit is!

Still.. the book breaks down nicely into manageable sentence/paragraph sized chunks.

so for my next project.. an epic IG reading of Above the Keep volumes 1 - 30 :flucht:

Re: Book text extraction?

PostPosted: Mon Sep 21, 2015 9:37 pm
Author: Gorgon
245 characters seems to be the dependable limit (including spaces, punctuation, hidden color codes etc). I was able to paste in 40,000+ the first time, but it didn't like that much. After that, it always cut off at 245. This was just local testing, and the online client may be different, but I doubt it.