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-21-2021, 09:55 AM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Maybe a bug?

Hi Kevin and Diap; I don't know if it's a bug or I'm doing something wrong. When one .xhtml file is linked to two or more css stylesheet, for example:

Code:
  <link href="../Styles/Style0003.css" type="text/css" rel="stylesheet"/>
  <link href="../Styles/Style0004.css" type="text/css" rel="stylesheet"/>
and I do right click in the second stylesheet linked (i.e. Style0004.css) and select the command "Go to link Or Style" (or press Ctrl+Click), Sigil goes to the first linked sheet (i.e. Style0003.css). The same happens when I select a style from the second sheet; Sigil always goes to the first sheet and does not go to the select style.

What is wrong?
Regards
RbnJrg is offline   Reply With Quote
Old 08-21-2021, 10:00 AM   #2
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,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Try using Go To Link or Style when the cursor in CV is on a class attribute that exists only in the second css file, and visa versa. Does that take you to the proper css sheets?

Yep - a bug as the CV code that handles this only looks at anchor tags "a" and not "link" tags. I can fix that.

Last edited by KevinH; 08-21-2021 at 10:49 AM.
KevinH is offline   Reply With Quote
Advert
Old 08-21-2021, 10:52 AM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
Try using Go To Link or Style when the cursor in CV is on a class attribute that exists only in the second css file, and visa versa. Does that take you to the proper css sheets?
Yes, it does take me to the proper place.

The issue seems to happen when I do click in the name of a stylesheet to open it in order to write a new style in it. When there is more than one sheet, always Sigil opens the first one.
RbnJrg is offline   Reply With Quote
Old 08-21-2021, 12:09 PM   #4
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,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes, from the looks of the code for GoToLinkOrStyle in CodeView, it was meant to work on href and src attributes that exist inside the body tag not inside of head. Also it improperly looked for a src attribute on link tags instead of href.

I have been able to fix these issues but understand, it will *NOT* recognize src attributes on script tags in head.

I have pushed this fix to master. It should be in the next release.
KevinH is offline   Reply With Quote
Old 08-21-2021, 12:47 PM   #5
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
I have been able to fix these issues but understand, it will *NOT* recognize src attributes on script tags in head.
Ok. Many thanks for the fix
RbnJrg is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] - M96 out of memory - [BUG] Alf77 Onyx Boox 5 02-05-2015 11:47 AM
Aura HD Possible 2.8.1 bug jackastor Kobo Reader 46 08-18-2013 04:22 PM
DR800 Help, I've got a bug!! A bug on my screen!! Franky iRex 4 06-21-2011 11:45 AM
Embedded font bug or CSS bug in ADE JSWolf ePub 10 06-11-2011 02:34 PM
PRS-505 bug or eBookLib bug? porkupan Sony Reader 3 10-07-2007 10:44 PM


All times are GMT -4. The time now is 07:11 AM.


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