SVG support

2023-09-29 Thread Drag N Drop
Hi all,

Using Dev Cl #6508 RISC OS 5.28

- For some reason Netsurf renders SVGs scaled by a factor of 70%ish in the
Y direction. Or, I suppose, 140%ish in the X direction. 

* For example, go to www.free-svg.org choose an SVG and click
"Download SVG" to display it in the Netsurf window.

- Resizing the browser window re-renders the SVG over the top of the old
one

- is it possible to render at 100% in both X and Y directions and if
possible to clear the page before replotting the graphic?

- And incidentally it might be nice to launch a browser window on double
clicking a SVG file. Can one of you clever folks write an Obey file?

Thanks

-- 
--
AVAILABLE NOW - Graphics Tablets for RISC OS - buy from www.dragdrop.co.uk

Chris Dewhurst, Editor, Drag N Drop for RISC OS
edi...@dragdrop.co.uk   www.dragdrop.co.uk 
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: SVG

2019-02-21 Thread Tim Hill
In article <5789df88f8li...@torrens.org>, Richard Torrens (lists)
 wrote:
> In article <5789dcef69...@timil.com>, Tim Hill  wrote:
> > > It's also curious tha the text is truncated on the left margin as
> > > if CSS left-margin has a negative value.

> > You can try and decipher their CSS here:
> > https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

> > (The page in NetSurf is blank. Press f8 then use search and replace
> > to change the } into }+newline and change the wrapwidth to 1024.)

> Yes, I got that and had a quick look. Not an easy page to understand
> without a lot of processing.

Looking at it using Chrome Dev's "Inspect" the CSS is best described as a
rat's nest.

> > There's a width of 1270px in there which may be responsible but I
> > didn't cross-refer all the style and whatnot.

> It cannot be a negative left-margin as negative values aren't allowed.

> However - might Metsurf be calculating the margin and ending up with a
> negative result?

I didn't look in detail after I saw "width:1270px;". 
If it contains such fixed widths and if centred in a narrower window it
would extend too far left and right offscreen. Widening the NetSurf
window brings it into view. If the window is already as wide as your
monitor, reducing the page to 80% zoom would probably bring it on screen.

-- 
Tim Hill

Find an  event to attend at:
http://timil.com/riscos/calendar/
Mimemap and other stuff:
http://timil.com/riscos/



Re: SVG

2019-02-21 Thread Richard Torrens (lists)
In article <5789dcef69...@timil.com>,
   Tim Hill  wrote:
> > It's also curious tha the text is truncated on the left margin as if
> > CSS left-margin has a negative value.

> You can try and decipher their CSS here:
> https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

> (The page in NetSurf is blank. Press f8 then use search and replace to
> change the } into }+newline and change the wrapwidth to 1024.)

Yes, I got that and had a quick look. Not an easy page to understand
without a lot of processing.

> There's a width of 1270px in there which may be responsible but I didn't
> cross-refer all the style and whatnot.

It cannot be a negative left-margin as negative values aren't allowed.

However - might Metsurf be calculating the margin and ending up with a
negative result?

-- 
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!



Re: SVG

2019-02-21 Thread David Higton
In message <5789d3c2d1li...@torrens.org>
  "Richard Torrens (lists)"  wrote:

> How far has SVG rendering got?
> 
> sVGs are not common yet, but I met a page with some prsent, which don't
> display properly:
> 
> https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php
> 
> It's also curious tha the text is truncated on the left margin as if CSS
> left-margin has a negative value.

It was pointed out recently that the SVGs of QR codes, created by the
QrCode app by calling out to https://api.qrserver.com, render completely
black.  They contain a line ; deleting this line causes
them to be rendered correctly by NetSurf.

Dave



Re: SVG

2019-02-21 Thread Tim Hill
In article <5789d3c2d1li...@torrens.org>, Richard Torrens (lists)
 wrote:
> How far has SVG rendering got?

> sVGs are not common yet, but I met a page with some prsent, which don't
> display properly:

> https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php

