Insert Special Characters

Descrizione

Hai mai voluto inserire un carattere speciale lavorando con l’editor a blocchi di WordPress (Gutenberg) e improvvisamente ti sei trovato a rimpiangere i giorni del Classic Editor con il suo inserimento di caratteri speciali? Non succederà più, il plugin Insert Special Characters è qui per facilitare tutti i tuoi desideri di pubblicazione!

Nota: puoi visualizzare il popup con la scorciatoia ctrl/cmd + o.

Development takes place in the GitHub repository.

Note tecniche

Extending

To control the available tabs and characters, developers can filter the data set using the insertspecialcharacters-characters JavaScript (wp.hooks) filter.

For example, to create a character inserter that only provides currency symbols:

wp.hooks.addFilter(
    'insertspecialcharacters-characters',  // The filter name.
    'mycallback', // Our callback namespace.
    function( component ) { // The callback function.

        // Return the categories/characters to display.
        // The data structure is: { category: [ character data ], category2: ... }
        return {
            "Currency": [
                { "entity": "$", "hex": "", "name": "Dollar Sign", "char": "$" },
                { "entity": "€", "hex": "&#20AC;", "name": "Euro Sign", "char": "€" },
                { "entity": "¢", "hex": "&#00A2;", "name": "Cent Sign", "char": "¢" },
                { "entity": "£", "hex": "&#00A3;", "name": "Pound Sign", "char": "£" },
                { "entity": "¥", "hex": "&#00A5;", "name": "Yen Sign", "char": "¥" },
            ]
        };
    }
);

Screenshot

  • Example of special characters selection in the Block Editor.
  • “Special Characters” option in Paragraph Block menu.
  • Initial special characters, showing the “Math” character set.
  • Filtering the special characters via search.
  • Resulting inserted special character (note focus on special character, rest of window has been blurred).

Installazione

  1. Installa il plugin tramite il menu plugin oppure cercandolo e caricando il file .zip.
  2. Attiva il plugin.
  3. Utilizza Insert Special Characters!

FAQ

How come I do not see all the special characters?

When a character is displayed using a font that doesn’t support that character, a default “not defined” glyph from that font is used. The “not defined” glyph in most fonts has the appearance of a rectangular box, or some variation of that.

One example of a font with support for wide range of glyphs is the Noto family by Google Fonts, which can be loaded by the theme to render the missing characters.

Recensioni

21 Giugno 2024 1 risposta
As a lover of em dashes, en dashes, diacritics, and typography and Unicode in general, and a pedant for using the precise, proper characters where they are appropriate, this plugin does exactly what I need it to do. It works very similarly to the insert-special-characters feature of MediaWiki’s VisualEditor plugin, which I also love. Bravo for this, and please keep up the good work.
7 Ottobre 2020 1 risposta
THANK YOU! I am a typographer from way back when I was hand-setting (and pieing — the term for spilling) little pieces of metal in the forms of letters, numbers & dingbats. Special Characters is the WordPress feature I have missed most in Gutenberg, and your plugin is the first & only that makes inserting Special Characters easy and enjoyable. Look for a donation from this old type lover! ❤
28 Ottobre 2019 1 risposta
Thank You! It solves a big problem in Gutenberg, which misses this function!
3 Ottobre 2019 1 risposta
Thank you for this great plugin! WHY special characters are STILL absent from the Gutenberg Wordpress editor — though it has been requested numerous times — is quite the annoyance. This plugin is perfect! Thanks again!
1 Settembre 2019 1 risposta
This is perfect for me. Thanks for developing it!If there was an option to move it to the main toolbar without the need to use the dropdown, it would be a six-star product
31 Agosto 2019 1 risposta
This functionality has been missed and was surprised that it was omitted from Gutenberg. But, these folks did a great job. I loaded it to two sites and then edited posts adding special characters easily. Martin’s suggestions about the location of the icon and automatically sorting by most used is on target. I join him in asking for those improvements. Mostly, I want to say thank you!!!
Leggi tutte le recensioni di 7

Contributi e sviluppo

“Insert Special Characters” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Insert Special Characters” è stato tradotto in 5 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Insert Special Characters” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

1.1.2 – 2024-01-08

1.1.1 – 2023-10-17

  • Fixed: Address an issue where some blocks would crash due to a missing attribute (props @dkotter via #221).
  • Security: Bump @babel/traverse from 7.20.5 to 7.23.2 (props @dependabot, @dkotter via #219).

1.1.0 – 2023-10-16

1.0.7 – 2023-06-28

1.0.6 – 2023-02-07

Note that this release bumps the WordPress minimum from 5.7 to 6.1. and minimum PHP version from 5.6 to 7.4

1.0.5 – 2022-07-18

Note that this release bumps the WordPress minimum supported version from 5.4 to 5.5.

1.0.4 – 2022-01-27

1.0.3 – 2021-08-17

  • Added: Many new special characters (e.g., em dash, en dash, hair space, thin space, no-break space, en space, em space, zero width non-joiner, non-breaking hyphen) and groupings (Currency, Punctuation, Greek).
  • Added: Focus style on buttons to improve accessibility for keyboard users (props @samikeijonen).
  • Added: WP Acceptance tests (props @johnwatkins0, @jeffpaul).
  • Changed: Update to React Character Map v0.4.2 (props @johnwatkins0, @dinhtungdu, @jeffpaul).
  • Changed: Integrate @wordpress/scripts for building and linting (props @johnwatkins0, @ocean90, @adamsilverstein).
  • Changed: Renamed release branch from master to trunk, so please make sure to update and direct references to master in downstream code (props @jeffpaul).
  • Changed: Bump WordPress version “tested up to” 5.8 (props @jeffpaul, @davidchabbi, @pabamato, @ankitguptaindia, @phpbits, @BBerg10up).
  • Changed: Documentation updates (props @bobbingwide).
  • Fixed: Make UI text in the component translatable (props @johnwatkins0, @dinhtungdu).
  • Fixed: Popover initial focus on top instead of bottom or center of the contents (props @phpbits, @BBerg10up).
  • Fixed: Compatility with the new widget screen in WordPress 5.8 and formatting of returned elements (props @phpbits).
  • Security: Bump acorn from 5.7.3 to 5.7.4 (props @dependabot).
  • Security: Bump ini from 1.3.5 to 1.3.7 (props @dependabot).
  • Security: Bump elliptic from 6.5.2 to 6.5.4 (props @dependabot).
  • Security: Bump y18n from 4.0.0 to 4.0.1 (props @dependabot).
  • Security: Bump rmccue/requests from 1.7.0 to 1.8.0 (props @dependabot).
  • Security: Bump ssri from 6.0.1 to 6.0.2 (props @dependabot).
  • Security: Bump lodash from 4.17.15 to 4.17.21 (props @dependabot).
  • Security: Bump browserslist from 4.8.7 to 4.16.6 (props @dependabot).
  • Security: Bump path-parse from 1.0.6 to 1.0.7 (props @dependabot).

1.0.2 – 2019-11-22

  • Changed: Relicensed from MIT to GPLv2.
  • Fixed: Hook on enqueue_block_editor_assets so script is only enqueued in editor (props @adamsilverstein, @josch87).
  • Fixed: Register text domain to ensure translations can be loaded (props @ocean90).
  • Fixed: Bump WordPress version “tested up to” 5.3 (props @adamsilverstein).
  • Fixed: Documentation and credits (props @jeffpaul).

1.0.1 – 2019-09-06

1.0.0 – 2019-08-21