GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




SVG genogram add-in for Narrative Report

Click to view RSS...
Author adds GenoMaps in SVG format to the Narrative Report
Posted Monday, October 31, 2005 - Post #9066
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:03 AM
Posts: 3,443, Visits: 26,654
rdn (10/30/2005)
Ron,

   After downloading again (due to your update), I now find that most of the names do appear, but that some of the boxes are not drawn.  Additionally, some of the relationship lines do not appear *in some instances because no explicit relationship was defined (e.g. marriage), only the default (grey line) appear in the GenoPro, but not in the svg.

Part of the problem here is an issue with Adobe's SVG Viewer, with a complex SVG some lines may fail to render initially. A work-around is to right click on hte graphic and uncheck the Higher Quality option. The missing lines will then appear. You can then check the Higher Quality option again and the lines remain. I'll see if I can automate this work-around in a later release.


You may also see spurious extra vertical lines, these are because of 'stray' Pedigree-Links in your GenoPro file. They seem to be a hang over from when an individual is moved to another GenoMap creating a hyperlink. The 'stray' link has the individual in one GenoMap and the family in another, which is invalid. This may be a bug in earlier releases of GenoPro that has now been fixed or may be not. Any way I've posted a revised version of my skin that gets over this problem. (see 1st post in thread).

I have also found that the problem some of us have in downloading Zip files from this forum is down to MS IE. If you get a corrupt Zip file try the Mozilla Firefox browser instead of IE. Don't you just love Mr Gates!

Update: removed reporting of pictures to log to avoid 'picture=' error messages


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Wednesday, November 2, 2005 by Ron
rdn
Posted Monday, October 31, 2005 - Post #9067
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, October 18, 2013
Posts: 142, Visits: 3,822
Ron,

  Your fix worked like a charm.  Thank you very much for your help and generally, to your fantastic support in this product. 

Danny

Edited: Monday, October 31, 2005 by GenoProSupport

rdn
Posted Monday, October 31, 2005 - Post #9068
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, October 18, 2013
Posts: 142, Visits: 3,822
Ron,

  Now that the file looks terrific, I would like to improve it further.  Do you know of a way to place pictures that would appear in the background, layed out in some fashion?  For example, I would like to have an entire genomap with a background of a particular picture (with 95% transparency), and several other pictures throughout the genomap (with 90% transparency) overlayed on top of the first one.

 Does this require work from Dan?  Can this be done in Genomaps of GenoPro directly, then copied to the SVG?

 In any event, I think this is the best method of displaying in a graphical and eye-pleasing format.

 Thank you once again for all your help.

Danny

Posted Monday, October 31, 2005 - Post #9069
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Having finally understood how to get it working thanks to Ron, I then discovered the scroll and zoom instructions and had some fun. Tongue

Would visible scroll bars and zoom buttons like in GenoPro be possible ?Blush

Posted Monday, October 31, 2005 - Post #9070
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:03 AM
Posts: 3,443, Visits: 26,654
rdn (10/31/2005)
Do you know of a way to place pictures that would appear in the background, layed out in some fashion?  For example, I would like to have an entire genomap with a background of a particular picture (with 95% transparency), and several other pictures throughout the genomap (with 90% transparency) overlayed on top of the first one.

 Does this require work from Dan?  Can this be done in Genomaps of GenoPro directly, then copied to the SVG?.

Yes! I had put in some code along the lines of my original XSL generated SVG and then forgot all about it! I've tested it and after a few changes works great. So here are the original instructions:

Images (GIF, JPG or PNG) can now be placed within the SVG rendering of the genomaps. For example this can be used to provide a background image or to display photos of the individuals. To achieve this, draw text labels on the GenoPro GenoMaps to act a image 'placeholders', and set the label text to picture="picnnnnn"  where 'picnnnnn' refers to the id of a picture object referenced in the GenoPro file, i.e. a picture associated with a individual , family or place.  To see a list of pictures referenced within your GenoPro file, use the 'View, Table Layout - Pictures ..' GenoPro menu option. To see picture ids, right click on a column heading, select 'Column Properties' then click the check box next to 'ID'. The text label's border fill can be used the provide a frame for the picture and the 'padding' setting can be used to control the width of the border. Note that the aspect ratio of the text label should match that of the picture.  The opacity of the inserted picture can be set by including the text opacity:0.x; where 'x' is a value 1-9, following the picture="picnnnnn"  text. 0.1 is very translucent, while 0.9 is more opaque.

Whilst testing this I discovered the cause of Howard53's bug with Text boxes so this is fixed too. Downloads in usual place.

And Iain wrote "Would visible scroll bars and zoom buttons like in GenoPro be possible ?"
The short answer is no. The Adobe viewer does not have these features. It is possible to do it by manipulating the SVG DOM with Javascript as in my original SVG implementation but in my opinion is far too slow

Update: further update to change z order of shapes and labels


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Wednesday, November 2, 2005 by Ron
Posted Monday, October 31, 2005 - Post #9072
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.1.0.1

Last Login: Sunday, August 10, 2025
Posts: 443, Visits: 7,726
Ron (10/31/2005)
In reply to Howard53

The initial blank is partly due I believe to your GenoMap not being 'balanced at the origin'. See GenoPro Tools menu. But it will be fixed post Beta 15 anyway when I will have the bounding box for the GenoMap available as a property in the Report Generator, allowing me to set the initial transform and zoom level.

This fix worked fine - always wondered what this tool was forExclamation Mark Had to repeat for each GenoMap.

Glad you've also fixed the 'wandering' Text Boxes. Great job.

Posted Monday, October 31, 2005 - Post #9073
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
You may also see spurious extra vertical lines, these are because of 'stray' Pedigree-Links in your GenoPro file. They seem to be a hang over from when an individual is moved to another GenoMap creating a hyperlink. The 'stray' link has the individual in one GenoMap and the family in another, which is invalid. This may be a bug in earlier releases of GenoPro that has now been fixed or may be not. Any way I've posted a revised version of my skin that gets over this problem. (see 1st post in thread).


Ron, it realy looks great now.

1) However I also have a question to Dan with regard to above. Can "Delete stray pedigree lines" included underneath of "Delete stray objects"?

2) When creating the report, at the moment it is either one genomap or all. Is there a selection of genomaps in the making?

3) And the last: What about japanese characters?


Edited: Monday, October 31, 2005 by maru-san
MR
Posted Monday, October 31, 2005 - Post #9074
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 3.0.0.7

Last Login: Wednesday, July 6, 2016
Posts: 57, Visits: 149
To use pictures the text label must be of the same size ratio as the picture. How can you correct the label size smoothly? Have tried all the keys, but can't do it smoothly, just in big increments. Thanks.
Posted Monday, October 31, 2005 - Post #9075
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
MR (11/1/2005)
To use pictures the text label must be of the same size ratio as the picture. How can youcorrect the label size smoothly? Have tried all the keys, but can't do it smoothly, just in big increments. Thanks.


Click the label and then drag any corner of the label in any direction. Make a report and you will see how much more you have to drag the corners. If you know the picture, you should know from the beginning which shape you have to give to the label. Make the adjustments as above.
Posted Tuesday, November 1, 2005 - Post #9078
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:03 AM
Posts: 3,443, Visits: 26,654
maru-san (10/31/2005)

1) However I also have a question to Dan with regard to above. Can "Delete stray pedigree lines" included underneath of "Delete stray objects"?

2) When creating the report, at the moment it is either one genomap or all. Is there a selection of genomaps in the making?

3) And the last: What about japanese characters?

Both 1) & 2) will be down to Dan

3) I believe the SVG report already handles Japanese characters & names are displayed top to bottom if this is how they are in the GenoMap. Currently the font is fixed as 'Arial Unicode MS' but post Beta 15 I should be able to use the same font as the GenoMap. Meanwhile you can change it in the first line of the template map.svg.

MR (10/31/2005)

To use pictures the text label must be of the same size ratio as the picture. How can youcorrect the label size smoothly? Have tried all the keys, but can't do it smoothly, just in big increments. Thanks.

GenoPro seems to keep the size of labels as multiples of 5 units. As you drag the label you can see the size in the status bar bottom left. If this is not fine enough you could try editing the GenoPro xml file and setting the label size directly and then importing the XML into GenoPro. (I've not tested this) You only need to make the label have the same aspect ratio if you have a non-transparent border or fill, i.e. you want a frame for the picture with the border the exact same thickmess on all sides. The picture is left aligned in the label to the maximum size that will fit but keeping its own aspect ratio.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh