1 Sep 09:30 2010

### Re: transform citation reference

On 2010-08-27, Alan G Isaac wrote:
> I would like to grab the citation reference,
> process it with a function that returns a string,
> and have my writer write this string in place of the citation reference.

I would use a "transform" to replace the content of the citation node. To
find out how to do this I'd look at other transforms.

The main idea is that with a transform, you will get a
writer-independent action with (hopefully) no need to change any of
the writers.

Günter

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
_______________________________________________
Docutils-users mailing list
Docutils-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users


1 Sep 19:17 2010

### Re: Custom header/footers not working for rst2odt

> From: Bryan Vicknair

> Sent: Tue, August 31, 2010 12:49:15 PM
>
> I cannot get custom header/footers to work at all using the rst2odt
> script.
>
> I am not subscribed to the mailing list, so please CC me on any
> emails regarding this.
>
> Here is the output of a session showing the steps I took to
> reproduce the problem.  I create a virtualenv, install docutils,
> create a short test rst document, then use the rst2odt script with
> the --custom-odt-footer option.  In the end, when I open the odt
> document, The footer simply says "Page", with no current page
> number, or total page number:
>
>
> bry <at> dev:~\$ cat /etc/issue
> Ubuntu 9.04 \n \l
>

[detailed report snipped]

Bryan -

Thanks for the the detailed report.  That helps and may save
several turn-arounds between us.

I tried to duplicate what you did as closely as I could.  I created


2 Sep 00:39 2010

### Re: Custom header/footers not working for rst2odt

Dave Kuhlman <dkuhlman <at> pacbell.net> writes:

> Bryan -
>
> Thanks for the the detailed report.  That helps and may save
> several turn-arounds between us.
>
> I tried to duplicate what you did as closely as I could.  I created
> a virtual environment.  I installed docutils with bin/easy_install
> (in that virtual environment), which installed Docutils 0.7 (same as
> you).  I generated a .odt file from the same reST content you used
> with the same command line option
> (--custom-odt-footer="Page %p% of %P%").  When I look at the
> generated .odt file in oowriter, at the bottom of the page, I see::
>
>     Page 1 of 1
>
> Wait, I'll try printing it.  ... Print preview looks OK.  ...
> I'll export to PDF.  ... That looks OK.
>
> I'm using OpenOffice 3.2 on Ubuntu GNU/Linux (Ubuntu 10.04.1 LTS).
> You're on Ubuntu, too, but an earlier version.  Possibly we're
> using different versions of OpenOffice.  Could that make a
> difference?
>
> Perhaps you could email me both the reST file (test.rst) and the
> .odt file that you generated (test.odt).  I can unpack the .odt
> file and see if it contains what I'd expect.  I can also look at it
> in (my version of) oowriter.
>


2 Sep 17:30 2010

### Re: Custom header/footers not working for rst2odt

Bryan Vicknair <bryanvick <at> gmail.com> writes:

> When I uncompress the odt file, and look in the styles.xml file, I see
> elements that seem like they should be showing the page numbers:
>
> </text:p><text:p text:style-name="rststyle-footer">Page <text:p
> text:style-name="rststyle-footer"><text:page-number text:select-page="current"
> text:style-name="rststyle-footer" /> of <text:page-count
> text:style-name="rststyle-footer" />
>
> However, I don't see them, and they don't appear when printed.  If I open the
> document in OO 3.2, I can insert page numbers using the Insert-->Fields menu,
> so I know that the page number feature works on my box.  It just is not
> working with these generated documents.
>
> I am generating the documents on a Ubuntu 9.04 server, but I am viewing them
> mostly on a Windows XP box.  I also tried viewing them on an Ubuntu 8.10 box
> with Open Office 2.4 and don't see the page numbers there either.  I am
> upgrading the Ubuntu 8.10 box to 9.04 and then will upgrade Open Office to 3.2
> to see if that works.
>

OK, I upgraded my Ubuntu box to 9.04, and Open Office to 3.0.1 and now the page
numbers are showing up using the same odt file.

I move this file to my Windows XP box with Open Office 3.2.0, and the page
numbers don't appear.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:


2 Sep 19:45 2010

### Re: Custom header/footers not working for rst2odt

> From: Bryan Vicknair

> Sent: Thu, September 2, 2010 8:30:07 AM

