could not find anything good. there is jhtr_jhs_ though
works well for 2d data. jhtr_jhs_"1 ": each <"0 i.2 5 <tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr> <tr><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr> not so well here: jhtr_jhs_ "1 S:1 (< 2 2 $ ;:'5 asd gg h') (<0;0)}": each <"0 i.2 5 <tr><td>5</td><td>asd</td></tr> <tr><td>gg</td><td>h</td></tr> <tr><td>1</td></tr> <tr><td>2</td></tr> <tr><td>3</td></tr> <tr><td>4</td></tr> <tr><td>5</td></tr> <tr><td>6</td></tr> <tr><td>7</td></tr> <tr><td>8</td></tr> <tr><td>9</td></tr> though this may fix it? b2t =: '<table border="1">' , '</table>' ,~ jhtr"1 jhtr =: 3 : '''<tr>'',''</tr>'',~;((<''<td>''), each b2t^:(0<L.) each y),each<''</td>''' b2t (< 2 2 $ ;:'5 asd gg h') (<0;0)}": each <"0 i.2 5 <table border="1"> <tr> <td> <table border="1"> <tr><td>5</td><td>asd</td></tr> <tr><td>gg</td><td>h</td></tr> </table> </td> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> <tr><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr> </table> b2t ": each <"0 i.2 5 <table border="1"> <tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr> <tr><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr> </table> ----- Original Message ----- From: June Kim (김창준) <[email protected]> To: Programming forum <[email protected]> Cc: Sent: Saturday, April 26, 2014 8:26:08 PM Subject: Re: [Jprogramming] Unicode boxed display There is a verb for translating a boxed data into a html table, though incomplete yet, as I remember(I haven't been using it for a while). You may want to search here or the jwiki. sent from an android phone 2014. 4. 27. 오전 8:11에 "'Pascal Jasmin' via Programming" < [email protected]>님이 작성: > would be nice. I requested the same about a month ago, though that was > really about special treatment for latin-1 characters. > > as you may be aware, utf8 has a variable 1 or 2 character encoding > depending on the character, and it would be harder to box, but I am sure > that even with full wchars, the approach of trying to pad with spaces > cannot work, especially not accross jhs and jqt. > > Without resorting to OS calls for textwidth, and drawing on OS > canvas/pictureboxes, an approach that would be reasonable is converting to > html table, and then blaming qt, chrome and firefox if it doesn't look > right. > > this command in jhs looks ok: (using new editable table feature) > > jtable 'e2';'n' [ n=: ,: <"1 ] 4 u: 97 98 99 +/ 0 256 512 1024 > > so it will at least look good this way? > > Converting boxed data to an html table fragment seems useful enough to > have been done before. Has it? (already jhs util?) > > > > > ----- Original Message ----- > From: Henry Rich <[email protected]> > To: Programming forum <[email protected]> > Cc: > Sent: Saturday, April 26, 2014 5:02:12 PM > Subject: [Jprogramming] Unicode boxed display > > Display of boxes containing non-ASCII characters messes up the alignment > of the boxes. Has anyone written a verb to format such boxes so that > the boxes line up? > > Henry Rich > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
