Skip to content

Instantly share code, notes, and snippets.

View kba's full-sized avatar

Konstantin Baierer kba

View GitHub Profile
diff -br ../ocropy/ocrolib/chars.py scripts/ocrolib/chars.py
17,18d16
< portuguese = u"ÁÃÌÍÒÓÕÚáãìíòóõú"
< telugu = u" ఁంఃఅఆఇఈఉఊఋఌఎఏఐఒఓఔకఖగఘఙచఛజఝఞటఠడఢణతథదధనపఫబభమయరఱలళవశషసహఽాిీుూృౄెేైొోౌ్ౘౙౠౡౢౣ౦౧౨౩౪౫౬౭౮౯"
20c18
< default = ascii+xsymbols+german+french+portuguese
---
> default = ascii+xsymbols+german+french
Only in scripts/ocrolib: chars.pyc
diff -br ../ocropy/ocrolib/common.py scripts/ocrolib/common.py
@kba
kba / exist.json
Last active March 15, 2017 14:42
{
"paths": {
"get_verse.xql": {
"parameters": [
{
"name": "col",
"description": "Name of the collection"
}
]
}
<ubma_publications>
<item>Kaiser Jessica und Klein Annette (2011), &lt;a href=&apos;https://ub-madoc.bib.uni-mannheim.de/id/eprint/33134&apos; target=&apos;new&apos;&gt;Die E-Book-Umfrage an der UB Mannheim – Zusammenfassung der Ergebnisse&lt;/a&gt;</item>
</ubma_publications>
# (refererences) (xy_temporal)
# LINKPC1 LINKCD
# from| |to from| |to
# v v v v
# publication1 citedData1 dataset1
# ^
# to|from
# LINKSA (same_as)
# from|to
# v
# thin-arrow.coffee
$(->
rest_api_login((login_ok, userName, userRoles) ->
console.log("login_ok #{login_ok}, userName #{userName}, roles [#{userRoles.join(", ")}]")
vcm.app.userName = userName
vcm.app.userRoles = userRoles
vcm.app.defaultClassifications = []
initialize_templates((loaded_templates) ->
console.log("loaded_templates", loaded_templates)
vcm.app.main_application()
<?xml version="1.0" encoding="utf-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/ns-v2#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/standards/alto/ns-v2# http://www.loc.gov/standards/alto/v2/alto-2-0.xsd">
<Description>
<MeasurementUnit>pixel</MeasurementUnit>
<sourceImageInformation>
<fileName/>
</sourceImageInformation>
@kba
kba / tampermonkey-keys.md
Last active February 6, 2024 01:58
Tampermonkey keyboard cheat sheet

Found by grepping through the JS of Tampermonkey BETA 4.1.5180

Builtin shortcuts

Key combo Context Action Notes
Alt-Right Dashboard Next Tab
Alt-Left Dashboard Previous Tab
Shift-Up Dashboard Check script and move up? Not working or misunderstood
Shift-Down Dashboard Check script and move down? Not working or misunderstood