GithubHelp home page GithubHelp logo

perseids-tools / beta-code-json Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 18 KB

JSON Mapping from Greek beta code to Greek characters and vice versa

License: MIT License

ancient-greek classics perseids-project beta-code

beta-code-json's Introduction

Beta Code JSON

Map of Greek Beta Code characters to Unicode and from Unicode to Beta Code.

Standard

The mappings in this repository aim mostly to conform to the TLG standard specified here.

Not every application that uses Greek Beta Code follows the TLG standard exactly. The mappings try to capture these nonstandard uses without breaking Beta Code encoded according to the standard in the following ways:

  • Lowercase Latin letters can be used in the Beta Code (e.g. a, w=)
  • Uppercase Greek letters can be keyed 1. asterisk, 2. breathing, 3. accent, 4. iota subscript, 5. letter (e.g. *(=|W)
  • Uppercase Greek letters can be keyed 1. asterisk, 2. letter, 3. breathing, 4. accent, 5. iota subscript (e.g. *W(=|)

Example uses

beta-code-json's People

Contributors

zfletch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

beta-code-json's Issues

Order of diaeresis + accent

When converting a Greek letter with both a diaeresis and an accent to Betacode, the accent is always put first, e.g.:

>>> print(beta_code.greek_to_beta_code('προΐστημι'))
proi/+sthmi

I'm not sure if this follows a beta code standard that I'm unaware of, but it is neither consistent with how Perseus uses Betacode (where it would get represented as proi+/sthmi) nor with the order of the characters in decomposed Unicode. Crucially, when using the 'Perseus order' and converting such a Beta Code string back to Unicode, I get the wrong result:

>>> print(beta_code.beta_code_to_greek('proi+/sthmi'))
προϊ ́στημι

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.