dia svg export: how do adjust size?
Dear all After made a graph in dia 0.96.1, I export it to svg by "File -> Export -> change extension name to .svg and click save". Result file cannot be opened in firefox 2.0.0.6. Error: This XML file does not appear to have any style information associated with it. The document tree is shown below. Then I export by repeating above operation while select "SVG Plain" as export format, this time it works and created an SVG file open-able in Firefox, but the graph is too big, and text is relatively bigger than shapes, making many text in rectangles ends outside the rectangle. I got 3 problem here: 1. Why simply export by changing extension name doesn't work (resulted svg that doesn't work in Fx)? If it's not open-able in Fx people assume it's broken, then dia should by default use "Plain SVG" or whatever option that produce more compatible svg. 2. Why text is relatively bigger? 3. How can I reduce the size of exported svg? I have tried to find option for dpi (no such option) and I try to find option for exported svg size (no such option) and then I try to make the graph smaller (not possible, because after grouped all objects, the group is not resizeable). Thanks! Note all of my 3 questions are probably bugs, let me know if I should file them as bug please. Seriously, I consider proper export of correct SVG is very important, DIA should have high quality control over this particular part. For sizing: user can reasonably expect exported svg image opens in firefox the same size as in dia when zoom is 100%. While this might not be easy as screen dpi may vary, at least it shouldn't be too far away from user expectation. On a higher level of usability requirement, a user might expect the diagram not exceeding the width of the screen prints within the A4 page width (especially on XGA) unless a shape of A4 page is clearly placed as background, and even expect the same for svg exported. This might not have to be satisfied but should be considered at least. For printing: just noticed user cannot select printer when printing in dia. I hope this can be improved too:) -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 135 9950 2413 http://www.realss.com ___ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: dia svg export: how do adjust size?
Sameer Sahasrabuddhe wrote: > On 10/2/07, Zhang Weiwu <[EMAIL PROTECTED]> wrote: > >> After made a graph in dia 0.96.1, I export it to svg by "File -> Export >> -> change extension name to .svg and click save". >> > > When you changed the extension name to ".svg", did you also select the > option that says "Determine file type By Extension"? > Yes:) > >> Result file cannot be opened in firefox 2.0.0.6. Error: >> This XML file does not appear to have any style information >> associated with it. The document tree is shown below. >> > > If you are running Linux, you can check the actual type of the file > using the "file" command. > > [EMAIL PROTECTED]:/tmp$ file diagram.svg diagram.svg: XML 1.0 document text Please see attachement, can it open in your Firefox? (in mine not.) >> Thanks! Note all of my 3 questions are probably bugs, let me know if I >> should file them as bug please. >> > > Snipped the rest of the issues mentioned since I am not knowledgeable > in that. Maybe some of these issues are already filed in related bugs. > A search on existing bugs might throw some light. > I also attached the DIA file. -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 135 9950 2413 http://www.realss.com diagram.dia Description: application/dia-diagram <>___ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: dia svg export: how do adjust size?
Hans Breuer wrote: > On 02.10.2007 13:20, Zhang Weiwu wrote: > >> Dear all >> >> After made a graph in dia 0.96.1, I export it to svg by "File -> Export >> -> change extension name to .svg and click save". >> >> Result file cannot be opened in firefox 2.0.0.6. Error: >> This XML file does not appear to have any style information >> associated with it. The document tree is shown below. >> >> > http://bugzilla.gnome.org/show_bug.cgi?id=327037 > Strange, this bug is reported 21 months ago for 0.93 version, now I am using 0.96, if it's fixed in CVS shouldn't it be reflected in later versions? > >> Then I export by repeating above operation while select "SVG Plain" as >> export format, this time it works and created an SVG file open-able in >> Firefox, but the graph is too big, and text is relatively bigger than >> shapes, making many text in rectangles ends outside the rectangle. >> >> > Probably related to: > http://bugzilla.gnome.org/show_bug.cgi?id=475978 > > >> I got 3 problem here: >> >>1. Why simply export by changing extension name doesn't work >> (resulted svg that doesn't work in Fx)? If it's not open-able in >> Fx people assume it's broken, then dia should by default use >> "Plain SVG" or whatever option that produce more compatible svg. >> > There is more than one SVG exporter, the one choosen for "By extension" is > more or less random. But you can disable two of three fia File/Plugins > I have no problem living with the fact I need to choose a specific one of the two SVG exporter every time, but this would be a usability problem because other users get surprised by normal operation. I hope such usability issue attract almost same attention to functionality issues. For sure it's opensource so if I am not satisfied I can modify it myself, but I am an software implementation engineer and software user trainer, who don't know how to write or fix software but often positioned in such way to see more problems than those who can:) a) if the function is there but one more click away then expected or b) if the function is not there, both are the same to most ordinary users. Luckily most dia users are advanced users, but still it would be nicer to be more usable:) > >>2. Why text is relatively bigger? >> > http://bugzilla.gnome.org/show_bug.cgi?id=316590 > Oh, glad to see it's fixed. Thanks. I'll try it again after next release to see if it's working then. > >>3. How can I reduce the size of exported svg? I have tried to find >> option for dpi (no such option) and I try to find option for >> exported svg size (no such option) and then I try to make the >> graph smaller (not possible, because after grouped all objects, >> the group is not resizeable). >> >> > File/Page Setup/Scale is your friend. > But it doesn't work for "Plain SVG" exporter. I tried 50% and 20%, both look the same as 100%. Maybe it work with "Scalable Vector Graphics" exporter, but then that exporter produce svg files without correct xmlns as described. > >> Thanks! Note all of my 3 questions are probably bugs, let me know if I >> should file them as bug please. Seriously, I consider proper export of >> correct SVG is very important, DIA should have high quality control over >> this particular part. >> >> > This is an interesting point. As noted elsewhere > [ http://mail.gnome.org/archives/dia-list/2007-September/msg00023.html ] > Firefox is not yet capable to do "Quality Control" on SVG. But sure Dia's > SVG exporters could use some improvements. Patches accepted. > > Sorry, my contribution can only be limited to pick out problems and be criticism as my job trained me to. But I think that sometimes is contribution too. I'll see if I can some day manage to learn how to writer exporters, but probably not. anyway, can you please recommend me a proper SVG viewer that is capable of some "Quality Control"? Just interested if next time I see another SVG file that might be buggy. >> For sizing: user can reasonably expect exported svg image opens in >> firefox the same size as in dia when zoom is 100%. While this might not >> be easy as screen dpi may vary, at least it shouldn't be too far away >> from user expectation. >> > There is some default scaling in SVN which should lead to almost same > screen size in Dia with 100% zoom and Firefox. > > Nice to see! >> On a higher level of usability requirement, a >
dia shows ugly bitmap font
Hello. Thanks to the ultra complicated graph I often work with, even though my display is more detail than XGA display mode, I still need the normal texts in the graphs to be the smallest identifiable size to contain enough graphics in the viewport. The only way I can think of is to use bitmap font. e.g. Fixed:style=Regular can display identifiable font at 7 pixel size. However I have two problems: 1. When I configure dia to use Fixed as normal text font for a graph, it become junk character. You can find the difference between using Fixed and "Droid Sans Mono" as normal text font at the same font size, by looking at the attached screenshot (be warned, it is very big, 2KB in size;) 2. The font size measurement unit is rather strange to me. By default it has 0.80 for normal text. 0.8 does not look like any font measurement unit I knew of (px, pt, inch), thus I don't know how to specify this value to get the 7px font size I want to have. I just wonder if other people already have a solution or had the same problem? <>___ dia-list mailing list dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: dia shows ugly bitmap font
Michael Ross 写道: > But you can set the unit of measure for the fonts in the Preferences > User Interface. Dia provides a lot of choices including picas, > points, inches, and millimeters. I have not tried to print out a > particular font and measure it for accuracy , but it looks OK. 12 > point seems close to 12 point. It is not my case. I am using Dia 0.97 on Ubuntu Linux 9.10, 24 point font looks like 12 point, when zoom is 100%. I can send a screenshot on request. There is another funny thing, if I export the graph to svg, it looks in the browser as if it is zoomed to 200%: every thing bigger. So if the svg export and browser are reliable, the zoom level of 100% actually mean zoom to 200%, and I should always work on 50% zoom if I intend to get svg output same big as I draw the graphs. > > However, if you alter the Page Setup/Scale to be other than 100% the > font size is altered. A Page Setup Scale of 50% shrinks the image > (not the paper) to 1/2 original size and therefore the font is half as > large as well with respect to the paper. You can set the length unit > to inches and the font size to something other than inches, this could > be part of the problem. It doesn't work for me. In preference I set measurement unit of font and length both to points, and this change have no effect on the ruler (the ruler is on the left and up part of the viewport). Besides, ordinary text and UML chart seems to be using different font size unit. After experiment, the UML chart at font size 1.0 looks same big as text object at font size "27 pt". This actually hint me the measurement unit in UML chart is cm, because 27pt is close to 1 cm (27/72*2.54=0.95 cm). I can also send screenshot of this on request. > I can't explain the ugly font. Yet the ugly font issue is not solved. I tried to set font of a text object to Fixed at 10pt, thinking that no matter zoom is correct (100% means 100%) or not (100% means 200%), the font at given size is available without scaling, because Fixed have bitmap for both 10pt and 20pt (told by xfontsel). Then I apply the property, the text object change to junk text the same way as in my first screenshot. ___ dia-list mailing list dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: dia shows ugly bitmap font
Michael Ross 写道: > When I have trouble getting the printed diagram to do as I wish I make > a screen shot and save it as a .jpg That prints well from a number of > programs and looks just as I want it to. Thanks for comment. I don't need to print these diagrams in high precision and is very happy with simple screenshot print thanks to my low-resolution dot-matrix A3 printer. Usually I work with Xorg "Virtual Screen" thus easy to get screenshot of several screenful of graphs. Even I am satisfied of any solution that breaks printing, I could not get things working on the display, that's the headache... ___ dia-list mailing list dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia