Home  |  Linux  | Mysql  | PHP  | XML
From:Ron Savage Date:Mon Aug 18 01:03:48 2008
Subject:Re: HTML::Timeline
Hi Ron

On Mon, 2008-08-18 at 10:14 +1000, Ron Savage wrote:
> Hi Folks
> 
> Here is a summary of the problems reported. Please address them one at a
> time:

This comes across differently than I meant. It should say: Just keep
each topic separate.

Any, yes, you can add your own topics.

Also, I think this forum is a better place to share ideas than RT.

Also, unless sending me files or private material, please keep emails on
this list, and not to me personally.

> 1) Put the code in a public repository

I've recently switched from svn to git.

If I put the code somewhere public, it'll probably be:

http://github.com/

But if there's a similar svn-based offering, let me know and I'll think
about it.

> 2) The include_spouses option may not always work

If you run:

shell> timeline.pl -r "Lucia Elisabeth Munchhusen" -i

with and without the -i, you'll see 2 different results, taking care to
view the output in a browser between runs :-)).

If you keep seeing the same web page, your problem is most likely to be
the browser's cache.

So, I reject this bug report.

> 3) User control of the vertical size of the HTML window

See (4).

> 4) User control of the XML file name within the HTML file

My plan is to add an option to invoke HTML::Template to update
timeline.html, which will deal with (3) and (4).

Time passes...

Done.

The Template Toolkit is far too complex for this, but if anyone /really/
prefers it, let me know, although I don't like your chances.

> 5) Adoption of various Timeline options
> 
> 6) Using 'cpan' and packaging and timeline.pl -h under MacOS

I don't have any experience with MacOS (I use Debian), so can't help
there.

If timeline.pl -h does not work from the command line, I'd suggest the
install did not work perfectly, but, again, that must be a Mac problem.

> 7) Fuzzy dates and Gedcom::Date

I mindlessly transcribed Phil's program into a module. I will replace
usage of Date::Manip with Gedcom::Date asap (err, after lunch).

Time passes...

Done.

> 8) Support for ~/.timelinerc

Possible. Various issue arise:

o Why not use little batch files which call timeline.pl?

The advantage of this is that each batch file can be customised to suit
one particular Gedcom file.

o What format /exactly/ should be used?

I prefer to use Config::IniFiles these days, despite the bug list on
CPAN.

One significant option to that module, relevant here, is allowing
multiple sections in the config file. So, this is an alternative to the
multiple batch file mentioned above.

> 9) bach.ged 'James Durbin' death date hack
> 
> 10) validate() fails for email tag in Gedcom file
> 
> 11) The -ancestors options may not always work

If you run:

shell> timeline.pl -r "Lucia Elisabeth Munchhusen" -a

with and without the -a, you'll see 2 different results, taking care to
view the output in a browser between runs :-)).

So, I reject this bug report.

> 12) Duplicate names and names using " (in Gedcom file) cause problems

Probably the solution here is to convert all double-quotes in names to
single-quotes, or to pass all output through
HTML::Entities::Interpolate:

http://search.cpan.org/~rsavage/HTML-Entities-Interpolate-1.00/

> 13) Horizontal slider problem

I suspect this just requires timeline.html getting on-screen help.

Or am I mistaken here?

I've patched timeline.html to explain the availability of
click-and-drag.

> 14) First and last date displayed should be first and last date of
> selected people, not first and last within Gedcom file

I've changed to code to use the earliest birth date of the selected
people rather than the hard-coded 1685 in timeline.html.

Nevertheless, it seem the Timeline package automatically defaults to 100
years before that date as the left-hand limit when a timeline is first
displayed.

15) I've added various new options to the module and to timeline.pl.

-output_dir
-template_dir
-template_name
-timeline_height
-url_for_xml
-web_page

V 1.02 has been uploaded to CPAN.

-- 
Ron Savage
ron@savage.net.au
http://savage.net.au/index.html


Navigate in group perl.gedcom at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants