Commit d91993a1 authored by Idir Lankri's avatar Idir Lankri

Make the homepage of corpus manager static

parent d249206f
......@@ -51,7 +51,8 @@ user_aid.ml reset_caches.ml params.mli params.ml interface_cgi.ml
# WEB package - HTML, HTTP, CGI utilities for Web interface
WEB=html.ml web.ml css.ml cgi.ml morpho_html.ml chapters.ml morpho_scl.ml \
mk_index_page.ml mk_grammar_page.ml mk_reader_page.ml mk_sandhi_page.ml
mk_index_page.ml mk_grammar_page.ml mk_reader_page.ml mk_sandhi_page.ml \
mk_corpus_page.ml
# CORPUS package - corpus manager
CORPUS = corpus.mli corpus.ml corpus_manager.mli corpus_manager.ml \
......@@ -94,7 +95,8 @@ test_version: paths.cmx gen.cmx version.cmx control.cmx test_stamp.cmx
$(LINK) paths.cmx gen.cmx version.cmx control.cmx test_stamp.cmx \
-o test_stamp
static_pages: css mk_index_page mk_grammar_page mk_sandhi_page mk_reader_page
static_pages: css mk_index_page mk_grammar_page mk_sandhi_page mk_reader_page \
mk_corpus_page
all: engine static_pages reset_caches sandhi_test
......@@ -258,6 +260,21 @@ save_corpus: save_corpus_cgi.cmx
params.cmx interface.cmx multilingual.cmx dir.cmx \
corpus.cmx corpus_manager.cmx save_corpus.cmx $< -o $@
mk_corpus: mk_corpus.cmx
$(LINK) str.cmxa unix.cmxa list2.cmx gen.cmx paths.cmx \
version.cmx date.cmx control.cmx word.cmx canon.cmx \
zen_lexer.cmx phonetics.cmx transduction.cmx encode.cmx \
skt_lexer.cmx padapatha.cmx sanskrit.cmx deco.cmx \
lexmap.cmx inflected.cmx html.cmx SCLpaths.cmx web.cmx \
naming.cmx morpho_string.cmx morpho.cmx \
load_transducers.cmx pada.cmx phases.cmx dispatcher.cmx \
order.cmx chapters.cmx morpho_html.cmx bank_lexer.cmx \
cgi.cmx load_morphs.cmx int_sandhi.cmx nouns.cmx \
share.cmx minimap.cmx mini.cmx nums.cmxa \
graph_segmenter.cmx checkpoints.cmx automaton.cmx \
params.cmx interface.cmx multilingual.cmx dir.cmx \
corpus.cmx corpus_manager.cmx $< -o $@
css: css.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
SCLpaths.cmx web.cmx css.cmx -o css
......@@ -284,9 +301,14 @@ mk_sandhi_page: mk_sandhi_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
SCLpaths.cmx web.cmx mk_sandhi_page.cmx -o mk_sandhi_page
mk_corpus_page: mk_corpus_page.cmx
$(LINK) paths.cmx version.cmx date.cmx SCLpaths.cmx html.cmx \
web.cmx $< -o $@
# site_pages must be recomputed after configuration and creation of DICO dir
# the style sheet must be recomputed, since it contains absolute URLs as well
site_pages: mk_index_page mk_grammar_page mk_reader_page mk_sandhi_page css
site_pages: mk_index_page mk_grammar_page mk_reader_page mk_sandhi_page \
mk_corpus_page css
./mk_index_page
cd ../DICO; ln -f index.fr.html index.html # backward compatibility
./mk_grammar_page
......@@ -298,6 +320,8 @@ site_pages: mk_index_page mk_grammar_page mk_reader_page mk_sandhi_page css
cd ../DICO; ln -f reader.fr.html reader.html # id
./mk_sandhi_page
cd ../DICO; ln -f sandhi.fr.html sandhi.html # id
./mk_corpus_page
cd ../DICO; ln -f corpus.fr.html corpus.html # id
# XML info file copied in DICO by make web_services in main Makefile
./css
# but install sets index.html to .fr. ou .en. according to config lexicon choice
......@@ -353,7 +377,7 @@ clean:
rm -f *.cmo *.cmi *.cmx *.ppi *.ppo *.o *.annot *.cmt *.cmti
rm -f css indexer indexerd sandhier reader parser lemmatizer \
declension conjugation mk_index_page mk_grammar_page mk_reader_page regression \
mk_sandhi_page sandhi_test reset_caches interface user_aid \
mk_sandhi_page mk_corpus_page sandhi_test reset_caches interface user_aid \
parse_apte tag_apte corpus_manager save_corpus
# make dico.cmi auto.cmi conj_infos.cmi # needed to get dependencies right
......
(* This program produces the pages corpus.html (Corpus interface). *)
value make lang =
let title = "Sanskrit Corpus" in
do
{ Web.open_html_file (Web.corpus_page lang) (Html.title title)
; Html.body_begin Html.Chamois_back |> Web.pl
; Web.open_page_with_margin 15
; Html.h1_title title |> Web.print_title (Some lang)
; Html.anchor_ref (Web.corpus_manager_cgi) "Explore corpus" |> Web.pl
; Web.close_page_with_margin ()
; Web.close_html_file lang True
}
;
value main =
do
{ make Html.English
; make Html.French
}
;
......@@ -306,6 +306,7 @@ and indexer_page_url l = dico_page_url (dico_index_page l)
and reader_page_url l = dico_page_url (dico_reader_page l)
and grammar_page_url l = dico_page_url (dico_grammar_page l)
and sandhi_page_url l = dico_page_url (dico_sandhi_page l)
and corpus_page_url l = dico_page_url (dico_corpus_page l)
;
value image name = web_images_url ^ name
;
......@@ -511,6 +512,7 @@ value indexer_page l = dico_page (dico_index_page l) (* [mk_index_page] *)
and grammar_page l = dico_page (dico_grammar_page l) (* [mk_grammar_page] *)
and reader_page l = dico_page (dico_reader_page l) (* [mk_reader_page] *)
and sandhi_page l = dico_page (dico_sandhi_page l) (* [mk_sandhi_page] *)
and corpus_page l = dico_page (dico_corpus_page l) (* [mk_corpus_page] *)
;
value print_site_map dyn lang = (* the various Web services of the site *)
......@@ -521,7 +523,7 @@ value print_site_map dyn lang = (* the various Web services of the site *)
; ps (anchor_ref (grammar_page_url lang) (emph "Grammar")); pl " | "
; ps (anchor_ref (sandhi_page_url lang) (emph "Sandhi")); pl " | "
; ps (anchor_ref (reader_page_url lang) (emph "Reader")); pl " | "
; ps (anchor_ref corpus_manager_cgi (emph "Corpus")); pl " | "
; ps (anchor_ref (corpus_page_url lang) (emph "Corpus")); pl " | "
; ps (anchor_ref (faq_page_url lang) (emph "Help")); pl " | "
; pl (anchor_ref (portal_page_url lang) (emph "Portal"))
}
......@@ -532,7 +534,7 @@ value print_site_map dyn lang = (* the various Web services of the site *)
; ps (anchor_ref (dico_grammar_page lang) (emph "Grammar")); pl " | "
; ps (anchor_ref (dico_sandhi_page lang) (emph "Sandhi")); pl " | "
; ps (anchor_ref (dico_reader_page lang) (emph "Reader")); pl " | "
; ps (anchor_ref corpus_manager_cgi (emph "Corpus")); pl " | "
; ps (anchor_ref (dico_corpus_page lang) (emph "Corpus")); pl " | "
; ps (anchor_ref (rel_faq_page_url lang) (emph "Help")); pl " | "
; pl (anchor_ref (rel_portal_page_url lang) (emph "Portal"))
}
......
......@@ -257,7 +257,8 @@ ML/reset_caches.ml ML/params.mli ML/params.ml ML/interface_cgi.ml
# WEB package - HTML, HTTP, CGI ad-hoc utilities for Web interface
WEB=ML/html.ml ML/web.ml ML/css.ml ML/cgi.ml ML/morpho_html.ml ML/chapters.ml \
ML/mk_index_page.ml ML/mk_grammar_page.ml ML/mk_reader_page.ml \
ML/mk_sandhi_page.ml ML/morpho_scl.ml ML/compute_mw_links.ml
ML/mk_sandhi_page.ml ML/mk_corpus_page.ml ML/morpho_scl.ml \
ML/compute_mw_links.ml
# TREE package - tree bank manager and syntax analyser - deprecated
TREE=ML/stemmer.ml ML/parse_tree.ml ML/parse_apte.ml ML/tag_tree.ml \
......@@ -467,6 +468,9 @@ grammar.html: mk_grammar_page
sandhi.html: mk_sandhi_page
ML/mk_sandhi_page
corpus.html: mk_corpus_page
ML/mk_corpus_page
style.css: css
ML/css
......
......@@ -555,6 +555,7 @@ Some of them are kind enough to send us their appreciations, please visit our
<a href="DICO/grammar.#LANG.html"><strong>Grammar</strong></a> |
<a href="DICO/sandhi.#LANG.html"><strong>Sandhi</strong></a> |
<a href="DICO/reader.#LANG.html"><strong>Reader</strong></a> |
<a href="DICO/corpus.#LANG.html"><strong>Corpus</strong></a> |
<a href="faq.#LANG.html"><strong>Help</strong></a> |
<a href="portal.#LANG.html"><strong>Portal</strong></a>
</td></tr><tr><td>&#169; G&#233;rard Huet 1994-2017</td></tr></table></td><td>
......
......@@ -2483,6 +2483,7 @@ South Asia at the U of A: ​sas.ualberta.ca​​​<br />
<a href="DICO/grammar.fr.html"><b>Grammar</b></a> |
<a href="DICO/sandhi.fr.html"><b>Sandhi</b></a> |
<a href="DICO/reader.fr.html"><b>Reader</b></a> |
<a href="DICO/corpus.fr.html"><b>Corpus</b></a> |
<a href="faq.fr.html"><b>Help</b></a> |
<a href="portal.fr.html"><b>Portal</b></a>
</td></tr><tr><td>
......
......@@ -100,6 +100,7 @@ Questions concerning these resources should be addressed to
<a href="DICO/grammar.en.html"><strong>Grammar</strong></a> |
<a href="DICO/sandhi.en.html"><strong>Sandhi</strong></a> |
<a href="DICO/reader.en.html"><strong>Reader</strong></a> |
<a href="DICO/corpus.en.html"><strong>Corpus</strong></a> |
<a href="faq.en.html"><strong>Help</strong></a> |
<a href="portal.en.html"><strong>Portal</strong></a>
</td></tr><tr><td>
......
......@@ -913,6 +913,7 @@ button on the site control bar.
<a href="DICO/grammar.en.html"><b>Grammar</b></a> |
<a href="DICO/sandhi.en.html"><b>Sandhi</b></a> |
<a href="DICO/reader.en.html"><b>Reader</b></a> |
<a href="DICO/corpus.en.html"><b>Corpus</b></a> |
<a href="faq.en.html"><b>Help</b></a> |
<a href="portal.en.html"><b>Portal</b></a>
</td></tr><tr><td>
......
......@@ -1082,6 +1082,7 @@ Last update: June 13th, 2017
<a href="DICO/grammar.#LANG.html"><strong>Grammar</strong></a> |
<a href="DICO/sandhi.#LANG.html"><strong>Sandhi</strong></a> |
<a href="DICO/reader.#LANG.html"><strong>Reader</strong></a> |
<a href="DICO/corpus.#LANG.html"><strong>Corpus</strong></a> |
<a href="faq.#LANG.html"><strong>Help</strong></a> |
<a href="portal.#LANG.html"><strong>Portal</strong></a>
</td></tr><tr><td>
......
......@@ -487,7 +487,7 @@ Artwork credits</h2>
<a href="DICO/grammar.#LANG.html"><strong>Grammar</strong></a> |
<a href="DICO/sandhi.#LANG.html"><strong>Sandhi</strong></a> |
<a href="DICO/reader.#LANG.html"><strong>Reader</strong></a> |
<a href="#CGIBINURLsktcorpus#CGIEXT"><b>Corpus</b></a> |
<a href="DICO/corpus.#LANG.html"><b>Corpus</b></a> |
<a href="faq.#LANG.html"><strong>Help</strong></a> |
<a href="portal.#LANG.html"><strong>Portal</strong></a>
</td></tr><tr><td>© Gérard Huet 1994-2017</td></tr></table></td><td>
......
......@@ -188,6 +188,7 @@ All suggestions for improvements will be gratefully considered.
<a href="DICO/grammar.en.html"><strong>Grammar</strong></a> |
<a href="DICO/sandhi.en.html"><strong>Sandhi</strong></a> |
<a href="DICO/reader.en.html"><strong>Reader</strong></a> |
<a href="DICO/corpus.en.html"><strong>Corpus</strong></a> |
<a href="faq.en.html"><strong>Help</strong></a> |
<a href="portal.en.html"><strong>Portal</strong></a>
</td></tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment