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-22-2023, 12:55 PM   #16
StephV
Member
StephV began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Nov 2020
Device: none
Thank you all for the info! I'm definitely taking a lot of notes and will see what I can add/modify to my workflow. I'm definitely giving the clips feature a solid try. Had I realized what it did sooner, it might have been adopted a long, long time ago.
I rarely have the time to sit and just learn so it's a great opportunity for that.

I'll also have to check what SavedSearches and and Find&Replace lists can provide for us. I already do use standard Find&Replace a whole lot, but I haven't dabbled in Regex much if at all (lack of time and potential brain implosion trying to cram too much info at once), but that's definitely in the "to learn" list since a long time ago (But EPUB3.3 revisions and WAI-ARIA 1.2 have taken a bigger priority recently).

I skimmed a bit through the Semantic Markup Question! topic and boy do I wish it was that simple for us. Certifiers tend to be the ones to request us to go overboard and I neither have the time nor the ressources to fight them on it. It's often quicker to just... Do what they ask us...

But none of what was explained to me is lost, I'm pinning topics and stuff and will go through recommended threads as I go (but right now it's high season for book releases so I don't think I'll have a lot of time to dedicate on learning beyond Clips this month... )

StephV is offline   Reply With Quote
Old 08-22-2023, 01:57 PM   #17
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by StephV View Post
Thank you all for the info! I'm definitely taking a lot of notes and will see what I can add/modify to my workflow. I'm definitely giving the clips feature a solid try. Had I realized what it did sooner, it might have been adopted a long, long time ago.
I rarely have the time to sit and just learn so it's a great opportunity for that.


Quote:
Originally Posted by StephV View Post
I already do use standard Find&Replace a whole lot, but I haven't dabbled in Regex much if at all
Just think of Regular Expressions as "search using patterns".

Instead of individually searching for things like:
  • Chapter 1
  • Chapter 2
  • Chapter 3
  • [...]
  • Chapter 100

you can do a single regex search like:
  • Chapter \d+
    • Find the word "Chapter" followed by "ONE OR MORE OF ANY NUMBER".

These are INCREDIBLY powerful, and can save you SO MUCH TIME once you understand some of the very basics.

For more examples, see:

and type this into your favorite search engine:

Code:
"regular expressions" Tex2002ans site:mobileread.com
"regex" Tex2002ans site:mobileread.com
You'll come across hundreds of topics where I've done a step-by-step breakdown of regexes + gave tons of helpful examples.

- - -

If you want even more, you can search:

Code:
"regular expressions" Tex2002ans site:reddit.com/r/libreoffice
That will show you ~100 of my LibreOffice explanations too (these patterns can typically be used in Word too).

Once you learn to "think in patterns", search/replace becomes SO MUCH better.

Here's a few recent examples:

- - -

Quote:
Originally Posted by StephV View Post
[...] so I don't think I'll have a lot of time to dedicate on learning beyond Clips this month... )
Spend a little time up front learning how to use the tools more efficiently and you'll save a ton of time in the long-run.

Same with learning Styles in Word/LibreOffice! Spend less than 30 minutes learning Styles, and you'll save yourself hundreds of hours of formatting headaches.

There's so many awesome bells and whistles hidden inside of Sigil/Calibre. Take full advantage of them!

Another one you might like is Sigil's fantastic Reports:
  • Tools > Reports (Ctrl+Shift+R)

to see a few awesome tricks with that, see my post in:

Last edited by Tex2002ans; 08-22-2023 at 02:10 PM.
Tex2002ans is offline   Reply With Quote
Advert
Old 09-02-2023, 03:31 PM   #18
Coldturkey
Junior Member
Coldturkey began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2018
Device: IPad mini
Quote:
Originally Posted by KevinH View Post
As a compromise, we had added code to allow drop in CodeView, but only if a specific environment variable is set by the user.

This will be an entirely unsupported feature (meaning no bug reports concerning it will be accepted).

So starting with the quickly forthcoming (maybe tonight) Sigil-2.0.1 release:

setting the following environment variable:

SIGIL_ALLOW_CODEVIEW_DROP

to have the value 1 before launching Sigil should allow your old workflow to continue.

Hope this helps.
I'd like to try that. Can you please explain how i can change the environment variable? I've done a couple of different searches but can't find anything on how to do this.
Coldturkey is offline   Reply With Quote
Old 09-02-2023, 03:48 PM   #19
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Search for setting environment variables in Windows (or whatever your OS might be). There's tons of HOWTOs and videos out there.
DiapDealer is offline   Reply With Quote
Old 09-03-2023, 12:33 PM   #20
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This marks the one and only time I will describe how to create environment variables in Windows 10/11. Bookmark this post for future reference.

1) type 'env' (no quotes) in the taskbar search area
2) click the resulting 'Edit system environment variables' link
3) click the Environment Variables button at the bottom of the open Advanced tab
4) in the User variables for <user> section, click the 'New' button.
5) in the 'Variable name:' field, type SIGIL_ALLOW_CODEVIEW_DROP
6) in the 'Variable value:' field, type '1' (no quotes)
7) click the OK button
8) click the OK button
9) click the OK button
10) Launch Sigil and verify dropping in Code View works.

To disable it again:
1) repeat steps 1-3 above
2) highlight SIGIL_ALLOW_CODEVIEW_DROP in the top window and click the 'Delete' button
3) click OK
4) click OK
5) launch Sigil and verify dropping text in Code View no longer works.

