![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
Kindegen meta support
Hi!
I'm creating some export for my web page games. I do sucessfully (PHP) generate complete HTML for kindlegen and it works (via wine, since linux version does not work - shame!). Now I do know two tags: Code:
<title></title> <meta name="author" content="Author" /> PHP Code:
Is there any complete list what does work with kindlegen? Or maybe i am doing something wrong? |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
If it works in EPUB it will convert with kindlegen.
Also, kindlegen for linux works fine for me (granted, I haven't checked recently, but then too nothing has changed since then either.) |
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
I generate HTML with php which is converted to mobi.
kindlegen (linux version) does not return any error, but mobi does not work on my friends Kindle. While Windows version does. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
And if you use the meta tags recognized by the EPUB spec, it will work -- regardless of HTML vs. EPUB as your source.
Odd that kindlegen for linux creates an unreadable ebook. ![]() Again, never happened for me. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
Now i get it!
Any software i use works, but not my friends Kindle. |
![]() |
![]() |
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
That would tend to do it...
Mystery solved! (But I wonder why the Windows version works. Maybe your friend's Kindle works for Microsoft. ![]() |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
I tried
Code:
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:title id="title">Kręte Drogi</dc:title> <!-- line 58! --> <meta refines="#title" property="title-type">main</meta> <dc:creator id="creator">Gedeon (Adeptus)</dc:creator> <dc:creator opf:role="aut">Gedeon (Adeptus)</dc:creator> <meta refines="#creator" property="role" scheme="marc:relators">aut</meta> <dc:creator opf:role="ill">Michał Mani Gągała</dc:creator> <meta refines="#creator" property="role" scheme="marc:relators">ill</meta> <dc:creator opf:role="edt">San Zamoyski</dc:creator> <meta refines="#creator" property="role" scheme="marc:relators">edt</meta> <dc:language>pl-PL</dc:language> <dc:publisher>rolegames.tk</dc:publisher> <dc:date>2015-02-01</dc:date> <dc:rights>Niniejsza publikacja nie może być modyfikowana ani odsprzedawana bez pisemnej zgody zespołu <a href="http://rolegames.tk">rolegames.tk</a>.<br /> Dozwolone jest jej kopiowanie, dystrybucja bezpłatna (na licencji freeware) oraz druk na papierze w dowolnej liczbie egzemplarzy.</dc:rights> </metadata> </head> But i get (from kindlegen): Code:
Info(prcgen):I1002: Parsing files 0000002 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000058 Warning(inputpreprocessor):W29008: Tag rejected due to improper usage: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000060 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000061 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000061 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000062 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000062 Warning(inputpreprocessor):W29008: Tag rejected due to improper usage: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000063 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000064 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000064 Warning(inputpreprocessor):W29008: Tag rejected due to improper usage: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000065 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000066 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000066 Warning(inputpreprocessor):W29008: Tag rejected due to improper usage: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000067 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000068 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000068 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000069 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000069 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000070 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000070 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000071 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000071 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000072 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000074 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000075 Warning(inputpreprocessor):W29006: Tag rejected: in file: Z:\home\san\www\rpg2\ek8\Krete_Drogi-150201143632-MOBI.html line: 0000076 |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,774
Karma: 206758686
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
dc metadata belongs in an opf file. It'll never work trying to shoehorn it into the head of (x)html files. Create a valid opf file (with all the dc metadata you want) that properly links to all your various resources (html, css, images, ncx, etc) and then feed that opf file to kindlegen/kindle previewer instead of trying to do everything with an html file.
|
![]() |
![]() |
![]() |
#9 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() No wonder it wasn't working... How did I not notice that? ![]() |
|
![]() |
![]() |
![]() |
#10 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
|
Quote:
It seems that creating very simple opf file: Code:
<?xml version="1.0" encoding="UTF-8"?> <package xmlns:xx="http://saxon.sf.net/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/metadata/dublin_core" unique-identifier="BookId" version="2.0"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> <!-- Fixed Layout, Region Magnificaiton & Children\'s Content --> <meta name="fixed-layout" content="true"/> <meta name="book-type" content="gra paragrafowa"/> <dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openbook.org/namespaces/oeb-package/1.0/"> <dc:title>'. $scenariusz['Nazwa_gry']. '</dc:title> <dc:language>pl</dc:language> <dc:creator>'. $scenariusz['Autor_txt']. '</dc:creator> <dc:publisher>rolegames.tk</dc:publisher> <dc:date>'. $scenariusz['Autor_rok']. '</dc:date> </dc-metadata> </metadata> <manifest> <item id="book" href="'. $nazwa_pliku. '-MOBI.html" media-type="application/xhtml+xml"/> </manifest> <spine toc="ncx"> <itemref idref="book"/> </spine> </package>' Many thanks DD! |
|
![]() |
![]() |
![]() |
#11 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I am very nearly positive I haven't cast any invisibility sprogs today...
![]() Or wait... ![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
meta data | kcmccombs | Library Management | 3 | 12-07-2013 05:29 AM |
Support officially outsourced to Phillippines (paid support) | larka | enTourage eDGe | 5 | 06-08-2011 12:48 AM |
Is Astak support on vacation or just stopped support? | dmikov | Astak EZReader | 9 | 01-22-2010 01:43 PM |
set meta data with ebook-meta and ebook-convert | krischik | Calibre | 6 | 01-19-2010 11:40 AM |
Meta info | rambling | Calibre | 0 | 11-26-2008 08:22 PM |