-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
84 lines (57 loc) · 2.88 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Deployment.
usage:
#this does concatenatenation;
# assembles all JS and CSS files into two files to be run from index.prod.html
# creates index.prod.html
cd deploy
./concatenate.sh
#this does what ./concatenate.sh does with additional minification of js-code
cd deploy
./uglify.sh
dependency: PHP and uglifyjs (uglify-es)
how to set up: see comments at top of file deployment-engine.php
1. briefly:
//https://www.npmjs.com/package/uglify-es
//npm install uglify-es -g
2. shell and php codes are simple, glance at them for
guidance how and what to do
zipup.sh is not a deployer( see its header), it is an additional tool to develop
between commits to git
Jargon
ns - top node of name space = window.b$l
fapp - full application - a shell for an entire book
sapp - sub application ... assuming there can be many lemmas then code for each lemma
should be loaded on demand ...
sapp stands for lemma2, lemma3, lemma4, ....
this jargon is reflected in JavaScript object tree and folder structure
Vital for developer
* some svg/html elements may have ".hidden" css class; if they are a part
of tp-mytopic engine, then to unlock .hidden state when tp-link is hovered,
the token, "tohidden" must be supplied to this element.
Related vital topic is "Content essay syntax" in README-MATHJAX-WRITING.txt.
get-content-texts.js and topic-engine.js convert essay-script to HTML/JavaScript
From browser viewpoint, essay-script is an HTML text.
essay-script has following nest of scripts
1. toppest one is a set of esseyions
2. esseion contains
instruction-line
header
header has some meta info which in particular defines GUI menu
body
3. body is a set of active-fragments
4. active-fragment contains one or more prescripts
5. prescript contains topic-marks which must be parsed to HTML
6. resulted HTML may have MathJax and has to be parsed into HTML
Running project from local PC.
It should not run from folder on local PC with file://...
protocol in Chrome. And should not in other browser ...
Apparently because of "cross-domain" permissions.
You may try MS Edge though or FireFox, they were known less restrictive.
This is because, this application loads texts and MathJax via ajax.
The proper way is to install server. The good one is Apache.
On Windows, after installation, there should be a folder like:
c:/Apache24/htdocs/
where one can put np (Newton-Principia) folder.
Then land on
localhost/np/index.src.html
IIS should work too, but it feels as less convenient.