Skip to content

Instantly share code, notes, and snippets.

View raffazizzi's full-sized avatar
🌈

Raff Viglianti raffazizzi

🌈
View GitHub Profile
<?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>Addresses</title>
</titleStmt>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.music-encoding.org/schema/current/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<mei xmlns="http://www.music-encoding.org/ns/mei">
<meiHead>
<fileDesc>
<titleStmt>
<title></title>
</titleStmt>
<pubStmt></pubStmt>
</fileDesc>
<elementSpec ident="ornament" module="MEI.cmnOrnaments">
<desc>An element indicating an ornament that is not a mordent, turn, or trill.
</desc>
<classes>
<memberOf key="att.common"/>
<memberOf key="att.facsimile"/>
<memberOf key="att.ornament.log"/>
<memberOf key="att.ornament.vis"/>
<memberOf key="att.ornament.ges"/>
<memberOf key="att.ornament.anl"/>
@raffazizzi
raffazizzi / VESA
Last active August 29, 2015 14:17
<div type="div2" xml:id="VESA">
<head>Encoding Textual Structures Across Verses</head>
<p>It is possible that certain textual structures may span multiple lines of verse, either by
incorporating more than one, or by crossing line hierarchy. This is common,
for example, when lines contain reported thought or speech (i.e. <gi>said</gi>),
or other forms of quotation (i.e. <gi>q</gi>). For these cases, it is recommended practice
to fragment and reconstruct the elements representing the textual structures.
</p>
<p>The following example from Margaret Cavendish's <title>Nature's Pictures</title> shows speech
encoded across two lines reconstructed by chaining elements with <att>prev</att> and
@raffazizzi
raffazizzi / grammar
Last active August 29, 2015 14:16
EMA selection grammar
start ::= "start"
startOrEnd ::= "start" | "end"
all ::= "all"
measure ::= integer
measureRange ::= {measure | startOrEnd | all / ","} | {measure | start, "-", measure | end / ","}
staff ::= integer
staffRange ::= {staff | startOrEnd | all / "+"} | {staff | start, "-", staff | end / "+"}
stavesToMeasure ::= {staffRange / ","}
beat ::= float
beatRange ::= {"@", beat | startOrEnd | all / "+"} | {"@", beat | start, "-", beat | end / "+"}
@raffazizzi
raffazizzi / CORS
Created February 27, 2015 22:13
Rewrite of CORS
<div type="div3" xml:id="CORS2"><head>Creating New Reference Systems</head>
<p>If a text has no canonical reference system of its own, a new custom reference
system may be used.</p>
<p>The global attributes <att>n</att> and <att>xml:id</att> may be used to
assign reference identifiers to segments of the text. Identifiers
specified by either attribute apply to the entire element for which they
are given. ID attributes must be unique within a single
document, and ID values must begin with a letter. No such restrictions
are made on the values of <att>n</att> attributes.
@raffazizzi
raffazizzi / build.scala
Created October 10, 2014 20:13
Trying to run /sga in refactoring branch
import sbt._
import Keys._
object Scalanvas extends Build {
lazy val util: Project = Project(
id = "util",
base = file("util"),
settings = commonSettings ++ Seq(
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-concurrent" % "7.0.6",

Keybase proof

I hereby claim:

  • I am raffazizzi on github.
  • I am raffazizzi (https://keybase.io/raffazizzi) on keybase.
  • I have a public key whose fingerprint is 32DC 2F75 D974 EF3C 7D23 E17E F04E B9EA 202C 4AC3

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head><script src='http://syssgx.github.com/xml.js/js/xmllint.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
</head>
<body>
<p id="results"></p>
<script>
validTEI = '<?xml version="1.0" encoding="UTF-8"?><?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" schematypens="http://relaxng.org/ns/structure/1.0"?><TEI xmlns="http://www.tei-c.org/ns/1.0"> <teiHeader> <fileDesc> <titleStmt> <title>Title</title> </titleStmt> <publicationStmt> <p>Publication information</p> </publicationStmt> <sourceDesc> <p>Information about the source</p> </sourceDesc> </fileDesc> </teiHeader> <text> <body> <p>Some text here.</p> </body> </text></TEI>'
@raffazizzi
raffazizzi / gist:5090912
Created March 5, 2013 15:03
SGA ext resource - example
Template:
<resource> a ore:Aggregation, rdf:List, sc:TextAnnotationList ;
ore:isDescribedBy <external-URL> .
<external-URL> a ore:ResourceMap .
<manifest1> ore:aggregates <resource> .
JSON for <resource>:
"_:UUID": {