![]() |
#1 |
Zealot
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,028
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,557
Karma: 204127028
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. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
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>
Code:
<p>This is an <span class="highlight">example</span> sentence.</p> 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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
But the text is still not displayed in flashing purple.
|
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/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 ![]() |
![]() |
![]() |
![]() |
#8 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
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.
|
![]() |
![]() |
![]() |
#9 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
![]() Quote:
See:
You'd be able to animate visibility or opacity. Is blinking text a good idea in ebooks though? Definitely not. |
||
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,557
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quite a few epub3 readers support the CSS3 required by epub spec.
|
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
"Quite a few" is not a valid answer to "which".
|
![]() |
![]() |
![]() |
#13 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,557
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |