Jump to content
You must now use your email address to sign in [click for more info] ×

automatic kerning before punctuation marks


Recommended Posts

Hello everyone,

today I have a very special problem. I need to add a bit more flesh before punctuation marks, notably ! and ?. They should be offset a bit more from the text than they usually are.

Now in a book it is a bit difficult to do everyone by hand.

I was unable to find an automatic kerning for this. Is there a way?
If not, it would be great to add the possibility to fix a certain kerning with a certain letter. 

i. e. + 30% before all ? and + 20 % before all !

 

Hopefully someone can help me out.

Thanks a lot!

H. 

Link to comment
Share on other sites

28 minutes ago, Gaunilo said:

I need to add a bit more flesh before punctuation marks, notably ! and ?. They should be offset a bit more from the text than they usually are.

Instead of trying to use kerning to achieve this you should do it by using a suitable Unicode space character: U+2008 PUNCTUATION SPACE or U+2009 THIN SPACE. The punctuation space is defined to be the same width as a period; the width of the thin space is slightly smaller.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

7 hours ago, Alfred said:

Instead of trying to use kerning to achieve this you should do it by using a suitable Unicode space character: U+2008 PUNCTUATION SPACE or U+2009 THIN SPACE. The punctuation space is defined to be the same width as a period; the width of the thin space is slightly smaller.

Thanks, and how do I use this in a whole book? 
Search and exchange? I usually find this rather… untrustworthy.

 

Link to comment
Share on other sites

6 minutes ago, Gaunilo said:

how do I use this in a whole book?

It shouldn’t be difficult, but I’ll leave it to someone else to come up with a reliable method!

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

8 hours ago, Alfred said:

space character

Then cannot be torn word and "?!" for automatic hyphenation or alignment? Are these gaps perceived as fixed - inseparable?

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

1 hour ago, Pšenda said:

Are these gaps perceived as fixed - inseparable?

My understanding is that they are both what is usually called ‘non-breaking’. So they would indeed be inseparable from the characters on either side.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

4 hours ago, Gaunilo said:

Thanks, and how do I use this in a whole book? 
Search and exchange? I usually find this rather… untrustworthy.

Yes, you can use Find & Replace for this. You can try it first in a small document until you know how it works and you trust it.

1. Make sure to set F&R to "Normal" mode (not "Regular Expressions") via the cog icon above the Find field.
2. Then type in the Find field for instance a . followed by a space (to avoid changing numbers as in "0.5"). Instead typing you also can copy/paste it from a text frame.
3. Prepare the "Replace" result in a text frame: From the menu Text > Insert > Spaces choose one of your choice (e.g. a "Sixths" space) to paste it at one spot in your text.
4. Copy this part "sixth-space . space" and place it in the Replace field.
5. Press Find
6. Press Replace
7. Press Replace All

With "Regular Expressions" there is even a more flexible way which allows to change different punctuation marks in one go. This "Regex" (or ~ "GREP") requires certain syntax and is more complex, especially since some punctuation marks are rather commands and need to be 'wrapped' to be treated as text characters.
https://www.boost.org/doc/libs/1_72_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

On 8/9/2020 at 1:34 AM, Gaunilo said:

i. e. + 30% before all ? and + 20 % before all !

That spacing is a decision by the font designer.
You may be able to simply fix the font.
If it can be modified ...
Just increase the left side bearing on those characters.
 

Link to comment
Share on other sites

29 minutes ago, LibreTraining said:

That spacing is a decision by the font designer.

The OP isn’t talking about side bearings. What’s under discussion here is typographical conventions in languages such as French, where punctuation such as exclamation marks and guillemets should have thin spaces separating them from preceding or enclosed characters.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

17 minutes ago, Alfred said:

The OP isn’t talking about side bearings. What’s under discussion here is typographical conventions in languages such as French, where punctuation such as exclamation marks and guillemets should have thin spaces separating them from preceding or enclosed characters.

For some reason I thought that was handled automatically by Publisher based on the spelling language settings.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

2 hours ago, Alfred said:

The OP isn’t talking about side bearings. What’s under discussion here is typographical conventions in languages such as French, where punctuation such as exclamation marks and guillemets should have thin spaces separating them from preceding or enclosed characters.

I am familiar with the thin spaces used in French for guillemots, etc.
But, I did not see any mention of a language in the original post, only a spacing issue (kerning).
Some fonts have very poor spacing settings for punctuation, and even across the entire font.

Until the original poster clarifies the actual issue ...
we do not know if it is a language related spaces issue, or a font related character spacing issue.
What is the language being used?
Is it a language which normally uses the "thin space" type spacing around punctuation?
What is the font being used?
Is the font some poorly made junk font, or a quality font?

It appears some of us made the assumption it was a language thin space issue,
just like I made the assumption is a character spacing issue.

@Gaunilo
Please clarify.

Link to comment
Share on other sites

26 minutes ago, LibreTraining said:

It appears some of us made the assumption it was a language thin space issue,
just like I made the assumption is a character spacing issue.

The reason why I made that assumption about thin spaces is that the OP said:

On 8/9/2020 at 9:34 AM, Gaunilo said:

I need to add a bit more flesh before punctuation marks, notably ! and ?. They should be offset a bit more from the text than they usually are.

That came across as a general comment, not tied to any particular font, but no doubt @Gaunilo will be able to provide clarification.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

  • 2 months later...

Sorry to have dropped out. It was actually a question of readability as well as typography that is considered correct in German speaking countries. 

It is not an issue any more. Due to a change of font, the problem solved itself. I guess the font used was badly spaced/kerned.

Thanks a lot and sorry for the silence on my part.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.