校異源氏物語・本文テキストデータリポジトリで公開しているTEI/XMLを一部更新しました。

概要 以下のリポジトリで校異源氏物語のTEI/XMLファイルを公開しています。 https://github.com/kouigenjimonogatari ここで公開しているTEI/XMLに対して、一部変更を加えましたので、備忘録です。 フォルダ構成 修正前のファイルは以下に格納しています。これまでから変更はありません。 https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/tree/master/tei 更新したファイルは以下に格納しました。 https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/tree/master/xml/lw 後述する修正を加えたXMLファイルが格納されています。 修正内容 スキーマの追加 以下のrngファイルを追加しました。 < ? x m l - m o d e l h r e f = " h t t p s : / / k o u i g e n j i m o n o g a t a r i . g i t h u b . i o / l w / t e i _ g e n j i . r n g " t y p e = " a p p l i c a t i o n / x m l " s c h e m a t y p e n s = " h t t p : / / r e l a x n g . o r g / n s / s t r u c t u r e / 1 . 0 " ? > このrngファイルは、使用するタグを限定し、かつ日本語訳を追加したものです。Romaで作成しており、rngファイルへの変換前のoddファイルもリポジトリに格納しています。 ...

2024年6月28日 · 6 分 · Nakamura

LEAF Writer:Japan Searchに対するEntity Lookup

概要 LEAF Writerのカスタマイズ方法に関する調査記録です。 https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer 今回はEntity Lookupの追加方法に関する備忘録です。具体的には、以下のように、Japan Searchの利活用スキーマに対する問い合わせを行う機能を追加します。 方法 フォークしたリポジトリに対して、以下の変更を加えました。 https://gitlab.com/nakamura196/leaf-writer/-/commit/69e10e2ddd17f6cd01501fbf29f0dd86d1e86a3a 利用 以下のリポジトリを使用することで、UIの一部が日本語化されたバージョンをお試しいただけます。 https://gitlab.com/nakamura196/leaf-writer 起動方法は以下を参考にしてください。 まとめ この方法を応用することで、任意のAPIの追加ができそうです。 LEAF Writerの応用にあたり、参考になりましたら幸いです。

2024年6月27日 · 1 分 · Nakamura

LEAF Writer:日本語UIの追加

概要 LEAF Writerのカスタマイズ方法に関する調査記録です。 https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer 今回は日本語UIの追加方法に関する備忘録です。 方法 フォークしたリポジトリに対して、以下の変更を加えました。 https://gitlab.com/nakamura196/leaf-writer/-/commit/c9b7053814fc1e5a27a1847f20076096832dd68b 利用 以下のリポジトリを使用することで、UIの一部が日本語化されたバージョンをお試しいただけます。 https://gitlab.com/nakamura196/leaf-writer 起動方法は以下を参考にしてください。 まとめ LEAF Writerの応用にあたり、参考になりましたら幸いです。

2024年6月27日 · 1 分 · Nakamura

LEAF-Writerをローカル環境で動かす

概要 LEAF-Writerをローカル環境で動作する機会がありましたので、備忘録です。 リポジトリ 以下を使用します。 https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer 方法 g c n n i d p p t m m l c e i r l a u o f n n - e w d r e h i v t t t e p r s : / / g i t l a b . c o m / c a l i n c s / c w r c / l e a f - w r i t e r / l e a f - w r i t e r 3000ポートでLEAF-Writerが起動します。 ...

2024年6月26日 · 1 分 · Nakamura

DHCフォーマットの中身を確認する

概要 Digital HumanitiesやThe Japanese Association for Digital Humanities (JADH)の年次大会では、以下のdhconvalidatorというツールを使い、DOCXやODT形式のファイルを、DHCファイルに変換して提出することが多いです。 https://github.com/ADHO/dhconvalidator 今回は、このフォーマットを理解するための備忘録です。 内容を確認する DHCファイルは以下のように説明されています。 This is essentially a ZIP archive containing their original OCT/DOCX file, an HTML rendering and an XML-TEI rendering, plus a folder with the image files, properly renamed). (機械翻訳)これは基本的に、元のOCT/DOCXファイル、HTMLレンダリング、XML-TEIレンダリングを含むZIPアーカイブであり、適切に名前が付けられた画像ファイルのフォルダも含まれています。 したがって、上記のdhconvalidatorを使って作成された.dhc形式のファイルについて、展開してみます。 u n z i p n a k a m u r a . d h c 結果、以下のようにファイルが展開されました。 ...

2024年6月16日 · 3 分 · Nakamura

IIIF Curation ListをTEIのfacsimile要素に変換する

概要 IIIF Curation ListをTEIのfacsimile要素に変換するライブラリを作成しました。 https://github.com/nakamura196/iiif-tei さらに、この変換を行うデモページを用意しました。 https://nakamura196.github.io/nuxt3-demo/iiif-tei-demo 使い方の動画は以下です。 https://youtu.be/Y5JlrJbtgz8 参考になりましたら幸いです。

2024年5月17日 · 1 分 · Nakamura

Japan Search利活用スキーマを使ったentity-lookupの試作

概要 以下の記事の続きです。 Japan Searchの利活用スキーマを使って、cwrcのentity-lookupを行うパッケージを試作します。 デモ 以下のページでお試しいただけます。 https://nakamura196.github.io/nuxt3-demo/entity-lookup/ Person, Place, Organizationなどの種別ごとに、JPS, Wikidata, VIAFにentity-lookupを行います。 ライブラリ 以下で公開しています。 https://github.com/nakamura196/jps-entity-lookup cwrcですでに公開されていたリポジトリhttps://github.com/cwrc/wikidata-entity-lookupをベースに、主に以下のファイルをJapan Searchの利活用スキーマに合わせて修正しました。 https://github.com/nakamura196/jps-entity-lookup/blob/main/src/index.js インストール方法 以下が参考になりました。 https://qiita.com/pure-adachi/items/ba82b03dba3ebabc6312 開発中 開発中のライブラリをインストールする場合には、以下のようにインストールしました。 p n p m i / U s e r s / n a k a m u r a / x x x / j p s - e n t i t y - l o o k u p GitHubから GitHubからは以下のようにインストールします。 ...

2024年5月17日 · 1 分 · Nakamura

cwrcのwikidata-entity-lookupを試す

概要 以下の記事の続きです。 LEAF-WRITERの特徴として、以下が挙げられています。 the ability to look up and select identifiers for named entity tags (persons, organizations, places, or titles) from the following Linked Open Data authorities: DBPedia, Geonames, Getty, LGPN, VIAF, and Wikidata. この機能は、以下のようなライブラリが使用されています。 https://github.com/cwrc/wikidata-entity-lookup この機能を試しています。 使い方 以下などで、npmパッケージが公開されています。 https://www.npmjs.com/search?q=cwrc 上記のリストにはありませんが、今回は以下を対象にします。 https://www.npmjs.com/package/wikidata-entity-lookup 以下でインストールします。 n p m i w i k i d a t a - e n t i t y - l o o k u p wikidataLookup.findPersonは、以下のように実行することができました。 ...

2024年5月16日 · 2 分 · Nakamura

CWRC XML Validator APIを試す

概要 TEI/XMLを対象としたエディタの一つとして、LEAF-WRITERがあります。 https://leaf-writer.leaf-vre.org/ 以下のように説明されています。 The XML & RDF online editor of the Linked Editing Academic Framework GitLabのリポジトリは以下です。 https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer このツールの特徴の一つとして、以下が説明されています。 continuous XML validation このvalidationには以下のAPIが使用されているようでした。 https://validator.services.cwrc.ca/ また、ライブラリは以下のようです。 https://www.npmjs.com/package/@cwrc/leafwriter-validator 今回は、上記のAPIを試してみます。 試す 以下のページが表示されます。 https://validator.services.cwrc.ca/ Try ItのPOSTで以下を試しています。 Schema URL: https://raw.githubusercontent.com/nakamura196/test2021/main/tei_excel.rng Schema Type: RNG_XML Document Content: < < < < ? ? ? s T / x x x c E T m m m h I < < E l l l e t / t / I - - m x e t e t > v m m a m i < e x < e e o o t l H f / i t b / x r d d y n e i f H > o b t s e e p s a l < < < i e d < > i l l e = d e t / p / s / l a y p d o n " e D i t u p o s e d > > p y n h h s h r e t < i b < u u < o D e I > > = r r = t > s l t t l p b r p u e r " e e " t c e i l i > l c > r s > a 1 f f h p > S t e c P i e I c c m . = = t : t l S a u c D n e > 0 " " t / m e t t b a e f D < " h h p / t > m i l t s o e n t t : w > T t o i i c r s a e t t / w i > n c o > m c m n p p / w t S a n a > e c : : p . l t t S t > o / u t e m i t i S d / r e < t o m o a i w w l i / > n t n t n w w . - t > o g w w o c i I a r = . . c . t n b u " t t l o l f o U e e c r e o u N T i i . g > r t a F - - o / m k - c c r n a t a 8 . . g s t h m " o o / / i e u ? r r d 1 o r > g g s . n s a / / d 0 < o < r r l " / u / e e / > p r n l l s > c a e e c e m a a h < e s s e / > e e m p . / / a > x x t m m r l l / n t t " e e ? i i > / / c c u u s s t t o o m m / / s s c c h h e e m m a a / / r r e e l l a a x x n n g g / / t t e e i i _ _ a a l l l l . . r r n n g g " " t t y y p p e e = = " " a a p p p p l l i i c c a a t t i i o o n n / / x x m m l l " " s c h e m a t y p e n s = " h t t p : / / r e l a x n g . o r g / n s / s t r u c t u r e / 1 . 0 " ? > 上記は、http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rngをスキーマとする場合にはエラーが生じませんが、使用可能なタグを限定したhttps://raw.githubusercontent.com/nakamura196/test2021/main/tei_excel.rngではエラーが生じるはずです。 ...

2024年5月16日 · 6 分 · Nakamura

RELAX NGとSchematron

概要 oXygen XML EditorでTEI/XMLを作成すると、以下のようなテンプレートが作成されます。 < < < < ? ? ? s T / x x x c E < < T m m m h I t / t / E l l l e e t e t I - - m x i e x e > v m m a m H < i t < x e o o t l e f / H > b / t r d d y n a i f e o b > s e e p s d l < < < i a d < o i l l e = e e t / p / s / l d y p d o n " r D i t u p o s e e > > y n h h s h > e t < i b < u u < o D r S > = r r = t s l t t l p b r p u e > o " e e " t c e i l i > l c > r s m 1 f f h p > S t e c P i e I c c e . = = t : t l S a u c D n e > 0 " " t / m e t t b a e f D t " h h p / t > m i l t s o e e t t : w > T t o i i c r s x e t t / w i > n c o > m c t n p p / w t S a n a > c : : p . l t t S t h o / u t e m i t i e d / r e < t o m o r i w w l i / > n t n e n w w . - t > . g w w o c i I a < = . . c . t n b / " t t l o l f o p U e e c r e o u > T i i . g > r t F - - o / m - c c r n a t 8 . . g s t h " o o / / i e ? r r d 1 o > g g s . n s / / d 0 < o r r l " / u e e / > p r l l s > c e e c e a a h < s s e / e e m p / / a > x x t m m r l l / n t t " e e ? i i > / / c c u u s s t t o o m m / / s s c c h h e e m m a a / / r r e e l l a a x x n n g g / / t t e e i i _ _ a a l l l l . . r r n n g g " " t t y y p p e e = = " " a a p p p p l l i i c c a a t t i i o o n n / / x x m m l l " " s c h e m a t y p e n s = " h t t p : / / r e l a x n g . o r g / n s / s t r u c t u r e / 1 . 0 " ? > この時、以下の違いが気になりましたので、GPT4への問い合わせ結果を共有します。 ...

2024年5月16日 · 7 分 · Nakamura

TEI PublisherのODDの設定例①

概要 TEI PublisherのODDに関する設定方法の備忘録です。 変換先で非表示にする 以下が参考になりました。 https://teipublisher.com/exist/apps/tei-publisher/documentation/odd-customization-other-behaviours behaviour でomit を選択します。 これにより、変換先(上記の例では、latex )でpb要素が非表示になりました。 lbで改行させる latexへの変換に限ったものかもしれませんが、behaviour でparagraph を選択することで、lbタグがあった箇所に、空白行が挿入されるようになりました。

2024年5月15日 · 1 分 · Nakamura

Docker版のTEI Publisherを使用する

概要 Docker版のTEI Publisherを使用する機会があったので、備忘録です。 https://teipublisher.com/exist/apps/tei-publisher-home/index.html TEI Publisherは以下のように説明されています。 TEI Publisher facilitates the integration of the TEI Processing Model into exist-db applications. The TEI Processing Model (PM) extends the TEI ODD specification format with a processing model for documents. That way intended processing for all elements can be expressed within the TEI vocabulary itself. It aims at the XML-savvy editor who is familiar with TEI but is not necessarily a developer. (機械翻訳) TEI Publisherは、TEI Processing Modelをexist-dbアプリケーションに統合することを容易にします。TEI Processing Model(PM)は、ドキュメントの処理モデルを備えたTEI ODD仕様形式を拡張します。これにより、すべての要素の意図された処理をTEI語彙自体内で表現することができます。このモデルは、TEIに精通しているが必ずしも開発者ではないXML熟練のエディターを対象としています。 ...

2024年5月15日 · 3 分 · Nakamura

TEIGarageを試す

概要 TEIGarageは、以下のように説明されています。 https://github.com/TEIC/TEIGarage/ TEIGarage is a webservice and RESTful service to transform, convert and validate various formats, focussing on the TEI format. TEIGarage is based on the proven OxGarage. (機械翻訳)TEIGarageは、TEIフォーマットを中心にさまざまなフォーマットの変換、変換、検証を行うウェブサービスおよびRESTfulサービスです。TEIGarageは、実績のあるOxGarageに基づいています。 試す 以下のページで試すことができます。 https://teigarage.tei-c.org/ 以下で公開されている「TEI Minimal」のoddファイルを対象にします。このファイルは、Romaのプリセットの一つとしても使用されています。 https://tei-c.org/Vault/P5/current/xml/tei/Exemplars/tei_minimal.odd 上記のファイルをダウンロードします。 そして、TEIGarageのサイトにおいて、「Convert from」に「Compiled TEI ODD」、「Convert to」に「xHTML」を選択して、「ファイルを選択」にダウンロードしたoddファイルをアップロードします。 ダウンロードされたHTMLファイルはブラウザ等で確認することができます。 ちなみに、「Show advanced options」をクリックすると、パラメータのほか、変換に使用するURLが表示されます。 URLはエンコードされているため、デコードすると、以下になります。 https://teigarage.tei-c.org/ege-webservice/Conversions/ODDC:text:xml/TEI:text:xml/xhtml:application:xhtml+xml/conversion?properties=truetrueenfalsedefaulttruetrueenfalsedefault propertiesパラメータの中に、以下のxml記述を確認することができます。 < c / o < < c n c / c / o v o < < < < < c o < < < < < c n e n p p p p p o n p p p p p o v r v r r r r r n v r r r r r n e s e o o o o o v e o o o o o v r i r p p p p p e r p p p p p e s o s e e e e e r s e e e e e r i n i r r r r r s i r r r r r s o s o t t t t t i o t t t t t i n > n y y y y y o n y y y y y o s n n > i i i i i i > i i i i i i > n d d d d d n d d d d d d = = = = = d = = = = = e " " " " " e " " " " " x o o o o p x o o o o p = x x x x l = x x x x l " g g g g . " g g g g . 0 a a a a p 1 a a a a p " r r r r s " r r r r s > a a a a n > a a a a n g g g g c g g g g c e e e e . e e e e . . . . . d . . . . d g g l t l g g l t l e e a e . e e a e . t t n x e t t n x e I O g t g I O g t g m n " O e m n " O e a l > n . a l > n . g i e l t g i e l t e n n y e e n n y e s e < " i s e < " i " I / > . " I / > . > m p f p > m p f p t a r a r t a r a r r g o l o r g o l o u e p s f u e p s f e s e e i e s e e i < " r < l < " r < l / > t / e / > t / e p t y p N p t y p N r r > r a r r > r a o u o m o u o m p e p e p e p e e < e s e < e s r / r " r / r " t p t > t p t > y r y d y r y d > o > e > o > e p f p f e a e a r u r u t l t l y t y t > < > < / / p p r r o o p p e e r r t t y y > > Open API 以下にアクセスすると、Open APIに基づき、利用可能なオプション等を確認することができます。 ...

2024年5月5日 · 6 分 · Nakamura

(機械翻訳)The TEI Archive

以下の「The TEI Archive」ページの機械翻訳結果です。 https://tei-c.org/Vault/ テキスト・エンコーディング・イニシアティブ (TEI) TEIアーカイブ 目次 ポキプシー原則 スポンサー団体 1. TEI委員会ドキュメント 1987-1998 TEI諮問委員会 分析解釈委員会 編集論文 メタ言語と構文問題委員会 指導委員会 技術審査委員会 テキスト文書化委員会 テキスト表現委員会 2. ガイドラインの以前のバージョン 3. 番号なしの報告書、記事、発表等 4. 歌、写真、その他のエフェメラ TEI Titeドキュメント 活動を終了したワーキンググループ エレクトロニック・テキスト・エディティングの予備稿(MLA、2006年) 利用可能なすべてのP5リリース このページには、テキスト・エンコーディング・イニシアティブからのアーカイブ資料が含まれています。1988年のポキプシー会議から1999年にTEIコンソーシアムの設立プロセスが始まるまでの初期10年間にわたり、さまざまなサーバーや個人のコレクションから断片的に集められたものですが、その大部分はウェンディ・プロトキンがシカゴで維持していた優れたリストサーブ・アーカイブから派生しています。 ここに保存されている資料が何らかの形で完全であると主張するものではありませんが、TEIの歴史を構成する主要な資料を追跡し、ここに保存する努力をしています。ここで利用できないオリジナルのTEI文書をお持ちの方や、お持ちの方を知っている場合は、ご連絡ください: webmaster AT tei-c DOT org。 1987年から1998年のアーカイブ部分は、TEIのオリジナルのワーキング委員会構造を反映しています。文書はTEI文書番号でリストされており、これはマイケル・スパーグ・マックイーンによって初期に考案された索引方式で、文書を起源(委員会またはワーキンググループを示す2〜3文字のコード)とタイプ(Mは議事録、Wは作業文書、Pは提案等)によってグループ分けします。番号は(通常)各プレフィックス内で時系列に割り当てられます。 現在制作中または現在活動中の文書はここには含まれておらず、TEIホームページからリンクされています。 注: このエリアは以前「TEI Vault」と呼ばれていたため、URLがそうなっています。他の場所でVaultに言及しているのを見かけた場合、それはこのアーカイブスペースを指しています。 TEIホーム | フィードバック

2024年5月5日 · 1 分 · Nakamura

TEI/XMLの可視化例:Leafletを用いた地図表示

概要 TEI/XMLファイルの可視化にあたり、可視化例とソースコードを公開するリポジトリを作成しました。 https://github.com/nakamura196/tei_visualize_demo 可視化例は以下のページでご確認いただけます。 https://nakamura196.github.io/tei_visualize_demo/ 今回、MarkerClusterを用いたマーカー表示の例を追加しましたので、紹介します。 前提 Leafletを使って、(MarkerClusterを使用せずに、)マーカーの表示ができていることを前提とします。まだの方は、以下の可視化例、およびソースコードを参考にしてください。 可視化例 https://nakamura196.github.io/tei_visualize_demo/01/ ソースコード https://github.com/nakamura196/tei_visualize_demo/blob/main/docs/01/index.html MarkerClusterを使った実装例 可視化例は以下です。 https://nakamura196.github.io/tei_visualize_demo/02/ ソースコードは以下です。 https://github.com/nakamura196/tei_visualize_demo/blob/main/docs/02/index.html 「TEIを用いた『渋沢栄一伝記資料』テキストデータの再構築と活用」のデータを利用しています。 ライブラリの追加 以下を追記します。 < < < l l s i r h i r h c n e r n e r r k l e k l e i = f = f p " = " = t s " s " t h t h s y t y t r l t l t c e p e p = s s s s " h : h : h e / e / t e / e / t t l t l p " e " e s a a : f f / l l / e e l t t e . . a g g f i i l t t e h h t u u . b b g . . i i i t o o h / / u L L b e e . a a i f f o l l / e e L t t e . . a m m f a a l r r e k k t e e . r r m c c a l l r u u k s s e t t r e e c r r l / / u d d s i i t s s e t t r / / / M M d a a i r r s k k t e e / r r l C C e l l a u u f s s l t t e e e t r r . . . m c D a s e r s f k " a e u r l c t l . u c s s t s e " r - s r c . j s " > < / s c r i p t > L.markerClusterGroupの利用 markersを作成して、個々のmarkerをaddLayerメソッドを使って追加します。最後に、mapにaddLayerメソッドを使って、markersを追加します。 ...

2024年4月12日 · 4 分 · Nakamura

Next.jsを用いたTEI/XMLファイルの簡易ビューアを作成しました

概要 TEI/XMLファイルの内容を表示する簡易なビューアを作成しました。 https://github.com/utda/tei-viewer 校異源氏物語のTEI/XMLを対象とした表示例は以下です。 https://utda.github.io/tei-viewer/?u=https://kouigenjimonogatari.github.io/tei/01.xml&v=true 使い方 最低限の機能として、IIIFマニフェストファイルが関連付けられている場合には、Miradorビューアが表示されるようにしました。関連付けの方法としては、以下のフォーマットをベースとしています。 https://github.com/TEI-EAJ/jp_guidelines/wiki/IIIF画像とのリンク またpbタグのn属性が与えられている場合は、ページ番号が表示される機能を提供します。さらに日本語への対応として、クエリパラメータにv=trueを与えた場合、縦書きテキストが表示されます。 https://github.com/utda/tei-viewer/blob/main/src/app/components/Ceteicean.tsx その他 フレームワークにはNext.js、TEI/XMLの表示スタイルにはCETEICeanを使用しました。 https://github.com/utda/tei-viewer/blob/main/src/app/CETEIcean.css そのほか、以下の記事を参考に、GitHubリポジトリとZenodoの連携を試行しています。 改善の余地があるかと思いますが、以下のコマンドを使って、新しいリリースを作成しています。 " r e l e a s e " : " n p m v e r s i o n p a t c h & & g i t p u s h o r i g i n - t a g s & & V E R S I O N = $ ( n o d e - p e \ " r e q u i r e ( ' . / p a c k a g e . j s o n ' ) . v e r s i o n \ " ) & & g h r e l e a s e c r e a t e \ " v $ V E R S I O N \ " - t i t l e \ " V e r s i o n $ V E R S I O N \ " " 今後 pbタグとMiradorビューアの画像表示が対応する機能を追加したいと思います。 ...

2024年2月5日 · 1 分 · Nakamura

デジタル源氏物語における校異源氏物語と現代語訳の対応づけ

概要 「デジタル源氏物語」は『源氏物語』に関する様々な関連データを収集・作成し、それらを結びつけることで、『源氏物語』研究はもちろん、古典籍を利用した教育・研究活動の一助となる環境の提案を目指したサイトです。 https://genji.dl.itc.u-tokyo.ac.jp/ 本サイトが提供する機能の一つとして、「校異源氏物語と現代語訳の対応づけ」があります。以下のように、「校異源氏物語」と青空文庫で公開されている与謝野晶子訳の対応箇所がハイライト表示されます。 この記事では、上記の機能を実現するための手順について説明します。 データ 以下のようなデータを作成します。 https://genji.dl.itc.u-tokyo.ac.jp/data/tei/koui/54.xml 「校異源氏物語」のテキストデータに対して、anchorタグを使って、与謝野晶子訳のファイルとIDのペアを対応付ます。 < t e < x b t o < > d p y > < < < < < > l p l s / l b b b e < や < 又 s b / / g a ま a の e > f > n に n 日 g a c c お c は > c o h は h よ s r o し o か = r r て r は " e れ に # s c い c z p o せ o o = r さ r n " r せ r e h e 給 e _ t s や s 2 t p う p 0 p = に = 5 s " 経 " 5 : h 仏 h " / t な t / t と t n w p く p = 3 s や s " i : う : 2 d せ / 0 . さ / 5 g せ g 5 r e 給 e " g n n / / j j > k i i o . . u d d i l l g . . e i i n t t j c c i . . m u u o - - n t t o o o g k k a y y t o o a . . r a a i c c / . . a j j p p p i / a a i p p t i i e / / m i i s t t / e e 2 m m 0 s s 5 / / 5 t t - e e 0 i i 1 / . y y j o o s s s o a a n n n " o o > / / 5 5 6 6 . . x x m m l l # # Y Y G G 5 5 6 6 0 0 0 0 0 0 0 0 0 0 3 4 0 0 0 0 " " / / > > このデータの作成にあたっては、以下のツールを開発して使用しました。 ...

2024年1月7日 · 14 分 · Nakamura

Oxygen XML Editorのイメージマップエディタの使用例

概要 Oxygen XML Editorのイメージマップエディタの使用方法に関する説明です。 動画 https://youtu.be/9dZQ1v0Rky0?si=8EhAZdVsLqgPz2Rf 使用方法 以下のようなTEI/XMLファイルを用意します。<graphic>のurlの値は、当該ファイルからの相対パスや、PC上の絶対パス、およびインターネット上で公開されているURLを指定します。 以下の例では、TEI/XMLファイルと同じフォルダに格納されているdigidepo_3437686_pn_null_9c48d89b-e2ec-4593-8d00-6fbc1d29d1bd.jpgというファイルを参照しています。 < < < ? ? T / x x E < < T m m I t / f / E l l e < t a < f I - x i f / e c s / a > v m m H i < < < f i s u < s c e o l e l t / p / s / i H i r g u s r d n a e i < t u < p o < s l e m f r r i s e s d D t t i b a u u a o e a i a a f m i l = e e l i t l b b r b u D d l c p a i o " r s e t l i / l c / r e e e e h c l n h h > c S l e c > i e > c s r > > i e e = r t > t e S a c D e c > c > > " e t m > t t a e D > 1 f p t S m i t s e u . = : > a t o i c s r 0 " / m > n o > c l " h / p S n > = t w l t S " ? t w e m t d > p w < t m i : . / > t g t t > i / e i d w i t e w - l p w c e o . . > _ t o 3 e r 4 i g 3 - / 7 c n 6 . s 8 o / 6 r 1 _ g . p 0 n r " _ e > n l u e l a l s _ e 9 / c x 4 m 8 l d / 8 t 9 e b i - / e c 2 u e s c t - o 4 m 5 / 9 s 3 c - h 8 e d m 0 a 0 / - r 6 e f l b a c x 1 n d g 2 / 9 t d e 1 i b _ d a . l j l p . g r " n / g > " t y p e = " a p p l i c a t i o n / x m l " s c h e m a t y p e n s = " h t t p : / / r e l a x n g . o r g / n s / s t r u c t u r e / 1 . 0 " ? > 画面下部の「作者」というボタンをクリックすると、以下のように「イメージマップエディタ」が表示されます。上記の動画を参考に、アノテーションを付与します。 ...

2023年12月12日 · 6 分 · Nakamura

TEI Publisher: TEI Publisher Demo Collectionの可視化例①

