[SOLVED] Command line to output EPUB title description?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have downloaded from the free www.Gutenberg.org several Sci-Fi books about Mars:
herewith a cool list about Mars Sci-Fi:
pg21873-images.epub
pg23731-images.epub
pg24104-images.epub
pg27400-images.epub
pg32284-images.epub
pg32436-images.epub
pg32664-images.epub
pg4300-images.epub
pg45530-images.epub
pg50783-images.epub
pg62-images.epub
pg64-images.epub
There are awaiting on the apache web for sci-fi reading.
But well, in order to get an index.html file with the title of the book, it would be great to have a list with titles.
Would you maybe know a possible command line to output EPUB title description? Maybe even author(s).
EPUB embeds a lot of metadata. The utility exiftool can extract just about any metadata found in a file for you. That should include title, author, and many other fields in EPUB. See its man page for the million or so options.
Last edited by Turbocapitalist; 07-22-2017 at 08:41 AM.
EPUB embeds a lot of metadata. The utility exiftool can extract just about any metadata found in a file for you. That should include title, author, and many other fields in EPUB. See its man page for the million or so options.
I installed exiftool
I did create a C file that does read the opendir list of files,
while popen it will exiftool to a file.
You could use it natively in perl. exiftool is just a front-end for the CPAN module Image::ExifTool. However, it isn't one of the modules that is build on top of C libraries, as far as I can tell, but there might be a corresponding C library out there so if you are using C you could use a native library instead.
You could use it natively in perl. exiftool is just a front-end for the CPAN module Image::ExifTool. However, it isn't one of the modules that is build on top of C libraries, as far as I can tell, but there might be a corresponding C library out there so if you are using C you could use a native library instead.
I do not like large/vast installation, non portable, programming environment. I prefer Assembler (for 1 archi) or C at max.
I do not like large/vast installation, non portable, programming environment. I prefer Assembler or C at max.
That's fine. If you search you can find several EXIF libraries for C so you won't have to use C to call a wrapper to perl which is in turn using a CPAN module. You can do it all in C from top to bottom that way.
That's fine. If you search you can find several EXIF libraries for C so you won't have to use C to call a wrapper to perl which is in turn using a CPAN module. You can do it all in C from top to bottom that way.
the problem is that if I use the exif library into my code, then, it won't be universal anylonger.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.