Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2007, 10: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, 01: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,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
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
 
Advertisement
Old 12-05-2007, 05: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,128
Karma: 4315826
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus 5, iPad 2, 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, 05: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:00 PM.


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