My first gramplet - for gramps 5.2

Maybe instead of loading data files based upon the environment’s native language automatically load a default (World Wide) and the custom data files. But for specific countries or regions have the user select them from the config settings. An immigrant ancestor would be leaving one country and coming to another. What did they leave and what met them would be something helpful.

For my father’s families I would load the U.S., Scotland, and Belgium/Netherlands.

It seems a bit too close to the “What’s Next?” (And the question mark is a problem for URLs. Omitting the punctuation makes the title appear to be pidgin English.)

How about “Historical Context”? And in that vein, this Gramplet will be useful in the Events category in addition to Dashboard, People categories. If a future version allows a “Place” list as a CSV (where ‘blank’ would be worldwide), then it might well expand into the Places category.

I can see a future version where selecting a (row or rows) could apply a filter to the category. (After 5.3 adds high-performance filters using the Database engine.)

More thoughts about separation by localization files.
It could be also interesting separation by region sizes. For example history events of a whole empire. History of any county as part of that empire, history of any region of country and history events of a town, village. So, then we can include some common files with histories of empires, countries and own files with regions, towns, …

Another problem is: I use en_US locale on desktop. Thats why my uk_UA_data_v1_0.txt will not be loaded. I think this is not very good idea copy all my ukrainian history events inside en_US_data_v1_0.txt or custom_v1_0.txt.
Because how we will share our events between the community? I have no idea how make it more practical

As this gramplet evolves, it might have to adapt to reflect world/regional events in the tree as well as these external files, There have been conversation in the past about ways to tie Events to Places generically. So that those Events would (loosely) be recognized by any Person or Family in that Place during that time.

But perhaps an automated filter of the source files could just use the universal lists and those for the person’s locale. Then have a “View → Configure” option to override that automation.

Thinking further on the suggestion by @DaveSch to filter based on the Birth/Death of the Active person, maybe that would be a natural feature for a variant of this Gramplet in the Relationships category?

There is precedent for Gramplets (of the same name) having different functionalities because of the context of the category.

1 Like

Wow - this is evolving fast!
I love it.
I will push changes as I make them

2 Likes

This is really interesting gramplet. We already discussed about similar history addons in another discussions but unfortunatelly they were not released yet. This gramplet is of great interest for me. Thank you for the great job @kmikkels !

2 Likes

I have added the ability to hide events outside the persons life span, this should also work in the relationship view. Will test to make sure

2 Likes

OK, I have updated the git repository with several improvements.
The name has changed to “Historcal Context” the files to HistContext
In the options you can now select to hide topics outside a persons life span.
In the options, you can now select which data file you want to use.
I have hidden the column with the URL, but you can still double-click a row to follow the link. I still miss to show the topic linkable
I have fixed the issue if an event starts before birth, but ends after birth.
Still needs to fix if it starts before birth, but ends after death.
I have added the sample Ukrainan data file
I have removed the en. in front of wikipedia.
Please continue to test, and continue to give feedback
Thanks
/Kaj

3 Likes

It is unclear how to indicate an open-ended incident.

You have Events in a specific year with no End Date. But the ongoing things (like Biden’s presidency, which will end in 2025) also lack an End Date.

I like the display only having a single date for landmark Events. But maybe the data source could have the duplicate year for Start/End data and you programmatically opt to reduce clutter by not displaying the redundant data.

Or, you could support a “today” for the End Year on ongoing stuff.

I did some experiments and looked at the Historical Context for my grand-niece. She was born years after the ongoing HIV/AIDS being declared in 1981. But that item does not appear in her Historical Context timeline

Here is a revision for the suggested default_data_v1_0.txt

It adds an “end date” for Biden. It adds a parenthetical comment to identify the scope of each person’s impact.

