![]() |
#1 |
Connoisseur
![]() Posts: 60
Karma: 46
Join Date: Mar 2017
Device: None
|
Language metadata tag causes embedded python error
Hi,
An epub I have has the language metadata tag set to: <dc:language>eng</dc:language>. Invoking the metadata editor changes the tag to: <dc:language></dc:language>, which I assume is an incorrect. Invoking the editor a second time throws an embedded python error. To reproduce this behavior:
I can get around this by editing the opf and deleting the language tag but I wonder if there is a better way to deal with this situation. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,348
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,448
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes, "eng" is not a valid dc:language value. And the python error when using an empty language tag has already been fixed in master. Use the metadata editor and select a the dc language tag and select a valid language.
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Also see my post from a few months ago:
where I described the "eng" language mistake in more detail. In EPUB metadata (and HTML lang):
Quote:
Should there maybe be some auto-substitution of eng -> en instead of throwing it away / blanking it out? Last edited by Tex2002ans; 12-11-2022 at 03:45 PM. |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,348
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No. We're not going down the rabbit hole of trying to auto-fix incorrect language codes.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedded Python Error on Windows 7 | r5dehr9qcs | Sigil | 11 | 04-27-2022 06:06 AM |
Sigil not fully launching - Embedded Python error | BookWalker | Sigil | 54 | 01-08-2021 09:08 AM |
Metadata error setting language | thiago.eec | Library Management | 4 | 06-11-2019 09:01 PM |
fetch-ebook-metadata.exe python error | dzog | Calibre | 2 | 11-04-2016 05:26 AM |
Embedded Python Error? | darkbreath | Sigil | 13 | 10-14-2016 07:35 AM |