"Question mark" in dates

How to enter an unknown date of birth or death using a “question mark”, for example, (1877 - ?) or (? - 12.05.1913). If you enter a question mark in the date entry form, it is not displayed in the report image.

If you enter the date using the Date Selector, the question mark (?) can only be entered as Text with the selector’s Type as Text Only. Entering ? in the event’s Date field directly also works. Obviously, Gramps does not recognize it as a valid date and displays it as red in the editor and bold italic (?) in a list.

Which report are you using? A quick test and ? appeared in the date fields of the Complete Individual report.

I think you want to use the modifiers “Before” or “After”. Eg “After 1877” or “Before 12.05.1913”.

Craig

I want to be able to see a “question mark” in the graph (see below) where the birth or death is unknown. The “before or after” options are not acceptable. Is it possible to fix it programmatically or via an additional on/off option in the graph drawing menu?

Could I ask which Graph you are Trying to use.
Graph View will handle this without issue.
I use ~ for circa, < before, > after, >< between these are all taken to be plain text not usable dates. I have modified the date handling routines but only for my own benefit. They are extremely complicated to navigate, fortunately I am not interested in doing date based calculation
phil

I use the graph from the menu “Reports-Graphs-Relationship Graph…” I want to put exactly the “question mark”, without the words “before” and “after”.

The Question mark tends to invoke special handling features (like wildcards and URL parameter passing) in programming.

For a placeholder, have you tried an emoji?

Emojis are available by right-clicking the Date field and using the “Insert emoji” context menu option. (You can enter a search term “ques” to find related emojis from which to select.)

I have NOT tried using the emoji options … so I do not know what reception they will have in Charts and Reports. Not an experiment that calls to me either.

You can certainly try emojs but they certainly do not sort correctly as
part of the date, not sure about anything else
phil

Smileys are original! But my question smiley (and other smileys) don’t show up on dates, unfortunately.

1 Like

I think invalid dates are not shown with this report.
If you want this, make a feature request.

1 Like

Too bad. I thought maybe using Flag Emojis might be a compact way to chart Immigration history.

To be displayed, you must have a valid year.
If you want, you can try the following:
replace line 827 in gramps/plugins/graph/gvrelgraph.py

         if event_date.get_year_valid():

by

         if event_date:

Does it work for you in all cases ?

2 Likes

The software correction was successful, the “question mark” is now shown in the dates of birth and death in the picture. The problem is solved, thanks SNoiraud!

Could you make a feature request to add an option for the next release ?

2 Likes

I have never made a feature request, so I don’t know the methodology. If you need the text of the problem, it could be as follows: ===It is suggested to add a new option CHECK LIFE DATES ON/OFF to the menu “Reports-Graphs-Relationship Graph…”. The changes should be made to line 827 in gramps/plugins/graph/gvrelgraph.py===

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.