From: Ferruccio Guidi Date: Sun, 11 Sep 2011 18:51:41 +0000 (+0000) Subject: refactoring and regeneration of lddl X-Git-Tag: make_still_working~2291 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=ae47e671a2e5b1c6498e62e0fd8703cea7ba53b2;p=helm.git refactoring and regeneration of lddl --- diff --git a/helm/www/lambda_delta/Makefile b/helm/www/lambda_delta/Makefile new file mode 100644 index 000000000..34eacbeb8 --- /dev/null +++ b/helm/www/lambda_delta/Makefile @@ -0,0 +1,83 @@ +H=@ + +TAGS = lint-xml index lddl install-xml \ + test-html html install-html \ + install-jed install-bib + +LDDLURL = http://lambda-delta.info/static/lddl + +ETCDIR = etc +DOWNDIR = download +XSLTDIR = xslt +XMLDIR = xml +HTMLDIR = $(HOME)/public_html/lddl +JEDDIR = $(HOME)/mps/jed +BIBDIR = $(HOME)/texmf/bibtex/bib + +RXMLDIR = helm:/projects/helm/public_html/lambda_delta/xml +RHTMLDIR = helm:/projects/helm/public_html/lambda_delta/static/lddl + +SLS = helena.sl automath.sl +BIB = lambda_delta.bib + +XMLS = brg_si/grundlagen/l/not.ld.xml \ + brg_si/grundlagen/l/et.ld.xml \ + brg_si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \ + brg_si/grundlagen/l/e/pairis1.ld.xml \ + brg_si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \ + crg_si/grundlagen/l/not.ld.xml \ + crg_si/grundlagen/l/et.ld.xml \ + crg_si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \ + crg_si/grundlagen/l/e/pairis1.ld.xml \ + crg_si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \ + brg_si/grundlagen/ccs.ldc.xml + +XMLLINT = xmllint --noout +XSLT = xsltproc + +lint-xml: $(XMLS:%=$(XMLDIR)/%) + @echo XMLLINT --valid + $(H)$(XMLLINT) --valid $^ + +$(ETCDIR)/make-html.sh $(XMLDIR)/index.txt index: + @echo " GENERATE INDEXES" + $(H)find $(XMLDIR) -name "*.ld.xml" | sed s/.xml//g | sed s/xml/ld:/g > $(XMLDIR)/index.txt + $(H)sed "s/^/make --no-print-directory /" $(XMLDIR)/index.txt | sed s.ld:/.. > $(ETCDIR)/make_html.sh + +lddl: $(ETCDIR)/exclude.txt index + @echo " GENERATE lddl.tar.bz2" + $(H)tar -cjf $(DOWNDIR)/lddl.tar.bz2 -X $< $(XMLDIR) + +install-xml: $(XMLDIR)/index.txt + @echo " INSTALL xml" + $(H)scp -r $< $(XMLDIR)/brg_si/ $(XMLDIR)/crg_si/ $(RXMLDIR) + +test-html: + @$(MAKE) --no-print-directory $(XMLS:%.xml=%) + +html: $(ETCDIR)/make-html.sh + @echo " MAKE */*.ld" + $(H). $< + +install-html: $(ETCDIR)/make_html.sh + @echo " INSTALL html" + $(H)scp -r $(HTMLDIR)/* $(RHTMLDIR) + +install-jed: $(SLS:%=$(JEDDIR)/%) + @echo " INSTALL $(SLS)" + $(H)scp $(SLS:%=$(JEDDIR)/%) $(DOWNDIR) + +install-bib: $(BIB:%=$(BIBDIR)/%) + @echo " INSTALL $(BIB)" + $(H)scp $< $(DOWNDIR) + $(H)scp $< $(DOWNDIR)/$(BIB:%.bib=%.txt) + +%.ld: BASEURL = --stringparam baseurl $(LDDLURL) + +%.ld: + @echo " XSLT $@" + $(H)mkdir -p $(HTMLDIR)/$(@D) + $(H)$(XSLT) -o $(HTMLDIR)/$@.html $(BASEURL) $(XSLTDIR)/lddl.xsl $(XMLDIR)/$@.xml + +%.ldc: + @echo " SKIP $@" diff --git a/helm/www/lambda_delta/css/ld.css b/helm/www/lambda_delta/css/ld.css new file mode 100644 index 000000000..92d2e8d92 --- /dev/null +++ b/helm/www/lambda_delta/css/ld.css @@ -0,0 +1,63 @@ +@charset "UTF-8"; + +/* general ******************************************************************/ + +body { + background: rgb(255, 255, 255); + color: rgb(0, 0, 0); + margin: 2.5%; +} + +a:link, a:visited { + text-decoration: underline; +} + +a:active, a:hover, a:focus { + background: rgb(192, 192, 192); +} + +/* blocks *******************************************************************/ + +.spacer { + text-align: center; +} + +.head1 { + margin: 0.5em 0; + text-align: center; + font-weight: bold; + font-size: xx-large; +} + +.head2 { + margin: 0.5em 0; + text-align: left; + font-weight: bold; + font-size: x-large; +} + +.text { + margin: 1em 0; + text-align: left; +} + +/* inline decorations *******************************************************/ + +.icon32 { + border: 0; + width: 32px; + height: 32px; +} + +.rule { + border: 0; + height: 4px; + width: 100%; +} + +.w3c { + margin: 0 0.5em; + border: 0; + width: 88px; + height: 32px; /* this should be 31px */ +} diff --git a/helm/www/lambda_delta/css/lddl.css b/helm/www/lambda_delta/css/lddl.css new file mode 100644 index 000000000..41a635d45 --- /dev/null +++ b/helm/www/lambda_delta/css/lddl.css @@ -0,0 +1,43 @@ +@charset "UTF-8"; + +/* terms ********************************************************************/ + +.separator { + background: rgb(255, 255, 255); + color: rgb(0, 0, 0); +} + +.sort { + background: rgb(255, 255, 255); + color: rgb(128, 0, 255); +} + +.lref { + background: rgb(255, 255, 255); + color: rgb(0, 0, 0); +} + +.gref { + background: rgb(255, 255, 255); + color: rgb(0, 0, 255); +} + +.appl { + background: rgb(255, 255, 255); + color: rgb(0, 0, 0); +} + +.cast { + background: rgb(255, 255, 255); + color: rgb(255, 0, 0); +} + +.local { + background: rgb(255, 255, 255); + color: rgb(0, 160, 0); +} + +.global { + background: rgb(255, 255, 255); + color: rgb(0, 0, 0); +} diff --git a/helm/www/lambda_delta/download/lambda_delta.bib b/helm/www/lambda_delta/download/lambda_delta.bib index 26c994a96..f6df7f861 100644 --- a/helm/www/lambda_delta/download/lambda_delta.bib +++ b/helm/www/lambda_delta/download/lambda_delta.bib @@ -70,9 +70,9 @@ @misc{lambdadelta1, author="F. {Guidi}", - title="{lambda-delta}", - howpublished="Formal specification with the proof assistant \textsc{coq} 7.3.1", + title="{lambda\_delta\_1}", + howpublished="Formal specification with the proof assistant Coq 7.3.1", year="2007", month="January", - note="Available at the lambda-delta Web site: {http://helm.cs.unibo.it/lambda-delta/}" + note="Available at the lambda\_delta Web site: {http://lambda-delta.info/}" } diff --git a/helm/www/lambda_delta/download/lambda_delta.txt b/helm/www/lambda_delta/download/lambda_delta.txt index 26c994a96..f6df7f861 100644 --- a/helm/www/lambda_delta/download/lambda_delta.txt +++ b/helm/www/lambda_delta/download/lambda_delta.txt @@ -70,9 +70,9 @@ @misc{lambdadelta1, author="F. {Guidi}", - title="{lambda-delta}", - howpublished="Formal specification with the proof assistant \textsc{coq} 7.3.1", + title="{lambda\_delta\_1}", + howpublished="Formal specification with the proof assistant Coq 7.3.1", year="2007", month="January", - note="Available at the lambda-delta Web site: {http://helm.cs.unibo.it/lambda-delta/}" + note="Available at the lambda\_delta Web site: {http://lambda-delta.info/}" } diff --git a/helm/www/lambda_delta/download/lddl.tar.bz2 b/helm/www/lambda_delta/download/lddl.tar.bz2 index 853e7a907..8033d3784 100644 Binary files a/helm/www/lambda_delta/download/lddl.tar.bz2 and b/helm/www/lambda_delta/download/lddl.tar.bz2 differ diff --git a/helm/www/lambda_delta/xml/ld.dtd b/helm/www/lambda_delta/xml/ld.dtd new file mode 100644 index 000000000..3dd881315 --- /dev/null +++ b/helm/www/lambda_delta/xml/ld.dtd @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/helm/www/lambda_delta/xslt/lddl.xsl b/helm/www/lambda_delta/xslt/lddl.xsl new file mode 100644 index 000000000..2711cff96 --- /dev/null +++ b/helm/www/lambda_delta/xslt/lddl.xsl @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + diff --git a/helm/www/lambda_delta/xslt/lddl_entity.xsl b/helm/www/lambda_delta/xslt/lddl_entity.xsl new file mode 100644 index 000000000..676d37722 --- /dev/null +++ b/helm/www/lambda_delta/xslt/lddl_entity.xsl @@ -0,0 +1,61 @@ + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+
+ + + + +
+
+ +
+
+ + + + Declaration + + + + + + Definition + + + +
diff --git a/helm/www/lambda_delta/xslt/lddl_library.xsl b/helm/www/lambda_delta/xslt/lddl_library.xsl new file mode 100644 index 000000000..c7914ed64 --- /dev/null +++ b/helm/www/lambda_delta/xslt/lddl_library.xsl @@ -0,0 +1,283 @@ + + + + + + + + + + + + , + + + + / + + + + + + + + + .​ + + + + ( + + + + ) + + + + [ + + + + ] + + + + < + + + + > + + + + : + + + + = + + + + " + + + + Informal description: + + + + Validation parameters: + + + + sort hierarchy = + + + + kernel options = + + + + + + + + + + + + + &Pi; + + + + &Pi; + + + &lambda; + + + &lambda; + &infin; + + + &lambda; + + + + + + + + + &delta; + + + + + + &chi; + + + + + + + + + + + + + + + + + + + + + .html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &lambda;&delta; Digital Library (LDDL) + + + diff --git a/helm/www/lambda_delta/xslt/lddl_root.xsl b/helm/www/lambda_delta/xslt/lddl_root.xsl new file mode 100644 index 000000000..c4cf27cd8 --- /dev/null +++ b/helm/www/lambda_delta/xslt/lddl_root.xsl @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + lambda_delta digital library (LDDL) + + + + +
+ + [lambda_delta home] +
+
+ +
+
+ [Spacer] +
+ + + +
+ + + +
+ + + + + + + + + + + +
+
+ +
diff --git a/helm/www/lambda_delta/xslt/lddl_term.xsl b/helm/www/lambda_delta/xslt/lddl_term.xsl new file mode 100644 index 000000000..4e0c488b5 --- /dev/null +++ b/helm/www/lambda_delta/xslt/lddl_term.xsl @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +