Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2007, 09:01 AM   #1
Wimvv
Junior Member
Wimvv began at the beginning.
 
Wimvv's Avatar
 
Posts: 5
Karma: 10
Join Date: Dec 2007
Location: Holland
Device: Bookeen Cybook Gen3
metadata language field not after convertlit

Hi,

In the hope that i will receive very soon a Cybook Gen3 i started experimenting with the conversion of my lit files.

I used convertlit to make opf xml files and wanted to generate mobipocket files with mobigen.exe but mobigen exists with the message that the language field is mandatory.

It seems in a lot of files i'm missing
<dc:Language>en-us</dc:Language>
between the <dc-metadata></dc-metadata> tags

Since i have over 300 e-books already, i find it a bit extreme to edit them book by book so my question is ... has someone already made a metadata checker who checks if the language field exists and if not, adds it ?

Cheers,
Wim
Wimvv is offline   Reply With Quote
Old 12-05-2007, 12:49 PM   #2
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,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
As with all batch text processing, this would be simple under Linux.

I'm not sure if there is a standard Windows utility that could do the trick, but a Google search turned up BrineSoft Batch Text Replacer. This is shareware, and from its description would do what you want.
wallcraft is offline   Reply With Quote
Advert
Old 12-05-2007, 04:31 PM   #3
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
I wrote a Perl script some weeks ago that works on Unix systems but probably is easy to get to work on a Windows system. The script unpacks the lit file, fix the language tag if neccessary and there is also a variable you can set to fix totally broken HTML and incorrectly coded characters (something I had in one book). It also calls mobigen.

It is available here: http://www.ida.liu.se/~tompe/old-lit2mobi
tompe is offline   Reply With Quote
Old 12-06-2007, 04:54 AM   #4
Wimvv
Junior Member
Wimvv began at the beginning.
 
Wimvv's Avatar
 
Posts: 5
Karma: 10
Join Date: Dec 2007
Location: Holland
Device: Bookeen Cybook Gen3
Thanks both

Wallcraft, that search and replace tool did the trick to give me some time to assimilate compe's script into a stand-alone quick and dirty application
Wimvv is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Language metadata in ePub files HarryT Calibre 24 07-19-2010 10:24 PM
Metadata to specify default language is English? kjk ePub 4 06-22-2010 04:05 PM
Bug? "Insert metadata as page at start of book" doesnt encode Comments field properly rollercoaster Calibre 2 04-24-2010 10:40 PM
Language metadata Toxaris Calibre 1 11-19-2009 04:22 PM
ConvertLIT V1.8 Colin Dunstan Workshop 34 06-02-2007 05:38 PM


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


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