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 10-10-2021, 04:13 PM   #1
2scre
Connoisseur
2scre began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Oct 2017
Device: iPhone
Programming for automatic bolding?

1. once you highlight (select) a text, bold the highlighted text without having to press CMD B (if you can't do this within Sigil, can you do it with your computer system? For example run program: automatically applies bolding to everything that you highlight.)

2. once you highlight (select) a text, highlight the text with a certain background color

I'm using 0.9.14
2scre is offline   Reply With Quote
Old 10-10-2021, 05:12 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 16,443
Karma: 78740911
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
1. AFAIK, you can't do that. Not to mention what if I want to convert case or italicize or etc.?

And you might want to update to a current version of Sigil. 0.9.1.4 is an old version and includes the glitchy Book View that could rather often generate incorrect or downright illegal code.
DNSB is offline   Reply With Quote
Advert
Old 10-10-2021, 05:19 PM   #3
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: 24,682
Karma: 169420718
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
2) Text background color is always set using the epub's css/xhtml. And is never a good idea since that text could be rendered unreadable by user preferences.

Also, Sigil 0.9.14 is fairly old. We can't fix any bugs you may find in it.

Last edited by DiapDealer; 10-10-2021 at 05:28 PM.
DiapDealer is offline   Reply With Quote
Old 10-11-2021, 01:13 PM   #4
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Jul 2021
Device: Abakus
Quote:
Originally Posted by 2scre View Post
1. once you highlight (select) a text, bold the highlighted text without having to press CMD B
This is a good idea, but I don't want the text to be bold, but in flashing purple.
Binchen is offline   Reply With Quote
Old 10-12-2021, 12:30 AM   #5
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: 1,951
Karma: 8877603
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Binchen View Post
This is a good idea, but I don't want the text to be bold, but in flashing purple.
You should learn about Clips then.

1. Press Tools > Clip Editor (Ctrl+Alt+C).

2. Create a new Clip by pressing the "Add Entry" button:

Name: Highlight
Text: <span class="highlight">\1</span>

then press the "Save" button.

3. In Sigil's main window, View > Clips lets you see a list of all your clips.

4. Now, when you highlight text like the word "example" in this sentence:

Code:
<p>This is an example sentence.</p>
then press your "Highlight" Clip, this will happen:

Code:
<p>This is an <span class="highlight">example</span> sentence.</p>
5. Clips can also be controlled by shortcuts.

If you go into Edit > Preferences > Keyboard Shortcuts, you can assign shortcut keys for Clip 1 -> Clip 20.

By default, Clip 1 = Ctrl+Alt+1

This would allow you to highlight your text, then instead of pressing Ctrl+B (to bold), you instead press Ctrl+Alt+1 (to highlight).

(You can now change each clip's shortcut to whatever you want.)

Last edited by Tex2002ans; 10-12-2021 at 12:43 AM.
Tex2002ans is offline   Reply With Quote
Advert
Old 10-12-2021, 02:51 AM   #6
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Jul 2021
Device: Abakus
But the text is still not displayed in flashing purple.
Binchen is offline   Reply With Quote
Old 10-12-2021, 10:57 AM   #7
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: 2,351
Karma: 13611111
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
Tex - I’m pretty sure Binchen was being sarcastic - he knows you would have to attach the appropriate CSS file

In any case, the OP wanted it automatically - pushing CTRL-B was too much work. I would have recommended setting the keyboard shortcut to CTRL-SPC… that way it’s easier to find the space bar and you don’t need to lift your finger as high on the keyboard
Turtle91 is offline   Reply With Quote
Old 10-12-2021, 01:44 PM   #8
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,299
Karma: 13808266
Join Date: Nov 2019
Device: none
Can you make text flash without javascript? If so, dern, and all this time I've been mooning about the removed blink tag.
hobnail is offline   Reply With Quote
Old 10-12-2021, 03:14 PM   #9
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: 1,951
Karma: 8877603
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Turtle91 View Post
Tex - I’m pretty sure Binchen was being sarcastic - he knows you would have to attach the appropriate CSS file
Quoted the wrong person. Meant to do original poster, but the mini Clips tutorial still applies.

Quote:
Originally Posted by hobnail View Post
Can you make text flash without javascript? If so, dern, and all this time I've been mooning about the removed blink tag.
Yes. You could use CSS3 Animations.

See:

You'd be able to animate visibility or opacity.

Is blinking text a good idea in ebooks though? Definitely not.
Tex2002ans is offline   Reply With Quote
Old 10-12-2021, 03:23 PM   #10
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Jul 2021
Device: Abakus
Quote:
Originally Posted by Turtle91 View Post
Tex - I’m pretty sure Binchen was being sarcastic - he knows you would have to attach the appropriate CSS file
s/ he / she /

Quote:
Originally Posted by Tex2002ans View Post

Is blinking text a good idea in ebooks though? Definitely not.
Which reader supports CSS3?
Binchen is offline   Reply With Quote
Old 10-12-2021, 03:26 PM   #11
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: 24,682
Karma: 169420718
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quite a few epub3 readers support the CSS3 required by epub spec.
DiapDealer is offline   Reply With Quote
Old 10-12-2021, 03:31 PM   #12
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Jul 2021
Device: Abakus
"Quite a few" is not a valid answer to "which".
Binchen is offline   Reply With Quote
Old 10-12-2021, 04:10 PM   #13
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: 2,351
Karma: 13611111
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by Binchen View Post
s/ he / she /
Are you identifying your preferred pronouns?!?! In that case I’m still confused…lol

Should I have said “she”… if so, I humbly apologize!
Turtle91 is offline   Reply With Quote
Old 10-12-2021, 04:14 PM   #14
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: 1,951
Karma: 8877603
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Binchen View Post
Which reader supports CSS3?
Pretty much any one that follows the EPUB3 standards quite well:
  • Kobo (mobile/device)
  • PocketBook (mobile/device)
  • Gitden Reader (Android)
  • Thorium Reader (PC)
  • [...]

No idea if they'd support blinking animations though, never tested it.
Tex2002ans is offline   Reply With Quote
Old 10-12-2021, 05:31 PM   #15
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: 24,682
Karma: 169420718
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Binchen View Post
"Quite a few" is not a valid answer to "which".
I'm tired of whatever this weird game is. Feel free to declare yourself the winner.

Last edited by DiapDealer; 10-12-2021 at 05:53 PM.
DiapDealer is offline   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
Conversion to MOBI -- No Bolding PianoAl Conversion 3 01-08-2018 08:16 PM
Programming prs-t2 raikoug Sony Reader Dev Corner 2 05-05-2013 04:21 AM
Automatic Convert and Automatic Add not working together kylliancole Calibre 3 08-04-2012 12:57 AM
PRS-500 500 Programming MarzKrishna Sony Reader Dev Corner 1 12-17-2009 09:43 PM
Bolding in .lit Files Does Not Convert Armor78154 Sony Reader 4 10-24-2007 06:38 PM


All times are GMT -4. The time now is 04:27 AM.


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