Commit Graph
8 Commits
Author SHA1 Message Date
Jared Howland 1f48292e60 feat: add FamilySearch ID to frontmatter
Add get_fs_id() to Individual to extract the _FSFTID tag (returns empty string if missing). Update MarkdownGenerator to include a "FamilySearch ID" line in output when present. Update test fixtures and add assertions: include _FSFTID in sample GEDCOM, add unit test for get_fs_id (presence and absence), and check the generated markdown contains the FamilySearch ID. Ensures FS Tree IDs are surfaced without breaking behavior when tag is absent.
2026-04-16 23:47:53 -06:00
Jared Howland 0ba00d0ef7 fix: lat/long extraction and emit coordinates
Rename returned long variable to lon and tighten lat/long extraction to avoid recursing into LATI/LONG leaf nodes and to return early when both values are found. Refactor MarkdownGenerator._coordinate_values and change output logic so coordinates are written even when place fields are empty (birth, death, marriage, and events). Update and reorganize tests to match the corrected behavior and improve stability (use next() instead of list indexing, consolidate fixtures, adjust assertions and quoting).
2026-04-16 23:02:49 -06:00
Jared Howland 747175fcef fix: cache subject pointer; tidy up tests
Cache the subject pointer in Individual.get_families by calling self.element.get_pointer() once outside the loop to avoid repeated calls and add a clarifying comment. Clean up tests: remove a duplicated TestIndividualBasicInfo fixture/block comment, drop redundant assertions about residence coordinates, and remove an unnecessary return in TestAttributes.
2026-04-16 22:51:45 -06:00
Jared Howland 2108325252 feat: extract place lat/long coordinates
* Show coordinates for any place that has them
* Add tests for coordinates
2026-04-16 22:16:34 -06:00
AlexKucera b335a137d3 Enhances individual death info and note generation
Extracts and includes the death year from the death date in individual data.

Adds a flag to control subdirectory usage for generated files.
This ensures correct linking and image paths in notes when using a
subdirectory structure (people/, stories/, media/).

Also, improves error logging during note generation.
2025-11-02 17:29:49 +01:00
AlexKucera 759b966598 Refactors Individual class for parser access
Simplifies Individual class initialization by directly passing the parser instance instead of the GedcomParser object.
This change streamlines the code and avoids unnecessary object attribute access.
Also, it ensures name formatting preserves the original capitalization.
2025-11-02 17:25:06 +01:00
AlexKucera 64f42deb29 Improves death year extraction and pytest configuration
Fixes death year extraction using regex to correctly parse years
Removes manual sys.path modifications in test files
Adds pythonpath configuration to pytest.ini for simpler imports

Enhances test coverage for life span formatting
2025-11-02 14:35:23 +01:00
AlexKucera 3e7dc7e916 Initializes project with GEDCOM to Markdown converter
Sets up core functionality for converting genealogy GEDCOM files to Obsidian markdown notes

Implements key components:
- GEDCOM parsing and individual data extraction
- Markdown note generation with rich metadata
- Index file creation
- Comprehensive test suite for robust functionality

Adds initial project structure, configuration, and essential modules for genealogy data conversion
2025-11-01 14:20:53 +01:00