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 08-04-2022, 08:45 AM   #1
Stahlkind
Junior Member
Stahlkind began at the beginning.
 
Stahlkind's Avatar
 
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
Stahlkind is offline   Reply With Quote
Old 08-04-2022, 10:01 AM   #2
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: 25,491
Karma: 175682994
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Stahlkind View Post
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?
No. Other than the Plugin shortcuts and the Automate Lists, Sigil toolbar buttons cannot be repurposed or customized.

Quote:
Originally Posted by Stahlkind View Post
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
I think you'll find that Sigil's "Clips" feature will simplify this process for you. The User Guide has a chapter on creating/managing reusable clips.
DiapDealer is offline   Reply With Quote
Advert
Old 08-04-2022, 10:53 AM   #3
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,530
Karma: 15600001
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 DiapDealer View Post
...
I think you'll find that Sigil's "Clips" feature will simplify this process for you. The User Guide has a chapter on creating/managing reusable clips.
+1 to Sigil Clips

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>
Turtle91 is offline   Reply With Quote
Old 08-04-2022, 11:40 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 66,878
Karma: 109791295
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by Turtle91 View Post
+1 to Sigil Clips

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>
I would do away with the font-size. It's not needed. Is there a reason for the letter spacing?
Code:
.sc {
  letter-spacing: 0.5pt;
  font-variant- small-caps;
  text-transform: lowercase;
}
JSWolf is online now   Reply With Quote
Old 08-04-2022, 12:02 PM   #5
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,530
Karma: 15600001
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 JSWolf View Post
I would do away with the font-size. It's not needed. Is there a reason for the letter spacing?
Code:
.sc {
  letter-spacing: 0.5pt;
  font-variant- small-caps;
  text-transform: lowercase;
}
That's the example the OP used...I was just showing him how to use Clips and classes vs inline styling.

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.
Turtle91 is offline   Reply With Quote
Advert
Old 08-04-2022, 12:06 PM   #6
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: 25,491
Karma: 175682994
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Yep. Focus on the question asked, Jon. Sigil clips is the answer.
DiapDealer is offline   Reply With Quote
Old 08-04-2022, 01:18 PM   #7
Stahlkind
Junior Member
Stahlkind began at the beginning.
 
Stahlkind's Avatar
 
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
Stahlkind is offline   Reply With Quote
Old 08-04-2022, 01:35 PM   #8
Stahlkind
Junior Member
Stahlkind began at the beginning.
 
Stahlkind's Avatar
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
Quote:
Originally Posted by JSWolf View Post
I would do away with the font-size. It's not needed. Is there a reason for the letter spacing?
Code:
.sc {
  letter-spacing: 0.5pt;
  font-variant- small-caps;
  text-transform: lowercase;
}
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
Stahlkind is offline   Reply With Quote
Old 08-04-2022, 01:52 PM   #9
Stahlkind
Junior Member
Stahlkind began at the beginning.
 
Stahlkind's Avatar
 
Posts: 6
Karma: 10
Join Date: Aug 2022
Location: Duisburg, Germany (NRW)
Device: Sigil-0.9.8-Windows (+1.9.10)
Quote:
Originally Posted by Turtle91 View Post
my css would simply be:
Code:
.sc {font-variant: small-caps}
Thanks, that sounds easy, but I can't get it right. In which css must this be so and what do I have to enter that it becomes small caps? Sorry for my lack of understanding.
Stahlkind is offline   Reply With Quote
Old 08-04-2022, 02:03 PM   #10
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: 20,593
Karma: 100000049
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Stahlkind View Post
Thanks, that sounds easy, but I can't get it right. In which css must this be so and what do I have to enter that it becomes small caps? Sorry for my lack of understanding.
That code snippet should be in a stylesheet linked to the html file. At the start of each html file, you should see <head>...</head>. If you have one or more linked stylesheets, you would see a line similar to:

Code:
<link href="../Styles/Stylesheet.css" type="text/css" rel="stylesheet"/>
In the html file, to apply small caps, I would use the below:

Code:
<span class="sc">The text you want in SmallCaps</span>
If you set up a clip as suggested by DiapDealer and Turtle91, you would simply select the text you want in small caps and apply the clip which makes it a lot easier for us fumble-fingered typists.

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?
DNSB is offline   Reply With Quote
Old 08-04-2022, 02:54 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: 25,491
Karma: 175682994
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DNSB View Post
Edit: Possible issue is that I don't remember using clips in 0.9.8 so not sure if the feature is available.
Good point. I'll have to check when the feature was added.

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.
DiapDealer is offline   Reply With Quote
Old 08-05-2022, 08:34 AM   #12
bookman156
Addict
bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.bookman156 can self-interpret dreams as they happen.
 
Posts: 297
Karma: 20000
Join Date: Mar 2016
Device: none
Quote:
Is there a reason for the letter spacing?
It's standard typographical practice, certainly since Robert Bringhurst's The Elements of Typographic Style, to add a little letter-spacing with small caps. I usually have 0.05em. If you're using true small caps it looks better, if just reduced caps it doesn't really help.
bookman156 is offline   Reply With Quote
Old 08-05-2022, 01:56 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 66,878
Karma: 109791295
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by bookman156 View Post
It's standard typographical practice, certainly since Robert Bringhurst's The Elements of Typographic Style, to add a little letter-spacing with small caps. I usually have 0.05em. If you're using true small caps it looks better, if just reduced caps it doesn't really help.
That book recommends a letter space of 10% of the size. So for a standard 1em size, that would be .1em and not .5em. This is not just with small caps, but with words with 3 or more uppercase letters next to each other.
JSWolf is online now   Reply With Quote
Old 08-05-2022, 02:09 PM   #14
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: 25,491
Karma: 175682994
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.
DiapDealer is offline   Reply With Quote
Old 08-05-2022, 04:04 PM   #15
Stahlkind
Junior Member
Stahlkind began at the beginning.
 
Stahlkind's Avatar
 
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...
Stahlkind 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
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


All times are GMT -4. The time now is 07:17 AM.


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