Skip to content

peter88213/swapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo swapper

An OpenOffice/LibreOffice Writer extension providing a macro that swaps two characters.

Example

This extension installs a macro without any controls. You will need to integrate it into the user interface yourself, and you have complete freedom of choice in doing so.

Download link

swapper-1.0.0.oxt

Set up

  • Install the extension either via double-clicking on the downloaded file in the Windows Explorer, or using the OpenOffice/LibreOffice Extension Manager.
  • In Writer, go to Tools > Customize and assign a keyboard shortcut to the "swap_characters" subroutine.

LibreOffice 7.6 screenshot

Tip

Optionally create a menu entry or a toolbar button and assign it to the macro.

Usage

  1. Place the cursor between the two characters to be swapped.
  2. Call up the macro, e.g. via the keyboard shortcut you assigned.
  3. The two characters are swapped, and the cursor is moved one position to the right.

See also

  • StyleSwitcher: Quickly switch between the style sheets of different document templates.
  • curly: Conversion of "curly quotes", typographical apostrophes, ellipses and so on in several languages.
  • emph: Use character styles instead of direct formatting to mark up text.

Credits

License

This extension is distributed under the MIT License.

About

An OpenOffice/LibreOffice Writer extension providing a macro that swaps two characters.

Topics

Resources

License

Stars

Watchers

Forks

Contributors