From: Alain A. <ala...@wa...> - 2014-03-28 16:38:09
|
<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">Le 28/03/2014 15:21, Enno Borgsteede a écrit :<br> </div> <blockquote cite="mid:533...@gm..." type="cite"> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> Alain,<br> <blockquote cite="mid:533...@wa..." type="cite"> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> The problem I have can be solved with <b>harbour</b>, as I have the function for it, but I need to know how are generated gedcom files by gramps export under Windows.<br> </blockquote> I don't know what <b>language you use</b> to program this, but in most, opening a file as text will automatically adapt to the line endings used on the platform that you're on, because the IO libraries will take care of that. I also second Paul's advice to be flexible on reading.<br> </blockquote> It seems, even we can change it , that it's the case, and it was my problem, as I built my tool under Windows and used a linux ending file.<br> <blockquote cite="mid:533...@gm..." type="cite"> Will you put the tool on SF or GitHub some day? I'm interested, because I sometimes use GeneaNet myself too.<br> </blockquote> If you use a 64 bits linux and an OS which uses deb files (debian, ubuntu, ...), you can download Harbour 64 bits debfile and gedtool (a simple tar.gz).<br> Harbour is to install as usually with dpkg, or gdebi, or another tool.<br> For gedtool have a look to Install, as your structure can be different, just adapt it to yours or do it manually (in this case don't forget to adapt your gedtool.ini file). The path is the path where is located the ged file to treat.<br> <br> Just create a harbour, harbour/ini and harbour/cld in your home folder, and put ini and cld file in it.<br> <br> gedtool folder can be located where you want, there is just source files, and 'make' file (gedtool.hbp)<br> To make use easy, I put gedtool in /usr/local/bin<br> Here too, it can work elsewhere.<br> <br> Last thing, the principal program is gedtool.prg which cleans gedfile, but there is a few prg more. They are used to transform a registry code I used in gramps to be a real URL on geneanet. These are treatments for some french departments archives. The same way can perhaps be modified and use for your country (don't know), or simplified in gedtool.prg and commented in gedtool.hbp (with #)<br> <br> You can have a look on my geneanet webpage (acts url are in the bottom of the pages in notes). Choose Aupeix or Achard<br> <br> <a class="moz-txt-link-freetext" href="http://gw.geneanet.org/jujuland_w">http://gw.geneanet.org/jujuland_w</a><br> <br> A+<br> <div class="moz-signature">-- <br> <hr> Alain Aupeix<br> <a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br> <a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br> <hr> <small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev (2014-03-24 23:38) | HbIDE (Rev.282) | Five.Linux (r138) | Hw.Gui (2223)</small> <hr></div> </body> </html> |