Overview

I publish TEI/XML files for the Koui Genji Monogatari (Variorum Tale of Genji) in the following repository.

https://github.com/kouigenjimonogatari

I made some changes to the TEI/XML published here, so this is a note about those changes.

Folder Structure

Files before the modifications are stored here. There are no changes from before.

https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/tree/master/tei

The updated files are stored here.

https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/tree/master/xml/lw

This directory contains XML files with the modifications described below.

Modifications

Adding a Schema

The following rng file was added.

<?xml-modelhref="https://kouigenjimonogatari.github.io/lw/tei_genji.rng"type="application/xml"schematypens="http://relaxng.org/ns/structure/1.0"?>

This rng file limits the tags available for use and adds Japanese translations. It was created with Roma, and the odd file before conversion to rng is also stored in the repository.

https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/blob/master/lw/tei_genji.odd

For information on how to use Roma, please refer to the following.

This allows tools like Oxygen XML Editor and LEAF Writer to show a limited set of candidate tags, with some displayed in Japanese translation.

You can see the LEAF Writer display example at the following link.

https://leaf-writer.leaf-vre.org/edit?provider=github&owner=kouigenjimonogatari&ownerType=organization&repo=kouigenjimonogatari.github.io&path=xml%2Flw&filename=01.xml

Adding CSS

The following css file was added.

<?xml-stylesheettype="text/css"href="https://kouigenjimonogatari.github.io/lw/tei_genji.css"?>

Similar to the schema addition above, the display in Oxygen XML Editor, LEAF Writer, and other tools is now styled according to the added css file.

Adding revisionDesc

A revisionDesc element was added. Future modifications will be recorded here.

<re<v</icrsheiavoningsDeieoswnchDeesnst=ca">t2u0s2=4"-p0u6b-l2i8s"hewdh"o>="#snakamura">pbfacsfacsimile</change>

Changes to pb Elements

The notation method for pb elements was modified as follows.

<pbcorresp="#zone_0005"facs="https://dl.ndl.go.jp/api/iiif/3437686/R0000022/0,0,3445,4706/full/0/default.jpg"n="5"/>

By providing an image URL in the facs attribute, the Image Viewer can now be used in tools like LEAF Writer.

Changes to facsimile Element Notation

The method of mapping to IIIF manifests and canvases was revised based on the following guidelines.

https://github.com/TEI-EAJ/jp_guidelines/wiki/IIIF画像とのリンク#2024-年度版

The changes before and after are shown below.

  • Before
<fac<ssiumr<ifs/lausecr<<u>efgzrGarofrcanapepec>hefix>acmclsn:==i""dhh=tt"ttzppossn::e//_//0dd0ll0..5nn"ddlll..rggxoo=.."jj3pp4//4aa5pp"ii//liiriiyii=ff"//433744033677"6688u66l//xmc=aa"nn0iv"faesus/lt2y.2=j""s0ou"nr"l>="https://dl.ndl.go.jp/api/iiif/3437686/R0000022/full/full/0/default.jpg"
  • After
<f<<as<</cugzssrrouifanrmapefichaleilcecrelx>srh=axe"m=i3e"g4A6h4s8t5=9=""0"h"4lt7rtl0ypr6=syp":=x4/""7/40d7s6l0a".6mn"eudAllssx.a==gm""oeh0.At"jstp=pu/"slah:ypt/=it/"/pd0isl"i:.inxfdmdll3l.:4.gi3nod7d.=6lj"8.pz6go/anm.peaji_np0ii0fai0epi5sif"t//.i3>ji4si3of7n/6"38>463/7R608060/0c0a2n2v"asu/r2l2=""hutltxp=s":0/"/dull.yn=d"l0."gox.mjlp:/iadp=i"/fi0i0i1f"/>3437686/R0000022/full/full/0/default.jpg"width="6890px"/>

IIIF Image API information and image size information have been added, making the data more machine-readable.

Summary

There may be many incomplete aspects, but I hope some parts serve as a helpful reference for using TEI/XML.