Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/nino-cunei/oldbabylonian
10 April 2019, 10:45:51 UTC
  • Code
  • Branches (11)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/tags/v0.2
    • refs/tags/v0.3
    • refs/tags/v0.4
    • refs/tags/v1.0
    • refs/tags/v1.0.1
    • refs/tags/v1.1
    • refs/tags/v1.2
    • refs/tags/v1.3
    • refs/tags/v1.4
    No releases to show
  • 6fe789d
  • /
  • programs
  • /
  • text.ipynb
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge Iframe embedding
swh:1:cnt:2436f85a2f088d0a329cc4efd1b787a200e6cc58
origin badgedirectory badge Iframe embedding
swh:1:dir:9287bc84340ee2f1ec0e4d777e59e51908046a3d
origin badgerevision badge
swh:1:rev:20173f788d445e60e4bc40891f2fee26044119a1
origin badgesnapshot badge
swh:1:snp:9091ca8d749e2b01a10b40227cf5a226e41c8da5

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 20173f788d445e60e4bc40891f2fee26044119a1 authored by Dirk Roorda on 28 March 2019, 07:29:10 UTC
docs analysis
Tip revision: 20173f7
text.ipynb
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from tf.app import use"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Using TF app oldbabylonian in /Users/dirk/github/annotation/app-oldbabylonian/code\n",
      "Using Nino-cunei/oldbabylonian/tf - 0.3 in /Users/dirk/github\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "**Documentation:** <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs/\" title=\"provenance of Old Babylonian 1900-1600: Proto-cuneiform tablets \">OLDBABYLONIAN</a> <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs/transcription.md\" title=\"How TF features represent ATF\">Character table</a> <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"OLDBABYLONIAN feature documentation\">Feature docs</a> <a target=\"_blank\" href=\"https://github.com/annotation/app-oldbabylonian\" title=\"oldbabylonian API documentation\">oldbabylonian API</a> <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Fabric/\" title=\"text-fabric-api\">Text-Fabric API 7.4.5</a> <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Use/Search/\" title=\"Search Templates Introduction and Reference\">Search Reference</a>"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<details open><summary><b>Loaded features</b>:</summary>\n",
       "<p><b>Old Babylonian 1900-1600: Proto-cuneiform tablets </b>: <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/after.tf\">after</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/atf.tf\">atf</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/atfpost.tf\">atfpost</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/atfpre.tf\">atfpre</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/collated.tf\">collated</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/combined.tf\">combined</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/comment.tf\">comment</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/damage.tf\">damage</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/exclamation.tf\">exclamation</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/fraction.tf\">fraction</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/givengrapheme.tf\">givengrapheme</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/grapheme.tf\">grapheme</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/language.tf\">language</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/ln.tf\">ln</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/otype.tf\">otype</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/pnumber.tf\">pnumber</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/reading.tf\">reading</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/repeat.tf\">repeat</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/srcLn.tf\">srcLn</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/srcLnNum.tf\">srcLnNum</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/srcfile.tf\">srcfile</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/subtype.tf\">subtype</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/super.tf\">super</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/type.tf\">type</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/uafter.tf\">uafter</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/uncertain.tf\">uncertain</a>  <a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/unicode.tf\">unicode</a>  <b><i><a target=\"_blank\" href=\"https://github.com/Nino-cunei/oldbabylonian/blob/master/docs//transcription.md\" title=\"/Users/dirk/github/Nino-cunei/oldbabylonian/tf/0.3/oslots.tf\">oslots</a></i></b> </p></details>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<style>.features {\n",
       "    font-family: monospace;\n",
       "    font-size: medium;\n",
       "    font-weight: bold;\n",
       "    color: #0a6611;\n",
       "    display: flex;\n",
       "    flex-flow: column nowrap;\n",
       "    padding: 0.1em;\n",
       "    margin: 0.1em;\n",
       "    direction: ltr;\n",
       "}\n",
       ".features div,.features span {\n",
       "    padding: 0;\n",
       "    margin: -0.1rem 0;\n",
       "}\n",
       ".features .f {\n",
       "    font-family: sans-serif;\n",
       "    font-size: x-small;\n",
       "    font-weight: normal;\n",
       "    color: #5555bb;\n",
       "}\n",
       ".features .xft {\n",
       "  color: #000000;\n",
       "  background-color: #eeeeee;\n",
       "  font-size: medium;\n",
       "  margin: 0.1em 0em;\n",
       "}\n",
       ".features .xft .f {\n",
       "  color: #000000;\n",
       "  background-color: #eeeeee;\n",
       "  font-style: italic;\n",
       "  font-size: small;\n",
       "  font-weight: normal;\n",
       "}\n",
       ".pnum {\n",
       "    font-family: sans-serif;\n",
       "    font-size: small;\n",
       "    font-weight: bold;\n",
       "    color: #444444;\n",
       "}\n",
       ".nd {\n",
       "    font-family: monospace;\n",
       "    font-size: x-small;\n",
       "    color: #999999;\n",
       "}\n",
       ".meta {\n",
       "    display: flex;\n",
       "    justify-content: flex-start;\n",
       "    align-items: flex-start;\n",
       "    align-content: flex-start;\n",
       "    flex-flow: row nowrap;\n",
       "}\n",
       ".features,.comments {\n",
       "    display: flex;\n",
       "    justify-content: flex-start;\n",
       "    align-items: flex-start;\n",
       "    align-content: flex-start;\n",
       "    flex-flow: column nowrap;\n",
       "}\n",
       ".children {\n",
       "    display: flex;\n",
       "    justify-content: flex-start;\n",
       "    align-items: flex-start;\n",
       "    align-content: flex-start;\n",
       "    border: 0;\n",
       "    background-color: #ffffff;\n",
       "}\n",
       ".children.tablet,.children.face {\n",
       "    flex-flow: row nowrap;\n",
       "}\n",
       ".children.column {\n",
       "    align-items: stretch;\n",
       "    flex-flow: column nowrap;\n",
       "}\n",
       ".children.line,.children.case {\n",
       "    align-items: stretch;\n",
       "    flex-flow: row nowrap;\n",
       "}\n",
       ".children.caseh,.children.trminalh {\n",
       "    flex-flow: row nowrap;\n",
       "}\n",
       ".children.casev,.children.trminalv {\n",
       "    flex-flow: column nowrap;\n",
       "}\n",
       ".children.trminal {\n",
       "    flex-flow: row nowrap;\n",
       "}\n",
       ".children.cluster {\n",
       "    flex-flow: row wrap;\n",
       "}\n",
       ".children.quad {\n",
       "    flex-flow: row wrap;\n",
       "}\n",
       ".children.sign {\n",
       "    flex-flow: column nowrap;\n",
       "}\n",
       ".contnr {\n",
       "    width: fit-content;\n",
       "}\n",
       ".contnr.tablet,.contnr.face,.contnr.column,\n",
       ".contnr.line,.contnr.case,.contnr.trminal,\n",
       ".contnr.comment,\n",
       ".contnr.cluster,\n",
       ".contnr.quad,.contnr.sign {\n",
       "    display: flex;\n",
       "    justify-content: flex-start;\n",
       "    align-items: flex-start;\n",
       "    align-content: flex-start;\n",
       "    flex-flow: column nowrap;\n",
       "    background: #ffffff none repeat scroll 0 0;\n",
       "    padding:  0.5em 0.1em 0.1em 0.1em;\n",
       "    margin: 0.8em 0.1em 0.1em 0.1em;\n",
       "    border-radius: 0.2em;\n",
       "    border-style: solid;\n",
       "    border-width: 0.2em;\n",
       "    font-size: small;\n",
       "}\n",
       ".contnr.tablet,.contnr.face,.contnr.column {\n",
       "    border-color: #bb8800;\n",
       "}\n",
       ".contnr.line,.contnr.case,.contnr.trminal {\n",
       "    border-color: #0088bb;\n",
       "}\n",
       ".contnr.cluster {\n",
       "    flex-flow: row wrap;\n",
       "    border: 0;\n",
       "}\n",
       ".contnr.sign,.contnr.quad {\n",
       "    border-color: #bbbbbb;\n",
       "}\n",
       ".contnr.comment {\n",
       "    background-color: #ffddaa;\n",
       "    border: 0.2em solid #eecc99;\n",
       "    border-radius: 0.3em;\n",
       "}\n",
       ".contnr.hl {\n",
       "    background-color: #ffee66;\n",
       "}\n",
       ".lbl.tablet,.lbl.face,.lbl.column,\n",
       ".lbl.line,.lbl.case,.lbl.trminal,\n",
       ".lbl.comment,\n",
       ".lbl.cluster,\n",
       ".lbl.quad,.lbl.sign {\n",
       "    margin-top: -1.2em;\n",
       "    margin-left: 1em;\n",
       "    background: #ffffff none repeat scroll 0 0;\n",
       "    padding: 0 0.3em;\n",
       "    border-style: solid;\n",
       "    font-size: small;\n",
       "    color: #0000cc;\n",
       "    display: block;\n",
       "}\n",
       ".lbl.tablet,.lbl.face,.lbl.column {\n",
       "    border-color: #bb8800;\n",
       "    border-width: 0.2em;\n",
       "    border-radius: 0.2em;\n",
       "    color: #bb8800;\n",
       "}\n",
       ".lbl.line,.lbl.case,.lbl.trminal {\n",
       "    border-color: #0088bb;\n",
       "    border-width: 0.2em;\n",
       "    border-radius: 0.2em;\n",
       "    color: #0088bb;\n",
       "}\n",
       ".lbl.comment {\n",
       "    border-color: #eecc99;\n",
       "    border-width: 0.2em;\n",
       "    border-radius: 0.2em;\n",
       "    color: #eecc99;\n",
       "    background-color: #ffddaa none repeat scroll 0 0;\n",
       "}\n",
       ".lbl.clusterb,.lbl.clustere {\n",
       "    padding:  0.5em 0.1em 0.1em 0.1em;\n",
       "    margin: 0.8em 0.1em 0.1em 0.1em;\n",
       "    color: #888844;\n",
       "    font-size: x-small;\n",
       "}\n",
       ".lbl.clusterb {\n",
       "    border-left: 0.3em solid #cccc99;\n",
       "    border-right: 0;\n",
       "    border-top: 0;\n",
       "    border-bottom: 0;\n",
       "    border-radius: 1em;\n",
       "}\n",
       ".lbl.clustere {\n",
       "    border-left: 0;\n",
       "    border-right: 0.3em solid #cccc99;\n",
       "    border-top: 0;\n",
       "    border-bottom: 0;\n",
       "    border-radius: 1em;\n",
       "}\n",
       ".lbl.quad,.lbl.sign {\n",
       "    border-color: #bbbbbb;\n",
       "    border-width: 0.1em;\n",
       "    border-radius: 0.1em;\n",
       "    color: #bbbbbb;\n",
       "}\n",
       ".op {\n",
       "    padding:  0.5em 0.1em 0.1em 0.1em;\n",
       "    margin: 0.8em 0.1em 0.1em 0.1em;\n",
       "    font-family: monospace;\n",
       "    font-size: x-large;\n",
       "    font-weight: bold;\n",
       "}\n",
       ".name {\n",
       "    font-family: monospace;\n",
       "    font-size: medium;\n",
       "    color: #0000bb;\n",
       "}\n",
       ".period {\n",
       "    font-family: monospace;\n",
       "    font-size: medium;\n",
       "    font-weight: bold;\n",
       "    color: #0000bb;\n",
       "}\n",
       ".excavation {\n",
       "    font-family: monospace;\n",
       "    font-size: medium;\n",
       "    font-style: italic;\n",
       "    color: #779900;\n",
       "}\n",
       ".text {\n",
       "    font-family: sans-serif;\n",
       "    font-size: x-small;\n",
       "    color: #000000;\n",
       "}\n",
       ".srcln {\n",
       "    font-family: monospace;\n",
       "    font-size: medium;\n",
       "    color: #000000;\n",
       "}\n",
       ".srclnnum {\n",
       "    font-family: monospace;\n",
       "    font-size: x-small;\n",
       "    color: #0000bb;\n",
       "}\n",
       "\n",
       "span.hldot {\n",
       "\tbackground-color: var(--hl-strong);\n",
       "\tborder: 0.2rem solid var(--hl-rim);\n",
       "\tborder-radius: 0.4rem;\n",
       "\t/*\n",
       "\tdisplay: inline-block;\n",
       "\twidth: 0.8rem;\n",
       "\theight: 0.8rem;\n",
       "\t*/\n",
       "}\n",
       "span.hl {\n",
       "\tbackground-color: var(--hl-strong);\n",
       "\tborder-width: 0;\n",
       "\tborder-radius: 0.1rem;\n",
       "\tborder-style: solid;\n",
       "}\n",
       "\n",
       "span.hlup {\n",
       "\tborder-color: var(--hl-dark);\n",
       "\tborder-width: 0.1rem;\n",
       "\tborder-style: solid;\n",
       "\tborder-radius: 0.2rem;\n",
       "  padding: 0.2rem;\n",
       "}\n",
       "\n",
       ":root {\n",
       "\t--hl-strong:        hsla( 60, 100%,  70%, 0.9  );\n",
       "\t--hl-rim:           hsla( 55, 100%,  60%, 0.9  );\n",
       "\t--hl-dark:          hsla( 55, 100%,  40%, 0.9  );\n",
       "}\n",
       "</style>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<details open><summary><b>API members</b>:</summary>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Computed/#computed-data\" title=\"doc\">C Computed</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Computed/#computed-data\" title=\"doc\">Call AllComputeds</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Computed/#computed-data\" title=\"doc\">Cs ComputedString</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#edge-features\" title=\"doc\">E Edge</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#edge-features\" title=\"doc\">Eall AllEdges</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#edge-features\" title=\"doc\">Es EdgeString</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Fabric/#loading\" title=\"doc\">ensureLoaded</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Fabric/#loading\" title=\"doc\">TF</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Fabric/#loading\" title=\"doc\">ignored</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Fabric/#loading\" title=\"doc\">loadLog</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Locality/#locality\" title=\"doc\">L Locality</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Misc/#messaging\" title=\"doc\">cache</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Misc/#messaging\" title=\"doc\">error</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Misc/#messaging\" title=\"doc\">indent</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Misc/#messaging\" title=\"doc\">info</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Misc/#messaging\" title=\"doc\">reset</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Nodes/#navigating-nodes\" title=\"doc\">N Nodes</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Nodes/#navigating-nodes\" title=\"doc\">sortKey</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Nodes/#navigating-nodes\" title=\"doc\">sortKeyTuple</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Nodes/#navigating-nodes\" title=\"doc\">otypeRank</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Nodes/#navigating-nodes\" title=\"doc\">sortNodes</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#node-features\" title=\"doc\">F Feature</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#node-features\" title=\"doc\">Fall AllFeatures</a>, <a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Features/#node-features\" title=\"doc\">Fs FeatureString</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Search/#search\" title=\"doc\">S Search</a><br/>\n",
       "<a target=\"_blank\" href=\"https://annotation.github.io/text-fabric/Api/Text/#text\" title=\"doc\">T Text</a></details>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "A = use('oldbabylonian', hoist=globals(), lgc=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "232450"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pNum = 'P386467'\n",
    "tablet = T.tabletNode(pNum)\n",
    "tablet"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('P386467',)"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "T.sectionFromNode(tablet)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['text-graphic-full', 'text-ling-full', 'text-orig-full', 'text-uni-full']"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "textFormats = sorted(T.formats)\n",
    "textFormats"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "@obverse\n",
      "1.                  : 1. a-na li-pi2-it-e2-a qi2-bi2-ma\n",
      "text-graphic-full   : a-na li-pi2-it-e2-a qi2-bi2-ma\n",
      "text-ling-full      : a-na li-pi2-it-e2-a qi2-bi2-ma\n",
      "text-orig-full      : a-na li-pi2-it-e2-a qi2-bi2-ma\n",
      "text-uni-full       : 𒀀𒈾 𒇷𒁉𒀉𒂍𒀀 𒆠𒉈𒈠\n",
      "\n",
      "2.                  : 2. um-ma {d}iszkur-ra-bi-ma\n",
      "text-graphic-full   : um-ma d-iszkur-ra-bi-ma\n",
      "text-ling-full      : um-ma d-iszkur-ra-bi-ma\n",
      "text-orig-full      : um-ma {d}-iszkur-ra-bi-ma\n",
      "text-uni-full       : 𒌝𒈠 d𒅎𒊏𒁉𒈠\n",
      "\n",
      "3.                  : 3. {d}utu li-ba-al-li-it,-ka\n",
      "text-graphic-full   : d-utu li-ba-al-li-it,-ka\n",
      "text-ling-full      : d-utu li-ba-al-li-it,-ka\n",
      "text-orig-full      : {d}-utu li-ba-al-li-it,-ka\n",
      "text-uni-full       : d𒌓 𒇷𒁀𒀠𒇷𒀉𒅗\n",
      "\n",
      "4.                  : 4. tup-pi2 szi-ni-szu usz-ta-bi-la-ak-kum\n",
      "text-graphic-full   : tup-pi2 szi-ni-szu usz-ta-bi-la-ak-kum\n",
      "text-ling-full      : tup-pi2 szi-ni-szu usz-ta-bi-la-ak-kum\n",
      "text-orig-full      : tup-pi2 szi-ni-szu usz-ta-bi-la-ak-kum\n",
      "text-uni-full       : 𒁾𒁉 𒅆𒉌𒋗 𒍑|𒍖𒋫𒁉𒆷𒀝𒄣\n",
      "\n",
      "5.                  : 5. ze-nu-um za-ni-a-ta\n",
      "text-graphic-full   : ze-nu-um za-ni-a-ta\n",
      "text-ling-full      : ze-nu-um za-ni-a-ta\n",
      "text-orig-full      : ze-nu-um za-ni-a-ta\n",
      "text-uni-full       : 𒍣𒉡𒌝 𒍝𒉌𒀀𒋫\n",
      "\n",
      "6.                  : 6. {disz}i-bi-{d}suen u3 mu-te-er-gi-mil-lim\n",
      "text-graphic-full   : disz-i-bi-d-suen u3 mu-te-er-gi-mil-lim\n",
      "text-ling-full      : disz-i-bi-d-suen u3 mu-te-er-gi-mil-lim\n",
      "text-orig-full      : {disz}-i-bi-{d}-suen u3 mu-te-er-gi-mil-lim\n",
      "text-uni-full       : 𒁹𒄿𒁉d𒂗𒍪 𒅇 𒈬𒋼𒅕𒄀𒅖𒅆\n",
      "\n",
      "7.                  : 7. a-na _a-sza3-mesz_ u3 _{gesz}kiri6-mesz_ sza nu-ha-a\n",
      "text-graphic-full   : a-na a-sza3-mesz u3 gesz-kiri6-mesz sza nu-ha-a\n",
      "text-ling-full      : a-na a-sza3-mesz u3 gesz-kiri6-mesz sza nu-ha-a\n",
      "text-orig-full      : a-na _a-sza3-mesz_ u3 {gesz}-kiri6-mesz_ sza nu-ha-a\n",
      "text-uni-full       : 𒀀𒈾 𒀀𒊮𒈨𒌍 𒅇 𒄑𒊬𒈨𒌍 𒊭 𒉡ha𒀀\n",
      "\n",
      "8.                  : 8. ma-an-nu-um i-si-szu-nu-ti-i-ma\n",
      "text-graphic-full   : ma-an-nu-um i-si-szu-nu-ti-i-ma\n",
      "text-ling-full      : ma-an-nu-um i-si-szu-nu-ti-i-ma\n",
      "text-orig-full      : ma-an-nu-um i-si-szu-nu-ti-i-ma\n",
      "text-uni-full       : 𒈠𒀭𒉡𒌝 𒄿𒋛𒋗𒉡𒋾𒄿𒈠\n",
      "\n",
      "9.                  : 9. _a-sza3-mesz_ a-na e-re-szu!(SZE)-tim i-ta-na-di-nu\n",
      "text-graphic-full   : a-sza3-mesz a-na e-re-SZE-tim i-ta-na-di-nu\n",
      "text-ling-full      : a-sza3-mesz a-na e-re-szu-tim i-ta-na-di-nu\n",
      "text-orig-full      : _a-sza3-mesz_ a-na e-re-szu!(SZE)-tim i-ta-na-di-nu\n",
      "text-uni-full       : 𒀀𒊮𒈨𒌍 𒀀𒈾 𒂊𒊑𒋗𒁴 𒄿𒋫𒈾𒁲𒉡\n",
      "\n",
      "10.                 : 10. asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-graphic-full   : asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-ling-full      : asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-orig-full      : asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-uni-full       : 𒀸tap𒊏𒀝𒄣 𒇻𒌑 𒋾𒁲𒂊\n",
      "\n",
      "11.                 : 11. a-na _a-sza3-mesz_ u3-lu <_{gesz}>kiri6-mesz_ a-na sa-na-qi2-im\n",
      "text-graphic-full   : a-na a-sza3-mesz u3-lu gesz-kiri6-mesz a-na sa-na-qi2-im\n",
      "text-ling-full      : a-na a-sza3-mesz u3-lu gesz-kiri6-mesz a-na sa-na-qi2-im\n",
      "text-orig-full      : a-na _a-sza3-mesz_ u3-lu {gesz}-kiri6-mesz_ a-na sa-na-qi2-im\n",
      "text-uni-full       : 𒀀𒈾 𒀀𒊮𒈨𒌍 𒅇𒇻 𒄑𒊬𒈨𒌍 𒀀𒈾 𒊓𒈾𒆠𒅎\n",
      "\n",
      "12.                 : 12. a-na-ku-u2 a-sza-pa-ar-ma\n",
      "text-graphic-full   : a-na-ku-u2 a-sza-pa-ar-ma\n",
      "text-ling-full      : a-na-ku-u2 a-sza-pa-ar-ma\n",
      "text-orig-full      : a-na-ku-u2 a-sza-pa-ar-ma\n",
      "text-uni-full       : 𒀀𒈾𒆪𒌑 𒀀𒊭𒉺𒅈𒈠\n",
      "\n",
      "13.                 : 13. _a-sza3_ a-na e-la-li i-na-ad-di-nu\n",
      "text-graphic-full   : a-sza3 a-na e-la-li i-na-ad-di-nu\n",
      "text-ling-full      : a-sza3 a-na e-la-li i-na-ad-di-nu\n",
      "text-orig-full      : _a-sza3_ a-na e-la-li i-na-ad-di-nu\n",
      "text-uni-full       : 𒀀𒊮 𒀀𒈾 𒂊𒆷𒇷 𒄿𒈾𒀜𒁲𒉡\n",
      "\n",
      "14.                 : 14. i-is-sa3-ah-ru-u2 i-ki!-mu-szu-ma\n",
      "text-graphic-full   : i-is-sa3-ah-ru-u2 i-ki-mu-szu-ma\n",
      "text-ling-full      : i-is-sa3-ah-ru-u2 i-ki-mu-szu-ma\n",
      "text-orig-full      : i-is-sa3-ah-ru-u2 i-ki!-mu-szu-ma\n",
      "text-uni-full       : 𒄿𒄑𒍝ah𒊒𒌑 𒄿𒆠𒈬𒋗𒈠\n",
      "\n",
      "15.                 : 15. _a-sza3_ a-na _dumu_ mu-na-wi-rum\n",
      "text-graphic-full   : a-sza3 a-na dumu mu-na-wi-rum\n",
      "text-ling-full      : a-sza3 a-na dumu mu-na-wi-rum\n",
      "text-orig-full      : _a-sza3_ a-na _dumu_ mu-na-wi-rum\n",
      "text-uni-full       : 𒀀𒊮 𒀀𒈾 𒌉 𒈬𒈾𒉿𒀸\n",
      "\n",
      "\n",
      "@reverse\n",
      "1.                  : 1. i-na-ad#-di#-nu#-u2\n",
      "text-graphic-full   : i-na-ad-di-nu-u2\n",
      "text-ling-full      : i-na-ad-di-nu-u2\n",
      "text-orig-full      : i-na-ad#-di#-nu#-u2\n",
      "text-uni-full       : 𒄿𒈾𒀜𒁲𒉡𒌑\n",
      "\n",
      "2.                  : 2. ma-an-na-szu-u2# _dumu#_ mu-na-wi-rum [an]-nu-um\n",
      "text-graphic-full   : ma-an-na-szu-u2 dumu mu-na-wi-rum an-nu-um\n",
      "text-ling-full      : ma-an-na-szu-u2 dumu mu-na-wi-rum an-nu-um\n",
      "text-orig-full      : ma-an-na-szu-u2# _dumu#_ mu-na-wi-rum [an]-nu-um\n",
      "text-uni-full       : 𒈠𒀭𒈾𒋗𒌑 𒌉 𒈬𒈾𒉿𒀸 𒀭𒉡𒌝\n",
      "\n",
      "3.                  : 3. sza a-na-ku-u2 _a-sza3_ a-na e-la-li a-na-di-nu-ma\n",
      "text-graphic-full   : sza a-na-ku-u2 a-sza3 a-na e-la-li a-na-di-nu-ma\n",
      "text-ling-full      : sza a-na-ku-u2 a-sza3 a-na e-la-li a-na-di-nu-ma\n",
      "text-orig-full      : sza a-na-ku-u2 _a-sza3_ a-na e-la-li a-na-di-nu-ma\n",
      "text-uni-full       : 𒊭 𒀀𒈾𒆪𒌑 𒀀𒊮 𒀀𒈾 𒂊𒆷𒇷 𒀀𒈾𒁲𒉡𒈠\n",
      "\n",
      "4.                  : 4. szu-nu-u2 a-na sza-szu-um i-na-ad-di-nu-szu\n",
      "text-graphic-full   : szu-nu-u2 a-na sza-szu-um i-na-ad-di-nu-szu\n",
      "text-ling-full      : szu-nu-u2 a-na sza-szu-um i-na-ad-di-nu-szu\n",
      "text-orig-full      : szu-nu-u2 a-na sza-szu-um i-na-ad-di-nu-szu\n",
      "text-uni-full       : 𒋗𒉡𒌑 𒀀𒈾 𒊭𒋗𒌝 𒄿𒈾𒀜𒁲𒉡𒋗\n",
      "\n",
      "5.                  : 5. a-na e-pe2-szi-im an-ni-im\n",
      "text-graphic-full   : a-na e-pe2-szi-im an-ni-im\n",
      "text-ling-full      : a-na e-pe2-szi-im an-ni-im\n",
      "text-orig-full      : a-na e-pe2-szi-im an-ni-im\n",
      "text-uni-full       : 𒀀𒈾 𒂊𒁉𒅆𒅎 𒀭𒉌𒅎\n",
      "\n",
      "6.                  : 6. u2-wa-asz-sza-ar-szu-nu-ti-i\n",
      "text-graphic-full   : u2-wa-asz-sza-ar-szu-nu-ti-i\n",
      "text-ling-full      : u2-wa-asz-sza-ar-szu-nu-ti-i\n",
      "text-orig-full      : u2-wa-asz-sza-ar-szu-nu-ti-i\n",
      "text-uni-full       : 𒌑𒉿|𒁀𒀸𒊭𒅈𒋗𒉡𒋾𒄿\n",
      "\n",
      "7.                  : 7. asz-tap-ra-ak-kum lu-u2 ti#-de#-e\n",
      "text-graphic-full   : asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-ling-full      : asz-tap-ra-ak-kum lu-u2 ti-de-e\n",
      "text-orig-full      : asz-tap-ra-ak-kum lu-u2 ti#-de#-e\n",
      "text-uni-full       : 𒀸tap𒊏𒀝𒄣 𒇻𒌑 𒋾𒁲𒂊\n",
      "\n",
      "8.                  : 8. _a-sza3_ ta-ka-ap-pi2-da-szu#-um#\n",
      "text-graphic-full   : a-sza3 ta-ka-ap-pi2-da-szu-um\n",
      "text-ling-full      : a-sza3 ta-ka-ap-pi2-da-szu-um\n",
      "text-orig-full      : _a-sza3_ ta-ka-ap-pi2-da-szu#-um#\n",
      "text-uni-full       : 𒀀𒊮 𒋫𒅗𒀊𒁉𒁕𒋗𒌝\n",
      "\n",
      "9.                  : 9. a-na e-la-li i#-di#-in\n",
      "text-graphic-full   : a-na e-la-li i-di-in\n",
      "text-ling-full      : a-na e-la-li i-di-in\n",
      "text-orig-full      : a-na e-la-li i#-di#-in\n",
      "text-uni-full       : 𒀀𒈾 𒂊𒆷𒇷 𒄿𒁲𒅔\n",
      "\n",
      "10.                 : 10. ma-an-na-szu {disz}ta-ri#-ba#-[tum] an-nu-um\n",
      "text-graphic-full   : ma-an-na-szu disz-ta-ri-ba-tum an-nu-um\n",
      "text-ling-full      : ma-an-na-szu disz-ta-ri-ba-tum an-nu-um\n",
      "text-orig-full      : ma-an-na-szu {disz}-ta-ri#-ba#-[tum] an-nu-um\n",
      "text-uni-full       : 𒈠𒀭𒈾𒋗 𒁹𒋫𒊑𒁀𒌈 𒀭𒉡𒌝\n",
      "\n",
      "11.                 : 11. sza _a-sza3-mesz_ sza _aga-us2#-[mesz_]\n",
      "text-graphic-full   : sza a-sza3-mesz sza aga-us2-mesz\n",
      "text-ling-full      : sza a-sza3-mesz sza aga-us2-mesz\n",
      "text-orig-full      : sza _a-sza3-mesz_ sza _aga-us2#-[mesz_]\n",
      "text-uni-full       : 𒊭 𒀀𒊮𒈨𒌍 𒊭 𒂆𒍑𒈨𒌍\n",
      "\n",
      "12.                 : 12. a-na e-re-szu!(SZI)-tim i-[na-di-nu]\n",
      "text-graphic-full   : a-na e-re-SZI-tim i-na-di-nu\n",
      "text-ling-full      : a-na e-re-szu-tim i-na-di-nu\n",
      "text-orig-full      : a-na e-re-szu!(SZI)-tim i-[na-di-nu]\n",
      "text-uni-full       : 𒀀𒈾 𒂊𒊑𒋗𒁴 𒄿𒈾𒁲𒉡\n",
      "\n",
      "13.                 : 13. _a-sza3-mesz_ u3# _{gesz}kiri6_ sza i-[di-nu]\n",
      "text-graphic-full   : a-sza3-mesz u3 gesz-kiri6 sza i-di-nu\n",
      "text-ling-full      : a-sza3-mesz u3 gesz-kiri6 sza i-di-nu\n",
      "text-orig-full      : _a-sza3-mesz_ u3# {gesz}-kiri6_ sza i-[di-nu]\n",
      "text-uni-full       : 𒀀𒊮𒈨𒌍 𒅇 𒄑𒊬 𒊭 𒄿𒁲𒉡\n",
      "\n",
      "14.                 : 14. e-ki-im-szu-u2-ma a-na sa-na-qi2-im\n",
      "text-graphic-full   : e-ki-im-szu-u2-ma a-na sa-na-qi2-im\n",
      "text-ling-full      : e-ki-im-szu-u2-ma a-na sa-na-qi2-im\n",
      "text-orig-full      : e-ki-im-szu-u2-ma a-na sa-na-qi2-im\n",
      "text-uni-full       : 𒂊𒆠𒅎𒋗𒌑𒈠 𒀀𒈾 𒊓𒈾𒆠𒅎\n",
      "\n",
      "15.                 : 15. a-ap-pa-szu lu-u2 sze-bi-ir\n",
      "text-graphic-full   : a-ap-pa-szu lu-u2 sze-bi-ir\n",
      "text-ling-full      : a-ap-pa-szu lu-u2 sze-bi-ir\n",
      "text-orig-full      : a-ap-pa-szu lu-u2 sze-bi-ir\n",
      "text-uni-full       : 𒀀𒀊𒉺𒋗 𒇻𒌑 𒊺𒁉𒅕\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for face in L.d(tablet, otype='face'):\n",
    "  print(f'\\n@{F.type.v(face)}')\n",
    "  for line in L.d(face, otype='line'):\n",
    "    print(f'{F.ln.v(line):<20}: {F.srcLn.v(line)}')\n",
    "    for fmt in textFormats:\n",
    "      print(f'{fmt:<20}: {T.text(line, fmt=fmt, descend=True)}')\n",
    "    print()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['a', '-', 'b', '+', 'c', '-', 'd', '+', 'e', '+', 'f']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import re\n",
    "\n",
    "splitRe = re.compile('([-+])')\n",
    "\n",
    "x = 'a-b+c-d+e+f'\n",
    "\n",
    "splitRe.split(x)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API