10-10-2021, 03:13 PM | #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 |
10-10-2021, 04:12 PM | #2 |
Bibliophagist
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. |
Advert | |
|
10-10-2021, 04:19 PM | #3 |
Grand Sorcerer
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. |
10-11-2021, 12:13 PM | #4 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
|
10-11-2021, 11:30 PM | #5 | |
Wizard
Posts: 2,297
Karma: 12126329
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 | |
|
10-12-2021, 01:51 AM | #6 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
But the text is still not displayed in flashing purple.
|
10-12-2021, 09:57 AM | #7 |
A Hairy Wizard
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 |
10-12-2021, 12:44 PM | #8 |
Running with scissors
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.
|
10-12-2021, 02:14 PM | #9 | ||
Wizard
Posts: 2,297
Karma: 12126329
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-12-2021, 02:23 PM | #10 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
|
10-12-2021, 02:26 PM | #11 |
Grand Sorcerer
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.
|
10-12-2021, 02:31 PM | #12 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Jul 2021
Device: Abakus
|
"Quite a few" is not a valid answer to "which".
|
10-12-2021, 03:10 PM | #13 |
A Hairy Wizard
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
|
|
10-12-2021, 03:14 PM | #14 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
10-12-2021, 04:31 PM | #15 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
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. |
|
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 |