Last edited by DiapDealer; 09-03-2023 at 12:40 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 09-03-2023, 01:45 PM   #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,727
Karma: 5444398
Join Date: Nov 2009
Device: many
There really are lots of sites that explain how to do this in great detail.

A simple google search of:

"how to set an environment variable in windows"

gives pages and pages of hits.

Here is one with graphics ...

https://geekflare.com/system-environ...es-in-windows/

Perhaps we should make your post and this link an FAQ or Pinned Thread.
KevinH is offline   Reply With Quote
Old 09-03-2023, 06:51 PM   #22
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,653
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I've used this free gadget since XP ==>> Rapid Environment Editor

BR
BetterRed is offline   Reply With Quote
Old 09-05-2023, 03:13 AM   #23
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 101
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Thanks for re-enabling this.

I also rely on drag and drop. It’s incredibly useful and worked fine for me before (but I’m using Linux rather than Windows). It’s an integral part of editing and I was surprised to see it had been dumped.

I also use Clips constantly, but they are two completely different things.
seanos is offline   Reply With Quote
Old 09-05-2023, 05:36 AM   #24
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,727
Karma: 5444398
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by seanos View Post
Thanks for re-enabling this.
...
I also use Clips constantly, but they are two completely different things.
Not if dragging and dropping text bits from an outside sheet of commonly added text strings. That was the whole reason why we recommended clips.
KevinH is offline   Reply With Quote
Old 09-05-2023, 11:35 PM   #25
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 101
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Yes, but I’m not doing that and was just trying to flag that people can (and do) use drag and drop in legitimately useful ways.

I barely use it in other programs because the standard keyboard navigation/selection methods I learnt long ago work fine for ordinary text. They don’t work well with tags though, so if you need to regularly work on text with unpredictable, badly nested tags, drag and drop is very useful.
seanos is offline   Reply With Quote
Old 09-06-2023, 03:23 PM   #26
Coldturkey
Junior Member
Coldturkey began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2018
Device: IPad mini
Red face

Quote:
Originally Posted by DiapDealer View Post
This marks the one and only time I will describe how to create environment variables in Windows 10/11. Bookmark this post for future reference.

1) type 'env' (no quotes) in the taskbar search area
2) click the resulting 'Edit system environment variables' link
3) click the Environment Variables button at the bottom of the open Advanced tab
4) in the User variables for <user> section, click the 'New' button.
5) in the 'Variable name:' field, type SIGIL_ALLOW_CODEVIEW_DROP
6) in the 'Variable value:' field, type '1' (no quotes)
7) click the OK button
8) click the OK button
9) click the OK button
10) Launch Sigil and verify dropping in Code View works.

To disable it again:
1) repeat steps 1-3 above
2) highlight SIGIL_ALLOW_CODEVIEW_DROP in the top window and click the 'Delete' button
3) click OK
4) click OK
5) launch Sigil and verify dropping text in Code View no longer works.

Very clear instructions. Thanks for taking the time to do that.
In my defence (weak though it is) I thought environment variables was a Sigil thing, I didn't realise it was for Windows as a whole so didn't look at the google search output for that.
Coldturkey is offline   Reply With Quote
Old 09-06-2023, 05:02 PM   #27
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,596
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Coldturkey View Post

Very clear instructions. Thanks for taking the time to do that.
No problem.

Quote:
Originally Posted by Coldturkey View Post
In my defence (weak though it is) I thought environment variables was a Sigil thing, I didn't realise it was for Windows as a whole so didn't look at the google search output for that.
I sort of got that impression. That's why I changed my mind and provided instructions.
DiapDealer is offline   Reply With Quote
Old 09-09-2023, 02:33 AM   #28
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 101
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Instructions for Linux

  1. Find the .desktop file for Sigil (/usr/share/applications/sigil.desktop)
  2. Copy the file to your applications folder (so it’s not overwritten when Sigil is updated) — in a terminal:
    Code:
    cp /usr/share/applications/sigil.desktop ~/.local/share/applications/sigil.desktop
  3. Open ~/.local/share/applications/sigil.desktop in a text editor and change the Exec line from Exec=sigil %F to Exec=env SIGIL_ALLOW_CODEVIEW_DROP=1 sigil %F
  4. Save & close the file
seanos is offline   Reply With Quote
Old 09-09-2023, 02:39 AM   #29
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 101
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Another oddity

I can understand not wanting to descend into a mire of drag & drop bugs that only affect a minority of users, but this is so odd I thought it was worth mentioning.

In Sigil 2.0.1, if I select text in the editor and hold Control to copy while dragging, as soon as I click the left mouse button the view is swapped to the style sheet as though I had pressed F3.

In the style sheet it works as expected.

99% sure this worked before.

Manjaro Linux, Sigil says Qt 5.15.10.
seanos is offline   Reply With Quote
Old 09-09-2023, 06:03 AM   #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,119
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
There is a specific feature that will take you to the style sheet if you ctrl-click on a class name. It’s intended to make it easier to edit the styles.

Are you sure you aren’t highlighting a class when you try and drag?
Turtle91 is online now   Reply With Quote
Reply

Tags
issue


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No more Drag and Drop? hard_boiled Library Management 14 09-29-2013 07:44 PM
Drag and Drop does not work Fossilbooks Kobo Reader 4 05-05-2011 09:27 PM
Drag 'n drop books Toxaris Calibre 0 03-12-2011 01:35 PM
Drag 'n' Drop Perkin Calibre 17 10-06-2010 11:46 AM
Drag and Drop jjjconnon Calibre 11 02-27-2010 11:59 PM


All times are GMT -4. The time now is 02:24 PM.


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