|
|
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>[|~|<|>]yyyy</FmtY> in FmtDateDefault
<FmtDateShort>[|~|<|>]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
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 2.5.4.1
Last Login: Wednesday, June 2, 2021
Posts: 220,
Visits: 14,736
|
Nobody knows?
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Thursday, January 16, 2025
Posts: 4,886,
Visits: 22,775
|
What about <FmtDateShort>[|~|<|>]yyyy</FmtDateShort> which will only display the year, therefore not trying to display the two dots.
Edited: Tuesday, November 1, 2011 by
GenoProSupport
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 13 hours ago
Posts: 3,419,
Visits: 26,407
|
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="[|~|<|>]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>[|~|<|>]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"
|
|
|
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?
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 13 hours ago
Posts: 3,419,
Visits: 26,407
|
To have a numeric month set <FmtDateShort>[|~|<|>]d.MM.yyyy</FmtDateShort> | or <FmtDateShort>[|~|<|>]d.M.yyyy</FmtDateShort> | to supress leading zeroes
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 2.5.4.1
Last Login: Wednesday, June 2, 2021
Posts: 220,
Visits: 14,736
|
No success 
I would like to recapitulate this:
<PedigreeChartDate T="[|~|<|>]d.M.yyyy" />
<FmtDateShort>[|~|<|>]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
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 13 hours ago
Posts: 3,419,
Visits: 26,407
|
No you need<PedigreeChartDate T="d" /> | for the reason explained earlier
'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
|
|
|
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.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 13 hours ago
Posts: 3,419,
Visits: 26,407
|
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>[|~|<|>]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
|