Life In 19x19 http://www.lifein19x19.com/ |
|
Is there a .pdf to sgf utility? http://www.lifein19x19.com/viewtopic.php?f=10&t=4633 |
Page 1 of 1 |
Author: | Suji [ Fri Sep 09, 2011 11:20 pm ] |
Post subject: | Is there a .pdf to sgf utility? |
I have the free version without solutions of Cho Chikun's life and death problems, and I want to convert them to sgf. They are in pdf format, and I'm wondering if someone has written software that takes a pdf in and spits an sgf file out. If not, would it be possible to write such a utilty? |
Author: | danielm [ Sat Sep 10, 2011 4:09 am ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
A PDF will just have the problems as images, or (not likely) vector graphics. Analysing those to create SGF files may be theoretically possible, but practically not. ![]() The other way around it would be much easier. |
Author: | tchan001 [ Sat Sep 10, 2011 5:47 am ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
The pdfs are made without answers because the problems are originally from a commercial software which used to be available from Kiseido. There was a freeware program which converted the problems from the software into sgf format. http://senseis.xmp.net/?EncyclopediaOfLifeAndDeath |
Author: | lorill [ Sun Sep 11, 2011 2:20 am ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
This specific pdf is even simpler: copy the whole content from your pdf and paste it in a text editor, and you'll see. From that, it's not that hard to convert it to sgf. |
Author: | kivi [ Mon Sep 12, 2011 2:15 pm ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
Since long time I have these pdf's on my android phone and I do occasionally solve a few problems. But it would be more practical if they were sgf files, so that I can keep track of it easier, especially as there are now a few nice apps. With lorill's finding, it is indeed not too difficult. Actually, if we emailed tasuki, he would probably send the original sgfs. Anyways, here is a simple python script for parsing text files. Feel free to correct or edit for purposes you see fit. |
Author: | Jaafar [ Mon Jun 09, 2014 4:01 pm ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
Thanks a lot for your script kivi, I had to make some small changes for python 3.4.1 on windows (print() and next()) Here is the script that worked for me, it's almost the same |
Author: | RBerenguel [ Mon Jun 09, 2014 4:38 pm ] |
Post subject: | Re: Is there a .pdf to sgf utility? |
A few months ago I found someone had posted them already converted: https://github.com/MonsieurCactus/scrapeGo This is what I use now to generate the images for Anki, instead of recompiling Tasuki's TeX sources, which is more labor-intensive (not accounting for the effort taken in tweaking sgftopng.) |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |