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
""" | |
Requirements: | |
regex | |
colorama | |
pycases | |
click | |
""" | |
import os |
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
function link() { | |
document.dispatchEvent(new KeyboardEvent("keydown", { | |
'key': 'a', "charCode": 0, "keyCode": 65, "ctrlKey": true | |
})); | |
setTimeout(() => { | |
document.dispatchEvent(new KeyboardEvent("keydown", { | |
'key': 'y', "charCode": 0, "keyCode": 89 | |
})); | |
}, 500); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import re | |
import glob | |
import sys | |
Zone = { | |
"Main": "MainZone", | |
"DropCapital": "DropCapitalZone", | |
"RunningTitle": "RunningTitleZone", | |
"Margin": "MarginTextZone", |
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
{"schemaVersion":1,"label":"Transcribed Characters","message":"83728","color":"informational","style":"flat-square"} |
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
<TEI xmlns="http://www.tei-c.org/ns/1.0"> | |
<teiHeader> | |
<fileDesc> | |
<titleStmt> | |
<title/> | |
</titleStmt> | |
<publicationStmt><p/></publicationStmt> | |
<sourceDesc><p/></sourceDesc> | |
</fileDesc> | |
<revisionDesc> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:tei="http://www.tei-c.org/ns/1.0" | |
exclude-result-prefixes="xs" | |
xpath-default-namespace="http://www.tei-c.org/ns/1.0" | |
version="2.0"> | |
<xsl:output encoding="UTF-8" method="html" ></xsl:output> | |
<xsl:variable name="textchunk" select="'ab'"/> | |
<xsl:variable name="chunkTitle" select="'Priapea'"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-model href="https://hipster-philology.github.io/protogenie/protogenie/schema.rng" | |
schematypens="http://relaxng.org/ns/structure/1.0"?> | |
<config> | |
<output column_marker="TAB"> | |
<header name="order"> | |
<key>token</key> | |
<key>lemma</key> | |
<key>pos</key> | |
<key>Dis</key> |
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
ENDPOEM | |
Carminis incompti lusus lecture procaces, | |
conueniens Latio pone supercilium. | |
non soror hoc habitat Phoebi, non uesta sacello, |
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
from lxml import etree as ET | |
import re | |
def fix_xml(xml_string: str) -> str: | |
""" Given an illformated xml, try to fix it | |
:param xml_string: XML that is faulty | |
:return: xml that should not be faulty | |
""" |
NewerOlder