Re: Why is NetSurf so fussy?

2014-09-21 Thread Richard Porter
On 20 Sep 2014 Tony Moore  wrote:

> On 20 Sep 2014, Richard Porter  wrote:

>> One really annoying feature of NetSurf (RO front end) is that it won't
>> let you paste text from an html file into the URL field. ...

> It _isn't_ necessary, when using StongED to view the HTML source. Press
> f8 to view the source, select the URL, press ctrl-shft-c to copy it to
> the clipboard, click in the NS URL field (or Open URL window), press
> ctrl-v to paste the URL. Perhaps I've misunderstood the problem?

The problem is that Copy saves the file type of the file you are 
copying from to the clipboard, and Paste presents that file type to 
the application you are pasting into. NetSurf doesn't accept plain 
text pasted from a file that isn't type Text (fff). This restriction 
seems to be as unnecessary as it is frustrating.

-- 
Richard Porterhttp://www.minijem.plus.com/
Skype: minijem2   mailto:r...@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.



Re: Why is NetSurf so fussy?

2014-09-21 Thread Tony Moore
On 21 Sep 2014, Richard Porter  wrote:
> On 20 Sep 2014 Tony Moore  wrote:
> > On 20 Sep 2014, Richard Porter  wrote:
>
> > > One really annoying feature of NetSurf (RO front end) is that it
> > > won't let you paste text from an html file into the URL field. ...
>
> > It _isn't_ necessary, when using StongED to view the HTML source.
> > Press f8 to view the source, select the URL, press ctrl-shft-c to
> > copy it to the clipboard, click in the NS URL field (or Open URL
> > window), press ctrl-v to paste the URL. Perhaps I've misunderstood
> > the problem?
>
> The problem is that Copy saves the file type of the file you are
> copying from to the clipboard, and Paste presents that file type to
> the application you are pasting into. NetSurf doesn't accept plain
> text pasted from a file that isn't type Text (fff). This restriction
> seems to be as unnecessary as it is frustrating.

As said above, here there is _no_ problem in pasting the URL from the
clipboard (RO 6.20, NS 2107, SE 4.69). Which application are you using
to view the NS HTML source?

Tony






Re: Why is NetSurf so fussy?

2014-09-21 Thread Richard Porter
On 21 Sep 2014 Tony Moore  wrote:

> On 21 Sep 2014, Richard Porter  wrote:
>> On 20 Sep 2014 Tony Moore  wrote:
>>> On 20 Sep 2014, Richard Porter  wrote:
>>
 One really annoying feature of NetSurf (RO front end) is that it
 won't let you paste text from an html file into the URL field. ...
>>
>>> It _isn't_ necessary, when using StongED to view the HTML source.
>>> Press f8 to view the source, select the URL, press ctrl-shft-c to
>>> copy it to the clipboard, click in the NS URL field (or Open URL
>>> window), press ctrl-v to paste the URL. Perhaps I've misunderstood
>>> the problem?
>>
>> The problem is that Copy saves the file type of the file you are
>> copying from to the clipboard, and Paste presents that file type to
>> the application you are pasting into. NetSurf doesn't accept plain
>> text pasted from a file that isn't type Text (fff). This restriction
>> seems to be as unnecessary as it is frustrating.

> As said above, here there is _no_ problem in pasting the URL from the
> clipboard (RO 6.20, NS 2107, SE 4.69). Which application are you using
> to view the NS HTML source?

Edit by default. I don't normally use StrongEd. I had a look at the 
StrongHelp for StrongEd and eventually found ctrl-shift-C and 
ctrl-shift-V, but it doesn't give any explanation of what they do. I 
assume it means copy/paste forcing type to text.

-- 
Richard Porterhttp://www.minijem.plus.com/
Skype: minijem2   mailto:r...@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.



Re: Why is NetSurf so fussy?

2014-09-21 Thread Steve Fryatt
On 21 Sep, Richard Porter wrote in message
<892ccc4a54.r...@user.minijem.plus.com>:

> On 21 Sep 2014 Tony Moore  wrote:
> 
> > On 21 Sep 2014, Richard Porter  wrote:
> >
> > > The problem is that Copy saves the file type of the file you are
> > > copying from to the clipboard, and Paste presents that file type to
> > > the application you are pasting into. NetSurf doesn't accept plain
> > > text pasted from a file that isn't type Text (fff). This restriction
> > > seems to be as unnecessary as it is frustrating.
> 
> > As said above, here there is _no_ problem in pasting the URL from the
> > clipboard (RO 6.20, NS 2107, SE 4.69). Which application are you using
> > to view the NS HTML source?
> 
> Edit by default. I don't normally use StrongEd. I had a look at the
> StrongHelp for StrongEd and eventually found ctrl-shift-C and
> ctrl-shift-V, but it doesn't give any explanation of what they do. I
> assume it means copy/paste forcing type to text.

No, Ctrl-Shift-C and Ctrl-Shift-V just copy and paste on the Global
Clipboard.

Thinking about it, I believe it's actually Edit's problem. It's certainly
not NetSurf because if you're talking about the URL bar in a browser window,
NetSurf relies on the OS (or something like IcnClipBrd) to handle cut and
paste for it.

When you do Ctrl-V in the field, whatever processes it (the OS on RISC OS
Select; IcnClipBrd everywhere else) sends the clipboard owner (Edit) a list
of types that it can handle in order of descending preference. For a
writable icon, that will only be text.  The owner should look down the list
and pick the best type (or least worst) that it can support, generally
flattening to plain text as a last resort if that option's available.

My guess is that StrongED does that properly. Edit, from what you say,
doesn't. It's broken, because it isn't supporting the Block Transfer
Protocol correctly.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/



Re: Why is NetSurf so fussy?

2014-09-21 Thread Tony Moore
On 21 Sep 2014, Steve Fryatt  wrote:
> On 21 Sep, Richard Porter wrote in message
> <892ccc4a54.r...@user.minijem.plus.com>:
> > On 21 Sep 2014 Tony Moore  wrote:
> > > On 21 Sep 2014, Richard Porter  wrote:
> > >
> > > > The problem is that Copy saves the file type of the file you are
> > > > copying from to the clipboard, and Paste presents that file type
> > > > to the application you are pasting into. NetSurf doesn't accept
> > > > plain text pasted from a file that isn't type Text (fff). This
> > > > restriction seems to be as unnecessary as it is frustrating.
> >
> > > As said above, here there is _no_ problem in pasting the URL from
> > > the clipboard (RO 6.20, NS 2107, SE 4.69). Which application are
> > > you using to view the NS HTML source?
> >
> > Edit by default. I don't normally use StrongEd. I had a look at the
> > StrongHelp for StrongEd and eventually found ctrl-shift-C and
> > ctrl-shift-V, but it doesn't give any explanation of what they do. I
> > assume it means copy/paste forcing type to text.
>
> No, Ctrl-Shift-C and Ctrl-Shift-V just copy and paste on the Global
> Clipboard.

According to the Quick Reference page in the StrongED StrongHelp manual:

   cs-C   Copy block to clipboard
   cs-V   Paste clipboard to text

I don't know whether 'to text' means 'to the cursor', or if it implies
conversion to text before pasting.

Tony






Re: Why is NetSurf so fussy?

2014-09-21 Thread Richard Porter
On 21 Sep 2014 Steve Fryatt  wrote:

> No, Ctrl-Shift-C and Ctrl-Shift-V just copy and paste on the Global
> Clipboard.

So in what way is that different fron Ctrl-C and Ctrl-V in Edit?

> Thinking about it, I believe it's actually Edit's problem. It's certainly
> not NetSurf because if you're talking about the URL bar in a browser window,
> NetSurf relies on the OS (or something like IcnClipBrd) to handle cut and
> paste for it.

> When you do Ctrl-V in the field, whatever processes it (the OS on RISC OS
> Select; IcnClipBrd everywhere else) sends the clipboard owner (Edit) a list
> of types that it can handle in order of descending preference. For a
> writable icon, that will only be text.  The owner should look down the list
> and pick the best type (or least worst) that it can support, generally
> flattening to plain text as a last resort if that option's available.

> My guess is that StrongED does that properly. Edit, from what you say,
> doesn't. It's broken, because it isn't supporting the Block Transfer
> Protocol correctly.

I just can't get on with StrongEd. I type Ctrl-C and it duplicates the 
block in situ or tells me no block is selected, then when I try to 
paste it into NS I get some text I had saved some time before from 
another document. Then I try Shift-Ctrl-C and -V, and I get the 
selected URL twice! Well at least it did paste the URL but it's not 
surprising that I gave up on StrongEd.

-- 
Richard Porterhttp://www.minijem.plus.com/
Skype: minijem2   mailto:r...@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.



Re: Why is NetSurf so fussy?

2014-09-21 Thread Steve Fryatt
On 22 Sep, Richard Porter wrote in message
<4a10d84a54.r...@user.minijem.plus.com>:

> On 21 Sep 2014 Steve Fryatt  wrote:
> 
> > No, Ctrl-Shift-C and Ctrl-Shift-V just copy and paste on the Global
> > Clipboard.
> 
> So in what way is that different fron Ctrl-C and Ctrl-V in Edit?

It isn't. In StrongED, Ctrl-C/Ctrl-V do the "old style" direct copy/move
that Edit used to do.

> > My guess is that StrongED does that properly. Edit, from what you say,
> > doesn't. It's broken, because it isn't supporting the Block Transfer
> > Protocol correctly.
> 
> I just can't get on with StrongEd. I type Ctrl-C and it duplicates the
> block in situ or tells me no block is selected, then when I try to paste
> it into NS I get some text I had saved some time before from another
> document.

See above. You can re-map the keys so that Ctrl-C/Ctrl-V behave as Edit, but
the detail of how to do it is off-topic for this list.

> Then I try Shift-Ctrl-C and -V, and I get the selected URL twice!

In NetSurf?  Is that repeatable?  What settings do you have on in the OS for
cut and paste in writable icons?

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/