> Bryan Vicknair <bryanvick <at> gmail.com> writes:
>
> > When I uncompress the odt file, and look in the styles.xml file, I see
> > elements that seem like they should be showing the page numbers:
> >
> > </text:p><text:p text:style-name="rststyle-footer">Page <text:p
> > text:style-name="rststyle-footer"><text:page-number
>text:select-page="current"
> > text:style-name="rststyle-footer" /> of <text:page-count
> > text:style-name="rststyle-footer" />
> >
> > However, I don't see them, and they don't appear when printed.  If I open
the
> > document in OO 3.2, I can insert page numbers using the Insert-->Fields
> > so I know that the page number feature works on my box.  It just is not
> > working with these generated documents.
> >
> > I am generating the documents on a Ubuntu 9.04 server, but I am viewing them
> > mostly on a Windows XP box.  I also tried viewing them on an Ubuntu 8.10 box
> > with Open Office 2.4 and don't see the page numbers there either.  I am
> > upgrading the Ubuntu 8.10 box to 9.04 and then will upgrade Open Office to
>3.2
> > to see if that works.
> >
>


2 Sep 19:57 2010

### Re: Custom header/footers not working for rst2odt

Dave Kuhlman <dkuhlman <at> rexx.com> writes:

> Bryan -
>
> Thanks for this report.But, that's not good.  I suppose it means that whatever
> the odf-odt
> writer is generating is not correct for OpenOfficeoowriter on both
> platforms (Linux, MS Windows).
>
> I still have a machine on which I can boot MS Windows.  I'll take a
> look at it later today.
>
> Later ...
>
> I just tried it on Windows Vista with OpenOffice 2.4.  The page
> numbers do not show there.
>
> I upgraded to OpenOffice 3.2.1.  Still no page numbers.
>
> So, I'll take a look at what I'm generating and try to figure out what
> OpenOffice (on MS Windows) wants.
>
> Perhaps I'll try creating a document on the MS Windows OpenOffice,
> then unpack it, and see how it compares with what we have on Linux.
>
> I am assuming that the files created by OpenOffice should be platform
> independent, right?
>
> More later.
>


4 Sep 00:19 2010

### Re: Custom header/footers not working for rst2odt

> From: Bryan Vicknair

> Sent: Thu, September 2, 2010 10:57:12 AM
>

>
> Dave,
>
> I have created a post on the OpenOffice Writer forms as well to try
> and get some more confirmations of the problem with certain setups.  I
> can't imagine how the operating system interacts with the page number
> generation.
>
> http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=33783

Byran -

Thanks for starting that thread.  I got a few clues there.

I did not know about the validator that one of the posters mentioned.
That helped me remove a couple of errors.  But, they are not related
to our problem with page numbers.

>
> I created a document in OpenOffice 3.2 on Win XP with a footer and the
> page number fields and this is the relevant content in the
> styles.xml::
>
> <style:footer>


4 Sep 12:58 2010

### reST to Powerpoint by rst2outline

Hi!

Recently once again I was looking for a way to import my thoughts done
in reST into PowerPoint (I have to use PowerPoint - it's not that I
want it...).

This time I was lucky to find an article_ on Powerpoint being able to
import plain text files!

.. _article: http://www.pptfaq.com/FAQ00246.htm

From this it was just about an hour to rst2outline.py  . It
creates a tabbed outline which can be imported into Powerpoint - even
into an existing presentation! This way you can continue thinking in
reST and then port your thoughts to PowerPoint. Of course this doesn't
compensate for all the shortcomings of PowerPoint such as no support
for navigation or multi-level titles but it's better than nothing.

I put the tool to the sandbox_. It consists only of the script and
there is a setup.py included.

.. _sandbox: http://docutils.sourceforge.net/sandbox/rst2outline/

Grüße

Stefan

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:


4 Sep 14:42 2010

### Re: [Docutils-develop] reST to Powerpoint by rst2outline

On 9/4/2010 6:58 AM, Stefan Merten wrote:
> I was looking for a way to import my thoughts done
> in reST into PowerPoint

Did you try rst2odp?
http://docutils.sourceforge.net/sandbox/rst2odp/

Alan Isaac

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.

4 Sep 15:15 2010

### Re: [Docutils-develop] reST to Powerpoint by rst2outline

Hi Alan!

31 minutes ago Alan G Isaac wrote:
> Did you try rst2odp?

I tried it once not too long ago but it didn't work. I tried to figure
out the problem but after looking at the code I gave up quickly...

Grüße

Stefan

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd

Gmane