Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensibility #13

Open
jonathanrobie opened this issue Jun 14, 2017 · 2 comments
Open

Extensibility #13

jonathanrobie opened this issue Jun 14, 2017 · 2 comments

Comments

@jonathanrobie
Copy link
Member

Treedown currently has two extensibility mechanisms:

  1. The set of labels will be configurable. Ideally, we want related projects to use the same labels for the sake of interoperable queries and building communities of understanding, but some projects will need to use their own labels or add new labels that have not yet been adopted into core.

  2. Extension expressions allow keyword / value pairs in parentheses. Keywords can be prefixed, e.g. extensions that indicate the semantic function of an adjunct might be use a prefix to indicate a set of semantics associated with a project. An adjunct might also be used to indicate the status of an analysis - proposed, approved, etc. Multiple extensions can occur in a single extension expression.

Example:

+ τότε          ( adj:class=time, ana:status=proposed )
    v λέγει
    io αὐτῷ
    s ὁ Ἰησοῦς
@jtauber
Copy link
Collaborator

jtauber commented Jun 15, 2017

I do like having an extensibility mechanism but I think we may want to distinguish when it's:

  • elaborating a line
  • elaborating a word
  • a milestone like a verse number

I like the approach of extensions being keyword/value pairs.

@jonathanrobie
Copy link
Member Author

We could use a scope keyword in extensions. "The scope of the constituent this line starts" is probably the most important one, and might be default. Something like:

( scope=constituent, dg=topic )
( scope=word, dg=focus )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants