Mercurial > hg > ooxml
changeset 50:01a7c2ebd3d1
top 20 shared formulae coloured in
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 11 May 2017 09:29:33 +0100 |
parents | d3569a8cbf7a |
children | 793496d2d165 |
files | html.xsl notes.txt |
diffstat | 2 files changed, 27 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 */ </style> </head> <body> @@ -52,7 +74,8 @@ <xsl:attribute name="class"> <xsl:value-of select="(if (@t) then @t else text(), if (e:f) then 'formula' else (), - if (e:i) then 'reffed' else ())"/> + if (e:i) then 'reffed' else (), + if (@fi) then concat('c',@fi) else ())"/> </xsl:attribute> <xsl:attribute name="title"> <xsl:choose>
--- 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 <c c=COL [fi= [si=]]> 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 -- <f> in shared table can't be used as is, need to rebuild ref names relative to each new home. FIXED