Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2009, 08:36 PM   #136
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by sona View Post
Ok, so actually it doesn't accept spaces... each time I insert a space (before my name and the number) it puts the next word in red...
What puts the next word in red? Where are you entering this command?

I have no idea what...

python .ereader2html.pyWane.pdbName/FTFLM/tst "My own name" "12345678"

...even is? what is

Wane.pdbName/FTFLM/tss

????????????????????????????

BOb
pilotbob is offline   Reply With Quote
Old 03-19-2009, 08:44 PM   #137
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
You should be running this in a terminal window:

Open a Terminal window by opening the Finder and pressing shift+command+U. This will open the Utilities folder. Then, double-click on Terminal. You can also open Terminal by opening the Finder and choosing Go -> Utilities to open the Utilities folder, and then double-clicking Terminal.

I don't understand .ereader2html.py. Do you have a "." at the start of the script name? If so, remove it and try again (perhaps "." scripts are treated differently).
wallcraft is offline   Reply With Quote
Old 03-19-2009, 09:13 PM   #138
sona
Junior Member
sona began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2009
Device: none
ok so now it says I don't have a file ereader2html which is not true...

the command is the same just need to put the spaces in...

python .ereader2html.py Wane.pdb Name/FTFLM/tst "My own name" "12345678"

Wane.pdb -> name of the ebook file

Name/FTFLM -> name of the directory and subdirectory

