cc46f0a523d4fe3a736c051e1b37fb6919356bc3
Improves image reference resolution by extracting additional metadata like file, title, and format Changes image handling to return richer dictionary information instead of simple references, enabling more detailed image display in markdown generation Updates markdown output to use extracted image title and filename for more informative image rendering
GEDCOM to Markdown Converter
Convert GEDCOM genealogy files to Obsidian-compatible markdown notes with WikiLinks.
Features
- Complete Individual Notes: Generates detailed markdown notes for each person
- WikiLinks: All relationships use
[[WikiLinks]]format for Obsidian - Comprehensive Data: Captures births, deaths, marriages, events, physical attributes, images, and notes
- Multiple Marriages: Supports individuals with multiple spouses
- Life Stories: Extracts long-form narratives and stories
- Global Index: Creates an alphabetical index of all individuals
- Proper Naming: Files named as "FamilyName FirstName BirthYear.md"
Installation
pip install -r requirements.txt
Usage
python src/main.py path/to/family.ged output/directory
Options
--no-index: Skip creating the index file--verboseor-v: Enable detailed logging
Example
python src/main.py examples/Stammbaum_Kucera.ged examples/files --verbose
This will create:
- One markdown file per person in
examples/files/ - An
Index.mdfile with alphabetical listing
Output Format
Each person gets a markdown note with sections for:
- Attributes: Name, birth, death, physical characteristics
- Life Events: Occupations, education, residences, etc.
- Families: Marriages with dates, places, and children
- Parents: Links to parent notes
- Images: Media references from GEDCOM
- Notes: Long-form stories and narratives
Project Structure
src/
├── gedcom_parser.py # GEDCOM file parsing
├── individual.py # Person data model
├── markdown_generator.py # Note generation
├── index_generator.py # Index file creation
└── main.py # CLI entry point
Requirements
- Python 3.7+
- python-gedcom==1.0.0
Common Issues
Line Ending Issue
Important: Some GEDCOM files exported from macOS applications may use old Mac-style line endings (CR only). If the parser finds 0 individuals, convert line endings first:
python -c "
with open('file.ged', 'rb') as f:
content = f.read()
with open('file.ged', 'wb') as f:
f.write(content.replace(b'\r', b'\n'))
"
GEDCOM Version Compatibility
This tool works best with GEDCOM version 5.5.x or 5.x. If you're using GEDCOM 7.0+, you may encounter issues with custom tags and story extraction. When exporting from your genealogy software:
- Choose GEDCOM version 5.5.1 or 5.1.0 if available
- Avoid GEDCOM version 7.0+ for better compatibility
- After export, check and fix line endings if needed (see above)
Description
This is a Python-based GEDCOM (genealogical data) parser that converts family tree data into Obsidian-compatible Markdown notes with WikiLinks. The project extracts comprehensive genealogical data including relationships, events, images, and long-form narratives.
8.7 MiB
0 Stars
1 Watchers
0 Forks