{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "\n", "\n", "---\n", "\n", "To get started: consult [start](start.ipynb)\n", "\n", "---\n", "\n", "# Rich display\n", "\n", "The apps of Text-Fabric know more about a corpus than vanilla TF.\n", "That knowledge is used by the apps to define pretty and plain displays of textual objects.\n", "\n", "A **plain** display of an object is a simple reference to that object if it is big, or the text of that object if it is small.\n", "\n", "A **pretty** display of an object is a representation of the structure of that object. It contains text and features of sub objects.\n", "Provided the object is not too big." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2018-05-24T10:06:39.818664Z", "start_time": "2018-05-24T10:06:39.796588Z" } }, "outputs": [], "source": [ "from tf.app import use" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2018-05-24T10:06:51.615044Z", "start_time": "2018-05-24T10:06:50.161456Z" } }, "outputs": [ { "data": { "text/html": [ "TF-app: ~/text-fabric-data/q-ran/quran/app" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "data: ~/text-fabric-data/q-ran/quran/tf/0.4" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "This is Text-Fabric 9.2.3\n", "Api reference : https://annotation.github.io/text-fabric/tf/cheatsheet.html\n", "\n", "40 features found and 0 ignored\n" ] }, { "data": { "text/html": [ "Text-Fabric: Text-Fabric API 9.2.3, q-ran/quran/app v3, Search Reference
Data: QURAN, Character table, Feature docs
Features:
\n", "
Quran\n", "
\n", "\n", "
\n", "
\n", "a\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ascii\n", "
\n", "
str
\n", "
\n", " transliterated text of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ax\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "case\n", "
\n", "
str
\n", "
\n", " case of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "component\n", "
\n", "
str
\n", "
\n", " role of the word in its word group (prefix, main, or suffix)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "definite\n", "
\n", "
int
\n", "
\n", " whether the word is definite\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "f\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "formation\n", "
\n", "
str
\n", "
\n", " stem formation of verb\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "fx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "gn\n", "
\n", "
str
\n", "
\n", " gender of word (masculine, feminine)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "interjection\n", "
\n", "
str
\n", "
\n", " kind of interjection\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "l\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "lemma\n", "
\n", "
str
\n", "
\n", " lemma of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "lx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "mood\n", "
\n", "
str
\n", "
\n", " mood of a verb (subj, jus, ...)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "n\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "name\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "name@ll\n", "
\n", "
str
\n", "
\n", " Name of sura in English\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
english
\n", "
\n", "\n", "
\n", "
languageCode:
\n", "
en
\n", "
\n", "\n", "
\n", "
languageEnglish:
\n", "
English
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nameAscii\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic, transliterated\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nameTrans\n", "
\n", "
str
\n", "
\n", " Name of sura in Arabic, transcribed\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
language:
\n", "
arabic
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "nu\n", "
\n", "
str
\n", "
\n", " number of word (singular, dual, plural)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:55Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "number\n", "
\n", "
int
\n", "
\n", " Number of sura, aya, word group, or word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "order\n", "
\n", "
int
\n", "
\n", " ordinal number of sura\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "otype\n", "
\n", "
str
\n", "
\n", " Quran: plain text plus morphological annotations at the word level\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "pos\n", "
\n", "
str
\n", "
\n", " part-of-speech of word, main class\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
documentation:
\n", "
http://corpus.quran.com/documentation/tagset.jsp
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "posx\n", "
\n", "
str
\n", "
\n", " part-of-speech of word, refined class\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
documentation:
\n", "
http://corpus.quran.com/documentation/tagset.jsp
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "ps\n", "
\n", "
str
\n", "
\n", " person of word (1st, 2nd, 3rd)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "root\n", "
\n", "
str
\n", "
\n", " root of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "sp\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "space\n", "
\n", "
str
\n", "
\n", " material between this word and the next\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "tense\n", "
\n", "
str
\n", "
\n", " tense of a verb (perfect, imperfect, ...)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "translation@ll\n", "
\n", "
str
\n", "
\n", " english translation of whole aya\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
translator:
\n", "
Arthur Arberry (1955), https://en.wikipedia.org/wiki/Arthur_John_Arberry
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "type\n", "
\n", "
str
\n", "
\n", " type of sura\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "unicode\n", "
\n", "
str
\n", "
\n", " unicode arabic text of word\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:56Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "voice\n", "
\n", "
str
\n", "
\n", " voice of a verb (active, passive)\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "w\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "wx\n", "
\n", "
str
\n", "
\n", " not yet understood\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n", "oslots\n", "
\n", "
none
\n", "
\n", " Quran: plain text plus morphological annotations at the word level\n", "
\n", "\n", "
\n", "
acronym:
\n", "
quran
\n", "
\n", "\n", "
\n", "
convertedBy:
\n", "
Dirk Roorda and Cornelis van Lit
\n", "
\n", "\n", "
\n", "
createdBy:
\n", "
Kais Dukes
\n", "
\n", "\n", "
\n", "
createdDate:
\n", "
2011
\n", "
\n", "\n", "
\n", "
dateWritten:
\n", "
2019-05-13T07:17:57Z
\n", "
\n", "\n", "
\n", "
license1:
\n", "
Open Source, unspecified, see http://corpus.quran.com/releasenotes.jsp
\n", "
\n", "\n", "
\n", "
license2:
\n", "
Creative Commons BY-ND 3.0 Unported
\n", "
\n", "\n", "
\n", "
source1:
\n", "
Morphology: Quranic Arabic Corpus 0.4 (2011) by Kais Dukes
\n", "
\n", "\n", "
\n", "
source1Url:
\n", "
http://corpus.quran.com
\n", "
\n", "\n", "
\n", "
source2:
\n", "
Text: Tanzil Quran Text (Uthmani, version 1.0.2)
\n", "
\n", "\n", "
\n", "
source2Url:
\n", "
http://tanzil.net/docs/home
\n", "
\n", "\n", "
\n", "
writtenBy:
\n", "
Text-Fabric
\n", "
\n", "\n", "
\n", "
\n", "
\n", "\n", "
\n", "
\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
Text-Fabric API: names N F E L T S C TF directly usable

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A = use(\"q-ran/quran\", hoist=globals())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Arbitrary nodes\n", "We pretty-print an arbitrary node." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:33.060576Z", "start_time": "2018-04-25T13:57:33.051457Z" } }, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "aya = F.otype.s(\"aya\")[1000]\n", "A.pretty(aya)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Where is this phrase on Tanzil?\n", "You can click on the passage reference.\n", "\n", "You can generate this link as follows:" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:36.441490Z", "start_time": "2018-04-25T13:57:36.432236Z" } }, "outputs": [ { "data": { "text/html": [ "7:47" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.webLink(aya)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A link to another passage:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:46.144712Z", "start_time": "2018-04-25T13:57:46.138983Z" } }, "outputs": [], "source": [ "z = A.nodeFromSectionStr(\"3:4\")" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:47.022343Z", "start_time": "2018-04-25T13:57:47.012756Z" } }, "outputs": [ { "data": { "text/html": [ "3:4" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.webLink(z)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Plain\n", "\n", "We can represent a node in plain representation and highlight specific portions." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "aya = F.otype.s(\"aya\")[1000]\n", "groups = L.d(aya, otype=\"group\")\n", "words = L.d(aya, otype=\"word\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First we highlight some words:" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
7:47  وَإِذَا صُرِفَتْ أَبْصَٰرُهُمْ تِلْقَآءَ أَصْحَٰبِ ٱلنَّارِ قَالُوا۟ رَبَّنَا لَا تَجْعَلْنَا مَعَ ٱلْقَوْمِ ٱلظَّٰلِمِينَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "wordHighlights = set(words[i] for i in {1, 3, 5, 7, 9})\n", "A.plain(aya, highlights=wordHighlights)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now some word groups:" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
7:47  وَإِذَا صُرِفَتْ أَبْصَٰرُهُمْ تِلْقَآءَ أَصْحَٰبِ ٱلنَّارِ قَالُوا۟ رَبَّنَا لَا تَجْعَلْنَا مَعَ ٱلْقَوْمِ ٱلظَّٰلِمِينَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "groupHighlights = set(groups[i] for i in {7, 12})\n", "A.plain(aya, highlights=groupHighlights)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As you see, when we highlight bigger things than words, we put a\n", "highlighted border around the words in those things." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can do both:" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
7:47  وَإِذَا صُرِفَتْ أَبْصَٰرُهُمْ تِلْقَآءَ أَصْحَٰبِ ٱلنَّارِ قَالُوا۟ رَبَّنَا لَا تَجْعَلْنَا مَعَ ٱلْقَوْمِ ٱلظَّٰلِمِينَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "highlights = set(wordHighlights) | set(groupHighlights)\n", "A.plain(aya, highlights=highlights)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can also highlight the aya itself." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
7:47  وَإِذَا صُرِفَتْ أَبْصَٰرُهُمْ تِلْقَآءَ أَصْحَٰبِ ٱلنَّارِ قَالُوا۟ رَبَّنَا لَا تَجْعَلْنَا مَعَ ٱلْقَوْمِ ٱلظَّٰلِمِينَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "highlights = {aya}\n", "A.plain(aya, highlights=highlights)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As you see, only the aya label is highlighted, not the contents.\n", "The same policy is followed for suras and other sectional units." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
29:46  
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "juz = F.otype.s(\"juz\")[20]\n", "A.plain(juz, highlights={juz})" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
2:164  
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "ruku = F.otype.s(\"ruku\")[20]\n", "A.plain(ruku, highlights={ruku})" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "But if we pass a condense type that is bigger than the condense type, we do not get the material of the section!\n", "\n", "Remember that we can see the types and their bigness as follows:" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(('manzil', 18317.0, 216987, 216993),\n", " ('sajda', 6043.066666666667, 218154, 218168),\n", " ('juz', 4273.966666666666, 212125, 212154),\n", " ('sura', 1124.7280701754387, 218169, 218282),\n", " ('hizb', 534.2458333333333, 211885, 212124),\n", " ('ruku', 230.60971223021582, 217598, 218153),\n", " ('page', 212.28311258278146, 216994, 217597),\n", " ('aya', 20.56109685695959, 128220, 134455),\n", " ('lex', 15.440397350993377, 212155, 216986),\n", " ('group', 1.6559557788425525, 134456, 211884),\n", " ('word', 1, 1, 128219))" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "C.levels.data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So the `hizb` is bigger than the *page*.\n", "\n", "Let's print a plain *page* with condense type `hizb`:" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
2:135  وَقَالُوا۟ كُونُوا۟ هُودًا أَوْ نَصَٰرَىٰ تَهْتَدُوا۟ قُلْ بَلْ مِلَّةَ إِبْرَٰهِۦمَ حَنِيفًا وَمَا كَانَ مِنَ ٱلْمُشْرِكِينَقُولُوٓا۟ ءَامَنَّا بِٱللَّهِ وَمَآ أُنزِلَ إِلَيْنَا وَمَآ أُنزِلَ إِلَىٰٓ إِبْرَٰهِۦمَ وَإِسْمَٰعِيلَ وَإِسْحَٰقَ وَيَعْقُوبَ وَٱلْأَسْبَاطِ وَمَآ أُوتِىَ مُوسَىٰ وَعِيسَىٰ وَمَآ أُوتِىَ ٱلنَّبِيُّونَ مِن رَّبِّهِمْ لَا نُفَرِّقُ بَيْنَ أَحَدٍ مِّنْهُمْ وَنَحْنُ لَهُۥ مُسْلِمُونَفَإِنْ ءَامَنُوا۟ بِمِثْلِ مَآ ءَامَنتُم بِهِۦ فَقَدِ ٱهْتَدَوا۟ وَّإِن تَوَلَّوْا۟ فَإِنَّمَا هُمْ فِى شِقَاقٍ فَسَيَكْفِيكَهُمُ ٱللَّهُ وَهُوَ ٱلسَّمِيعُ ٱلْعَلِيمُصِبْغَةَ ٱللَّهِ وَمَنْ أَحْسَنُ مِنَ ٱللَّهِ صِبْغَةً وَنَحْنُ لَهُۥ عَٰبِدُونَقُلْ أَتُحَآجُّونَنَا فِى ٱللَّهِ وَهُوَ رَبُّنَا وَرَبُّكُمْ وَلَنَآ أَعْمَٰلُنَا وَلَكُمْ أَعْمَٰلُكُمْ وَنَحْنُ لَهُۥ مُخْلِصُونَأَمْ تَقُولُونَ إِنَّ إِبْرَٰهِۦمَ وَإِسْمَٰعِيلَ وَإِسْحَٰقَ وَيَعْقُوبَ وَٱلْأَسْبَاطَ كَانُوا۟ هُودًا أَوْ نَصَٰرَىٰ قُلْ ءَأَنتُمْ أَعْلَمُ أَمِ ٱللَّهُ وَمَنْ أَظْلَمُ مِمَّن كَتَمَ شَهَٰدَةً عِندَهُۥ مِنَ ٱللَّهِ وَمَا ٱللَّهُ بِغَٰفِلٍ عَمَّا تَعْمَلُونَتِلْكَ أُمَّةٌ قَدْ خَلَتْ لَهَا مَا كَسَبَتْ وَلَكُم مَّا كَسَبْتُمْ وَلَا تُسْـَٔلُونَ عَمَّا كَانُوا۟ يَعْمَلُونَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "page = F.otype.s(\"page\")[20]\n", "A.plain(page, condenseType=\"hizb\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can use different colours for highlighting.\n", "Lets color even words differently from uneven words, and ayas in yet another color." ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
7:47  وَإِذَا صُرِفَتْ أَبْصَٰرُهُمْ تِلْقَآءَ أَصْحَٰبِ ٱلنَّارِ قَالُوا۟ رَبَّنَا لَا تَجْعَلْنَا مَعَ ٱلْقَوْمِ ٱلظَّٰلِمِينَ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "highlights = {i: \"lightsalmon\" for i in words if i % 2 == 0}\n", "highlights.update({i: \"mediumaquamarine\" for i in words if i % 2 == 1})\n", "highlights.update({i: \"blue\" for i in groups if i % 5 == 1})\n", "highlights[aya] = \"#eeeeff\"\n", "A.plain(aya, highlights=highlights)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Ayas\n", "\n", "Now a couple of ayas:" ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:50.369004Z", "start_time": "2018-04-25T13:57:50.363695Z" } }, "outputs": [], "source": [ "aya1 = A.nodeFromSectionStr(\"2:7\")\n", "aya2 = A.nodeFromSectionStr(\"3:17\")" ] }, { "cell_type": "code", "execution_count": 19, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:57:53.124725Z", "start_time": "2018-04-25T13:57:53.108960Z" } }, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The other aya with node numbers and standard features." ] }, { "cell_type": "code", "execution_count": 20, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:58:01.798768Z", "start_time": "2018-04-25T13:58:01.787884Z" } }, "outputs": [ { "data": { "text/html": [ "
aya:128233
group:134532
verblemma=xatamaroot=xtmtense=perfect
group:134533
nounproperlemma={ll~ahroot=Alh
group:134534
prepositionlemma=EalaY`
group:134535
nounlemma=qalobroot=qlb
135 هِمْ
pronounpersonal
group:134536
136 وَ
conjunctioncoordinating
prepositionlemma=EalaY`
group:134537
nounlemma=samoEroot=smE
139 هِمْ
pronounpersonal
group:134538
140 وَ
particleresumption
prepositionlemma=EalaY`
group:134539
nounlemma=baSarroot=bSr
143 هِمْ
pronounpersonal
group:134540
nounlemma=gi$a`waproot=g$w
group:134541
145 وَ
particleresumption
146 لَ
preposition
147 هُمْ
pronounpersonal
group:134542
nounlemma=Ea*aAbroot=E*b
group:134543
adjectivelemma=EaZiymroot=EZm
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya1, withNodes=True, standardFeatures=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we selectively remove a few features from the display:" ] }, { "cell_type": "code", "execution_count": 21, "metadata": { "ExecuteTime": { "end_time": "2018-04-25T13:58:07.808474Z", "start_time": "2018-04-25T13:58:07.784567Z" } }, "outputs": [ { "data": { "text/html": [ "
aya
group
verblemma=xatamaroot=xtm
group
nounlemma={ll~ahroot=Alh
group
prepositionlemma=EalaY`
group
nounlemma=qalobroot=qlb
هِمْ
pronoun
group
وَ
conjunction
prepositionlemma=EalaY`
group
nounlemma=samoEroot=smE
هِمْ
pronoun
group
وَ
particle
prepositionlemma=EalaY`
group
nounlemma=baSarroot=bSr
هِمْ
pronoun
group
nounlemma=gi$a`waproot=g$w
group
وَ
particle
لَ
preposition
هُمْ
pronoun
group
nounlemma=Ea*aAbroot=E*b
group
adjectivelemma=EaZiymroot=EZm
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya1, suppress={\"posx\", \"tense\"}, standardFeatures=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we add features to the display:" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "A.displaySetup(extraFeatures=[\"ps\", \"nu\", \"gn\"])" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
aya
group
gn=mnu=sps=3
group
هِمْ
gn=mnu=pps=3
group
group
هِمْ
gn=mnu=pps=3
group
هِمْ
gn=mnu=pps=3
group
وَ
لَ
هُمْ
gn=mnu=pps=3
group
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "and we reset the pretty features to the default values:" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "A.displayReset(\"extraFeatures\")" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
aya
group
group
group
هِمْ
group
group
وَ
لَ
هُمْ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya1)" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [], "source": [ "A.displaySetup(extraFeatures=[\"translation@en\", \"translation@nl\"])" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
aya
translation@en=God has set a seal on their hearts and on their hearing, and on their eyes is a covering, and there awaits them a mighty chastisement.translation@nl=God heeft hun harten en hun gehoor verzegeld en over hun ogen is een sluier; voor hen is er een geweldige bestraffing.
group
group
group
هِمْ
group
group
وَ
لَ
هُمْ
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(aya1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Translations in pretty display\n", "\n", "We can add the translation features `translation@ll` for `ll = en` or `nl` to the extra features for pretty display.\n", "Let's pretty display the first sura with both translations." ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [], "source": [ "sura1 = F.otype.s(\"sura\")[0]" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
sura 1
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(sura1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "That is a bit meagre. The reason is that the *sura* is a **big** type." ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
sura 1
aya
translation@en=In the Name of God, the Merciful, the Compassionatetranslation@nl=In de naam van God, de erbarmer, de barmhartige.
aya
translation@en=Praise belongs to God, the Lord of all Being,translation@nl=Lof zij God, de Heer van de wereldbewoners,
aya
translation@en=the All-merciful, the All-compassionate,translation@nl=de erbarmer, de barmhartige,
aya
translation@en=the Master of the Day of Doom.translation@nl=de heerser op de oordeelsdag.
aya
translation@en=Thee only we serve; to Thee alone we pray for succour.translation@nl=U dienen wij en U vragen wij om hulp.
aya
translation@en=Guide us in the straight path,translation@nl=Leid ons op de juiste weg,
aya
translation@en=the path of those whom Thou hast blessed, not of those against whom Thou art wrathful, nor of those who are astray.translation@nl=de weg van hen aan wie U genade geschonken hebt, op wie geen toorn rust en die niet dwalen.
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "A.pretty(sura1, full=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---\n", "\n", "All chapters:\n", "\n", "* **[start](start.ipynb)** introduction to computing with your corpus\n", "* **display** become an expert in creating pretty displays of your text structures\n", "* **[search](search.ipynb)** turbo charge your hand-coding with search templates\n", "* **[exportExcel](exportExcel.ipynb)** make tailor-made spreadsheets out of your results\n", "* **[share](share.ipynb)** draw in other people's data and let them use yours\n", "* **[similarAyas](similarAyas.ipynb)** spot the similarities between lines\n", "* **[rings](rings.ipynb)** ring structures in sura 2\n", "\n", "CC-BY Dirk Roorda" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.10.2" }, "toc": { "base_numbering": 1, "nav_menu": {}, "number_sections": true, "sideBar": true, "skip_h1_title": true, "title_cell": "Table of Contents", "title_sidebar": "Contents", "toc_cell": true, "toc_position": {}, "toc_section_display": "block", "toc_window_display": false }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }