Inserting macros into the toolbar

This page will show you how to customize LibreOffice text Formatting toolbar in order to add buttons to easily execute the AncientGreek extension user macros.

Use this procedure only in case you want to have direct access to one of the AncientGreek macros. Otherwise just use the AncientGreek dialog, menu or Secondary Toolbar

The following table shows the macros a user can safely execute, insert in menus and toolbars and assign keyboard shortcuts for.

Module Icon Macro
modDialog icon_16.png Main
Displays the AncientGreek main dialog
modManageStyles styles_16.png Main
Displays the Manage Styles dialog
modConvertStyles styles-16.png Main
Displays the Styles Conversion dialog
CharacterConversion extended_16.png GreekBasicToExtended
Converts Greek Basic Characters to Greek Extended Characters

basic_16.png GreekExtendedToBasic
Converts Greek Extended Characters to Greek Basic Characters

toNS_16.png ToNominaSacra
Overlines Nomina Sacra expressions

fromNS_16.png FromNominaSacra
Precedes Nomina Sacra expressions with an Overline character

unicode_16.png BetaCodeToUnicode
Converts a document or text selection from Beta Code to Unicode

beta_16.png UnicodeToBetaCode
Converts a document or text selection from Unicode to Beta Code

sp_u_16.png SPIonicToUnicode
Converts a document or text selection from SPIonic to Unicode

spionic_16.png UnicodeToSPIonic
Converts a document or text selection from Unicode to SPIonic

sgu_16.png SgreekToUnicode
Converts a document or text selection from Sgreek to Unicode

sg_16.png UnicodeToSgreek
Converts a document or text selection from Unicode to Sgreek

lgu_16.png LaserGreekToUnicode
Converts a document or text selection from LaserGreek to Unicode

lg_16.png UnicodeToLaserGreek
Converts a document or text selection from Unicode to LaserGreek

gku-16.png GreekKeysToUnicode
Converts a document or text selection from GreekKeys to Unicode

gk-16.png UnicodeToGreekKeys
Converts a document or text selection from Unicode to GreekKeys

Is-u-16.png IsminiToUnicode
Converts a document or text selection from Ismini to Unicode

Is-16.png UnicodeToIsmini
Converts a document or text selection from Unicode to Ismini

wingreek-u-16.png WinGreekToUnicode
Converts a document or text selection from WinGreek to Unicode

wingreek-16.png UnicodeToWinGreek
Converts a document or text selection from Unicode to WinGreek

son-of-wingreek-u-16.png SonOfWinGreekToUnicode
Converts a document or text selection from Son of WinGreek to Unicode

son-of-wingreek-16.png UnicodeToSonOfWinGreek
Converts a document or text selection from Unicode to Son of WinGreek
SPIonic esp_to_w_16.png ExtendedSPIonicToWideCharsWrapper
Converts AncientGreek Extended SPIonic expressions to Fullwidth / Halfwidth Unicode characters
AncientGreekLocale   SetAncientGreekLanguage
Changes text language to "Greek, Ancient"

  TohggleSecToolbar
Turns the Secondary Toolbar on or off
modTagFind itag_16.png openInsertTag
Displays the Insert Tag dialog
tag_16.png Main
Displays the Tags Conversion dialog
quot_16.png fixQuotationMark
Fixes double quotation marks
modInsertNominaSacra nom_16.png Main
Displays the Insert Nomina Sacra dialog
modAlternativeChars altc_16.png Main
Displays the Alternative Characters Conversion dialog
keybIbycus ib_16.png autoIbycus
Activates "Ibycus Keyboard Layout" and toggles "Greek Input" ON
modIbycusFind   Main
Opens Ibycus Keyboard Layout Search and Replace dialog
modHalfFull hfw-16.png Main
Converts half/fullwidth characters to Unicode and vise-versa
modAncCharDetect sampi_16.png Main
Detects Ancient Greek text found in the document and applies an (existing or new) Character Style on it
Composite from_comp_16.png ConvertFromComposite
Converts "composite" to "precomposed" characters

to_comp_16.png ConvertToComposite
Converts "precomposed" to "composite" characters

fix_comp_16.png RunFixComposite
Fixes "composite" characters errors
AncientGreek Extension Library User Macros

The easiest way to access the icons would be to open an offline help page (open AncientGreek Main Window and click on the Help button), and use the browser's location address to navigate to folder AncientGreek.

For example, if the browser's location address was "file:///C:/Users/spiros/AppData/
Roaming/LibreOffice/4/user/uno_packages/cacheuno_packages/lunti5.tmp_/
AncientGreek-1.6-beta9.oxt/
help/doc/macros.html
", you would find the icons in
"C:/Users/spiros/AppData/Roaming/LibreOffice/4/user/uno_packages/cache/
uno_packages/lunti5.tmp_/AncientGreek-1.6-beta9.oxt/
AncientGreek
".

You can use either the 16 or the 26 pixels size icons found in this folder, making sure that whatever you do, you do not remove them from this location.

The procedure shown here is performed on Windows XP running LibreOffice 4.2.1.1. You may experience some differences depending on your Operating System and version of LibreOffice or OpenOffice.

Furthermore, this procedure is based on AncientGreek v 1.1, so it handles the two macros present in that version, but one can follow it to handle any user macro that may be added in the future (contained in the above table).

toolbar-1.jpg

Right click the Formatting toolbar, and select Customize Toolbar.

toolbar-2.jpg

When the Customize window opens, go to the Toolbars tab, select Formatting under LibreOffice Writer Toolbars, and navigate to the very last entry of the Toolbar contents / Commands list. Then click the Add button.

toolbar-4.jpg

In the Category list, navigate to LibreOffice Macros / My Macros / AncientGreek / CharacterConversion and click on the Add button twice, and click Close to finalize the procedure.

toolbar-5.jpg

It's time to see the result!!! Just look at your Formatting toolbar... it should look like this.

×

Info

If a table is truncated, then you can see all its content by scrolling it to the right and back.