Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert Beta Code to Unicode with Typst.

License

moosipea/betacode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betacode

Convert Greek Beta Code to Unicode with Typst.

Example

Text from the beginning of Apology by Plato

Typst code for this example:

#import "@preview/betacode:0.1.0"

#let apology = "*(/oti me\n u(mei=s, w)= a)/ndres */aqhnai=oi, pepo/nqate u(po\ tw=n e)mw=n kathgo/rwn, ou)k oi)=da: e)gw\ d' ou)=n kai\ au)to\s u(p' au)tw=n o)li/gou e)mautou= e)pelaqo/mhn, ou(/tw piqanw=s e)/legon. *kai/toi a)lhqe/s ge w(s e)/pos ei)pei=n ou)de\n ei)rh/kasin."

#table(columns: 2,
  [*Beta Code*], [*Unicode*],
  text(apology), betacode.betacode(apology)
)

Usage

Import this library with

#import "@preview/betacode:0.1.0"

Then use it like this:

#betacode.betacode("*(/o")

Alternatively you use uppercase and lowercase letters instead of the typical asterisk syntax:

// These are equivalent
#betacode.betacode("*/aqhnai=oi")
#betacode.betacode(auto-capitalization: true, "A/qhnai=oi")

About

Convert Beta Code to Unicode with Typst.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages