2
edits
Changes
From Gramps
→Parse title details
=== Parse title details ===
The following regex expressions are used, where for brevity we use some variables defined lower.
Note: For those new to Python and Regex please review the HOWTO here:
http://docs.python.org/dev/howto/regex.html
#<nowiki>"City [,|.] State" is parsed by : r'\s*(?P<'+city_translated +r'>.+?)\s*[.,]\s*(?P<'+state_translated +r'>.+?)\s*$'</nowiki>
country_translated = _('country')
You can use one of these variables as a group, and the tool will recognise them, and use as values for the corresponding place attributes.
=== Lat/Lon lookup parsing ===