transform and format sutra
shijinkui / sutra-fmt Goto Github PK
View Code? Open in Web Editor NEWtransform and format sutra
License: Apache License 2.0
transform and format sutra
License: Apache License 2.0
RayCHOU:
我寫的程式版權已改為 Apache-2.0。
CBETA 的 XML schema 是基於 TEI: http://www.tei-c.org/
佛典中的特例,TEI 未規範到的,CBETA 才設計自己的標記方式。
標記設計未臻理想的地方,是有不少。
因為 CBETA 一開始做的時候,並不了解全部佛典的情況,XML schema 是邊做邊修改的。
您覺得不合理的設計,或許可以提出更好的方案與 CBETA 討論,
不過標記方式的變動,影響很大,CBETA 不一定能很快調整就是了。
------------
我的想法是,不动xml, 基于xml生成标准的json格式。
确定一套标准的佛经规格。
meta信息, 如: 来源,版权,reversion,最后修订时间,对应实体书的信息
经文header信息,包括文件名,xml-p5对应的文件路径,经题,翻译者,在藏经中的位置,目录,卷数
佛经正文,序言(一个或者多个),品次,卷次,经题 正文,目前看到两类,一个是P标记,一个是lg标记,lg应该是偈诵了,区别对待
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.