Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2023, 12:37 PM   #16
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
It is a real shame that Windows does not have an os level CrashReporting tool built-in that can provide real backtraces for all threads and libs like macOS does. Makes it very easy for even novice users to provide information useful for determining the cause of the crash and getting that info to developers.

I truly wonder if there exists an open source Windows specific crash reporting backtrace tool we could build into Sigil on Windows.

Doesn't chrome browser on Windows have something like that?
KevinH is online now   Reply With Quote
Old 12-01-2023, 11:06 AM   #17
Vanguard3000
Zealot
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 149
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
Hey, found another small multi-display issue - this time pretty trivial compared with the one I had in v2.0.0:

If you minimize a Sigil instance on your secondary display, the reopen it, it'll reopen on the main display.

That's it. That's the bug. As I said it's pretty minor but I felt I'd put it on your radar. Hopefully it's got a common root cause as the issue with context menus showing on the wrong monitor, and a similar adjustment can be applied.

Thanks for everything, fellas!
Vanguard3000 is offline   Reply With Quote
Old 12-01-2023, 12:44 PM   #18
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
That is Qt. I 'll look for an official Qt bug report and solution but I would not hold my breath as this would be a very low priority bug for them.
KevinH is online now   Reply With Quote
Old 12-03-2023, 01:44 AM   #19
Vanguard3000
Zealot
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 149
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
That's fine; it's a pretty minor nuisance. I just wanted to let you know. Thanks!
Vanguard3000 is offline   Reply With Quote
Old 12-10-2023, 08:38 AM   #20
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 425
Karma: 77256
Join Date: Sep 2011
Device: none
Of some possible new features, as I often edit very long and complex works, I may have EPUBs with hundreds of images, numerous CSS classes, etc., many anchors and links, etc. Perhaps in numerous places such as right click an element, go to source link (maybe that's already there), rename class or id even from a link or element, right click img tag and rename class or image, etc. Maybe some properties panel that is context sensitive that makes such edits possible.

Who knows, For complex works, more contextual aware editing with right click or something would so much significantly reduce effort. At the moment, just as with code there are editors that make refactoring easy, for XHTML if one thinks of it as a project such too would be nice. Perhaps complex yet maybe a few little things along the way here and there.
democrite is offline   Reply With Quote
Old 12-10-2023, 09:31 AM   #21
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
Unfortunately, these are too vague to be useful as feature suggestions. Please be very very specific when requesting a new feature and please do not suggest things that can already be done (such as going to class definition in css by Ctrl clicking on class in element in CodeView) or that can be done with just setting a different OpenWith editor.

I can not read minds so explaining exactly what the new feature would do, how it would be launched, and why it is important so that others could comment on the suggestion's merits.
KevinH is online now   Reply With Quote
Old 12-10-2023, 10:28 AM   #22
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,046
Karma: 18727051
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I know we’ve talked about this before, but your mention of ctrl-clicking a class reminded me I’m still seeing this problem:

If I ctrl-click on a class in a div (such as the "ack" below) I am taken to the top of the stylesheet, as if it couldn’t find the class. This is most likely due to my use of descendent combinators. I usually have a default <div> style with custom styling for items within the <div>. eg. div.blio p {}

Code:
HTML:
<div class="ack">
    <h2>Acknowledgments</h2>

    <p>I have no idea why this isn't working......</p>
    <p>yadda yadda</p>
  </div>


CSS:
/* Division section styles */
/* Default */

div {
	text-indent: 0;
	margin: 2em;
}

/* Custom */

div.ack p {
	margin: 0 0 0.5em;
	font-size: 1.15em;
	text-align: left;
	text-indent: 0;
}

div.copy p {
	margin: 0 0 0.75em;
	font-size: 0.85em;
	text-align: center;
	text-indent: 0;
}

div.blio p {
	margin: 0 0 0.5em;
	font-size: 1em;
	text-align: center;
	font-style: italic;
	text-indent: 0;
}

Is it possible to add another option before defaulting to the top of the sheet?
Code:
1) Find the class by itself on stylesheet and go there
2) Find the class as part of a combinator and go to the first instance
3) If unfound, goto top of stylesheet

Edit: Just to be clear - ctrl-click on a class will work properly if/when I explicitly define the class:

Code:
HTML:
  <div class="invite">
    <p class="title">Her Royal Majesty Queen Amidalla</p>
    <p>cordially invites you to fix this on 25 Dec 2023.</p>
    <p>If you fail, you will surely be declaring for the dark-side and
       shall be hunted down and squished like a bug!</p> /*get it - a bug - :D*/ 
  </div>

CSS:
div.invite {
	margin: 2em;
	width: fit-content;
	max-width: 95%;
}

div.invite p {
	margin-bottom: 0.5em;
	font-size: 1em;
	text-indent: 0;
	font-family: "Monotype Corsiva", "cursive", serif;
	font-style: italic;
}

Last edited by Turtle91; 12-10-2023 at 10:49 AM.
Turtle91 is online now   Reply With Quote
Old 12-10-2023, 11:37 AM   #23
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
I will look into it but ...

a combinator is technically a css selector and not a css class. Finding classes is one thing that only requires that elements class name. I could add the element name info but as you can have multiple descendants that would be an issue.

So technically, to make this work correctly I would the have to parse the entire xhtml file and try matching it against all linked css selectors and then track their specificity to find the highest one.

Unfortunately, that is not something easily done.

If you right click on the class="ack" on a div it should be able to find the div.ack if no ack exists in the css. That should work now if div.ack is a selector just not when it is only part of a combinator selector.

Perhaps I could extend that to match if just starting a selector? Would that help?

But right clicking in its child p (descendant combinator selector (or child)) and going to its selector would be a real problem.

It looks simple but it is not. That is why we restrict this feature to classes which is the most common case and not to selectors in general.

Last edited by KevinH; 12-10-2023 at 11:49 AM.
KevinH is online now   Reply With Quote
Old 12-10-2023, 01:06 PM   #24
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,046
Karma: 18727051
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I was thinking something along the lines of a standard "find:ack" with all css stylesheets selected. That only finds the letter combination of “ack” so somehow adding the element type might help?? eg. div. or p.

Of course, that is just my uninformed thought…
Turtle91 is online now   Reply With Quote
Old 12-10-2023, 01:15 PM   #25
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
It is not a string search in the css file. Instead the css file is fully parsed and multiple selectors are split to create individual versions and the parser is used to find the line of the source code where that selector is defined.

But I could change the "match a selector" code to either be a full match or to match the first part of a combinator selector - just not later targets in that combinator as that would require a full parsing of the xhtml as well as specificity calculations.

Would that help?

Quote:
Originally Posted by Turtle91 View Post
I was thinking something along the lines of a standard "find:ack" with all css stylesheets selected. That only finds the letter combination of “ack” so somehow adding the element type might help?? eg. div. or p.

Of course, that is just my uninformed thought…

Last edited by KevinH; 12-10-2023 at 02:04 PM.
KevinH is online now   Reply With Quote
Old 12-10-2023, 02:04 PM   #26
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,046
Karma: 18727051
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire


Yeeessssss…. That would be helpful.

I’m hoping you understood everything you just said FAR better than me…
Turtle91 is online now   Reply With Quote
Old 12-10-2023, 02:49 PM   #27
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
Okay, I will work on adding that ability to look at combinator selectors starting pieces when no general matches are found.
KevinH is online now   Reply With Quote
Old 12-10-2023, 06:22 PM   #28
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,046
Karma: 18727051
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Thank you kind sir!
Turtle91 is online now   Reply With Quote
Old 12-10-2023, 08:26 PM   #29
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: 7,423
Karma: 5432724
Join Date: Nov 2009
Device: many
@Turtle91

Had some free time this evening (being retired is truly wonderful!) so I implemented my approach to this and pushed it to master.

Using your example css file and example xhtml, I tested the results and it does find div.ack now.

This feature will be part of the next release.

Hope this helps. I do not think css combinator use is heavy in epubs but it may be more traction in epub3 e-readers.

Kevin
KevinH is online now   Reply With Quote
Old 12-10-2023, 08:38 PM   #30
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,046
Karma: 18727051
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Awesome! Thanks!!
Turtle91 is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil-1.5.1 Released DiapDealer Sigil 27 04-15-2021 11:27 AM
Sigil-1.3.0 Released DiapDealer Sigil 8 09-15-2020 09:03 AM
Sigil-0.9.17 Released DiapDealer Sigil 50 08-15-2019 12:12 AM
Sigil-0.9.13 Released DiapDealer Sigil 201 05-13-2019 07:13 PM
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 KevinH Sigil 106 10-04-2015 11:41 AM


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


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