Not robust, since its only use was creating/updating a couple tables for http://ww2.lafayette.edu/~reiterc/nt/ppe/index.html
but I think ht_tags=: 4 : '''<'',x,''>'',y,''</'',x,''>''' NB. from image3 bxa_to_ht_table=: 3 : 0 'table'&ht_tags CRLF,~,CRLF,"1'tr'&ht_tags&;"1 'td'&ht_tags@:":&.>y ) at least works on simple matrix arrays. Best, Cliff Eric Iverson wrote: > Has anyone already written a verb to convert J boxed data to html table > format? If so, it would be nice to see how it worked with jhtml in jhs. > > On Sun, Mar 28, 2010 at 12:22 PM, Dan Bron <[email protected]> wrote: > >> Bill Lam wrote: >>> On the contrary I consider grid characters important because >>> information will be lost without them, eg, <1 vs <<1 >> On the contrary to your contrary, using HTML will allow us to distinguish a >> lot more relevant information than our current text-only display can (e.g. >> we could have code that makes 1 distinct from ,1 and +/%# distinct from >> +/`%`# even in boxed-display mode). >> >> But to address your specific concern about differentiating between <1 and >> <<1 , see this example: >> >> http://dan.bron.us/j/j-boxes-as-html-tables.html >> >> You can check the source to see I haven't done anything sneaky. This is >> just the natural implementation of nested tables in HTML. Of course you >> could override the default style with user stylsheets. >> >>> I'm sceptical box nouns can be actually represented by csv which only >>> intended for 2-d cells as such in excel. >> Excel can actually display nested tables as well. What it can't do is >> display open, multidimensional (2<#...@$) arrays. But that's unrelated to >> the >> display of boxes, and is a general problem for array displays, HTML or not. >> >>> As Eric suggested, if I really wanted a html tag, I would use jhtml >> But it's not the HTML tags we want, it's the browser's interpretation of >> those HTML tags. That is, I don't want to see >> >> <table><tr><td>1</td></tr></table> >> >> which is what jhtml would display (IIUK). >> >> The short answer is, for a browser platform, HTML tables are the natural >> and >> correct representation for boxed data. >> >> -Dan >> >> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Clifford A. Reiter Mathematics Department, Lafayette College Easton, PA 18042 USA, 610-330-5277 http://www.lafayette.edu/~reiterc ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
