08-04-2022, 08:45 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
|
Small caps (Kapitälchen)
Hello
I've been using Sigil since 2012 and my current version is (still) called 0.9.8 (I haven't really dealt with 1.9.10 yet), but I noticed that I've never needed the upper/lower case bar. Is it actually possible to convert these keys? I need the small caps function quite often in my texts, which I have to fumble together laboriously. I do it this way, by manually inserting the code "<span style="letter-spacing: 0.5pt; font-size: 1em; font-variant: small-caps;">example</span>". Is there any way to automate this, for example using macros or additional switches? Maybe there is already a solution for this, but could not find anything about it. With kind regards Dennis |
08-04-2022, 10:01 AM | #2 | ||
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
|
||
Advert | |
|
08-04-2022, 10:53 AM | #3 | |
A Hairy Wizard
Posts: 3,093
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:
set your clip to: <span class="sc">\1</span> They are very convenient - all you need to do is highlight the section and click on the clip. In your example I would definitely get away from using inline styling and set a class in your attached CSS style sheet. Code:
css: .sc {letter-spacing: 0.5pt; font-size: 1em; font-variant: small-caps;} html: <p>Phasellus nec <span class="sc">lorem dignissim</span>, sodales lorem ac, luctus nulla.</p> |
|
08-04-2022, 11:40 AM | #4 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.sc { letter-spacing: 0.5pt; font-variant- small-caps; text-transform: lowercase; } |
|
08-04-2022, 12:02 PM | #5 | |
A Hairy Wizard
Posts: 3,093
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:
I would not use letter-spacing either...unless there was a specific font/look that he was going for?? Same thing with the font...no need for font-size:1em as that is the default...unless the sc were being used in a section where the font-size had been changed to something else and he wanted the sc to stand out?? I also would not use text-transform: lowercase;...no need to force lowercase, I just type the letters using capital or lowercase letters as necessary. my css would simply be: Code:
.sc {font-variant: small-caps} Last edited by Turtle91; 08-04-2022 at 12:05 PM. |
|
Advert | |
|
08-04-2022, 12:06 PM | #6 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yep. Focus on the question asked, Jon. Sigil clips is the answer.
|
08-04-2022, 01:18 PM | #7 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
|
[QUOTE=DiapDealer;4245984]No. Other than the Plugin shortcuts and the Automate Lists, Sigil toolbar buttons cannot be repurposed or customized.
Thanks for the quick reply. Then I will go into the depths of the program. In German: wir schaffen das... regards |
08-04-2022, 01:35 PM | #8 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
|
Thank you for the hint and the tip. I don't know yet how to get the CSS. My specified text line had Sigil automatically corrected so. I do not know what all is needed. I try it now times as a programmier Legasteniker (dyslexic) whether possibly clips help me. regards
|
08-04-2022, 01:52 PM | #9 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
|
|
08-04-2022, 02:03 PM | #10 | |
Bibliophagist
Posts: 35,295
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<link href="../Styles/Stylesheet.css" type="text/css" rel="stylesheet"/> Code:
<span class="sc">The text you want in SmallCaps</span> Edit: Possible issue is that I don't remember using clips in 0.9.8 so not sure if the feature is available. Last edited by DNSB; 08-04-2022 at 02:08 PM. Reason: Did 0.9.8 have clips? |
|
08-04-2022, 02:54 PM | #11 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
EDIT: I don't know when clips were added for certain, but they're definitely there in 0.9.8. I can see the pieces in the source code. Last edited by DiapDealer; 08-04-2022 at 03:04 PM. |
|
08-05-2022, 08:34 AM | #12 | |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
08-05-2022, 01:56 PM | #13 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-05-2022, 02:09 PM | #14 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Please focus, people. The typographical practice of letter-spacing has nothing to with how to use Sigil clips to insert oft-used snippets of code. Save the typography discussions (as well as generic css best-practices) for the EPUB or Workshop forums. If the Sigil-specific portion of the discussion has run its course, I'll gladly close the thread.
|
08-05-2022, 04:04 PM | #15 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
|
[QUOTE=DNSB;4246043]
Thank you for the detailed and good description. So slowly dries my fear sweat... |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
no small caps? | fbrzvnrnd | KOReader | 34 | 03-13-2021 06:21 AM |
Small caps | JLius | ePub | 10 | 06-09-2014 01:37 AM |
Small caps | Notjohn | Sigil | 9 | 02-23-2013 10:19 AM |
Small Caps | djulian | Kindle Formats | 2 | 04-05-2012 08:48 AM |
small caps | yuxi_kelly | ePub | 20 | 06-05-2011 12:04 AM |