> It's also curious tha the text is truncated on the left margin as if
> CSS left-margin has a negative value.

You can try and decipher their CSS here:
https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

(The page in NetSurf is blank. Press f8 then use search and replace to
change the } into }+newline and change the wrapwidth to 1024.)

There's a width of 1270px in there which may be responsible but I didn't
cross-refer all the style and whatnot.

-- 
Tim Hill

Find an  event to attend at:
http://timil.com/riscos/calendar/
Mimemap and other stuff:
http://timil.com/riscos/



SVG

2019-02-21 Thread Richard Torrens (lists)
How far has SVG rendering got?

sVGs are not common yet, but I met a page with some prsent, which don't
display properly:

https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php

It's also curious tha the text is truncated on the left margin as if CSS
left-margin has a negative value.

-- 
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!



Re: SVG image support on Netsurf 4088.

2017-05-31 Thread Tim Hill
In article <45f26a2b-4587-4f06-a4c7-df5419cfb...@powys.org>, Tim
Powys-Lybbe <t...@powys.org> wrote:
> Another minor problem with Netsurf: Thick lines on a vector image saved
> as a SVG file are displayed by Netsurf as lines of probably zero
> thickness, around a pixel wide.

> I have put a thick lined square here:
> <http://powys.org/Temp/thick_lines.html>

It's here, really: http://powys.org/Temp/Thick_Lines.svg;-)

stroke-width="n" in  seems to be ignored.

Perhaps use a rectangle within a rectangle and background colours to
create the same effect as a thick line?

Turns out that using styles in the svg file does work. The one on the
left is two rectangles, the pink one is a thick line. Created with
Inkscape in the pee sea.

www.timil.com/temp/drawing.svg

-- 

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk



SVG image support on Netsurf 4088.

2017-05-31 Thread Tim Powys-Lybbe
Another minor problem with Netsurf: Thick lines on a vector image saved as a 
SVG file are displayed by Netsurf as lines of probably zero thickness, around a 
pixel wide.

I have put a thick lined square here: <http://powys.org/Temp/thick_lines.html>

The Mac Safari browser gets the line thickness right.  (Though Safari does have 
a problem with another SVG image that Netsurf handles well.)

-- 
Tim Powys-Lybbe   
t...@powys.org
for a miscellany of bygones: http://powys.org/




Incorrect rendering of SVG files

2016-01-27 Thread archil

Hello!

As long as the support of SVG on GTK is marked as
complete I think the result I'm seeing is a bug.

Consider the following SVG file:


http://www.w3.org/2000/svg; width="32" height="32">



The image above is rendered as two rectangles side-by-side.
On red and another one blue while it appears all red in any other
image viewer, image editor or web browser.

See the screenshot at: http://ogg.ge/netsurf.png

I'm using NetSurf 3.4 on Debian Jessie GNU/Linux.
I will happily share any other technical details if needed.

Thanks.



Re: SVG rendering - impressive start!

2008-02-04 Thread Michael Drake
In article [EMAIL PROTECTED],
   Mark Fraser [EMAIL PROTECTED] wrote:

 Now that NetSurf can display SVGs, could someone please check to see if 
 http://mfraz74.mysite.orange.co.uk/waug/loxtonmap.html or

It works when the object type is set to image/svg. At the moment it's
image/svg+xml, which doesn't get loaded.

 http://mfraz74.mysite.orange.co.uk/waug/loxtonmap.svg work with the
 latest version of NetSurf?

That SVG is served up with a content-type of text/xml, so NetSurf wont
display it as an SVG unless you download it and set the file's type to SVG.

Michael

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/




Re: SVG rendering - impressive start!

2008-02-04 Thread Barry E Allen
In article [EMAIL PROTECTED], Mark
Fraser [EMAIL PROTECTED] wrote:

 Now that NetSurf can display SVGs, could someone please check to see
 if http://mfraz74.mysite.orange.co.uk/waug/loxtonmap.html

Sorry you don't support SVG

Netsurf (3rd Feb 2008 20:15) r3838

-- 
Barry A.



Re: SVG rendering - impressive start!

2008-02-04 Thread Michael Drake
In article [EMAIL PROTECTED],
   Mark Fraser [EMAIL PROTECTED] wrote:

 That is a shame. It's definitely image/svg+xml this end, but there
 doesn't seem to be any way of changing the type to image/svg+xml either.

You could try adding 'AddType image/svg+xml svg' to the .htaccess file, or
creating one if there isn't one already.

See http://wiki.svg.org/MIME_Type

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/




Re: SVG rendering - impressive start!

2008-02-04 Thread Paul Vigay
In a dim and distant universe [EMAIL PROTECTED],
   Michael Drake [EMAIL PROTECTED] enlightened us thusly:

 As Rob said, if you think NetSurf gets something wrong, report it.

Righto. Done.

I was (perhaps erroneously) assuming that the SVG support was an
unsupported experimental 'bonus' which wasn't fully working yet anyway.

 The drawfile URL appears to be broken:
 http://ccdb.cropcircleresearch.com/cc-draw/uk2007aa.drw

Odd. Not sure how that happened - but I've now uploaded it so it's now
there.

Incidentally, if you now go back to the link I gave originally (to the SVG
version) and then click the 'draw' format at the bottom of the page,
NetSurf now crashes completely.

I'll reboot my machine and make sure I've got the latest NetSurf and then
I'll report as a bug if it still does it.




SVG rendering - impressive start!

2008-02-03 Thread Simon Smith
From the Libsvgtiny page, in teeny tiny text I spotted

http://croczilla.com/svg/samples/tiger/tiger.svg

Followed the link, and ... that's really quite impressive.

I tried exporting an ArtWorks file of my own in SVG format and found you
haven't done transparency yet, but even so, my hat is off to you gents for
your work so far.


Now, ArtWorks' SVG expert does have quite a lot of customisable settings.
Would you care to comment on the optimum export settings to use, or is it
going to remain a question of trial and error for the foreseeable future?


Thanks

-- 
Simon Smith The idea of an uncrackable digital rights management
(DRM) scheme is fundamentally flawed. Encryption is
about A sending information to B while ensuring that
C cannot read it. In DRM, B and C are the same person.



Re: SVG rendering - impressive start!

2008-02-03 Thread Michael Drake
In article [EMAIL PROTECTED],
   Simon Smith [EMAIL PROTECTED] wrote:
 From the Libsvgtiny page, in teeny tiny text I spotted

 http://croczilla.com/svg/samples/tiger/tiger.svg

 Followed the link, and ... that's really quite impressive.

NetSurf can convert SVG files to draw format too. On that SVG, open the
menu and do Page  Export  Draw.

I'm not sure exactly what features are planned but Libsvgtiny isn't aiming
for full SVG support, it's aiming for SVG Tiny support, which is a subset
of SVG's features.

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/




Re: SVG rendering - impressive start!

2008-02-03 Thread John-Mark Bell
On Sun, 03 Feb 2008 23:46:37 + (GMT), Michael Drake
[EMAIL PROTECTED] wrote:
 In article [EMAIL PROTECTED],
Simon Smith [EMAIL PROTECTED] wrote:
 From the Libsvgtiny page, in teeny tiny text I spotted
 
 http://croczilla.com/svg/samples/tiger/tiger.svg
 
 Followed the link, and ... that's really quite impressive.
 
 NetSurf can convert SVG files to draw format too. On that SVG, open the
 menu and do Page  Export  Draw.
 
 I'm not sure exactly what features are planned but Libsvgtiny isn't
aiming
 for full SVG support, it's aiming for SVG Tiny support, which is a subset
 of SVG's features.

Just to qualify that -- it's aiming at SVG Tiny 1.1 as specified at
http://www.w3.org/TR/SVGMobile/

There's a Tiny profile of SVG 1.2 in Candidate Recommendation
(http://www.w3.org/TR/SVGMobile12/) that adds significantly more features.
This is not currently being considered for implementation in libsvgtiny.


John.