By powery - Monday, October 24, 2011
|
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
|
By powery - Tuesday, November 1, 2011
|
Nobody knows?
|
By GenoProSupport - Tuesday, November 1, 2011
|
What about <FmtDateShort>[|~|<|>]yyyy</FmtDateShort> which will only display the year, therefore not trying to display the two dots.
|
By genome - Tuesday, November 1, 2011
|
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.
|
By powery - Tuesday, November 1, 2011
|
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?
|
By genome - Tuesday, November 1, 2011
|
To have a numeric month set <FmtDateShort>[|~|<|>]d.MM.yyyy</FmtDateShort> | or <FmtDateShort>[|~|<|>]d.M.yyyy</FmtDateShort> | to supress leading zeroes
|
By powery - Tuesday, November 1, 2011
|
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 |
|
By genome - Tuesday, November 1, 2011
|
No you need<PedigreeChartDate T="d" /> | for the reason explained earlier
|
By powery - Tuesday, November 1, 2011
|
But if it' set as above, the date to the output is preset only if it's full date. And no ~>< are preset.
|
By genome - Tuesday, November 1, 2011
|
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. |
By powery - Tuesday, November 1, 2011
|
Thanks, it was not easy to explain it
|
By Alex - Wednesday, November 2, 2011
|
"...The desired output is:
- * 1904 - + 1954 ..."
I do so: <FmtY>[|~|<|>]yyyy</FmtY> <FmtDateShort>[|~|<|>]yyyy-MM-dd</FmtDateShort> In English dictionary: <PedigreeChartDetails T="-[ b.[{0}][{1}]][ d.[{2}][{3}]]"/> In my Russian dictionary: <PedigreeChartDetails T="([р.[{0} -][{1}]][- ум.[{2}][{3}]])"/>
Result (see http://familytrees.genopro.com/Alex/Ancestor/ ): (р.1796 -- ум.22 дек. 1882) (р.1798 -- ум.< 1858) (р.27 сен. 1880 -- ум.14 апр. 1941) (р.1858 -) (- ум.< 1834)
Сhange 'р.' and 'ум.' on '*' and '†' : <PedigreeChartDetails T="([* [{0} -][{1}]][- † [{2}][{3}]])"/>
Result: (* 1796 -- †22 дек. 1882) (* 1798 -- †< 1858) (* 27 сен. 1880 -- †14 апр. 1941) (* 1858 -) (- †< 1834)
|
By powery - Wednesday, November 2, 2011
|
No success, but you can change<PedigreeChartDetails T="{ }[[* {0}][{1}]][{?0^2}{?0^3}{?1^2}{?1^3} – ][[† {2}][{3}]]"/> | for better look 
|
By Alex - Thursday, November 3, 2011
|
Symbol ( * ) is used in note for Ancestor Pedigree Chart:
... *There are earlier generations for the ancestor(s) indicated...
|
By Alex - Thursday, November 3, 2011
|
And I do not see this bug (two dots) in English and in Russian Reports after similar change in English and in Russian dictionary: <FmtDateShort>[|~|<|>]d.MMMM.yyyy</FmtDateShort> <PedigreeChartDetails T="-[ * [{0}][{1}]][{!0|2} - ][ + [{2}][{3}]]"/>

|
By powery - Thursday, November 3, 2011
|
It depens also on the tag PedigreeChartDate. In English dictionary is defined as <PedigreeChartDate T="[|~|<|>]dd MMM yyyy" />. There are not two dots, but two spaces instead (on the picture by the Unknown person). In Czech is the tag defined as <PedigreeChartDate T="[|~|<|>]d.M.yyyy" />. And that why two dots.
* is also the symbol for born, I must change * as next generation mark to another
|