1789;1797;George Washington (USA President #1);https://wikipedia.org/wiki/George_Washington
1797;1801;John Adams (USA President #2);https://wikipedia.org/wiki/John_Adams
1801;1809;Thomas Jefferson (USA President #3);https://wikipedia.org/wiki/Thomas_Jefferson
1809;1817;James Madison (USA President #4);https://wikipedia.org/wiki/James_Madison
1817;1825;James Monroe (USA President #5);https://wikipedia.org/wiki/James_Monroe
1825;1829;John Quincy Adams (USA President #6);https://wikipedia.org/wiki/John_Quincy_Adams
1829;1837;Andrew Jackson (USA President #7);https://wikipedia.org/wiki/Andrew_Jackson
1837;1841;Martin Van Buren (USA President #8);https://wikipedia.org/wiki/Martin_Van_Buren
1841;1841;William H. Harrison (USA President #9);https://wikipedia.org/wiki/William_Henry_Harrison
1841;1845;John Tyler (USA President #10);https://wikipedia.org/wiki/John_Tyler
1845;1849;James K. Polk (USA President #11);https://wikipedia.org/wiki/James_K._Polk
1849;1850;Zachary Taylor (USA President #12);https://wikipedia.org/wiki/Zachary_Taylor
1850;1853;Millard Fillmore (USA President #13);https://wikipedia.org/wiki/Millard_Fillmore
1853;1857;Franklin Pierce (USA President #14);https://wikipedia.org/wiki/Franklin_Pierce
1857;1861;James Buchanan (USA President #15) (USA President #14);https://wikipedia.org/wiki/James_Buchanan
1861;1865;Abraham Lincoln (USA President #16);https://wikipedia.org/wiki/Abraham_Lincoln
1865;1869;Andrew Johnson (USA President #17);https://wikipedia.org/wiki/Andrew_Johnson
1869;1877;Ulysses S. Grant (USA President #18);https://wikipedia.org/wiki/Ulysses_S._Grant
1877;1881;Rutherford B. Hayes (USA President #19);https://wikipedia.org/wiki/Rutherford_B._Hayes
1881;1881;James A. Garfield (USA President #20);https://wikipedia.org/wiki/James_A._Garfield
1881;1885;Chester A. Arthur (USA President #21);https://wikipedia.org/wiki/Chester_A._Arthur
1885;1889;Grover Cleveland (USA President #22);https://wikipedia.org/wiki/Grover_Cleveland
1889;1893;Benjamin Harrison (USA President #23);https://wikipedia.org/wiki/Benjamin_Harrison
1893;1897;Grover Cleveland (USA President #24);https://wikipedia.org/wiki/Grover_Cleveland
1897;1901;William McKinley (USA President #25);https://wikipedia.org/wiki/William_McKinley
1901;1909;Theodore Roosevelt (USA President #26);https://wikipedia.org/wiki/Theodore_Roosevelt
1909;1913;William Howard Taft (USA President #27);https://wikipedia.org/wiki/William_Howard_Taft
1913;1921;Woodrow Wilson (USA President #28;https://wikipedia.org/wiki/Woodrow_Wilson
1921;1923;Warren G. Harding (USA President #29);https://wikipedia.org/wiki/Warren_G._Harding
1923;1929;Calvin Coolidge (USA President #30);https://wikipedia.org/wiki/Calvin_Coolidge
1929;1933;Herbert Hoover (USA President #31);https://wikipedia.org/wiki/Herbert_Hoover
1933;1945;Franklin D. Roosevelt (USA President #32);https://wikipedia.org/wiki/Franklin_D._Roosevelt
1945;1953;Harry S. Truman (USA President #33);https://wikipedia.org/wiki/Harry_S._Truman
1953;1961;Dwight D. Eisenhower (USA President #34);https://wikipedia.org/wiki/Dwight_D._Eisenhower
1961;1963;John F. Kennedy (USA President #35);https://wikipedia.org/wiki/John_F._Kennedy
1963;1969;Lyndon B. Johnson (USA President #36);https://wikipedia.org/wiki/Lyndon_B._Johnson
1969;1974;Richard Nixon (USA President #37);https://wikipedia.org/wiki/Richard_Nixon
1974;1977;Gerald Ford (USA President #38);https://wikipedia.org/wiki/Gerald_Ford
1977;1981;James (Jimmy) Carter (USA President #39);https://wikipedia.org/wiki/Jimmy_Carter
1981;1989;Ronald Reagan (USA President #40);https://wikipedia.org/wiki/Ronald_Reagan
1989;1993;George H.W. Bush (USA President #41);https://wikipedia.org/wiki/George_H._W._Bush
1993;2001;William (Bill) Clinton (USA President #42);https://wikipedia.org/wiki/Bill_Clinton
2001;2009;George W. Bush (USA President #43);https://wikipedia.org/wiki/George_W._Bush
2009;2017;Barack Obama (USA President #44);https://wikipedia.org/wiki/Barack_Obama
2017;2021;Donald Trump (USA President #45);https://wikipedia.org/wiki/Donald_Trump
2021;2025;Joe Biden (USA President #46);https://wikipedia.org/wiki/Joe_Biden
1 Like

Are you able to make it not choke on blank lines? (Some of the text editing tools seem to add a trailing blank line.)

Absolutely will do that

1 Like

@emyoulation
The gramplet will now disregard lines with less than 10 characters (4 semicolons, 4 digit year, and 2 digits or less text)
At the same time I updated the template.pot file.
Please note that while testing, I supply the custom data file, but it will not be distributed in production, so it will not overwrite users own custom file
your pandemic suggestions is now merged int the default file, as well as a file of its own.
I swapped the en_US file with your suggestion

1 Like

@Urchello I think it is a bad idea to add month and date to the “from to” part. Then We will have to consider which date format people are using, since that changes all over the world, and I would have to look at the date format users have set in the preferences. To much work for to little benefit. I think.
To-date without from-date, should be doable, will look into that.
Your first three suggestions is already implemented.

2 Likes

You are right. thank you!

1 Like

A minor UI suggestion. Probably the events list and font should inherit parent styles.

Good suggestion. Still having issues with python, gtk3 and gramps, but I will work on this.
A solution could also be to make forground and background user definable i options.

2 Likes

I has been suggested that I should point to a help page in the wiki.
Which I think is a good idea.
But when I access https://gramps-project.org/wiki/index.php/Addon:HistoricalContext it says that it doesn’t exists, which is a correct. But it also tells me that I cannot create that page.
Do I need some kind of permissions or is there a procedure for this?

A WikiContributor account is needed for editing/creating wiki pages.

But it is a little premature to create the wiki page. Can you keep the Help pointed at your GitHub repository for a little longer?

Besides, the final target page name will have a Space. (And the URL will use an underscore.) So we need to be careful during creation.

1 Like