Admin
Character Handling

Configure quote style in Purple Hub

9min

Purple Hub



Summary

In Purple Hub, you can choose what type of quotes and apostrophes are entered by default when editing content. This allows you to work with quotes in the style you define, in line with your brand's CI. This article will guide you through the process of setting this up in Purple Hub, as well as related punctuation settings.



Preconditions



Set up: Quotation marks and apostrophe

To achieve a consistent style for quotes in your articles, define the desired quotation characters and the apostrophe character in Purple Hub -> Settings -> Purple Hub -> Base Settings-> Default quotation marks.

If you have multi-language support enabled (see Set up machine translations), you can configure different quote styles per language, and the correct style will be enforced based on the language of the post you are editing.

Defining the quote and apostrophe characters
Defining the quote and apostrophe characters


Enter the hexadecimal Unicode number representing the characters (omitting any potentially leading U+). There will be a small preview showing how a quoted word or a word with the given apostrophe will look like.

Don't forget to click 'Save Settings' at the bottom of the page to make your changes take effect.

When this setting is defined, the configured quote and apostrophe style will automatically be applied directly while editing an article.

Existing articles are not automatically updated, but existing text is updated when the editor is opened, so all previously published articles will initially remain unchanged. However, once an article is opened for editing, the quotes are automatically adjusted. This means that to adjust the quotes in an old article, all you need to do is open it and republish/update it.

Additionally, the configured quote and apostrophe style is displayed in the lower right corner of the editor.

Example
Example


Automatic use of special space characters

Relatedly, there is a setting for automatically inserting "narrow non-breaking space" characters at fitting locations, like between a number and its unit, or between a number and its leading sign. These special characters are smaller than a normal space character, and prevent an automatic line break at this location, asserting that the number is always displayed on a single line of text. Read more here.



Enabling automatic NNBSP-Insertion
Enabling automatic NNBSP-Insertion


Affected blocks

This system of automatic quote/apostrophe/NNBSP replacement should work in all text blocks, as well as e.g. image captions and alt texts. It is deliberately not affecting blocks like the HTML, Code, or Preformatted block, as those may need to contain text with special formatting where the original quotes need to be preserved.



Affecting new content

Once a quote style is configured, it automatically gets applied to any new content in the HUB, including content that is not manually created. This includes e.g. using the HUB import API (see Hub Import API) to import existing external content, or using machine translation to automatically create translated variants of an article (see Use machine translations of article contents with DeepL).