[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-18 Thread werner

Roberto and I had some of list communication, so the following is just 
for the archive.

werner wrote:
 Roberto,

 Roberto Alsina wrote:
   
 On Friday 16 October 2009 05:49:37 werner wrote:
   
 
 Roberto,

 Roberto Alsina wrote:
 
   
 On Thursday 15 October 2009 11:43:23 werner wrote:
   
 
 Roberto,

 Made a little bit of progress.

 Added this to my conf.py:
 import pkg_resources
 pkg_resources.require(rst2pdf) # get latest version
 import rst2pdf

 I am still getting Builder name pdf not registered
   
On Win Vista I still need to do the import as shown above in my conf.py.
 
...
 
   
 [ERROR] createpdf.py:1344 Missing image file:
 C:\Dev\twcb-doc\_screenimages\initial.png [near line UNKNOWN in file
 UNKNOWN]
   
This problem is resolved as of rev 1220.

Thanks to Roberto for creating this and helping me out to resolve the 
problems I had.

Werner





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-16 Thread werner

Roberto,

Roberto Alsina wrote:
 On Thursday 15 October 2009 11:43:23 werner wrote:
   
 Roberto,

 Made a little bit of progress.

 Added this to my conf.py:
 import pkg_resources
 pkg_resources.require(rst2pdf) # get latest version
 import rst2pdf

 I am still getting Builder name pdf not registered 
 

 You should not need to do anything like it. What happens if you do what the 
 manual says and add 'rst2pdf.pdfbuilder' to your extensions?

 For example:

 extensions = ['sphinx.ext.autodoc','rst2pdf.pdfbuilder']
   
I have this in my conf.py and get the error.
   
 [ERROR] createpdf.py:1344 Missing image file:
 C:\Dev\twcb-doc\_screenimages\initial.png [near line UNKNOWN in file
 UNKNOWN]
 

 Well, does C:\Dev\twcb-doc\_screenimages\initial.png exist or not? If it 
 doesn't exist, that's the problem. If it does... well, then it's a bug in 
 rst2pdf and I would love a self-contained example of it.
   
The project builds without error when I use html or htmlhelp builder.

Will setup a new project from scratch and see if I can recreate it in 
there.  If I can recreate I post the project zip'd here?


Werner


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-16 Thread Werner F. Bruhin

Roberto,

I did a sphinx-quickstart and patched the make.bat file to support the
pdf builder (copied doctest section and changed doctest to pdf).

When running make I get:

Extension error:
Could not import extension rst2pdf.pdfbuilder (exception: No module
named rst2pdf.pdfbuilder)

Added the following to conf.py

import pkg_resources
pkg_resources.require(rst2pdf) # get latest version
import rst2pdf

Then it runs.

If I do a make html all is fine, but make pdf I get the error
mentioned in the last email, however the pdf is built (which is a step
further then I get with my project).

Attaching a Zip is not allowed, I'll send it to you directly.

Hope this helps
Werner



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-16 Thread Roberto Alsina

On Friday 16 October 2009 05:49:37 werner wrote:
 Roberto,
 
 Roberto Alsina wrote:
  On Thursday 15 October 2009 11:43:23 werner wrote:
  Roberto,
 
  Made a little bit of progress.
 
  Added this to my conf.py:
  import pkg_resources
  pkg_resources.require(rst2pdf) # get latest version
  import rst2pdf
 
  I am still getting Builder name pdf not registered
 
  You should not need to do anything like it. What happens if you do what
  the manual says and add 'rst2pdf.pdfbuilder' to your extensions?
 
  For example:
 
  extensions = ['sphinx.ext.autodoc','rst2pdf.pdfbuilder']
 
 I have this in my conf.py and get the error.
 
  [ERROR] createpdf.py:1344 Missing image file:
  C:\Dev\twcb-doc\_screenimages\initial.png [near line UNKNOWN in file
  UNKNOWN]
 
  Well, does C:\Dev\twcb-doc\_screenimages\initial.png exist or not? If it
  doesn't exist, that's the problem. If it does... well, then it's a bug in
  rst2pdf and I would love a self-contained example of it.
 
 The project builds without error when I use html or htmlhelp builder.

You know, if you don't answer the questions I ask you, it's really, **really** 
hard for me to help you.

However, if you really need to know, the HTML writer doesn't care if the 
images exist or not, because al it needs to do is write img 
src=_screenimages/initial.png 

On the other hand, rst2pdf has to read the image and actually put it inside 
the PDF. So, a missing image when you build HTML is no problem, but when you 
build a PDF it's a big problem.

So, I ask you again: is there a C:\Dev\twcb-doc\_screenimages\initial.png or 
not?

 Will setup a new project from scratch and see if I can recreate it in
 there.  If I can recreate I post the project zip'd here?

No, post it to me personally, or create an Issue at 
http://rst2pdf.googlecode.com and attach it.

-- 
 (\''/).__..-''`-. . Roberto Alsina
 `9_ 9  )   `-. ().`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.   -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'   according to alexa.com (27/5/2007) 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-15 Thread werner

Roberto,

Made a little bit of progress.

Added this to my conf.py:
import pkg_resources
pkg_resources.require(rst2pdf) # get latest version
import rst2pdf

I am still getting Builder name pdf not registered but it does not 
seem to matter as I also get tons of:

[ERROR] createpdf.py:1344 Missing image file: 
C:\Dev\twcb-doc\_screenimages\initial.png [near line UNKNOWN in file 
UNKNOWN]
[ERROR] createpdf.py:1344 Missing image file: 
C:\Dev\twcb-doc\_images\tagPrintSampleLabel.png [near line UNKNOWN in 
file UNKNOWN]

Most of my image directives look like this:
.. figure:: _screenimages/dialogProgramError.png
   :scale: 75
   :align: center
   :target: _images/dialogProgramError.png
  
   |imagecaption|

Peaking at createpdf.py I wonder if this is just not yet supported?

Best regards
Werner


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-14 Thread werner

Roberto,

Roberto Alsina wrote:
 I just uploaded rst2pdf 0.12.1 to http://rst2pdf.googlecode.com

 This release has no new features, just some bugs fixed. If you had problems 
 with previous releases, this could be a good one to try ;-)

 For more details, see the changelog: 
 http://code.google.com/p/rst2pdf/source/browse/branches/0.12/CHANGES.txt

 Rst2pdf is a tool to generate PDF files directly from restructured text 
 sources via reportlab.

 Rst2pdf aims to support the full restructured text feature set, and is very 
 close to that goal, while also including some of the more experimental 
 features, like a source code directive with syntax highlighting and math 
 notation support with LaTeX-like syntax.

 It supports embedding arbitrary fonts, both True Type and PS Type 1, both 
 raster and vector images (including SVG and PDF), page transition effects, 
 multiple, flexible page layouts, cascading styles, and much, much more.

 Best regards,
   
Just installed with easy_install as I like to give it a try.

What is the best .rst file in a project to use?

I just tried with indextoc.rst which in my case contains the top 
toctree, but I am getting an error indextoc.rst:62: (ERROR/3) Unknown 
interpreted text role ref.

BTW, are there any plans to integrate this into Sphinx in some form and 
have a builder command like we currently have for html, or 
htmlhelp etc?

Best regards
Werner



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-14 Thread Roberto Alsina

On Wednesday 14 October 2009 05:35:20 werner wrote:
 Roberto,
 I just tried with indextoc.rst which in my case contains the top
 toctree, but I am getting an error indextoc.rst:62: (ERROR/3) Unknown
 interpreted text role ref.

Yes, trying to process sphinx files directly usually will have errors because 
sphinx uses lots of custom roles and directives.
 
 BTW, are there any plans to integrate this into Sphinx in some form and
 have a builder command like we currently have for html, or
 htmlhelp etc?

It's there already, please look in the manual at the Sphinx section in page 
37 :-)

You can find the manual in rst2pdf, or here: 
http://lateral.netmanagers.com.ar/static/manual.pdf

-- 
 (\''/).__..-''`-. . Roberto Alsina
 `9_ 9  )   `-. ().`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.   -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'   according to alexa.com (27/5/2007) 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



[sphinx-dev] Re: rst2pdf version 0.12.1 released

2009-10-14 Thread werner

Roberto,

Roberto Alsina wrote:
 On Wednesday 14 October 2009 05:35:20 werner wrote:
   
 Roberto,
 I just tried with indextoc.rst which in my case contains the top
 toctree, but I am getting an error indextoc.rst:62: (ERROR/3) Unknown
 interpreted text role ref.
 

 Yes, trying to process sphinx files directly usually will have errors because 
 sphinx uses lots of custom roles and directives.
  
   
 BTW, are there any plans to integrate this into Sphinx in some form and
 have a builder command like we currently have for html, or
 htmlhelp etc?
 

 It's there already, please look in the manual at the Sphinx section in page 
 37 :-)

 You can find the manual in rst2pdf, or here: 
 http://lateral.netmanagers.com.ar/static/manual.pdf

   
Thanks for the quick answer.

If one would just read to the end of the manual - sorry about that.

It is great that this is already available, however I am still having 
some problems - please bare with me I am still very very novice with Sphinx.

Error I get:
Sphinx error:
Builder name pdf not registered
copied _screenimages folder
copied _static folder
Running Sphinx v0.6.2


Extension error:
Could not import extension rst2pdf.pdfbuilder (exception: No module 
named rst2pdf.pdfbuilder)

I am using a python script to run sphinx-build.

... settings things up  (builders = ['html', 'htmlhelp', 'pdf']

for builder in builders:
targetFolder = os.path.join(os.path.join(curFolder, lang), 
versionBuild + '-build-' + builder)

# TO REBUILD ALL
command = 'sphinx-build -ac ' + confFolder +' -b '+ builder 
+' '+ sourceFolder +' ' + targetFolder

p = subprocess.Popen(command, stdin=subprocess.PIPE,
  stdout=subprocess.PIPE,
  startupinfo=startupinfo)


Looking in the Sphinx doc I find:

Sphinx.add_builder(/builder/)ΒΆ 
http://sphinx.pocoo.org/ext/appapi.html?highlight=builder#sphinx.application.Sphinx.add_builder
Register a new builder. /builder/ must be a class that inherits from
Builder
http://sphinx.pocoo.org/ext/builderapi.html#sphinx.builders.Builder.

But where do I do this?  In my conf.py of the project or ?

I also added to my build script:
pkg_resources.require(rst2pdf) # get latest version
import rst2pdf

But that was not enough.

Thanks for any hints.
Werner






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---