-
Notifications
You must be signed in to change notification settings - Fork 19
Possible expansion of the User Guide? #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The guide/ subdir has the docs, https://vmiklos.hu/ged2dot/usage.html is the rendered result of that. Can you submit a PR to improve it based on the above? Please make sure to actually verify everything AI said if it's actually true. Thanks. |
I leveraged the AI to evaluate your module and write docs because, after skimming the various README.md files, I never found the usage.html file. Nor was there a clear statement whether the UI was graphical or command line. Perhaps a link to it should be in "usage information" mention in the ged2dot Repository README.md ? The linked "User Guide" should ALSO have a link to the "usage.html"
The User Guide also lacks the promised "feature list" and "installation" detail. |
Duplication is bad, so the README.md is a minimal one, and the actual documentation is a guide, with several chapters. One of them is the usage one. I don't want to list all chapters in README.md, because that would be again duplication. Perhaps would it be useful to link usage.html in the README.md directly (because that's the most important chapter; instead of index.html) and then improve guide/src/usage.md if there is something missing there? Edit: forgot to add:
http://vmiklos.hu/ged2dot/installation.html covers the install part. For the feature list: yes, that's something you could probably add in guide/src/README.md, after the release date, before the "description" part; something like a "notable features" enumeration with a couple of bullet points. Care to submit a PR to do that? |
ged2dot.py
is a tool that takes a GEDCOM file (a standard file format for genealogical data) as input and generates a Graphviz DOT file as output. The DOT file can then be processed by Graphviz (open-source graph visualization software) to create a visual family tree. Since there is no GUI, you must use the command line.1. Prerequisites
apt-get install graphviz
on Debian/Ubuntu,brew install graphviz
on macOS).ged2dot.py
script from the GitHub repository you linked to. Save it to a location on your computer where you can easily find it.2. Basic Command-Line Usage
The most basic way to use
ged2dot.py
is like this:python3
: This tells your operating system to use the Python 3 interpreter to run the script.ged2dot.py
: This is the name of the script you downloaded. Make sure your terminal is in the same directory where you saved the script, or provide the full path to the script.-i input.ged
: This specifies the input GEDCOM file. Replaceinput.ged
with the actual name of your GEDCOM file.-o output.dot
: This specifies the output DOT file. Replaceoutput.dot
with the desired name for your DOT file.After running this command, a file named
output.dot
will be created. This file contains the Graphviz DOT code representing your family tree.3. Generating an Image from the DOT File
The
.dot
file by itself isn't an image. You need to use Graphviz to convert it into a viewable format. Here's how you can create a PNG image:dot
: This is the Graphviz command-line tool.-Tpng
: This specifies the output format as PNG. You can use other formats likepdf
,jpg
,svg
, etc.output.dot
: This is the input DOT file thatged2dot.py
created.-o family_tree.png
: This specifies the output file name. Replacefamily_tree.png
with your desired file name.This command will create a PNG image named
family_tree.png
that shows your family tree.4. Important Options
ged2dot.py
has several options to customize the output. Here are some of the most useful ones:-r
or--rootfamily
: Specifies the family ID to use as the root of the tree. By default, it uses "F1". If your tree isn't displaying correctly, you might need to find the main family ID in your GEDCOM file and use this option.-d
or--familydepth
: Controls how many generations are displayed in the tree. The default is 3. Increase this number to show more generations.--imagedir
: Specifies the directory where images for individuals are stored.ged2dot.py
looks for images based on the individual's name.--nameorder
: Determines the order of names (given name first or family name first). Can be "little" (default) or "big".--direction
: Sets the direction of the family tree layout. Can be "topbottom", "leftright", or "both" (default).5. Example with More Options
Here's a more complex example that uses several options:
This will:
my_family.ged
.family_tree.pdf
.6. Configuration File (Optional)
Instead of specifying all the options on the command line, you can use a configuration file. Create a file (e.g.,
ged2dot.conf
) with the following structure:Then, run
ged2dot.py
with the-c
option:7. Troubleshooting
rootfamily
ID is correct.dot
command is in your system's PATH.imagedir
path and the image file names. The script looks for images named after the individual, with common image extensions.By following these steps, you should be able to use
ged2dot.py
to create visual representations of your family tree from your GEDCOM data. Remember to consult theged2dot.py
script itself (especially the comments) for more advanced options and details.Citations:
[1] https://github.com/vmiklos/ged2dot/blob/master/ged2dot.py
The text was updated successfully, but these errors were encountered: