1.0.3 • Published 2 years ago

@phoenix-plugin-registry/smarkovic.transliteration v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Transliteration for Brackets

This extension provides text transliteration for Brackets.

The extension currently comes with support for:

  • Serbian Cyrillic to Serbian Latin (including reverse transliteration)
  • Serbian Cyrillic to US ASCII
  • Serbian Latin to US ASCII

Installation

To install this extension, please use the built-in Brackets Extension Manager (File → Extension Manager...), which will download the extension from the Extension Registry.

Features

  • Transliterate a selection or the entire document
  • Support for two-way (reverse) transliteration
  • Add custom transliteration tables and key bindings

Keyboard shortcuts

The following are the default keyboard shortcuts:

WindowsMacAssociated Command
Ctrl-Shift-TCmd-Shift-TDisplays transliteration options dialog
Ctrl-Shift-ICmd-Shift-ISerbian Cyrillic to Serbian Latin
Ctrl-Shift-NCmd-Shift-NSerbian Latin to Serbian Cyrillic
Ctrl-Shift-ACmd-Shift-ASerbian Cyrillic to US ASCII

If any of the shortcut keys conflict with your keyboard or you would prefer to use another shortcut key, you can override the keys as described here or customize the settings.js file.

Customization

You can add new transliteration tables and keyboard shortcuts by editing the settings.js file.

Here's a sample transliteration table from the "tables" array of the settings.js file:

{
    "name": "sr-sr@latin",
    "description": Strings.SETTINGS_TABLE_CYR2LAT,
    "reverse": true,
    "mappings": {
        "А": "A",
        "Б": "B",
           ...
        "Ш": "Š"
    }
}
FieldDescription
nameInternal name of the table
descriptionLocalized user-friendly name of the table (see nls/{locale}/strings.js)
reverseIs reverse transliteration possible? (true/false)
mappingsCharacter mappings

Here's a sample keyboard shortcut entry from the "shortcuts" array of the settings.js file:

{
    "id": "smarkovic.transliterate.cyr2lat",
    "title": Strings.SETTINGS_TABLE_CYR2LAT,
    "key": "Ctrl-Shift-I",
    "table": "sr-sr@latin",
    "reverse": false
}
FieldDescription
idInternal command ID (must start with "smarkovic.transliterate.")
titleLocalized user-friendly name of the shortcut (see nls/{locale}/strings.js)
keyKeyboard shortcut
tableTransliteration table to be used
reverseIs this a reverse transliteration? (true/false)

License

This extension is licensed under the MIT License.