Book text extraction?
Moderator: Event DM
-
- Sage
- Posts: 2145
- Joined: Fri Jan 13, 2006 3:38 pm
- Timezone: GMT
- Location: South Wales UK
Book text extraction?
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
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?
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
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
-
- Scholar of Fools
- Posts: 495
- Joined: Wed Jan 11, 2006 1:17 pm
- Timezone: 0
- Location: The Grand Halls of the Fiddlesticks
Re: Book text extraction?
Wow, S. I understood all of that except the actual words. Oh, and the context. 

Re: Book text extraction?
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
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
Last edited by Zerub on Sat Sep 19, 2015 4:20 pm, edited 1 time in total.
Re: Book text extraction?
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
Scott
-
- Sage
- Posts: 2145
- Joined: Fri Jan 13, 2006 3:38 pm
- Timezone: GMT
- Location: South Wales UK
Re: Book text extraction?
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!
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!

- Gorgon
- Father of Avlis EE
- Posts: 6637
- Joined: Fri Oct 17, 2003 10:14 pm
- Timezone: PST -8
- Location: Vancouver, BC, Canada
Re: Book text extraction?
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.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.
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.

Have fun!
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (1942-2018) --
Sprucing up ye olde NWN | NWN:EE Wiki | ~Avlis Theme Song~
-- Stephen William Hawking (1942-2018) --
Sprucing up ye olde NWN | NWN:EE Wiki | ~Avlis Theme Song~
-
- Sage
- Posts: 2145
- Joined: Fri Jan 13, 2006 3:38 pm
- Timezone: GMT
- Location: South Wales UK
Re: Book text extraction?
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
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

- Gorgon
- Father of Avlis EE
- Posts: 6637
- Joined: Fri Oct 17, 2003 10:14 pm
- Timezone: PST -8
- Location: Vancouver, BC, Canada
Re: Book text extraction?
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.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (1942-2018) --
Sprucing up ye olde NWN | NWN:EE Wiki | ~Avlis Theme Song~
-- Stephen William Hawking (1942-2018) --
Sprucing up ye olde NWN | NWN:EE Wiki | ~Avlis Theme Song~