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

GenoPro Support Forum




Dots in Pedigree Chart

Click to view RSS...
Author
Posted Monday, October 24, 2011 - Post #29204
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
Hello,

I have these tags:

<FmtY>[|~|&lt;|&gt;]yyyy</FmtY> in FmtDateDefault

<FmtDateShort>[|~|&lt;|&gt;]d.MMMM.yyyy</FmtDateShort>

<PedigreeChartDetails T="-[ * [{0}][{1}]][{!0|2} - ][ + [{2}][{3}]]"/>

If the date is only year, then is the output with two dots.

- * ..1904 + ..1954


How to remove it?

The desired output is:


- * 1904 - + 1954


Thanks
Posted Tuesday, November 1, 2011 - Post #29260
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
Nobody knows?
Posted Tuesday, November 1, 2011 - Post #29264
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: Yesterday @ 2:09 PM
Posts: 4,887, Visits: 22,761
What about <FmtDateShort>[|~|&lt;|&gt;]yyyy</FmtDateShort> which will only display the year, therefore not trying to display the two dots.

Edited: Tuesday, November 1, 2011 by GenoProSupport
Posted Tuesday, November 1, 2011 - Post #29266
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: 7 hours ago
Posts: 3,339, Visits: 25,605
Try setting the tag PedigreeChartDate in Dictionary.xml to T="d" to indicate short date format.  In the English Dictionary it is set to T="[|~|&lt;|&gt;]dd MMM yyyy" which I believe overrides the this.

According to the comments in Dictionary by Genopro 
<!-- Short and long date formats are only taken if day month and year are known, otherwise the default date format is used -->
<!-- date.ToString("d") -->
<FmtDateShort>[|~|&lt;|&gt;]yyyy-MM-dd</FmtDateShort>    <!-- 2006-01-31 --> 
<!-- date.ToString("D") -->
<FmtDateLong>[|about |before |after ]dddd, MMMM D, yyyy</FmtDateLong>   <!-- Monday, January 31st, 2006 -->

The Report Generator should only use the short date format if day, month and year are present, otherwise the default formats FmtY FmtYM and FmtMD should be used.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, November 1, 2011 - Post #29267
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
If the tag FmtDateShort is set to "yyyy", then is the the information lost, if day and/or month is set. Not good.

If the tag PedigreeChartDate is set to "d", then looks the output like 19.srpna.1762. Not good.

I would like to have this pattern for dates (19.6.1877) in chart, but not in other dates. Any ideas?





Posted Tuesday, November 1, 2011 - Post #29268
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: 7 hours ago
Posts: 3,339, Visits: 25,605
To have a numeric month set 
<FmtDateShort>[|~|&lt;|&gt;]d.MM.yyyy</FmtDateShort>
or 
 
<FmtDateShort>[|~|&lt;|&gt;]d.M.yyyy</FmtDateShort>
to supress leading zeroes

see http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx for more details on date format strings.


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


Edited: Tuesday, November 1, 2011 by genome
Posted Tuesday, November 1, 2011 - Post #29270
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
No success Sad

I would like to recapitulate this:
<PedigreeChartDate T="[|~|&lt;|&gt;]d.M.yyyy" />

<FmtDateShort>[|~|&lt;|&gt;]d.M.yyyy</FmtDateShort>


And the output in pedigree chart is still wrong, if only year is set in date field. It's ok for the full date with day, mohth and year and the date with month and year.
The wrong output looks like:

* ~..1804 or * <..1804 or * >..1804







Edited: Tuesday, November 1, 2011 by powery
Posted Tuesday, November 1, 2011 - Post #29271
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: 7 hours ago
Posts: 3,339, Visits: 25,605
No you need
<PedigreeChartDate T="d" />
for the reason explained earlier Wink



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


Edited: Tuesday, November 1, 2011 by genome
Posted Tuesday, November 1, 2011 - Post #29272
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
But if it' set as above, the date to the output is preset only if it's full date. And no ~>< are preset.
Posted Tuesday, November 1, 2011 - Post #29273
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: 7 hours ago
Posts: 3,339, Visits: 25,605
Sorry, yes this is a bug and GenoProSupport needs to take another look at it.  Perhaps I should have done some testing myself before replying rather than assuming the comments by GenoPro in the Dictionary were correct i.e. the comments preceding the FmtShortDate/FmtLongDate

<!-- Short and long date formats are only taken if day month and year are known, otherwise the default date format is used --> <!-- date.ToString("d") --> <FmtDateShort>[|~|&lt;|&gt;]yyyy-MM-dd</FmtDateShort>    <!-- 2006-01-31 -->  <!-- date.ToString("D") --> <FmtDateLong>[|about |before |after ]dddd, MMMM D, yyyy</FmtDateLong>   <!-- Monday, January 31st, 2006 -->

are not correct because the default date formats are not used when day or month are not present.  i.e. date.ToString("d") produces no output if 'date' does not have a day and/or month.





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


Edited: Tuesday, November 1, 2011 by genome


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse