![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Dec 2014
Device: laptop & tablet
|
<em> </em> Tags
The <em> </em> Tag works with the PAGE information, but did not with the Chapter TITLE information. Any Ideas???
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,454
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I have no idea what you are asking? What do you mean by PAGE information exactly, and what do you mean with the Chapter TITLE information? Please provide an example of the code you are attempting to use and what you expect to see.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,301
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Welcome to MR thosp!
If you are referring to the <title> tag in the html page header Spoiler:
then the <em> tags will not work in the header title. Most apps/readers ignore that title tag anyway...it is even ok to leave that title tag empty like "<title></title>". |
![]() |
![]() |
![]() |
#4 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Thosp, you should have a style sheet, and it should contain a style for the <H1> heading (or whatever tag you use for chapter titles. For example:
h2 { margin-top:1em; font-size: 150%; text-indent: 0em; font-style: italic; text-align:center; } (I happen to use H2 for my chapter titles.) |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
em tags will work just as well, of course (except inside of title tags as @Turtle91 already specified).
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 11
Karma: 10
Join Date: Dec 2014
Device: laptop & tablet
|
Code Used:
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Chapter 21: The Power of "<em>The Thought</em>"</title> <link rel="stylesheet" href="../Styles/xht.css" type="text/css"/> </head> <body> <h2>Chapter 21: The Power of "<em>The Thought</em>"</h2> Desired Result: Chapter 21: The Power of "The Thought" - with The Thought in Italics! And yes, the TITLE info is used in the Table of Contents! |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I doubt that very highly. I know of no reading software that displays the contents on title tags -- in the table of contents or elsewhere. But it's easy enough to test. Change one one of the file's title text to something nonsensical and see. The Table of Contents text is determined by the contents of the toc.ncx, and most html table of contents are created from that NCX (or sometimes manually).
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
While not the <title> at the top of the HTML, in Sigil, you can do this: Code:
<h2 title="Chapter 21: The Power of “The Thought”">Chapter 21: The Power of "<em>The Thought</em>"</h2> But two things to note:
Last edited by Tex2002ans; 11-11-2017 at 01:19 AM. |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 2744
Join Date: Nov 2017
Device: all
|
The <title> should be populated with the name of the HTML document with no markup. That title gets read aloud in some voiceover/screen reader environments. A meaningful title is an accessibility best practice.
Many EPUBs have the title of the book in that field instead of the title the HTML file. Does anyone know of a script of plugin to fix it when it's the title of the book? It would be nice to have some automated way of grabbing the <h1> in the HTML file and plopping that into the <title> field? |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
A plugin that grabs the top header (either h1, h2 or h3) of the file and enter that in the title tag doesn't seem to difficult.
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 2744
Join Date: Nov 2017
Device: all
|
It would be super useful when remediating EPUBs for accessibility, Toxaris.
|
![]() |
![]() |
![]() |
#12 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In the case of a Sigil-specific plugin, maybe it should prioritize grabbing the title attribute over the text itself. Example: Code:
<h2 title="Chapter 2: The Cold Winter">Chapter 2</h2> And your basic: Code:
<h2>Chapter 2</h2> Side Note: For extra info, here is the EPUB Accessibility Techniques section on <title>s. Which leads to these three supplemental pages on WCAG2.0 (Web Content Accessibility Guidelines): https://www.w3.org/TR/WCAG20-TECHS/html.html#H25 https://www.w3.org/WAI/WCAG20/quickr...chanisms-title https://www.w3.org/TR/UNDERSTANDING-...sms-title.html Quote:
|
||
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can take a stab at something like that if/when I find some time. But given my current schedule, no one should use that as a reason NOT to beat me to the punch on it.
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing <div> tags to <p> tags | townsend | Sigil | 23 | 04-07-2013 08:07 AM |
Searching tags to show tags I want even when it has a tag I do not | Jade Aislin | Library Management | 2 | 04-25-2012 01:01 PM |
Calibre Tags & Aldiko Tags Not the Same | Themus | Calibre | 3 | 03-21-2012 08:23 PM |
deleting tags from available tags list | BeccaPrice | Calibre | 8 | 10-15-2011 11:39 AM |
Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-19-2011 11:18 PM |