There is a bug in dealing with pasted html (previously reported by Ric). I
think I have a fix for this now and it will be in the next update.

A workaround for now is to do paste/composition in the scratch window and
then run or cut/paste to the ijx last line.

On Wed, Oct 27, 2010 at 8:27 PM, greg heil <[email protected]> wrote:

> If i put 1 in the paste buffer (from an html source, eg ijx or ijs
> windows) and i paste into ijx and return, ijx evaluates 1. Good.
>
> If i do 5 pastes so i get 11111 on the command line and i still get 1
> as the evaluation result!
>
> Interspersing the pastes of 1 with numbers so i have 012131415 i get 15.
>
> Doing the same setup but moving the cursor(^): 0121^31415 i get 13
> Doing the same setup but moving the cursor(^): 012^131415 i get 13
> Doing the same setup but moving the cursor(^): 01^2131415 i get 12
> Doing the same setup but moving the cursor(^): 0^12131415 i get 12
> Doing the same setup but moving the cursor(^): 012131^415 i get 14
>
> Doing the same setup but doubling the typed numbers and moving the
> cursor(^): 0012213^3144155 i get 133
>
> Doing the same setup and moving the cursor(^): 0012213314^4155 i get 144
>
> my guess is from the cursor position the IJX is taking the text of
> last paste and the tokens until the next paste as the input line.
>
> i seem to get the same results using , or ' for delimeters and either
> ff or chrome (on W7 and XP) in the JUM
>
> If i do a paste of a number cut from some window where that digit has
> a style, that style is preserved in the paste line - so my guess is
> the current (where the cursor is) 'text' of a markup plus the
> succeeding typed entries only, are used.
>
> This was verified by taking copies from a prepared page, and found to
> go up only one markup level.
>
> Previous and succeeding markups are cut out. They are not in the
> scroll buffer nor executed -  though they were pasted. So a solution
> is to eliminate markup, before inserting from the paste buffer.
>
> After that its elimination becomes problematic as the user can 'jump'
> to any text spot at any time and hierarchy (which correct XML and its
> tools requires) is not necessarily preserved.
>
> greg
> ~krsnadas.org
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to