Commit 64528998 authored by Gérard Huet's avatar Gérard Huet

addition SETUP/dummy_SCLpaths.ml for config SCL interface

parent b265d29d
......@@ -179,9 +179,9 @@ rank.cmo : ../ZEN/word.cmo web.cmo phases.cmo morphology.cmi \
../ZEN/list2.cmo lexer.cmi constraints.cmi
rank.cmx : ../ZEN/word.cmx web.cmx phases.cmx morphology.cmi \
../ZEN/list2.cmx lexer.cmx constraints.cmx
uoh_interface.cmo : ../ZEN/word.cmo web.cmo phases.cmo paths.cmo \
uoh_interface.cmo : ../ZEN/word.cmo web.cmo SCLpaths.cmo phases.cmo \
morphology.cmi morpho_html.cmo html.cmo dispatcher.cmi canon.cmo
uoh_interface.cmx : ../ZEN/word.cmx web.cmx phases.cmx paths.cmx \
uoh_interface.cmx : ../ZEN/word.cmx web.cmx SCLpaths.cmx phases.cmx \
morphology.cmi morpho_html.cmx html.cmx dispatcher.cmx canon.cmx
reader.cmo : web.cmo uoh_interface.cmo sanskrit.cmi rank.cmo phases.cmo \
paths.cmo html.cmo encode.cmo control.cmo checkpoints.cmo cgi.cmo \
......@@ -254,8 +254,8 @@ reset_caches.cmx : web.cmx morphology.cmi ../ZEN/gen.cmx ../ZEN/deco.cmx \
auto.cmi
html.cmo : paths.cmo
html.cmx : paths.cmx
web.cmo : paths.cmo html.cmo date.cmo
web.cmx : paths.cmx html.cmx date.cmx
web.cmo : SCLpaths.cmo paths.cmo html.cmo date.cmo
web.cmx : SCLpaths.cmx paths.cmx html.cmx date.cmx
css.cmo : web.cmo html.cmo
css.cmx : web.cmx html.cmx
cgi.cmo :
......
......@@ -51,7 +51,8 @@ user_aid.ml reset_caches.ml
# WEB package - HTML, HTTP, CGI utilities for Web interface
WEB=html.ml web.ml css.ml cgi.ml morpho_html.ml chapters.ml \
mk_index_page.ml mk_grammar_page.ml mk_reader_page.ml mk_sandhi_page.ml \
morpho_ext.ml
morpho_ext.ml
# extra file SCLpaths.ml for SCL interfacing - not distributed.
# TREE package - tree bank manager and syntax analyser - legacy
TREE=parse_tree.ml parse_apte.ml stemmer.ml tag_tree.ml tag_apte.ml
......@@ -89,7 +90,7 @@ all: engine static_pages reset_caches reader_plugin sandhi_test
# legacy in need of re-design
regression: rank.cmx regression.cmx
$(LINK) $(CORENATIVES) unix.cmxa date.cmx control.cmx deco.cmx \
lexmap.cmx inflected.cmx html.cmx web.cmx naming.cmx morpho_string.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 chapters.cmx \
morpho_html.cmx bank_lexer.cmx cgi.cmx segmenter.cmx morpho_ext.cmx \
load_morphs.cmx lexer.cmx constraints.cmx rank.cmx regression.cmx -o regression
......@@ -104,7 +105,7 @@ install:
reset_caches: reset_caches.cmx
$(LINK) $(CORENATIVES) unix.cmxa trie.cmx deco.cmx html.cmx date.cmx \
web.cmx reset_caches.cmx -o reset_caches
SCLpaths.cmx web.cmx reset_caches.cmx -o reset_caches
# clears the cached lexicon (irreversible operation)
clear_cache: reset_caches
......@@ -137,27 +138,27 @@ lemmatizer reader parser sandhier reader interface user_aid
indexer: indexer.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx date.cmx \
control.cmx word.cmx canon.cmx trie.cmx deco.cmx zen_lexer.cmx phonetics.cmx \
transduction.cmx encode.cmx html.cmx web.cmx cgi.cmx index.cmx \
transduction.cmx encode.cmx html.cmx SCLpaths.cmx web.cmx cgi.cmx index.cmx \
naming.cmx morpho_string.cmx morpho.cmx order.cmx chapters.cmx morpho_html.cmx \
indexer.cmx -o indexer
indexerd: indexerd.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx date.cmx control.cmx \
word.cmx zen_lexer.cmx canon.cmx phonetics.cmx transduction.cmx encode.cmx \
deco.cmx html.cmx web.cmx naming.cmx cgi.cmx morpho_string.cmx \
deco.cmx html.cmx SCLpaths.cmx web.cmx naming.cmx cgi.cmx morpho_string.cmx \
morpho.cmx order.cmx chapters.cmx morpho_html.cmx indexerd.cmx -o indexerd
lemmatizer: lemmatizer.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx date.cmx control.cmx \
word.cmx deco.cmx zen_lexer.cmx canon.cmx phonetics.cmx transduction.cmx \
encode.cmx html.cmx web.cmx cgi.cmx naming.cmx morpho_string.cmx \
encode.cmx html.cmx SCLpaths.cmx web.cmx cgi.cmx naming.cmx morpho_string.cmx \
morpho.cmx order.cmx chapters.cmx morpho_html.cmx lemmatizer.cmx -o lemmatizer
declension: declension.cmx
$(LINK) 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 \
deco.cmx int_sandhi.cmx lexmap.cmx inflected.cmx bank_lexer.cmx html.cmx \
web.cmx nouns.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx \
SCLpaths.cmx web.cmx nouns.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx \
chapters.cmx morpho_html.cmx cgi.cmx share.cmx trie.cmx index.cmx \
multilingual.cmx declension.cmx -o declension
......@@ -165,21 +166,21 @@ conjugation: conjugation.cmx
$(LINK) 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 \
deco.cmx int_sandhi.cmx lexmap.cmx inflected.cmx parts.cmx pada.cmx verbs.cmx \
html.cmx web.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx \
html.cmx SCLpaths.cmx web.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx \
chapters.cmx morpho_html.cmx cgi.cmx share.cmx trie.cmx index.cmx \
multilingual.cmx conjugation.cmx -o conjugation
sandhier: sandhier.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx control.cmx word.cmx \
zen_lexer.cmx canon.cmx phonetics.cmx transduction.cmx encode.cmx sandhi.cmx \
int_sandhi.cmx date.cmx html.cmx web.cmx cgi.cmx sandhier.cmx \
int_sandhi.cmx date.cmx html.cmx SCLpaths.cmx web.cmx cgi.cmx sandhier.cmx \
-o sandhier
reader: reader.cmx
$(LINK) 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 web.cmx naming.cmx morpho_string.cmx morpho.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 cgi.cmx segmenter.cmx morpho_ext.cmx \
load_morphs.cmx lexer.cmx constraints.cmx rank.cmx bank_lexer.cmx \
......@@ -189,7 +190,7 @@ reader_plugin: reader_plugin.cmx
$(LINK) 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 web.cmx naming.cmx morpho_string.cmx morpho.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 cgi.cmx segmenter.cmx morpho_ext.cmx \
load_morphs.cmx lexer.cmx constraints.cmx reader_plugin.cmx -o reader_plugin
......@@ -198,7 +199,7 @@ interface: interface.cmx
$(LINK) 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 web.cmx naming.cmx morpho_string.cmx morpho.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 \
......@@ -208,7 +209,7 @@ user_aid: user_aid.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx date.cmx \
control.cmx word.cmx canon.cmx deco.cmx zen_lexer.cmx phonetics.cmx \
transduction.cmx encode.cmx skt_lexer.cmx padapatha.cmx sanskrit.cmx html.cmx \
web.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx chapters.cmx \
SCLpaths.cmx web.cmx naming.cmx morpho_string.cmx morpho.cmx order.cmx chapters.cmx \
morpho_html.cmx bank_lexer.cmx cgi.cmx phases.cmx checkpoints.cmx user_aid.cmx \
-o user_aid
......@@ -216,7 +217,7 @@ parser: parser.cmx
$(LINK) 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 web.cmx naming.cmx morpho_string.cmx morpho.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 segmenter.cmx \
morpho_ext.cmx load_morphs.cmx lexer.cmx constraints.cmx checkpoints.cmx \
......@@ -226,33 +227,33 @@ tagger: tagger.cmx
$(LINK) list2.cmx gen.cmx paths.cmx version.cmx date.cmx install.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 web.cmx naming.cmx morpho_string.cmx morpho.cmx pada.cmx \
html.cmx SCLpaths.cmx web.cmx naming.cmx morpho_string.cmx morpho.cmx pada.cmx \
dispatcher.cmx order.cmx chapters.cmx morpho_html.cmx cgi.cmx \
segmenter.cmx morpho_ext.cmx lexer.cmx constraints.cmx tagger.cmx -o tagger
css: css.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
web.cmx css.cmx -o css
SCLpaths.cmx web.cmx css.cmx -o css
mk_index_page: mk_index_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
web.cmx mk_index_page.cmx -o mk_index_page
SCLpaths.cmx web.cmx mk_index_page.cmx -o mk_index_page
mk_grammar_page: mk_grammar_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
web.cmx mk_grammar_page.cmx -o mk_grammar_page
SCLpaths.cmx web.cmx mk_grammar_page.cmx -o mk_grammar_page
mk_reader_page: mk_reader_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx control.cmx \
html.cmx web.cmx cgi.cmx mk_reader_page.cmx -o mk_reader_page
html.cmx SCLpaths.cmx web.cmx cgi.cmx mk_reader_page.cmx -o mk_reader_page
mk_nyaaya_page: mk_nyaaya_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx \
html.cmx web.cmx cgi.cmx mk_nyaaya_page.cmx -o mk_nyaaya_page
html.cmx SCLpaths.cmx web.cmx cgi.cmx mk_nyaaya_page.cmx -o mk_nyaaya_page
mk_sandhi_page: mk_sandhi_page.cmx
$(LINK) gen.cmx paths.cmx version.cmx date.cmx html.cmx \
web.cmx mk_sandhi_page.cmx -o mk_sandhi_page
SCLpaths.cmx web.cmx mk_sandhi_page.cmx -o mk_sandhi_page
# 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
......
......@@ -16,7 +16,7 @@
module Interface = struct
open Graph_segmenter; (* [Segment cur_chunk set_cur_offset graph visual ] *)
open Graph_segmenter; (* [Segment cur_chunk set_cur_offset graph visual] *)
open Phases; (* [Phases] *)
open Phases; (* [phase is_cache generative] *)
open Dispatcher; (* [transducer_vect phase Dispatch transition trim_tags] *)
......
......@@ -13,7 +13,8 @@ open Html;
open Web; (* ps pl etc. [scl_url] *)
open Morphology; (* inflected lemma morphology *)
open Phases.Phases; (* phase etc. *)
open Dispatcher;
open Dispatcher;
open SCLpaths; (* [svg_interface_url] *)
module UOH
(Lex: sig
......@@ -55,18 +56,6 @@ value print_ext_output cho (n,output) =
}
;
(* Temporary - should be set by SCL configure, as well as [Web.scl_url] *)
value scl_install_dir = ""
and offline_dir = "/private/tmp/SKT_TEMP/" (* vamana *)
and default_output_font = "ROMAN" (* could be "DEV" *)
;
value scl_dir = scl_install_dir ^ "SHMT/prog/"
and offline name = offline_dir ^ name (* problematic file output *)
;
value offline_file = offline "1.txt" (* owner [_www] Apache=httpd *)
and tmp_in = offline "tmp_in"
;
(* Prints a solution with its index, returns the bumped index ignoring sandhi *)
(* Prints on [std_out], as usual for a cgi. *)
value print_callback_solution counter solution =
......
......@@ -8,4 +8,4 @@
(**************************************************************************)
(* Generated by make version - see main Makefile *)
value version="2.99" and version_date="2017-05-12";
value version="2.99" and version_date="2017-05-15";
......@@ -636,7 +636,7 @@ value scl_url = "http://localhost/SCL/SHMT/" (* Used to be set in Paths *)
;
(* This toogle controls accessibility of University of Hyderabad tools *)
value scl_toggle = (* should be [exists scl_profile] *)
not (scl_url="") (* True if SCL tools are installed *)
not (SCLpaths.scl_url="") (* True if SCL tools are installed *)
;
(* SCL configuration begin *)
......
......@@ -362,6 +362,8 @@ all: ZEN
cp -Rp $(HERITAGE) . # local copy of DICO from Resources/DICO
cp -Rp $(MW) . # local copy of MW
# cd ML && $(MAKE) depend # reset dependencies (might be partial subset)
test -e ML/SCLpaths.ml && echo "SCL config detected" \
|| mv SETUP/dummy_SCLpaths.ml ML/SCLpaths.ml
cd ML && $(MAKE) test_version
ML/test_stamp
cd ML && $(MAKE) # make engine (testing the data stamp)
......
(**************************************************************************)
(* *)
(* The Sanskrit Heritage Platform *)
(* Configuration paths for SCL parser *)
(* Gérard Huet & Amba Kulkarni *)
(* *)
(**************************************************************************)
(* This will reside in ML directory at configuration time *)
value scl_url = "http://localhost/SCL/SHMT/"
;
(* used in [Uoh_interface] *)
value svg_interface_url = ""
and nn_parser_url = ""
and show_parses_path = ""
;
value scl_install_dir = ""
and offline_dir = "/tmp/" (* vamana *)
and default_output_font = "ROMAN" (* could be "DEV" *)
;
value scl_dir = ""
and offline name = offline_dir ^ name (* problematic file output *)
;
value offline_file = offline "1.txt" (* owner [_www] Apache=httpd *)
and tmp_in = offline "tmp_in"
;
VERSION='2.99'
DATE='2017-05-12'
DATE='2017-05-15'
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