Page tree

The current bar in the editor that enables adding special characters (currently non-breaking space, carriage return and tab) can be extended by characters, that can be defined in the configuration.

You can define language specific characters (different characters per language) and those characters will be loaded only for tasks with the matching target language.

  • use this config to add new or change existing values: runtimeOptions.editor.segments.editorSpecialCharacters
  • For now, the config will be overwritable only on system level, but this can change on future (overwritable on task level)
  • if "all" key is used as json key, those special characters will be listed for all languages

By default, translate5 delivers a basic list for characters which are disabled by default. If you want to activate those characters, just copy the json value from default field to the value field.

The default list and example of the config layout:


Config example
{
	"de": [{
		"unicode": "U+00AB",
		"vizulized": "«"
	}, {
		"unicode": "U+00BB",
		"vizulized": "»"
	}, {
		"unicode": "U+201E",
		"vizulized": "„"
	}, {
		"unicode": "U+201C",
		"vizulized": "“"
	}, {
		"unicode": "U+2013",
		"vizulized": "–"
	}, {
		"unicode": "U+00B2",
		"vizulized": "²"
	}, {
		"unicode": "U+2082",
		"vizulized": "₂"
	}, {
		"unicode": "U+2039",
		"vizulized": "‹"
	}, {
		"unicode": "U+203A",
		"vizulized": "›"
	}, {
		"unicode": "U+201A",
		"vizulized": "‚"
	}, {
		"unicode": "U+2018",
		"vizulized": "‘"
	}, {
		"unicode": "U+0160",
		"vizulized": "Š"
	}, {
		"unicode": "U+00A9",
		"vizulized": "©"
	}, {
		"unicode": "U+00AE",
		"vizulized": "®"
	}, {
		"unicode": "U+2122",
		"vizulized": "™"
	}],
	"fr": [{
		"unicode": "U+00AB",
		"vizulized": "«"
	}, {
		"unicode": "U+00BB",
		"vizulized": "»"
	}, {
		"unicode": "U+2013",
		"vizulized": "–"
	}, {
		"unicode": "U+00B2",
		"vizulized": "²"
	}, {
		"unicode": "U+2082",
		"vizulized": "₂"
	}, {
		"unicode": "U+2019",
		"vizulized": "’"
	}, {
		"unicode": "U+0160",
		"vizulized": "Š"
	}, {
		"unicode": "U+00A9",
		"vizulized": "©"
	}, {
		"unicode": "U+00AE",
		"vizulized": "®"
	}, {
		"unicode": "U+2122",
		"vizulized": "™"
	}, {
		"unicode": "U+0153",
		"vizulized": "œ"
	}],
	"it": [{
		"unicode": "U+00AB",
		"vizulized": "«"
	}, {
		"unicode": "U+00BB",
		"vizulized": "»"
	}, {
		"unicode": "U+00B2",
		"vizulized": "²"
	}, {
		"unicode": "U+2082",
		"vizulized": "₂"
	}, {
		"unicode": "U+2019",
		"vizulized": "’"
	}, {
		"unicode": "U+201C",
		"vizulized": "“"
	}, {
		"unicode": "U+201D",
		"vizulized": "”"
	}, {
		"unicode": "U+0160",
		"vizulized": "Š"
	}, {
		"unicode": "U+00A9",
		"vizulized": "©"
	}, {
		"unicode": "U+00AE",
		"vizulized": "®"
	}, {
		"unicode": "U+2122",
		"vizulized": "™"
	}],
	"en": [{
		"unicode": "U+00B2",
		"vizulized": "²"
	}, {
		"unicode": "U+2082",
		"vizulized": "₂"
	}, {
		"unicode": "U+2019",
		"vizulized": "’"
	}, {
		"unicode": "U+2018",
		"vizulized": "‘"
	}, {
		"unicode": "U+201C",
		"vizulized": "“"
	}, {
		"unicode": "U+201D",
		"vizulized": "”"
	}, {
		"unicode": "U+0160",
		"vizulized": "Š"
	}, {
		"unicode": "U+00A9",
		"vizulized": "©"
	}, {
		"unicode": "U+00AE",
		"vizulized": "®"
	}, {
		"unicode": "U+2122",
		"vizulized": "™"
	}]
}
  • No labels

2 Comments

  1. Aleksandar Mitrev Could you add the information where the configuration / JSON is to be found? Thanks!

  2. hi Felix Chantrel

    you can find this config in Zf_configuration table with name runtimeOptions.editor.segments.editorSpecialCharacters

    Currently this config is with level 1, which means it can not be changed in the translate5 UI and must be manually adjusted in the database.

    Best,

    Aleksandar