ancientgreek-logo.png

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

AncientGreek LaserGreek conversion Macros ^

I suggest saving your work before running either of these macros on a document (no text selection), so that reverting (Menu File / Reload) to it is possible, as Undoing may not be of much help, since a letter by letter substitution will take place resulting in way too many undo steps.

If any of these macros are executed without selecting any text, a warning message similar to the one shown in the following picture will appear.

legacy-warning.png
Warning message on Windows 8.1

• LaserGreekToUnicode Macro

This macro converts text written in LaserGreek to Unicode (normal text that can be edited in LibreOffice / OpenOffice).

• UnicodeToLaserGreek Macro

This macro converts text written in Unicode (normal text edited in LibreOffice / OpenOffice) to LaserGreek.

Several characters will be converted to fullwidth/halfwidth characters before starting the actual conversion to LaserGreek. These characters include "¦", "\", "/", "#", "%", "+", "«", "»" etc. which are used by LaserGreek to represent Ancient Greek letters. These characters will be converted to their original value when converting back to Unicode.

The following table shows the characters substitution that takes place when converting Unicode text to LaserGreek. All substitute characters are fullwidth/halhwidth characters, unless otherwise noted.

Original character Substitute character Original character Substitute character
(U+201A) (U+275F) * (U+201C) (U+275D) *
« (U+00AB) (U+300A) * » (U+00BB) (U+300B) *
+ (U+002B) (U+FF0B) % (U+0025) (U+FF05)
# (U+0023) (U+FF03) ^ (U+005E) (U+FF3E)
/ (U+002F) (U+FF03) \ (U+005C) (U+FF3C)
< (U+003C) (U+FF1C) > (U+003E) (U+FF1E)
~ (U+007E) (U+FF0F) ¢ (U+00A2) (U+FFE0)
£ (U+00A3) (U+FFE1) ¦ (U+00A6) (U+FFE4)

* Non fullwidth/halhwidth character.

Most of the accents and diacritics in LaserGreek correspond to composite Unicode characters. For example, the Slash character (/ U+002F) corresponds to Combining Acute Accent (  ́ U+0301). AncientGreek will convert these characters to their precomposed equivalents. So, the Slash character (/ U+002F) will be converted to Greek Tonos (΄ U+0384), when converting "LaserGreek coded content" to Unicode. This way, text produced by the converter will contain precomposed characters only (when applicable).

Using fullwidth characters ^

If the document (or selection) contains ASCII characters (English text), they will automatically be converted to the "fullwidth / halfwidth" characters, when text conversion from Unicode to LaserGreek is performed.