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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-14-2013, 03:30 AM   #1
neufsix
Connoisseur
neufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheese
 
Posts: 57
Karma: 1010
Join Date: Jul 2011
Device: Archos A70 eReader, Kindle Touch, Sony PRS-T2
Occitan language not recognized in metadata.

Hi !

Kindlegen refuses the following <dc:language>oc</dc:language> in the opf file:

Error(prcgen):E23006: Language not recognized in metadata. The dc:Language field is mandatory. Aborting.

Does anyone know what languages are recognized and why Occitan is not?

Thanks.
neufsix is offline   Reply With Quote
Old 03-14-2013, 04:39 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by neufsix View Post
Does anyone know what languages are recognized and why Occitan is not?
KindleGen is based on Mobipocket Creator and apparently supports only the following language codes:

Spoiler:
Code:
	af	Afrikaans
	sq	Albanian
	ar	Arabic
	ar-dz	Arabic (Algeria)
	ar-bh	Arabic (Bahrain)
	ar-eg	Arabic (Egypt)
	ar-eg	Arabic (Iraq)
	ar-jo	Arabic (Jordan)
	ar-kw	Arabic (Kuwait)
	ar-lb	Arabic (Lebanon)
	ar-lb	Arabic (Libya)
	ar-ma	Arabic (Morocco)
	ar-om	Arabic (Oman)
	ar-qa	Arabic (Qatar)
	ar-sa	Arabic (Saudi Arabia)
	ar-sy	Arabic (Syria)
	ar-tn	Arabic (Tunisia)
	ar-ae	Arabic (U.A.E.)
	ar-ye	Arabic (Yemen)
	hy	Armenian
	az	Azeri (Cyrillic)
	az	Azeri (Latin)
	eu	Basque
	be	Belarusian
	bn	Bengali
	bg	Bulgarian
	ca	Catalan
	zh	Chinese
	zh-hk	Chinese (Hong Kong)
	zh-cn	Chinese (PRC)
	zh-sg	Chinese (Singapore)
	zh-tw	Chinese (Taiwan)
	hr	Croatian
	cs	Czech
	da	Danish
	nl	Dutch
	nl-be	Dutch (Belgium)
	en	English
	en-au	English (Australia)
	en-bz	English (Belize)
	en-ca	English (Canada)
	en-ie	English (Ireland)
	en-jm	English (Jamaica)
	en-nz	English (New Zealand)
	en-ph	English (Philippines)
	en-za	English (South Africa)
	en-tt	English (Trinidad)
	en-gb	English (United Kingdom)
	en-us	English (United States)
	en-zw	English (Zimbabwe)
	et	Estonian
	fo	Faeroese
	fa	Farsi
	fi	Finnish
	fr-be	French (Belgium)
	fr-ca	French (Canada)
	fr	French
	fr-lu	French (Luxembourg)
	fr-mc	French (Monaco)
	fr-ch	French (Switzerland)
	ka	Geogian
	de	German
	de-at	German (Austria)
	de-li	German (Liechtenstein)
	de-lu	German (Luxembourg)
	de-ch	German (Switzerland)
	el	Greek
	gu	Gujarati
	he	Hebrew
	hi	Hindi
	hu	Hungarian
	is	Icelandic
	id	Indonesian
	it	Italian
	it-ch	Italian (Switzerland)
	ja	Japanese
	kn	Kannada
	kk	Kazakh
	x-kok	Konkani
	ko	Korean
	lv	Latvian
	lt	Lithuanian
	mk	Macedonian
	ms	Malay (Brunei Darussalam)
	ms	Malay (Malaysia)
	ml	Malayalam
	mt	Maltese
	mr	Marathi
	ne	Nepali
	no	Norwegian (Bokmal)
	no	Norwegian (Nynorsk)
	or	Oriya
	pl	Polish
	pt	Portuguese
	pt-br	Portuguese (Brazil)
	pa	Punjabi
	rm	Rhaeto-Romanic
	ro	Romanian
	ro-mo	Romanian (Moldova)
	ru	Russian
	ru-mo	Russian (Moldova)
	sz	Sami (Lappish)
	sa	Sanskrit
	sr	Serbian (Cyrillic)
	sr	Serbian (Latin)
	sk	Slovak
	sl	Slovenian
	sb	Sorbian
	es	Spanish
	es-ar	Spanish (Argentina)
	es-bo	Spanish (Bolivia)
	es-cl	Spanish (Chile)
	es-co	Spanish (Colombia)
	es-cr	Spanish (Costa Rica)
	es-do	Spanish (Dominican Republic)
	es-ec	Spanish (Ecuador)
	es-sv	Spanish (El Salvador)
	es-gt	Spanish (Guatemala)
	es-hn	Spanish (Honduras)
	es-mx	Spanish (Mexico)
	es-ni	Spanish (Nicaragua)
	es-pa	Spanish (Panama)
	es-py	Spanish (Paraguay)
	es-pe	Spanish (Peru)
	es-pr	Spanish (Puerto Rico)
	es-uy	Spanish (Uruguay)
	es-ve	Spanish (Venezuela)
	sx	Sutu
	sw	Swahili
	sv	Swedish
	sv-fi	Swedish (Finland)
	ta	Tamil
	tt	Tatar
	te	Telugu
	th	Thai
	ts	Tsonga
	tn	Tswana
	tr	Turkish
	uk	Ukranian
	ur	Urdu
	uz	Uzbek (Cyrillic)
	uz	Uzbek (Latin)
	vi	Vietnamese
	xh	Xhosa
	zu	Zulu

These language codes seem to be hard-coded both in KindleGen and the Kindle firmware.
The closest language whose code is supported is Catalan (ca).
Doitsu is offline   Reply With Quote
Old 03-14-2013, 07:19 AM   #3
neufsix
Connoisseur
neufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheese
 
Posts: 57
Karma: 1010
Join Date: Jul 2011
Device: Archos A70 eReader, Kindle Touch, Sony PRS-T2
Thank you.

Strangely enough, I've just tried compiling using <dc:language>fr_oc</dc:language> and kindlegen does not complain.
neufsix is offline   Reply With Quote
Old 03-14-2013, 09:02 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by neufsix View Post
Strangely enough, I've just tried compiling using <dc:language>fr_oc</dc:language> and kindlegen does not complain.
AFAIK, KindleGen expects 2 letter language codes and ignores sub-languages. I.e. the language code of your .mobi file is now most likely French.
Doitsu is offline   Reply With Quote
Old 03-14-2013, 12:19 PM   #5
neufsix
Connoisseur
neufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheeseneufsix can extract oil from cheese
 
Posts: 57
Karma: 1010
Join Date: Jul 2011
Device: Archos A70 eReader, Kindle Touch, Sony PRS-T2
That's what I thought but it was more accurate than using ca for Catalan.

Thanks.
neufsix 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 Dependent Metadata Source xxx666yyy777 Calibre 2 03-20-2013 09:54 AM
Changing the language metadata Loonie Library Management 1 07-23-2011 01:37 PM
Language Metadata Amachete Library Management 1 04-30-2011 07:59 PM
Metadata to specify default language is English? kjk ePub 4 06-22-2010 04:05 PM
Language metadata Toxaris Calibre 1 11-19-2009 04:22 PM


All times are GMT -4. The time now is 12:44 PM.


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