View Full Version : xhtml from epub


georger
06-26-2008, 05:01 PM
i need help getting an xhtml document from an epub document so that it can be edited. i found this site (http://www.hxa7241.org/articles/content/epub-guide_hxa7241_2007.html) but where it says:

XHTML
Use XHTML 1.1, but without the following modules:

Forms
Server-side Image Map
Intrinsic Events
Scripting
(XHTML 1.1 difference from XHTML 1 strict:

lang attribute not allowed (use xml:lang instead)
name attribute on a and map elements not allowed (use id instead)
ruby annotations are allowed)
Include XML declaration and XHTML doctype, at the top:


i cant do this because all i have is an epub file and i cant figure out how to get xhtml from epub. i have read that you can zip and extract an xhtml file from epub but ive tried that and it didnt work. if someone can lay out the steps to get an xhtml doc that would be great because i am not that great with computers. thanks!

wallcraft
06-26-2008, 05:40 PM
An .epub file is just a .zip file with a few restrictions on its layout. So all you need to do is:
rename file.epub to file.zip
unzip file.zip with your favorite unzipper
You should end up with a directory containing all the components of the ePub, including the .xhtml files you are looking for.

georger
06-27-2008, 12:59 PM
i tried changing the file to a .zip by just renaming it with .zip at the end. this did not change it from an epub file. i have a feeling that i am not doing this right so i tried making it a zip file by right clicking on the epub file and sending it do a compressed folder. then i right clicked on the compressed folder of the file and clicked extract all which led me to the windows extraction wizard. from there i extracted the files however all this did was give me the original epub file that i started with and not the component forms that make up the epub file (such as xhtml). if you could please tell me what i am doing wrong and how i should get the xhtml file it would be greatly appreciated. thanks!

-george

Jellby
06-27-2008, 01:25 PM
i tried changing the file to a .zip by just renaming it with .zip at the end. this did not change it from an epub file.

Perhaps you have hidden extensions?

delphidb96
06-27-2008, 01:32 PM
Perhaps you have hidden extensions?

Speaking of 'hidden extensions'...

I have a WinXP (Home) system and I simply cannot remember how to get the extensions to list in Explorer. I see the column for file type (Adobe..., Word document..., etc.) but the actual extensions won't show in the "Name" column. Where do I go to get these back?

Derek

pilotbob
06-27-2008, 01:52 PM
Speaking of 'hidden extensions'...

I have a WinXP (Home) system and I simply cannot remember how to get the extensions to list in Explorer. I see the column for file type (Adobe..., Word document..., etc.) but the actual extensions won't show in the "Name" column. Where do I go to get these back?

Derek

When in Windows Explorer select the Tools menu and choose Folder Options. In the dialog select the "View" tab. Find the option "Hide extensions for known file types" and make sure it is not selected. I also set mine to Show Hidden files and folders and also to not hide protected operating system files.

BOb

wallcraft
06-27-2008, 01:58 PM
i tried changing the file to a .zip by just renaming it with .zip at the end. this did not change it from an epub file. The original filename is (say) file.epub, with the .epub telling Windows what the file type is. If you try to rename it and all you see ls "file", rather than file.epub, then first you need to turn on the display of filename extensions for the directory you are in. See Configuring Windows to display filename extensions and hidden folders (http://www.sophos.com/support/knowledgebase/article/13485.html). Once you have the file showing up as file.epub, rename it to file.zip. Windows will ask if you really want to do this, answer yes. Now the file will show up as a zip file, and you can unzip it as would any other zip file.

delphidb96
06-27-2008, 02:10 PM
When in Windows Explorer select the Tools menu and choose Folder Options. In the dialog select the "View" tab. Find the option "Hide extensions for known file types" and make sure it is not selected. I also set mine to Show Hidden files and folders and also to not hide protected operating system files.

BOb

YAAAAAaaaayyyy!!! Thank you! Thank you! Thank you! :D :D :D [Derek is now doing his 'happy dance' - please ignore the 3.0 earthquake originating at Citrus Heights, CA.) :)

Derek

mannan
10-13-2009, 08:14 AM
yes ePub is a zip format only. when i renamed the extension from epub to zip, wow it worked great...

Thanks Mart

http://www.thesysteminfo.com
http://www.nuatransmedia.com

.