Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2011, 06:18 PM   #1
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
problem with italics

I'm working on a 16th century English book with literally thousands of changes from normal to italic, and back, text. Although I realize that the <i>/</i> are depreciated tags all the browsers and ADE accept them, I think because <i> is a LOT SHORTER than <span class="italic"> and the more correct tags would be much more difficult to incorporate into the epub.

Sigil generally accepts the <i> tags but occasionally even v.4 rejects it with Tidy turned off, and Sigil insists on introducing at the start of the offending file a new sgc-1 tag and inserting sgc-1 with other changes in place of <i>, sometimes everywhere in the file. ARGH! I thought that v.4 was done with such annoying inconveniences! At that point I absolutely must replace the tags and other Sigil changes with the css correct <span class="italic"> and </span> within either the entire file or just the offending paragraph, even though in the other files of the epub the <i> tags are accepted by Sigil without any objection. Any attempt to reintroduce the <i> </i> tags at the specific location causing the problem is met with continuing resistance by Sigil. Of course in a typical epub I might only need a few italics and I prefer using the css approved tags, but when there are many, many italic locations, then the css tags clutter the document.

It's odd but encouraging in that often only a single location within the entire epub will trigger Sigil's response.

Is there any way to insure that Sigil will accept the <i> tags? If not is it possible for the new versions to make that change?

Last edited by bobcdy; 08-11-2011 at 06:30 PM.
bobcdy is offline   Reply With Quote
Old 08-11-2011, 07:30 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Replace <i></i> with <em></em>. That should solve your problem.
JSWolf is offline   Reply With Quote
Old 08-11-2011, 07:47 PM   #3
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
JSWolf - thanks! I'll remember to use <em> in the future.

It seems to me though that the <em> tag, which I suppose stands for 'emphasis', is a poor choice of tags for 'italics'. Italics are not always used for emphasis, especially in older books, and other styles are also used for emphasis, such as all capitals, bold-face, or even smallcaps. In the book I'm working on italics are used for Latin and other foreign language texts, and for English poems, in addition to what I suppose is emphasis from context of the italics. I guess I don't understand precisely a well used tag such as <i> should be 'depreciated'; if <i> isn't acceptable, why not use <it> rather than <em>? After all the font-style is still 'italics'.

Bob

Last edited by bobcdy; 08-11-2011 at 07:51 PM.
bobcdy is offline   Reply With Quote
Old 08-11-2011, 08:10 PM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
It would be helpful to see an example, because this shouldn't be happening at all with Tidy clicked off. If it's not something you can post publicly on the issue tracker, contact John or me and we can mark it private.
charleski is offline   Reply With Quote
Old 08-11-2011, 10:24 PM   #5
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
As I mentioned in my original post, it was distinctly odd that only a single location where <i> triggered Sigil's reaction; the text at that location certainly seemed no different than in several hundred other locations that Sigil ignored. With Tidy clicked off, however, there is still some tidy-like responses that create xhtml corrections. I never have tried to note these responses, or to experiment to see if deleting the entire section around the offending <i> would take care of the problem.

For the most part, though, I really appreciate Sigil's little notice of an error that usually can be manually corrected easily.
bobcdy is offline   Reply With Quote
Old 08-12-2011, 02:17 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
The only times I say that behavior is when the complete paragraphs is in italics. So, for example:
<p><i>This line in italic.</i></p>

That example will be converted by Sigil to a separate class in the internal stylesheet.
Toxaris is offline   Reply With Quote
Old 08-12-2011, 04:12 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
By the way, <i> is deprecated (or disencouraged) because rather than specifying the style in the HTML you are supposed to specify why it needs a different style, and then specify the style in CSS. Something like this:

Code:
And then I found <em>him</em> on board the <span class="ship">Furious</span>, during the <span xml:lang="fr">hors-d'œuvres</span>.
even if all of them will be shown in italics:

