{"word_count": 758, "character_count": 8372}
The projectThe major grammatical treatises of classical Arabic, widely investigated by scholars, are unfortunately accessible online mostly in form of digitized or scanned copies of modern printed editions, but standards-compliant digital collections, and semantic as well as linguistic annotations of their contents are not available.  For this reason, I have started working on a project aiming at the creation of a digital collection of TEI-encoded classical Arabic texts, marking the relevant information, such as the linguistic terminology, the grammatical sources employed by grammarians, and the references.For the masterclass, my objective was to design a general schema I could apply to a number of texts, and to test it on the first of my sources, the Kitāb Sībawayhi (8th cent.)Provisional TEI-schema (before the masterclass)Before the masterclass, I had been working on a provisional TEI schema for my texts, designed as in this example:&#60;!--General book structure: --&#62;         &#60;pb ed="Harun" n="I:12"/&#62;         &#60;div n="I:1" type="chapter_bab"&#62;            &#60;head&#62;هذا بابعلم الكلم من العربية&#60;/head&#62;&#60;lb/&#62;&#60;!--Specific information: --&#62;            &#60;p&#62;[…]               &#60;ref type="grammar" ana="accusative"&#62;النصب&#60;/ref&#62;               […]               &#60;ref type="source" ana="Quran" n="II:275"&#62;فمن جاءهموعظة من ربه&#60;/ref&#62;               […]&#60;/p&#62;         &#60;/div&#62;The first tags refer to the basic elements of the book, namely the page numbers as per the edition, the number of the chapter (n=“#Volume:#Chapter”), and the title of the chapter (&#60;head&#62;[…]&#60;/head&#62;).The second section refers to the elements to highlight in the text: grammatical terms and external sources. Both had been encoded using the tag &#60;ref&#62;, then providing additional information in the attributes within. So, the attribute @typeserved to distinguish between grammar and sources, while the attribute @ana provided either the translation of the grammatical term or the name of the source. In this last case, the additional attribute @n served to provide the number of the sūra and the verses quoted. What happened in the workshop- The tagsThe very first day, with the help of the instructors and of Laurent Romary in particular, I completely redesigned the schema, eventually opting for more fitting tags. I kept unchanged the general tags (those for chapters, page numbers, and titles), and used &#60;term&#62; and &#60;seg&#62; for grammatical terms and external sources respectively:&#60;term type="grammar" corresp="entries.xml#naSb"&#62;النصب&#60;/term&#62;&#60;seg corresp="bibl.xml#Q_II_275"&#62;فمن جاءهموعظة من ربه&#60;/seg&#62;Both tags now contain a @corresp attribute, that points to external files by means of a given @xml:id.In the case of the grammatical terms, the corresponding file “entries.xml” is structured as a dictionary:            &#60;div&#62;          &#60;entry xml:id="naSb"&#62;               &#60;!--              &#60;gramGrp&#62;&#60;pos/&#62;&#60;/gramGrp&#62;--&#62;               &#60;form&#62;&#60;orth&#62;نصب&#60;/orth&#62;               &#60;/form&#62;               &#60;sense&#62;accusative&#60;/sense&#62;            &#60;/entry&#62;[…]&#60;div&#62;Whereas the file “bibl.xml” contains a list of references:   &#60;listBibl&#62;            &#60;head&#62;Reference from the Quran&#60;/head&#62;&#60;bibl xml:id="Q_II_275"&#62;&#60;title&#62;Quran&#60;/title&#62;&#60;citedRange unit="sura:verse"&#62;              II:275&#60;/citedRange&#62;&#60;/bibl&#62;[…]&#60;/listBibl&#62;- The TEI HeaderAnother valuable addition to my work was the TEI header, whose importance I had never really considered but that represents a fundamental element when it comes to providing information on the setting and development of the project. I have then been working on its drafting during the masterclass, taking notes on how to represent the info I’d want to add: &#60;TEIxmlns="http://www.tei-c.org/ns/1.0"&#62;            &#60;teiHeader&#62;                        &#60;fileDesc&#62;                                    &#60;titleStmt&#62;                                               &#60;title&#62;title of the project(/current document)&#60;/title&#62;                                               &#60;funder&#62;source of funding for the project&#60;/funder&#62;                                               &#60;author&#62;author of the project&#60;/author&#62;                                               &#60;!--&#60;respStmt&#62;                                                           &#60;resp&#62;Responsible for the project&#60;/resp&#62;                                                           &#60;name&#62;&#60;/name&#62;                                                           &#60;!-\-Here goes the info on the person who works on it (the field is not necessary if the resp coincides with the author)-\-&#62;                                               &#60;/respStmt&#62;--&#62;                                    &#60;/titleStmt&#62;                                    &#60;publicationStmt&#62;                                               &#60;!--                                         &#60;p&#62;Publication information of the source&#60;/p&#62;--&#62;                                               &#60;distributor&#62;body under which you publish the project&#60;/distributor&#62;                                               &#60;authority&#62;(release authority) the name of person or agency for making a work available, other than a publisher or distributor&#60;/authority&#62;                                    &#60;/publicationStmt&#62;                                    &#60;sourceDesc&#62;                                               &#60;p&#62;Information about the source (i.e. bibliographical reference if it's a book)&#60;/p&#62;                                    &#60;/sourceDesc&#62;                        &#60;/fileDesc&#62;                        &#60;encodingDesc&#62;                                    &#60;!--      &#60;appInfo&#62;                                               &#60;!-\-&#60;applicationident="TEI_fromDOC"version="..."&#62;&#60;/application&#62;-\-&#62;                                               Info on the software used for conversion of texts (doc to TEI, forinstance)&#60;/appInfo&#62;--&#62;                                    &#60;tagsDecl&#62;                                               &#60;namespace name="http://www.tei-c.org/ns/1.0"&#62;                                                           &#60;tagUsage gi="NameOfTheTag"&#62;declaration of how tags have been used throughout the project (=specific purposes the tag has been used for)&#60;/tagUsage&#62;                                               &#60;/namespace&#62;                                    &#60;/tagsDecl&#62;                        &#60;/encodingDesc&#62;                        &#60;profileDesc&#62;                                    &#60;langUsage&#62;                                               &#60;language ident="en" rendition="rtl/ltr"&#62;language&#60;/language&#62;                                               &#60;!--description of the languages appearing in the project--&#62;                                    &#60;/langUsage&#62;                        &#60;/profileDesc&#62;                        &#60;revisionDesc&#62;                                    &#60;change&#62;=version, meaning the big stages/phases of the project&#60;/change&#62;                        &#60;/revisionDesc&#62;            &#60;/teiHeader&#62;Next stepsSo far, I have encoded the Kitāb Sībawayhi only partially, so the next immediate step is to complete the task and apply the same TEI-schema to the other textual resources I want to include in my project. Also, I will have to get a little more familiar with XSLT, on which I started working during the masterclass to have a visual representation of the work I was doing, but without having a clear idea on what exactly I want to produce as a final output.Besides that, there is still some work to do in dealing with what other information would be important to encode in each text and improving the lexicon. Special thanksTo all #LexMC18 team, both instructors and participants, and especially to Laurent and Toma!