ancientgreek-logo.png

Ancient Greek Language Support
for LibreOffice / OpenOffice
Version: 1.6-beta8

The Tags Conversion dialog^

The Tags Conversion dialog opens from the "AncientGreek / Legacy Encodings / Tags Conversion" menu. When one clicks this menu entry the following dialog appears.

tags-1.jpg
The Tags Conversion dialog on Mac OS.

The dialog is modal (blocks access to the document), which means that you will have a general overview of the text selected, but if it's too long, you won't be able to scroll up and down. It also means that if you need to make any changes to the document, you have to close and re-open it when editing is done.

The dialog can be separated it the follwoing sections:

This is where the "AncientGreek Tag" are inserted.

There are two ways to insert an "AncientGreek Tag": a) by typing it and b) by using one of the existing tags in the drop-down list.

One would start by typing a new "AncientGreek Tag", which will be validated as typed. When a valid tag is found, a document search will be automatically performed. If a match is found the "AncientGreek Tag" will be inserted to the list for future reference.

If the drop-down list is not empty, a tag can be selected from it. Selecting a tag will automatically start a document search.

This is where the type of conversion is selected. AncientGreek currently supports the following conversions:

unicode_16.png Beta Code to Unicode.

beta_16.png Unicode to Beta Code.
When selected, the following options are enabled:

  1. Capital Letters Only (TLG)

Enabling this option will make the converter produce capital ASCII characters, complying to TLG (Thesaurus Linguae Graecae). Otherwise, small ASCII characters will be used.

  1. Use simple sigma

This option has to do with the conversion of the Final Sigma (ς) and the Lunate Sigma Symbol (c), when converting text to Beta Code. Both of these letters can be converted to "S", but according to the The TLG® Beta Code Manual 2013, the Final Sigma (ς) can also be converted to "S2" and the Lunate Sigma Symbol (c) to "S3" ("*S3" for capital). So, when this option is enabled, the simple conversion ("S") will be used; if it's disabled, the complex one will be used ("S2" and "S3" respectively).

  1. Exclude lunate sigma

Enabling the previous option will result in eliminating any lunate sigma found in the document. In order to prevent this from happening, one can enable this option.

  1. Simplify stand-alone diacritics

Enabling this option will vastly increase the readability of raw Beta Code encoded text. All stand-alone diacritics will be encoded using their simple form; for example, Smooth breathing (psili), which is often used as an apostrophe too, would normally be converted to "%30", so the phrase "ἀλλ ὦ φίλη Λάκαινα" would become "A)LL%30 W)= FI/LH *LA/KAINA". When this option is enabled, this would become "A)LL) W)= FI/LH *LA/KAINA".

The values set using this dialog will be valid for the current session only. If you want to permanently set these parameters, please use AncientGreek Configuration dialog.

sp_u_16.png SPIonic to Unicode.

spionic_16.png Unicode to SPIonic.

sp_u_16.png Sgreek to Unicode.

sg_16.png Unicode to Sgreek.

lgu_16.png LaserGreek to Unicode.

lg_16.png Unicode to LaserGreek.

lgu_16.png GreekKeys to Unicode.

lg_16.png Unicode to GreekKeys.

Is-u-16.png Ismini to Unicode.

Is-16.png Unicode to Ismini.

wingreek-u-16.png WinGreek to Unicode.

If WinGreek configuration has not been preformed, this conversion will not be available.

wingreek-16.png Unicode to WinGreek.

If WinGreek configuration has not been preformed, this conversion will not be available.

wingreek-u-16.png Son of WinGreek to Unicode.

wingreek-16.png Unicode to Son of WinGreek.

This section contains buttons that perform navigation between tags, open tags, tags pairs, etc. and text conversion.

1. Navigation buttons^

go-up-tag.png go-down-tag.png Navigates you to the next/previous starting/ending tag. When a starting/ending tag is selected, replacing is inhibited.

go-up-unmatched.png go-down-unmatched.png Navigates you to the next/previous open starting/ending tag (if open tags are found). These two buttons are enabled when the "Only valid pair tags" option is unchecked, so replacing is inhibited.

go-up.png go-down.png Navigates you to the next/previous tag pair, effectively selecting the text to convert.

2. Conversion buttons^

These two buttons are enabled when the "Only valid pair tags" option is unchecked, so replacing is inhibited.

bottom.png Converts the selected tag. When the conversion is done, the converted tag is removed from the tags list and the next tag is selected. If no more tags are available, the message "Nothing found..." is displayed, which means that the dialog can now be closed.

Using this button, one could easily convert consecutive tag pairs to different encodings.

stock_media-next.png Converts all tags and closes the dialog.

3. Icons Selection button^

image.png Changes the active icon set.

The following options are also available:

1. Only valid pair tags^

When this option is enabled, only "valid" tag pairs are taken into account and both conversion buttons get enabled, so that text conversion is possible.

When this option is disabled, both "valid" and "invalid" tag pairs are taken into account, but both conversion buttons get disbled, so that text conversion is not possible; only navigation between tags, open tags and tag pairs is available.

The question is: what is a valid tag pair?

Consider the following HTML code:

<p class="anc">Some Text</p>
Some more text
</p>

This code actually introduces an HTML error. The "<p class="anc">" and "</p>" tags are a valid HTML tag pair (or simply put: a valid HTML tag), but the "</p>" tag which follows, is an "orphan" or an "open" tag.

When this text is matched against an "AncientGreek tag" (in this case: "<p class="anc">...</p>"), it will lead to the extraction of two selections, as shown in the following image:

tags-selections.jpg

AncientGreek considers the first selection (the one to the left) to be "valid" and the second (the one to the right) to be "invalid", since it contains an "orphan" or an "open" tag.

2. Remove tag after conversion^

When this option is enabled, both the Starting and Ending Tag will be removed, after performing the conversion. This would be the case when not working with HTML code.