![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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 ![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |