Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-07-2025, 12:48 AM   #1
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
<meta> tag is deleted after execution of some commands

Hi, guys!


After executed these command (list automation), the
Code:
<meta charset="utf-8"/>
tag is deleted from every .xhtml in my book.

AutomatedList
Code:
automated02.txt


MendPrettifyHTML
GenerateTOC
UpdateManifestProperties
GenerateNCXGuideFromNav
Save
How can I prevent it from happening? Why is it happening? I do not want it nor is desirable.
celiapgt is offline   Reply With Quote
Old 05-07-2025, 02:55 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,822
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
A quick test says that Mend and Prettify will remove that line. It will also remove the long form: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />.

Since the ePub spec states the UTF-8 or UTF-16 MUST be used, that declaration is not needed though I used to see it all the time even as the first line of a CSS stylesheet. It will not trigger errors from epubcheck but a question about it years back stated that it is not needed and not recommended in either ePub2 or ePub3. Minor nit is that EPUB/A (archival) MUST use UTF-8.

See EPUB 3.3 specification (2025-Mar-27) for more information.
DNSB is offline   Reply With Quote
Old 05-07-2025, 09:16 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
And see the very first line of your file, you can see Sigil added the proper xml header that tells how that xhtml is encoded.

Sigil forces the conversion to utf-8 on first load, adds the proper xml header to indicate that and removes any existing meta tag that indicates any encoding info that might conflict. This is all per the epub spec. Remember this is an epub not an html file served by a webserver.
KevinH is offline   Reply With Quote
Old 05-09-2025, 02:56 PM   #4
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Thanks for the clarification on the specs! I must inform my collegues, who manage the template for ePUB3
celiapgt is offline   Reply With Quote
Old 05-09-2025, 02:58 PM   #5
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Thanks, KevinH. All clear now.
I guess I stil mantain the mind framework of web pages ;D
celiapgt is offline   Reply With Quote
Reply

Tags
automate list, mendify, meta tag


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does “Send-to-Kindle” (meta)tag the ePubs? troubledMan Amazon Kindle 2 11-08-2024 10:45 AM
Meta tag information iantresman Editor 4 12-06-2016 05:07 AM
HTML Calibre META tag reference - tags recognized / used? MrWarper Conversion 2 07-11-2012 09:54 PM
HTML Meta tag for cover image URL? MrPLD Conversion 5 01-29-2012 12:15 AM
Batch store meta-tag data in epub TPFKAS Conversion 9 12-07-2011 08:28 AM


All times are GMT -4. The time now is 01:57 AM.


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