Macros GUI integration

Along with the AncientGreek extension comes a library (also called AncientGreek) which provides some macros organized in modules. Not all macros are meant to be executed by the user, some of them are just helper functions for other functions. If you don't already know what they do, and why you should use them, please refer to the Macros page.

As of v. 1.2 all macros can be executed through the Ancient Greek Macros dialog shown below.

ancientgreek-dialog.png
AncientGreek dialog on Mac OS

The dialog is made modeless, so that even if it's open it won't block acces to the document. This is particularly useful when selecting parts of the document to be used as input for a macro.

The user can use the arrow keys to select the macro to be executed, press ENTER to execute the selected macro or Close to close the dialog. There is also an option to get to the offline Help page, to get more info about the selected function.

The dialog can be opened either from the AncientGreek menu (introduced in v. 1.3-beta7), or from its own toolbar (red omega with circumflex icon).

AncientGreek Menu^

The following image shows a representation of AncientGreek Menu.

menu.jpg

The main menu includes the following entries:

  1. This is a sub-menu which provides access to the offline help documents included in AncientGreek, or the online documentation.
  1. The execution of most of AncientGreek Macros takes a lot of time to complete. A way to reduce this time is locking the document (inhibiting document updates during macros execution). This means that any changes made to the document are not visible to the user until the document is unlocked.
  2. There is a disadvantage though; if anything happens and the macro crashes (terminates abnormally with due to errors) before the unlock command is executed, the document will remain locked until closed and reopened.
  3. Although I try hard to eliminate the possibility of macros crashing on you, this is not always the case. So, I have included this menu entry so that in case a user ends up with a locked document, he can easily unlock it and resume working.
  4. The unlock command can be consecutively executed until the document is unlocked.
  1. Performs actions necessary to be taken before uninstalling AncientGreek. The use of this entry is mandatory in case AncientGreek has to be uninstalled.
  1. Displays information about AncientGreek.

AncientGreek on the context menu^

Version 1.5 introduces AncientGreek context menu integration, thus improving user experience. The AncientGreek submenu (shown in the following image) currently contains all available legacy conversions.

ancientgreek-context-menu.jpg
AncientGreek context menu (Windows 8)

AncientGreek Secondary Toolbar^

As of v. 1.3-beta7 a secondary toolbar has been introduced in order to provide quick access to individual AncientGreek macros. Currently, it provides access to the following macros:

styles_16.png Styles Management
styles-16.png Styles Conversion
sampi_16.png Ancient Greek text detection
altc_16.png Alternative Characters Conversion
hfw-16.png Half/Fullwidth characters
unicode_16.png Convert Beta Code to Unicode
beta_16.png Convert Unicode to Beta Code
sp_u_16.png Convert SPIonic to Unicode
spionic_16.png Convert Unicode to SPIonic
esp_to_w_16.png Extended SPIonic to Fullwidth Unicode
sgu_16.png Convert Sgreek to Unicode
sg_16.png Convert Unicode to Sgreek
lgu_16.png Convert LaserGreek to Unicode
lg_16.png Convert Unicode to LaserGreek
gku-16.png Convert GreekKeys to Unicode
gk-16.png Convert Unicode to GreekKeys
Is-u-16.png Convert Ismini to Unicode
Is-16.png Convert Unicode to Ismini
wingreek-u-16.png Convert WinGreek to Unicode
wingreek-16.png Convert Unicode to WinGreek
son-of-wingreek-u-16.png Convert Son of WinGreek to Unicode
son-of-wingreek-16.png Convert Unicode to Son of WinGreek

Showing / hiding the toolbar^

Normally a toolbar would be toggled on and off from the View / Toolbars menu; this is actually the way to hide AncientGreek main toolbar. Unfortunately, this is not that easy to do with the Secondary Toolbar, because of the random name it gets at installation time.

In order to help you unclatter your main toolbar, I provide a macro (called ToggleSecToolbar) through the AncientGreek dialog, shown in the following picture.

secondary-toolbar-macro.png
Showing / hiding the Secondary Toolbar (Windows 7)

Selecting Secondary Toolbar under Available Macros (second to last entry) and pressing ENTER, will toggle the toolbar's visibility.

OpenOffice 4.0.1 seems to handle toolbars in a different way. The toolbar does not even appear under the View / Toolbars menu, and as a result this macro does not work. Furthermore, there is no way to make Secondary Toolbar visible after it has been hidden or closed.

In OpenOffice 4.1 things are better; the toolbar does go on and off, but if you open a new document after turning the toolbar off, you won't be able to make it appear, even though the dialog reports it's on. Then, if you open a new document, the toolbar will be visible again...

OpenOffice 4.1.2, on the other hand, seems to behave as expected (tested on Windows 8 and Mac OS X).

First Run^

After installing (or updating) AncientGreek you have to restart LibreOffice / OpenOffice. When you get back to it, there are a couple of things you have to do in order to get to a "normal" working environment.

Depending on your Operating System, you have to proceed as follows.

• On Windows

On Windows you will see something like the following

secondary-toolbar-windows-first-run.jpg
First run on Windows 7

As you can see the Secondary Toolbar is floating above the main toolbar and is named "Add-On 3". The name may be localized (if your installation is localized) and the number may differ also.

All you have to do is dock the Secondary Toolbar on the main toolbar and you are done.

• On Linux

On a Linux system you will see something like the following

secondary-toolbar-linux-first-run.jpg
First run on OpenSuse 13.1

The toolbar is again floating but now its name is "Add-On 4". The interesting thing here is that instead of icons, the toolbar is filled with text (actually the icons hint text).

All you have to do is dock the Secondary Toolbar on the main toolbar and restart again LibreOffice / OpenOffice. When it's back up and running the icons will be there.

Uninstalling AncientGreek^

AncientGreek has performed several customizations to OpenOffice/LibreOffice during its installation and function. In order to completely uninstall it, these customizations have to be undone.

This can be achieved using the "Uninstall Preparation" menu entry. When clicked, a confirmation dialog will be presented to the user:

uninstall-msg1.jpg
The Uninstall confirmation dialog on Mac OS

When "Yes" is clicked, all AncientGreek customization is undone and when finished, a relevant message is displayed:

uninstall-msg2.jpg

Direct access to the Macros^

This section will be useful to you in case you want further direct access to one of AncientGreek macros, by:

  1. Assigning keyboard shortcut for them (page: Shortcuts)
  2. Making them appear on a toolbar (page: Toolbar).
  3. Making them appear in a menu (page: Menu). As of v. 1.3-beta7 a menu named AncientGreek exists in the main menubar, so this step is not necessary any more. The page is left on-line just for reference.

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.

×

Info

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