Skip to content

bnacar/ancient-greek-translit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

This is my best attempt at reverse-engineering the Perseus (www.perseus.tufts.edu/hopper/search/) Greek text input. The intended use case would be an Ancient Greek online resource where the text is stored as ASCII and rendered into Unicode or HTML codes for display, which should make programmatic manipulation of diacritics simpler.

import AncientGreekConverter from './ancient-greek-translit.js';

const unicodeAG = new AncientGreekConverter(false);
const htmlAG = new AncientGreekConverter(true);

const firstLineOfTheIliad = 'mh=nin a)/eide qea\ *phlhi+a/dew *)axilh=os/'
const unicodeString = unicodeAG.convert(firstLineOfTheIliad);
const htmlString = htmlAG.convert(firstLineOfTheIliad);

A demo may be found at https://stuff.bennacar.com/greek/translit/.

About

JS workalike of Perseus greek text input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published