Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 01-27-2015, 02:50 PM   #1
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
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" />
and tried many more:

PHP Code:
<meta name="dc:rights" content="
                        Copyright © for text game by '. 
$scenariusz['Autor_txt']. ', '. $scenariusz['Autor_rok']. '.
                        Copyright © for cover by '. 
$scenariusz['Okladka_aut']. ', '. $scenariusz['Okladka_rok']. '.
                        Copyright © rolegames.tk, '. date("
Y"). '
                    " 
/>
                    <
meta name="rights" content="
                        Copyright © for text game by '. 
$scenariusz['Autor_txt']. ', '. $scenariusz['Autor_rok']. '.
                        Copyright © for cover by '. 
$scenariusz['Okladka_aut']. ', '. $scenariusz['Okladka_rok']. '.
                        Copyright © rolegames.tk, '. date("
Y"). '
                    " 
/>
                    <
meta name="dc:title" content="'. $scenariusz['Nazwa_gry']. '" />
                    <
META name="Generator" content="rolegames.tk" />
                    <
meta name="dc:Language" content="pl" />'.
                    '
<meta name="dc:Creator" content="rolegames.tk" />'.
                    '
<meta name="dc:Publisher" content="rolegames.tk" />'.
                    '
<meta name="Language" content="pl" />'.
                    '
<meta name="Creator" content="rolegames.tk" />'.
                    '
<meta name="Publisher" content="rolegames.tk" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    //'
<meta name="dc:language" content="pl" />'.
                    /*'
<dc:creator>Author</dc:creator>
                    <
dc:subject>Keywaords</dc:subject>
                    <
dc:description>Description</dc:description>
                    <
dc:publisher>Add Publisher Entry</dc:publisher>
                    <
dc:date/>
                    <
dc:source/>
                    <
dc:relation/>
                    <
dc:coverage/>
                    <
dc:rights>Copyright Notice</dc:rights>
                    <
dc:identifier id="bookid">urn:uuid:b54b68dd-6192-0aa0-2309-237e3ab3e059</dc:identifier>
                    <
dc:language>pl</dc:language>'.
                    '
<meta name="cover" content="'. $scenariusz['Okladka'].'" />'.*/ 
well, cover works by half... somehow.

Is there any complete list what does work with kindlegen?
Or maybe i am doing something wrong?
San Zamoyski is offline   Reply With Quote
Old 01-27-2015, 03:03 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.)
eschwartz is offline   Reply With Quote
Old 01-27-2015, 05:12 PM   #3
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
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.
San Zamoyski is offline   Reply With Quote
Old 01-27-2015, 06:08 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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. Can calibre read it?
Again, never happened for me.
eschwartz is offline   Reply With Quote
Old 01-28-2015, 03:17 AM   #5
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
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.
San Zamoyski is offline   Reply With Quote
Old 01-28-2015, 10:26 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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. )
eschwartz is offline   Reply With Quote
Old 02-01-2015, 08:37 AM   #7
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
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>
and with removed dc's.

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
What am i doing wrong?
San Zamoyski is offline   Reply With Quote
Old 02-01-2015, 03:09 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Old 02-01-2015, 04:01 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by DiapDealer View Post
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.
Why so it is (in the HTML)!

No wonder it wasn't working...

How did I not notice that?
eschwartz is offline   Reply With Quote
Old 02-01-2015, 05:28 PM   #10
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
Quote:
How did I not notice that?
Becose You are magician. (?)

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>'
...ignoring fact, that there are some additional fonts and images, works.
Many thanks DD!
San Zamoyski is offline   Reply With Quote
Old 02-01-2015, 05:52 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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... Did I? Or didn't I? Perhaps a memory spell would be in order.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


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


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