Code:
em, span.ship, :lang(fr) { font-style: italics; }
they might be different in text-to-speech, for instance.

P.S. One might need more nesting levels:

Code:
em em, em span.ship, em :lang(fr) { font-style: normal; }
:lang(fr) em, :lang(fr) span.ship { font-style: normal; }

Last edited by Jellby; 08-13-2011 at 03:28 AM. Reason: oops, font-family -> font-style
Jellby is offline   Reply With Quote
Old 08-13-2011, 12:45 AM   #8
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Jelby,
I appreciate your very well explained significance of the CSS tags - I've developed enough skill based on work on epubs pretty well (I hope) from working with html3 (and earlier versions), from study using Sigil and ADE of many examples given on the web including those of many MR epubs, and much trial and error experimentation, but I really don't understand much about the fundamental bases for css/xhtml or many details necessary for more complex css work.

Again, though, I'd like to mention that starting with an ocr scan of a very complex Old English book with thousands of italic-normal transitions of various types, trying to assign css tags in the proper way to describe each of the many different uses of italics would be extraordinarily complicated and difficult, and the result would be a multiplicity of tags to reflect Latin and French text, English poems, Latin poems, book titles, names of countries and towns, authors, etc. etc., and of course each tag would need to be pretty lengthy. Also each tag designating the use of italic text would probably be different if another epub creator was working with the same text. Why not then just use <i> as a style designation because the only other almost as simple tag <em> would give a false impression of representing emphasized text?

Bob

Last edited by bobcdy; 08-13-2011 at 01:13 AM.
bobcdy is offline   Reply With Quote
Old 08-13-2011, 03:29 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
In those cases, I "misuse" <em> (and <strong>) all the time, probably because I've never really seen or used a text-to-speech app (which could make a difference between emphasis and just italics). But yes, <i> (and <b>) would be more neutral, although apparently Tidy likes to fiddle with those.
Jellby is offline   Reply With Quote
Old 08-13-2011, 06:23 AM   #10
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by Toxaris View Post
The only times I say that behavior is when the complete paragraphs is in italics. So, for example:
<p><i>This line in italic.</i></p>

That example will be converted by Sigil to a separate class in the internal stylesheet.
I've tested several possible cases, and there's no style conversion at all as long as Tidy is turned off all the time. See the attached ePub: you can open it, edit it, switch view and save it without any of the italics tags being converted. As soon as Tidy is turned on, though, any change of view will trigger style reorganisation.

So if anyone sees italic tags being converted and is sure they had Tidy off the whole time, please post an example.
Attached Files
File Type: epub italics-test.epub (4.3 KB, 221 views)
charleski is offline   Reply With Quote
Old 08-13-2011, 08:51 AM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
I should have mentioned that it is a Tidy-effect. Sigil will not do it when Tidy is off.

With Tidy on, strike-through and underline (with <s></s> and <u></u>) will always be converted to an internal stylesheet.
Toxaris is offline   Reply With Quote
Old 08-14-2011, 04:21 AM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Toxaris View Post
With Tidy on, strike-through and underline (with <s></s> and <u></u>) will always be converted to an internal stylesheet.
Which is good, since they are not in the list of tags supported in ePUB.
Jellby is offline   Reply With Quote
Old 08-14-2011, 08:04 AM   #13
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
According to the specs both underline and line-through should be supported according to the CSS2 specs. So, perhaps not the corresponding tags, but I have not found any reference to the tags.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Italics, Bold, Etc. Arekuzanra Amazon Kindle 14 03-09-2014 11:01 PM
Italics and cover markjoseph ePub 4 02-18-2011 02:00 PM
LRF italics bremler Sony Reader 11 01-10-2010 05:22 AM
No italics roquet Bookeen 18 04-26-2009 03:57 PM
Fixing Book Designer problem with italics when converting from LIT angelyne Sony Reader 3 07-09-2007 11:32 AM


All times are GMT -4. The time now is 08:11 PM.


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