Skip to content

Instantly share code, notes, and snippets.

View hcayless's full-sized avatar

Hugh A. Cayless hcayless

View GitHub Profile
static behaviors = {
"tei": {
"attDef": function(elt) {
let result = document.createElement("dl");
let dt = document.createElement("dt");
dt.innerText = "@" + elt.getAttribute("ident");
let dd = document.createElement("dd");
for (let i =0; i < elt.childNodes.length; i++) {
dd.appendChild(elt.childNodes[i].cloneNode(true));
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
-->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" module="textcrit" ident="app">
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
@hcayless
hcayless / annotation-other-props.xml
Created May 21, 2020 19:52
Annotation with other properties
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
@hcayless
hcayless / assertion-annotation.xml
Created May 21, 2020 13:30
"Assertive" annotation mock-up
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
@hcayless
hcayless / simple-text-body.xml
Created May 21, 2020 00:00
Simple textual body
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
@hcayless
hcayless / simple-target-body-uri.xml
Last active May 20, 2020 23:57
Simple annotation example
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
@hcayless
hcayless / TEI.vue
Created February 14, 2020 20:49
Minimal CETEIcean/Vue example
<template>
<div>
TEI would go here...
<div id="tei" v-html="teiHTML" />
</div>
</template>
<script>
import CETEI from '../ceteicean/CETEI.js';
export default {
@hcayless
hcayless / variant-standoff.xml
Created April 14, 2019 16:55
Using <app> for annotations
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
@hcayless
hcayless / template.xml
Created September 7, 2018 19:01
BMCR Template
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title level="a">BMCR 04.01.01, Ruth Scodel on Elizabeth S. Belfiore, Tragic Pleasures: Aristotle on Plot and Emotion
</title>