|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Calling Value::print() with different ⎕PW |
Date: | Thu, 22 May 2014 16:14:42 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Elias,
so do_CR returns the internal character representation which contains "blanks" inserted by the APL formatting (which is somewhat non-trivial). The different symbols tell why a blank was inserted and the final action is to (1) replace the blanks and to (2) ⎕PW-wrap the output. You want the first but no the second. My proposal would be this then: Maybe (needed ?) check the rank of Z with Z->get_rank() and loop(z, Z->element_count()) { Unicode uni = Z->get_ravel(z).get_char_value(); if (is_iPAD_char(uni)) uni = UNI_ASCII_SPACE; out << uni; if (z && !(z%Z->get_last_shape_item()) out << endl; } If you change the first parameter (a) of do_CR then you get the other style which mostly differ by the line characters used (ASCII, thin lines, thick lines etc). You can change combinations of inner and outer line styles that way; the result is most likely bad. Some values for a ignore the line style. /// Jürgen On 05/22/2014 03:51 PM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |