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

GenoPro Support Forum




Beta15 SVG corrections and improvements

Click to view RSS...
Author beta15 introduces errors in SVG Genomaps
MR
Posted Tuesday, November 15, 2005 - Post #9311
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
It is perfect!!! Thanks Ron, appreciate your mathematical abilities...
Posted Monday, November 14, 2005 - Post #9310
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Monday, June 2, 2025
Posts: 4,886, Visits: 22,796
I have been working on many improvements for the report generator.  Of course, those changes will be in Beta15b.
  1. The boundary_rect now returns a rectangle as an object, which makes it easier to manipulate and format.  I also fixed the problem where the boundary_rect is empty for the individual.
  2. The positions x,y are returned without the parentheses (), making them simpler to parse.
  3. It is possible to get the text of a label as displayed in the family tree.  A simple For loop does the trick to iterate for each display line.  Also, the dimension (width and height) of the text can be returned.
  4. I plan to eventually have GenoPro return an array of points representing the drawing of the emotional relationships.  This way, there will be no need to compute anything... just connect the dots.


Edited: Monday, November 14, 2005 by GenoProSupport
Posted Monday, November 14, 2005 - Post #9309
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: 2 days ago @ 8:38 PM
Posts: 3,429, Visits: 26,549
Another question, but really not so important. On my genomap some of the gender symbols are colored (I used all top-left, bottom left etc colors on display tab) - I am using this to mark my direct ancestors for easier visibility. Is this possible on SVG somehow?

Have now posted new version of genomap.svg (a.k.a genomap.txt) into my earlier posts in this thread that reproduces any coloured quadrants in the gender symbols and also displays 'social entities' and 'social relationships'. This was perhaps the most demanding bit of coding with some algebra needed to determine line intersections which put my head in spin for a while!
There is also an improvement in the flow of text within labels & Social entities to make it look more like GenoPro. You need Adobe SVG Viewer Beta 6 to see this.
Also fixed bug caused by GenoPro sometimes placing an @ symbol in front of Global.Font property causing a default font to be selected and non-Latin characters not to be displayed (e.g. Japanese).
The social entity/relationship line pattern rendering is perhaps not exactly the same as GenoPro yet and at present the arrowheads are always black. C'est la vie!


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


Edited: Tuesday, November 15, 2005 by Ron
Posted Friday, November 11, 2005 - Post #9257
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: 2 days ago @ 8:38 PM
Posts: 3,429, Visits: 26,549
Yes I do seem to have killed off a few people prematurely! Ermm I have updated the genomap.txt file above to ensure I only cross out the dead ones.
You can hide the cross by setting the 'never draw deceased cross' flag under the Individual's Display tab within GenoPro.

And yes I should be able to add the marker blocks in the gender symbol. Watch this space .....


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
MR
Posted Friday, November 11, 2005 - Post #9256
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
Thanks for the change Ron.

However now all people are marked as dead on SVG...  Seems a bit overdoingSmile

Another question, but really not so important. On my genomap some of the gender symbols are colored (I used all top-left, bottom left etc colors on display tab) - I am using this to mark my direct ancestors for easier visibility. Is this possible on SVG somehow?

Posted Friday, November 11, 2005 - Post #9238
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: 2 days ago @ 8:38 PM
Posts: 3,429, Visits: 26,549

I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view.

How do you access this - do you have to edit the config.xml file?

Yes, if you download my Config.xml file from above post you will see an additional line

    fZoomSVGtoExtent="Y"
Just change "Y" to "N" to have no initial zoom and centred around the origin.

However, the Report is still not picking up a divorce on the last marriage for an individual with multiple marriages (although it says they had no children).
This thread deals with just the SVG generation. I have not delved into the non-SVG issues in Beta 15 as yet. Maybe Dan has?



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, November 11, 2005 - Post #9237
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.1.0.1

Last Login: 16 hours ago
Posts: 443, Visits: 7,665
Ron (11/11/2005)
I have now made a few more improvements such as correct rendering of the new relationship types and using the same colours for lines and fills as in GenoPro itself.

Ron, the full colour version is great. However, the Report is still not picking up a divorce on the last marriage for an individual with multiple marriages (although it says they had no children).


I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view.

How do you access this - do you have to edit the config.xml file?

Posted Friday, November 11, 2005 - Post #9232
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: 2 days ago @ 8:38 PM
Posts: 3,429, Visits: 26,549
I have now made a few more improvements such as correct rendering of the new relationship types and using the same colours for lines and fills as in GenoPro itself.
I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view.
Modified Config.xml and genomap.txt files are attached.

N.B. You will need to rename genomap.txt to genomap.svg after downloading.

Update: 14/11/2005 new version of attachment genomap.txt


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


Edited: Monday, November 14, 2005 by Ron
rdn
Posted Thursday, November 10, 2005 - Post #9217
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
Thank you Ron.  I will use the code you just included.  However, I was hoping for a more global solution that will be appropriate for everyone.  Thanks again for the quick reply.

Danny
Posted Thursday, November 10, 2005 - Post #9208
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: 2 days ago @ 8:38 PM
Posts: 3,429, Visits: 26,549
Yes I see your problem with a large tree Danny.

 I am still looking for a way to place the selected individual/family in the centre of the map area.
Meanwhile to revert to previous unscaled display change genomap.svg as follows:

replace the following lines
' if GenoMap bounding box present, transform map to fit window
 If g.boundary_rect <> "" Then ' scale & transform to fit GenoMap into frame.
  coords=split(replace(replace(g.boundary_rect,"(",""),")",""),",")
  strWidth=coords(2) - coords(0)
  strHeight=- coords(3) + coords(1)
  If (1000 / strWidth)  < (400 / strHeight) Then
   strScale = 1000 / strWidth
  Else
   strScale = 400 / strHeight
  End If
  Report.WriteFormattedLn "<g transform=""translate({0},{1})scale({2})"">", - coords(0) * strScale, coords(1) * strScale, strScale
 Else  ' assume GenoMap is 'balanced at the origin' and display without scaling.
  Report.WriteLn  "<g transform=""translate(500, 320)"">"
  Report.LogError "Warning: GenoMap '" & g.name & "' has no boundary rectangle property, perform a dummy update on this GenoMap to correct this."
 End If

with
  Report.WriteLn  "<g transform=""translate(500, 320)"">"




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



Reading This Topic

Expand / Collapse
Active: 1 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!