%load_ext autoreload
%autoreload 2
from tf.extra.cunei import Cunei
LOC = ("~/github", "Nino-cunei/uruk", "start")
CN = Cunei(*LOC)
CN.api.makeAvailableIn(globals())
Found 2095 ideograph linearts Found 2724 tablet linearts Found 5495 tablet photos
Documentation: Uruk IV-III (v1.0) Feature docs Cunei API Text-Fabric API 5.0.4 Search help
tablet = T.nodeFromSection(("P005381",))
faces = L.d(tablet, otype="face")
face = faces[0]
columns = L.d(tablet, otype="column")
column = columns[0]
lines = L.d(tablet, otype="line")
line = lines[0]
cases = L.d(tablet, otype="case")
case = cases[0]
quads = L.d(tablet, otype="quad")
quad = quads[0]
signs = L.d(tablet, otype="sign")
sign = signs[1]
CN.pretty(sign, withNodes=True, lineNumbers=True, lineart=True)
# CN.pretty(quad, withNodes=True, lineNumbers=True, lineart=True)
# CN.pretty(case, withNodes=True, lineNumbers=True, lineart=True)
# CN.pretty(line, withNodes=True, lineNumbers=True, lineart=True)
# CN.pretty(column, withNodes=True, lineNumbers=True, lineart=True)
# CN.pretty(face, withNodes=True, condenseType='tablet')
# CN.pretty(tablet, withNodes=True, condenseType='tablet')
query = """
tablet catalogId=P005381|P005382
"""
query = """
tablet
sign grapheme~UKKIN
"""
query = """
line
case terminal=1
# order is not important
sign type=ideograph
sign type=numeral
"""
results = CN.search(query)
0.58s 10673 results
CN.table(
results, condensed=False, condenseType="column", lineNumbers=False, start=1, end=20
)
n | line | case | sign | sign |
---|---|---|---|---|
1 | line 2 | case 2a | KASZ~b | N |
2 | line 2 | case 2a | KASZ~b | 2(N14) |
3 | line 2 | case 2a | KASZ~b | 3(N01) |
4 | line 2 | case 2a | NUN~a | N |
5 | line 2 | case 2a | NUN~a | 2(N14) |
6 | line 2 | case 2a | NUN~a | 3(N01) |
7 | line 2 | case 2b | KASZ~a | 3(N01) |
8 | line 2 | case 2b | GI | 3(N01) |
9 | line 1 | case 1a | APIN~a | 3(N01) |
10 | line 1 | case 1a | APIN~a | 3(N57) |
11 | line 1 | case 1a | UR4~a | 3(N01) |
12 | line 1 | case 1a | UR4~a | 3(N57) |
13 | line 2 | case 2b1 | PAP~a | 3(N57) |
14 | line 1 | case 1a | ISZ~a | 1(N01) |
15 | line 1 | case 1a | SZE~a | 1(N14) |
16 | line 1 | case 1b | TAR~a | N |
17 | line 2 | case 2a | SZE~a | 3(N01) |
18 | line 2 | case 2a | SZE~a | 3(N01) |
19 | line 2 | case 2a | KASZ~b | 3(N01) |
20 | line 2 | case 2a | KASZ~b | 3(N01) |
CN.show(results, lineNumbers=True)
tablet 1
tablet 2
tablet 3
tablet 4
tablet 5
tablet 6
tablet 7
tablet 8
tablet 9
tablet 10
tablet 11
tablet 12
tablet 13
tablet 14
tablet 15
tablet 16
tablet 17
tablet 18
tablet 19
tablet 20
tablet 21
tablet 22
tablet 23
tablet 24
tablet 25
tablet 26
tablet 27
tablet 28
tablet 29
tablet 30
tablet 31
tablet 32
tablet 33
tablet 34
tablet 35
tablet 36
tablet 37
tablet 38
tablet 39
tablet 40
tablet 41
tablet 42
tablet 43
tablet 44
tablet 45
tablet 46
tablet 47
tablet 48
tablet 49
tablet 50
tablet 51
tablet 52
tablet 53
tablet 54
tablet 55
tablet 56
tablet 57
tablet 58
tablet 59
tablet 60
tablet 61
tablet 62
tablet 63
tablet 64
tablet 65
tablet 66
tablet 67
tablet 68
tablet 69
tablet 70
tablet 71
tablet 72
tablet 73
tablet 74
tablet 75
tablet 76
tablet 77
tablet 78
tablet 79
tablet 80
tablet 81
tablet 82
tablet 83
tablet 84
tablet 85
tablet 86
tablet 87
tablet 88
tablet 89
tablet 90
tablet 91
tablet 92
tablet 93
tablet 94
tablet 95
tablet 96
tablet 97
tablet 98
tablet 99
tablet 100