thanx a lot for helping
sona is offline   Reply With Quote
Old 03-19-2009, 11:04 PM   #139
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
In a terminal window, files and subdirectories are taken starting from the "current directory". For example, if your ebooks are in ~/Books, then first make sure that Wane.pdb and the script ereader2html.py are in ~/Books (~ is your home directory, I'm not sure what this is called on a Mac). Then in a terminal window do the following:
Code:
cd ~/Books
python ereader2html.py Wane.pdb Wane "My own name" "12345678"
The cd (change directory) command puts you in ~/Books, and the python command should create a subdirectory ~/Books/Wane and write the HTML and images extracted from Wane.pdb into it. Note that there is no "." before ereader2html.py.

You don't have to use ~/Books, replace this with whatever directory you want (but the ebook and the script should be in this directory).
wallcraft is offline   Reply With Quote
Old 03-21-2009, 04:23 PM   #140
sona
Junior Member
sona began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2009
Device: none
Quote:
Originally Posted by wallcraft View Post
In a terminal window, files and subdirectories are taken starting from the "current directory". For example, if your ebooks are in ~/Books, then first make sure that Wane.pdb and the script ereader2html.py are in ~/Books (~ is your home directory, I'm not sure what this is called on a Mac). Then in a terminal window do the following:
Code:
cd ~/Books
python ereader2html.py Wane.pdb Wane "My own name" "12345678"
The cd (change directory) command puts you in ~/Books, and the python command should create a subdirectory ~/Books/Wane and write the HTML and images extracted from Wane.pdb into it. Note that there is no "." before ereader2html.py.

You don't have to use ~/Books, replace this with whatever directory you want (but the ebook and the script should be in this directory).

Thank you for that, my only problem now is that it says the file doesn't exist... I redld it and I don't understand the problem... it is in a directory in the home directory (the one with your computer's name right ?) it is there with the book itself...

I'm really near to abandon this altogether... I really don't get the problem

but thanx a lot for the help...
sona is offline   Reply With Quote
Old 03-21-2009, 04:28 PM   #141
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by sona View Post
Thank you for that, my only problem now is that it says the file doesn't exist... I redld it and I don't understand the problem... it is in a directory in the home directory (the one with your computer's name right ?) it is there with the book itself...

I'm really near to abandon this altogether... I really don't get the problem

but thanx a lot for the help...
If it says file does not exist that means it can't find the file. Type ls and hit enter. Does the file show up? If so then make sure you type it exactly as you see it in the listing. Case matters. This is very basic unix stuff.

Dale
DaleDe is offline   Reply With Quote
Old 03-21-2009, 04:45 PM   #142
sona
Junior Member
sona began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2009
Device: none
hum not sure I got you but I typed Is in the terminal window and got this : -bash: Is: command not found
sona is offline   Reply With Quote
Old 03-21-2009, 05:12 PM   #143
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by sona View Post
hum not sure I got you but I typed Is in the terminal window and got this : -bash: Is: command not found
LS in lower case. There is an article on command line in the wiki.

Dale
DaleDe is offline   Reply With Quote
Old 03-21-2009, 06:04 PM   #144
sona
Junior Member
sona began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2009
Device: none
Quote:
Originally Posted by DaleDe View Post
LS in lower case. There is an article on command line in the wiki.

Dale
Ok so I got what I call home directory where the directory with the ereader2html.py and the book are...

... ?

thx
sona is offline   Reply With Quote
Old 03-21-2009, 06:36 PM   #145
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by sona View Post
Ok so I got what I call home directory where the directory with the ereader2html.py and the book are...

... ?

thx
Ok, with the output of ls on the screen be sure and type the files exactly as they appear, remember case matters.

python ereader2html.py Wane.pdb Wane "My own name" "12345678"

The first word is the name of the command, the second the script name exactly as you see it listed. The third is the filename you want, typed exactly as you see it listed. The rest of the words (3) you must fill in yourself. Note that words are separated by spaces. If a file name has a space in it then the quotes can be used to tell the system that this is to be treated as one word.

Dale
DaleDe is offline   Reply With Quote
Old 03-21-2009, 06:51 PM   #146
sona
Junior Member
sona began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2009
Device: none
Quote:
Originally Posted by DaleDe View Post
Ok, with the output of ls on the screen be sure and type the files exactly as they appear, remember case matters.

python ereader2html.py Wane.pdb Wane "My own name" "12345678"

The first word is the name of the command, the second the script name exactly as you see it listed. The third is the filename you want, typed exactly as you see it listed. The rest of the words (2) you must fill in yourself. Note that words are separated by spaces. If a file name has a space in it then the quotes can be used to tell the system that this is to be treated as one word.

Dale
IT WORKED !!!! I can't believe it !!

Thank you a lot (you all) I was really desperate :P

thanx thanx thanx :P
sona is offline   Reply With Quote
Old 03-21-2009, 07:16 PM   #147
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by sona View Post
IT WORKED !!!! I can't believe it !!

Thank you a lot (you all) I was really desperate :P

thanx thanx thanx :P
Glad you got it working. The Command Line can be useful once you understand it a little.

Dale
DaleDe is offline   Reply With Quote
Old 03-21-2009, 10:39 PM   #148
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by DaleDe View Post
Case matters. This is very basic unix stuff.
Actually the standard Mac OS Extended file system is case insensitive.

BOb
pilotbob is offline   Reply With Quote
Old 03-22-2009, 08:06 PM   #149
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by pilotbob View Post
Actually the standard Mac OS Extended file system is case insensitive.

BOb
Good to know. Of course a Mac isn't exactly the same as Unix. I don't know what hardware the original requester is using but the problem seems to be solved now.

Dale
DaleDe is offline   Reply With Quote
Old 03-22-2009, 08:14 PM   #150
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by sona View Post
I'm having trouble to run the program on my Mac
Quote:
Originally Posted by DaleDe View Post
Good to know. Of course a Mac isn't exactly the same as Unix. I don't know what hardware the original requester is using but the problem seems to be solved now.
As you see above sona said Mac. You said case matters, this is basic Unix stuff. I said that Mac (by default) isn't case sensitive. Actually the Mac is build on FreeBSD which is based on BSD Unix. So, no not exactly Unix but very close.

What just trying to give some friendly info. I thought my Mac file system was case-sensitve too until someone on the subversion mail list mentioned that it wasn't.

BOb
pilotbob is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KindleUnpack (MobiUnpack): Extracts text, images and metadata from Kindle/Mobi files adamselene Kindle Formats 1311 06-26-2024 11:17 AM
Mobipocket Decoder Tool Nate the great Kindle Formats 391 01-13-2011 10:44 PM
Secure Mobipocket Decoder ebookfab Kindle Formats 3 12-09-2008 08:50 PM
Secure Mobipocket Decoder v0.3 Aenea Kindle Formats 74 07-10-2008 09:57 AM
Secure Mobipocket Decoder is no more... Aenea Kindle Formats 26 04-12-2008 09:53 AM


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


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