C# 版 Gedcom 阅读器
有谁知道在 .ged 文件中读取一个好的类
Gedcom 是一种用于存储谱系信息的文件格式。
我的目标是写一些东西,让我导入 ged 文件并导出 graphviz 的 .dot 文件,以便我可以制作家谱的可视化表示,
谢谢,如果您能提供帮助
Does anyone know of a good class to read in .ged files
Gedcom is a file format that is used to store genealogical information.
My goal is to write something that would let me import a ged file and export a .dot file for graphviz so that I can make a visual representation of a family tree
thanks if you can help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这是迄今为止我最好的尝试。
它似乎可以满足我的需要,尽管它显然不是完整的证明(然后我的家谱相当大,这增加了一些复杂性)
如果您认为我可以做任何更流畅的事情,请告诉我
Heres my best attempt so far.
It seems to be working for what i need though its defiently not full proof ( then again my family tree is rather large and that adds some complexity)
please let me know if you think i could make anything more elequient
Codeplex 上有一个非常漂亮的:FamilyShow(WPF 展示)。 它导入/导出 GEDCOM 5.5 并且有源代码。
There is a very pretty one at Codeplex: FamilyShow (a WPF showcase). It imports/exports GEDCOM 5.5 and there is source.
如果没有至少有一个开始,我实际上会感到惊讶。 我发现 Gedcom.NET (sourceforge)非常容易
I would actually have been surprised if there wasn't at least the beginnings of one. I found Gedcom.NET (sourceforge) quite easily
如果网络上有针对这种格式的 C# 阅读器,我会感到相当惊讶,因为它是一种相当专业的格式。 从好的方面来说,如果您需要创建自己的阅读器,该格式看起来非常易于阅读。 如果您对实施有具体问题,我建议您沿着这条路走,然后回到 SO。 看一下 System.IO.StreamReader 类; 以这种方式逐行读取文件很简单,并且解析各个行也应该很简单。
祝你好运!
I'd be fairly surprised if there was a C# reader for this format available on the web, given that it's a fairly specialized format. On the upside, the format looks to be pretty straightforward to read if you need to create your own reader. I would suggest going down that path and coming back to SO if you have specific questions about the implementation. Take a look at the
System.IO.StreamReader
class; it's trivial to read in a file line-by-line that way, and parsing the individual lines should be simple as well.Good luck!
我发现了一个新项目 GedcomParser。
I found a fresh project GedcomParser.