-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from neelsmith/dev
Update docs
- Loading branch information
Showing
26 changed files
with
643 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
Manifest.toml | ||
docs/build/ | ||
.vscode/ | ||
scratch/ | ||
scratch/ | ||
_site/ | ||
_freeze/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.quarto/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- source: project | ||
quarto-pub: | ||
- id: 05ce1cf1-be08-4b8e-961f-755ebcd13102 | ||
url: 'https://neelsmith.quarto.pub/polytonicgreek' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
project: | ||
type: website | ||
jupyter: julia-1.10 | ||
theme: spacelab | ||
execute: | ||
freeze: auto | ||
date: last-modified | ||
margin-header: "Package version: `0.21.12`" | ||
format: | ||
html: | ||
toc: true | ||
|
||
|
||
website: | ||
title: "polytonicgreek" | ||
navbar: | ||
background: primary | ||
search: true | ||
left: | ||
- text: "Home" | ||
file: index.qmd | ||
- text: "Concepts" | ||
file: concepts/index.qmd | ||
- text: "Tutorials" | ||
file: tutorials/index.qmd | ||
- text: "Guides" | ||
file: guides/index.qmd | ||
- text: "Reference" | ||
file: reference/index.qmd | ||
right: | ||
- icon: github | ||
href: https://github.com/neelsmith/PolytonicGreek.jl | ||
aria-label: GitHub | ||
- icon: person-circle | ||
menu: | ||
- text: "About me" | ||
href: https://neelsmith.quarto.pub | ||
- text: "More of my digital scholarship" | ||
href: https://neelsmith.quarto.pub/digschol/ | ||
aria-label: "More of my work" | ||
|
||
sidebar: | ||
- title: "Tutorials" | ||
contents: | ||
- tutorials/index.qmd | ||
- tutorials/literarygreek.qmd | ||
- tutorials/lgstrings.qmd | ||
- tutorials/sorting.qmd | ||
- tutorials/syllabification.qmd | ||
|
||
- title: "Guides" | ||
contents: | ||
- guides/index.qmd | ||
- guides/accentuation.qmd | ||
- guides/strcat.qmd | ||
- guides/augment.qmd | ||
|
||
|
||
- title: "Reference" | ||
contents: | ||
- reference/index.qmd | ||
- reference/lg_charset.qmd | ||
- reference/api.qmd | ||
|
||
- title: "Concepts" | ||
contents: | ||
- concepts/index.qmd | ||
|
||
|
||
|
||
- title: "Home" | ||
contents: | ||
- index.qmd | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Concepts | ||
--- | ||
|
||
|
||
|
||
## An abstract interface | ||
|
||
`GreekOrthography` is an abstract type for functions that understand the phonology of ancient Greek as it is represented in specific orthographic systems, and can therefore: | ||
|
||
- sort Unicode Greek strings by the logic of the Greek alphabet | ||
- syllabify Greek strings | ||
- work with accents, including correct placement for recessive and persistent accent patterns, respecting morpheme boundaries in compound verbs | ||
- support reduplication and augment (both temporal and syllabic) of verbal stems | ||
- concatenate strings in a specified orthography with appropriate phonological adjustments, optionally including elision | ||
- implement the `OrthographicSystem` interface (from the HCMID [Orthography package](https://hcmid.github.io/Orthography.jl/stable/)), with semantic tokenization of text in polytonic Greek | ||
|
||
|
||
## Generic features of an orthographic system | ||
|
||
The `GreekOrthography` abstract type is a subtype of `OrthographicSystem`. Concrete implementations of `GreekOrthography` are therefore also implementations of an `OrthographicSystem`. In the following code blocks, you can see that `LiteraryGreekOrthography` inherits from `OrthographicSystem` via `GreekOrthography`, and can be used like any other `OrthographicSystem` to assess the validity of characters and strings, and analyze strings of characters as sequences of classified tokens. | ||
|
||
|
||
## The `GreekOrthography` abstraction | ||
|
||
`GreekOrthography` is an abstract type, which in turn is a | ||
subtype of the [Orthography package](https://github.com/hcmid/Orthography.jl)'s `OrthographicSystem`. | ||
|
||
Implementations of `GreekOrthography` can therefore: | ||
|
||
|
||
1. use the functions specific to implementations of `GreekOrthography` to remove and add accents to words, to break words into syllables, and to sort words according to the logic of the Greek alphabet | ||
2. use the generic functions of the `Orthography` package to assess the validity of characters and strings, and to tokenize a string into a series of explicitly classified tokens. | ||
|
||
|
||
|
||
|
||
## Concrete implementations | ||
|
||
This package includes `PolytonicGreek`, an implementation of the `GreekOrthography` type for literary Greek as it appears in standard printed editions. | ||
|
||
Other implementations are possible. Examples are: | ||
|
||
|
||
- `ScientificGreekOrthography`, for texts that including numeric and synmbolic content used in Greek mathematical and scientific texts | ||
- [ManuscriptOrthography](https://homermultitext.github.io/ManuscriptOrthography.jl/stable/) (from the Homer Multitext project) for working with the orthography of polytonic Greek in medieval manuscripts | ||
- [AtticGreek](https://github.com/neelsmith/AtticGreek.jl), an implementation for the epichoric alphabet used in Athens before 403 BCE |
20 changes: 8 additions & 12 deletions
20
docs/src/guide/accents.md → quarto/guides/accentuation.qmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
```@meta | ||
CurrentModule = PolytonicGreek | ||
``` | ||
|
||
# Accentuation | ||
|
||
|
||
|
||
Overview: two exported functions allows you to remove accents from a string, or add accent to a "word" (a single lexical token). Words may be accented either with recessive accent, or with persistent accent in the penult, indicated with a second parameter which should be either the symbol `:RECESSIVE` or `:PENULT`. | ||
|
||
!!! note | ||
Words cannot be accented on the ultima based on orthography alone; that requires further knowledge of the morphological form of the word. | ||
|
||
:::{.callout-note} | ||
Words cannot be accented on the ultima based on orthography alone; that requires further knowledge of the morphological form of the word. | ||
::: | ||
|
||
```jldoctest accented | ||
```{julia} | ||
using PolytonicGreek | ||
lg = literaryGreek() | ||
rmaccents("πολλά", lg) | ||
# output | ||
"πολλα" | ||
#"πολλα" | ||
``` | ||
|
||
```jldoctest accented | ||
```{julia} | ||
accentword("ἀνθρωπος", :RECESSIVE, lg) | ||
# output | ||
"ἄνθρωπος" | ||
#"ἄνθρωπος" | ||
``` | ||
|
||
|
||
|
Oops, something went wrong.