概要 TEI Publisherの以下のページでは、さまざまな可視化例が紹介されています。 https://teipublisher.com/exist/apps/tei-publisher/index.html?query=&collection=test&sort=title&field=text&start=1 以降、複数の記事にわたって、上記の可視化例を紹介します。 Letter #6 from Robert Graves to William Graves (at Oundle School) November 15, 1957 概要 https://teipublisher.com/exist/apps/tei-publisher/test/graves6.xml 以下のように、地名や人名の一覧、および地図とともにテキストが表示されます。 以下のように説明されています。 A 20th century manuscript letter from Robert Graves where emphasis has been put on visualizing rich encoding of semantic information in the letter, in particular geographic and prosopographical data. The map is displayed with a pb-leaflet component. 機械翻訳 ロバート・グレイブスによる20世紀の写本書簡。書簡中の意味情報、特に地理的・韻律的データの豊富な符号化を視覚化することに重点が置かれている。地図はpb-leafletコンポーネントで表示される。 データ XMLファイルの特徴です。 teiHeader > profileDesc > abstract abstractタグの内容が上記の検索ページに表示されるようです。 ...

2023年11月12日 · 27 分 · Nakamura

Nuxt3でXMLをフォーマットしてシンタックスハイライト表示する

概要 以下の画像にあるように、Nuxt3を使ってXML形式のテキストデータを表示する機会がありましたので、その備忘録です。 インストール 以下の2つのライブラリを使用しました。 n n p p m m i i x h m i l g - h f l o i r g m h a t t . t j e s r 使い方 Nuxt3のコンポーネントとして、以下のようなファイルを作成しました。xml-formatterでXML形式の文字列をフォーマットし、さらにhighlight.jsを使ってシンタックスハイライトを行っています。 < i i i i } c } c o } c } < < p } s m m m n o ) o n ) o ; / t / s r / c p p p t x n x ; n M f ; n r } s e < t t e w w w w w s r o o o e m s m s o s e ) c m p e y h h h h o t i r r r r l t l t u r t t i f ; r p r m l { i i i i r y p t t t f : : n ` ` そ m u n i i l e p e 以 t t t t d l t a p f t h f う a f r d l p a l > 下 e e e e - e h " f c s r " o e i o で t o n e t t t c a の - - - - w > s l h o e t o " r d g r な t r n e > e l t ス s s s s r e j i r r p , m ( h m い e m f t r > a e タ p p p p a t s g m P i s a ( l a 場 d a o a : s > イ a a a a p u h a r n t ) i t 合 X t r t s ル c c c c : p f l t o g = t g t は M X m i ( = は e e e e r i t p ; e = h e 、 L M a o n " 適 : : : : b l o g e T w d > t d 適 . L t n o p 切 r a m h r y i X A X 切 v t : d a で p - - e n t p t M { u M な a = e e - 、 r m p a g " . f e h L t L 非 l r " ) 4 p e o r - k = h j r D o ` 同 u ( ( " r - z e p - " i s { e = ` 期 e x x = e w - - r w t g m f を 処 m m " > 要 r p w e o s h s a r 関 直 理 = l l , - 素 a r r - r " l t " u e 数 接 を s s n h 内 p e a w d > i y x l f が ア 行 h t t o t の ; - p r ; g l m t < 非 ッ っ l r r d m テ w ; a h e l s s 同 プ て j i i e l キ r p t s - ( t 期 デ く s n n . = ス a ; . / f d r で ー だ . g g t " ト p j x o e i な ト さ h : , y f の C ; I s c r f n い で い i p o 折 S O n " o m i g 場 き 。 g s { e r り S p t ; d a n > 合 ま h t m 返 e O e e t e ( は す l r ! a し 3 r p r . t P " 、 。 i i = t を M a e n c e r " g n = t 制 r e s r o ) h g e 御 z 4 a t s " p ; t ) " d し i - " ; s A C X て l 6 7 E ; < u = o M い l x P t > m L ま a p r o m " す , l o ( { e > 。 o p f n < 1 r T o t / 9 e y r " p 9 r p m , r 9 e a e 年 5 > t > か . ( X ら 5 ) M 2 + , L 0 ( 0 { p 2 r 年 o ま p で s に . 対 x 応 m l ) ) . v a l u e ; まとめ TEI/XMLデータの可視化などにおいて、参考になりましたら幸いです。 ...

2023年11月6日 · 5 分 · Nakamura