Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2021, 03:13 PM   #1
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
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, 04: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: 35,388
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
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, 04: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: 27,549
Karma: 193191846
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 04:28 PM.
DiapDealer is offline   Reply With Quote
Old 10-11-2021, 12:13 PM   #4
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 57
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-11-2021, 11:30 PM   #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: 2,297
Karma: 12126329
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-11-2021 at 11:43 PM.
Tex2002ans is offline   Reply With Quote
Advert
Old 10-12-2021, 01:51 AM   #6
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 57
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, 09: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: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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, 12: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,552
Karma: 14325282
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, 02: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: 2,297
Karma: 12126329
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, 02:23 PM   #10
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 57
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, 02: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: 27,549
Karma: 193191846
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, 02:31 PM   #12
Binchen
Connoisseur
Binchen began at the beginning.
 
Posts: 57
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, 03: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: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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, 03: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: 2,297
Karma: 12126329
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, 04: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: 27,549
Karma: 193191846
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 04:53 PM.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion to MOBI -- No Bolding PianoAl Conversion 3 01-08-2018 07:16 PM
Programming prs-t2 raikoug Sony Reader Dev Corner 2 05-05-2013 03:21 AM
Automatic Convert and Automatic Add not working together kylliancole Calibre 3 08-03-2012 11:57 PM
PRS-500 500 Programming MarzKrishna Sony Reader Dev Corner 1 12-17-2009 08:43 PM
Bolding in .lit Files Does Not Convert Armor78154 Sony Reader 4 10-24-2007 05:38 PM


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


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