Skip to content

Instantly share code, notes, and snippets.

View wlpotter's full-sized avatar

William L Potter wlpotter

View GitHub Profile
@wlpotter
wlpotter / DHBootcamp2019_TEICriticalEditions_DickinsonExample.xml
Created August 21, 2019 16:38
This is a TEI-XML version of Emily Dickinson's poem "Tie the strings to my life, my Lord." It includes an apparatus based on her own variant readings. This exercise is an example of how one can use TEI to create digital editions of texts.
<?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>A Digital Edition of Dickinson's Personal Manuscript of "Tie the strings to my life, my Lord"</title>
<author>Emily Dickinson</author>
<?xml version="1.0" encoding="UTF-8"?>
<csv>
<record>
<catId>lowerPaleolithic</catId>
<catDesc>Lower Paleolithic</catDesc>
<notBefore>-999999</notBefore>
<notAfter>-119999</notAfter>
<calendar>Gregorian</calendar>
<dateRangeLabel>999999-119999 BCE</dateRangeLabel>
</record>
[
{
"id": "http://zotero.org/groups/2320447/items/S935RWI7",
"type": "chapter",
"call-number": "1070421280",
"collection-number": "14",
"collection-title": "Journal of Roman Archaeology Supplement",
"container-title": "The Roman and Byzantine Near East: Some Recent Archaeological Research",
"event-place": "Ann Arbor, MI",
"ISBN": "1-887829-14-8",
@wlpotter
wlpotter / e-sketikon-css_TEST.css
Created October 25, 2021 18:54
A rough draft of an oXygen author-mode CSS form for the e-Sketikon project. This CSS is under development.
@namespace tan "tag:textalign.net,2015:ns";
@namespace tei "http://www.tei-c.org/ns/1.0";
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
@namespace xml "http://www.w3.org/XML/1998/namespace";
/* CSS file intended to be used to configure how Wright catalog manuscripts are rendered by oXygen Author */
/* Highlight those elements whose text nodes are targets for editing */
country,
settlement,
repository,
@wlpotter
wlpotter / wright-catalogue-pull-request-workflow.md
Created December 6, 2021 13:37
A workflow for creating new XML snippets of manuscripts in the Wright Catalogue; see https://github.com/srophe/wright-catalogue/

Please use these steps to upload drafted manuscripts via a GitHub pull request.

  1. Create a new branch from master and give it a meaningful name, e.g. Potter_2021-12
    • If you had already created the manuscript files on master, bring those changes onto the new branch
    • If you have been creating and drafting ms files elsewhere on your local computer, copy and paste those files into the folder that contains your template: /data/3_drafts/YourName/
  2. Publish your new branch to the GitHub remote repository
    • Press the button in the upper right of the GitHub Desktop application. Note: You may need to Fetch origin before you can publish your branch. If so, the option to publish should appear after you press the Fetch origin button.
  3. Commit the changes onto your new branch
    • In the list of changed files on the left of GitHub desktop, make sure only those files which are fully drafted (all data added and all questions addressed in our meeting) are checked. Uncheck any files that need more work
@wlpotter
wlpotter / syriaca-sbd-all-names.csv
Last active January 5, 2022 16:23
A list of all the persName data from Syriaca.org's SBD persons database, current as of 2022-01-05
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 32 columns, instead of 7. in line 4.
id-no,uri,isSaint,isAuthor,headword.en,headword.syr,name1,name2,name3,name4,name5,name6,name7,name8,name9,name10,name11,name12,headword.en-x-gedsh,name13,name14,name15,anonymous-desc.en,name16,name17,name18,name19,name20,headword.syr-Syrj,anonymous-desc.,name21,name22
10,http://syriaca.org/person/10,false,true,Aphrahat,ܐܦܪܗܛ,Aphrahaṭ,Aphrahat the Persian,افرهاط الفارسي,ܐܦܪܗܛ ܦܪܣܝܐ,ܐܰܦܪܗܰܛ ܦܳܪܣܳܝܐ,ܐܲܦܪܵܗܵܛ,Aphrahat,Aphrahaat the Persian Anchorite,Aphrahat the Persian,APHRAAT LE PERSE,Ap(h)rahaṭ,Aphrahates,,,,,,,,,,,,,,
100,http://syriaca.org/person/100,false,true,Aitalaha the Monk,ܕܝܪܝܐ ܐܝܬܐܠܗܐ,The Monk Ithalaha,الراهب ايثالاها,ܕܰܝܪܳܝܐ ܐܝܬܐܠܳܗܐ,Aitalaha the monk,Aitallaha of Kallinikos,Ait(h)allàhā,,,,,,,,,,,,,,,,,,,,
1000,http://syriaca.org/person/1000,false,true,Isaac ibn Hunayn,ܐܣܚܩ ܒܪ ܚܘܢܝܢ,Isḥāq ibn Ḥunayn,Isaac ibn Ḥunain,Isḥàq ibn Ḥunain,,,,,,,,,,,,,,,,,,,,,,,
1002,http://syriaca.org/person/1002,false,true,ʿAbd al-Masih b. Naʿima of Homs,ܥܒܕ ܡܫܝܚܐ ܒܪ ܥܒܕ ܐܠܠܗ ܒܪ ܢܐܥܡܗ ܚܡܨܝܐ,ʿAbd al-Masīḥ b. Nāʿima al-Ḥi
@wlpotter
wlpotter / updating-Wright-catalogue-physDesc.md
Last active April 1, 2022 14:45
A workflow for updating Syriaca.org's Manuscript Records to use the new physDesc encoding method
  1. Go to Decoder and find the tab "Records-with-Old-PhysDesc"
  2. Using column A ("file location on britishLibrary-data") find the file
  • Make a new branch. Its name should include the date, your user name, and the reason, e.g. "2022-03-18-wpotter-physDesc-update"
  • Open the corresponding file in oXygen, found under /britishLibrary-data/data/tei/
    • If the URI is for an msPart, column A will have a "#PartX" after the file name referring to the @xml:id of an msPart element within the file
  1. Find the corresponding Wright Catalogue entry
  • Using column D (the volume and page in the catalogue) and column F (the roman numeral for the catalogue entry in Wright), navigate to the correct entry in the Word document
  1. Verify that the entry shelf mark matches the associated URI
  • If the shelf mark at the end of the entry in the Word doc matches column E (the BL shelf mark), proceed to s
@wlpotter
wlpotter / manually-updating-srophe-apps.md
Created April 29, 2022 14:55
Instructions for updating srophe apps that do not have webhooks

For Srophe apps that do not have webhooks, the following steps can be used to manually upload new and updated data to the app. Note that this requires admin priveleges for the application.

From the admin panel for the app, open eXide. Then:

  1. Use open button
  2. Go to data directory
  3. Find where you want the new file(s) to live
  4. Go to file > manage
  5. Login as admin (can do first)
  6. upload
@wlpotter
wlpotter / bl-data-teiHeader-mockup.xml
Created July 15, 2022 20:38
A mockup of the teiHeader for The Digital Wright project.
<?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" xml:lang="en">BL Add MS 17229</title>
<title xml:lang="en" level="m">The Digital Wright: A Database of Syriac Manuscripts in the British Library</title>
@wlpotter
wlpotter / sinai-reconstruction-test-manifest.json
Last active June 1, 2023 19:22
Testing out the reconstruction of a sinai manuscript
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://gist.githubusercontent.com/wlpotter/0ae00bb5d3721c2b3f1b1818e3a94e70/raw/bd3fb0cd7a0a538877df58634a85fabe7897590e/sinai-reconstruction-test-manifest.json",
"type": "Manifest",
"label": {
"en": [
"Syriac 50 + Syriac NF M 50 + Syriac NF M 63"
]
},
"items": [