Re: Full Save not setting of CSS files

2012-11-30 Thread John Rickman Iyonix
David Pitt  wrote

> John Rickman Iyonix, on 29 Nov, wrote:

>> When you run a NetSurf Full Save application it does not act on the the
>> CSS information because the CSS file is given a type of Text.

> The css file is correctly typed here on the ARMini, mimemap does have the
> css entry.

Thanks - David and Brian - mimemap was missing an entry for css. I 
have added one and the filetype is now being correctly set.

Incidently, the same problem occurs on the official RISC OS Raspberry 
Pi release.


-- 
John - http://mug.riscos.org/




Re: Full Save not setting of CSS files

2012-11-29 Thread David Pitt
John Rickman Iyonix, on 29 Nov, wrote:

> When you run a NetSurf Full Save application it does not act on the the
> CSS information because the CSS file is given a type of Text.
> 
> This is on an Iyonix 5.19, NetSurf #674. I think it used to work but am
> not sure.
> 
> As an example open:-
> 
>http://rickman.orpheusweb.co.uk/temp/
> 
> do a Full Save, then run the resulting !temp application. The background
> picture is not shown and the two column layout is lost.

There are two style sheets referenced in the original, as retrieved with a
normal save :-

 
 

The full save only recognizes the first of these :-

 
 http://rickman.orpheusweb.co.uk/temp/local.css";>

http://rickman.orpheusweb.co.uk/temp/local.css on its own gives a not found
error.

There does appear to be some garbage at the top of the full save index file.

> On my machine the CSS file created is called 0x71755530, and has a type of
> text. If this is changed to type CSS the two column layout is reinstated
> but the background image is still not shown because the name in the CSS
> file no longer matches the name of the image that NetSurf has created.

The css file is correctly typed here on the ARMini, mimemap does have the
css entry.

Hope this helps.

-- 
David Pitt



Re: Full Save not setting of CSS files

2012-11-29 Thread Brian Jordan
In message 
  John Rickman Iyonix  wrote:



>>  John Rickman Iyonix wrote:

>>> When you run a NetSurf Full Save application it does not act on the
>>> the CSS information because the CSS file is given a type of Text.
>>> This is on an Iyonix 5.19, NetSurf #674.
>>>eg
>>>http://rickman.orpheusweb.co.uk/temp/

>>> do a Full Save, then run the resulting !temp application. The
>>> background picture is not shown and the two column layout is lost.
> ...

> Brian Jordan  wrote

>>  Here the CSS file (in this case 0x67192c10) is shown as the
>>  correct type (f79 CSS) and I see the two column layout when
>>  I load the HTML file. The background image is saved as a jpg
>>  file <0x669d26e0> but the reference within the CSS file is
>>  unchanged as . Editing the CSS file to use the
>>  saved name of the graphic file achieves the correct result.
>>  It looks like the CSS file should be edited in the full save
>>  process or the graphic file should have its name unchanged.
>>  This in version 685 of Netsurf and after a quick check all
>>  the above seems to apply under Netsurf 2.9.


> Thanks Brian
> I have just updated to #685 but get the same result, ie the css file
> is typed Text.
> Are you using RISC OS 5.19?

John
Is this file type a mimemap issue? Does your mimemap file contain a 
line like "text/css  CSS f79 .css"? If not it might help to add it. As 
to my operating system it is 6.20 on a Virtual Acorn.
-- 

Brian Jordan
Virtual RPC-AdjustSA
RISC OS 6.20



Re: Full Save not setting of CSS files

2012-11-29 Thread John Rickman Iyonix


>  John Rickman Iyonix wrote:

>> When you run a NetSurf Full Save application it does not act on the
>> the CSS information because the CSS file is given a type of Text.
>> This is on an Iyonix 5.19, NetSurf #674.
>>eg
>>http://rickman.orpheusweb.co.uk/temp/

>> do a Full Save, then run the resulting !temp application. The
>> background picture is not shown and the two column layout is lost.
...

Brian Jordan  wrote

>  Here the CSS file (in this case 0x67192c10) is shown as the
>  correct type (f79 CSS) and I see the two column layout when
>  I load the HTML file. The background image is saved as a jpg
>  file <0x669d26e0> but the reference within the CSS file is
>  unchanged as . Editing the CSS file to use the
>  saved name of the graphic file achieves the correct result.
>  It looks like the CSS file should be edited in the full save
>  process or the graphic file should have its name unchanged.
>  This in version 685 of Netsurf and after a quick check all
>  the above seems to apply under Netsurf 2.9.


Thanks Brian
I have just updated to #685 but get the same result, ie the css file 
is typed Text.
Are you using RISC OS 5.19?





-- 
John - http://mug.riscos.org/




Re: Full Save not setting of CSS files

2012-11-29 Thread Brian Jordan
In message <152966f652.iyoj...@rickman.argonet.co.uk>
  John Rickman Iyonix  wrote:

> When you run a NetSurf Full Save application it does not act on the
> the CSS information because the CSS file is given a type of Text.

> This is on an Iyonix 5.19, NetSurf #674. I think it used to work but
> am not sure.

> As an example open:-

>http://rickman.orpheusweb.co.uk/temp/

> do a Full Save, then run the resulting !temp application. The
> background picture is not shown and the two column layout is lost.

> On my machine the CSS file created is called 0x71755530, and has a
> type of text. If this is changed to type CSS the two column layout is
> reinstated but the background image is still not shown because the
> name in the CSS file no longer matches the name of the image that
> NetSurf has created.


[snip]

 Here the CSS file (in this case 0x67192c10) is shown as the 
 correct type (f79 CSS) and I see the two column layout when 
 I load the HTML file. The background image is saved as a jpg 
 file <0x669d26e0> but the reference within the CSS file is 
 unchanged as . Editing the CSS file to use the 
 saved name of the graphic file achieves the correct result. 
 It looks like the CSS file should be edited in the full save 
 process or the graphic file should have its name unchanged. 
 This in version 685 of Netsurf and after a quick check all 
 the above seems to apply under Netsurf 2.9.

Brian




-- 

Brian Jordan
Virtual RPC-AdjustSA
RISC OS 6.20