# HG changeset patch # User Henry S. Thompson # Date 1494491373 -3600 # Node ID 01a7c2ebd3d1518481566ceeace310c42299ebcf # Parent d3569a8cbf7acb04939485ef45069fe8351e39fc top 20 shared formulae coloured in diff -r d3569a8cbf7a -r 01a7c2ebd3d1 html.xsl --- a/html.xsl Wed May 10 20:13:06 2017 +0100 +++ b/html.xsl Thu May 11 09:29:33 2017 +0100 @@ -18,6 +18,28 @@ .reffed {border: solid 1px black} table {table-layout: fixed} th {width: 1en} + /* http://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors */ + .c1 {background-color: #FFB300} /* Vivid Yellow */ + .c2 {background-color: #803E75} /* Strong Purple */ + .c3 {background-color: #FF6800} /* Vivid Orange */ + .c4 {background-color: #A6BDD7} /* Very Light Blue */ + .c5 {background-color: #C10020} /* Vivid Red */ + .c6 {background-color: #CEA262} /* Grayish Yellow */ + .c7 {background-color: #817066} /* Medium Gray */ + /* The following don't work well for people with defective color vision */ + .c8 {background-color: #007D34} /* Vivid Green */ + .c9 {background-color: #F6768E} /* Strong Purplish Pink */ + .c10 {background-color: #00538A} /* Strong Blue */ + .c11 {background-color: #FF7A5C} /* Strong Yellowish Pink */ + .c12 {background-color: #53377A} /* Strong Violet */ + .c13 {background-color: #FF8E00} /* Vivid Orange Yellow */ + .c14 {background-color: #B32851} /* Strong Purplish Red */ + .c15 {background-color: #F4C800} /* Vivid Greenish Yellow */ + .c16 {background-color: #7F180D} /* Strong Reddish Brown */ + .c17 {background-color: #93AA00} /* Vivid Yellowish Green */ + .c18 {background-color: #593315} /* Deep Yellowish Brown */ + .c19 {background-color: #F13A13} /* Vivid Reddish Orange */ + .c20 {background-color: #232C16} /* Dark Olive Green */ @@ -52,7 +74,8 @@ + if (e:i) then 'reffed' else (), + if (@fi) then concat('c',@fi) else ())"/> diff -r d3569a8cbf7a -r 01a7c2ebd3d1 notes.txt --- a/notes.txt Wed May 10 20:13:06 2017 +0100 +++ b/notes.txt Thu May 11 09:29:33 2017 +0100 @@ -190,8 +190,9 @@ rel ::= '\xAE' ( ( '-' xs:positiveInteger ) | xs:nonNegativeInteger ) ----------- Would be sufficient? - @@ fi an index into _all_ functions, si original index into explicitly - shared functions + fi an index into _all_ functions, si original index into explicitly + shared functions -- note that the same fi may appear with multiple + si, see discussion back at the top of this doc. Brute force for now -- rect sees shared table, computes CRNF Not good enough -- in shared table can't be used as is, need to rebuild ref names relative to each new home. FIXED