SourceForge.net | 8 Oct 05:16

[ docutils-Bugs-2152541 ] double-quotes inside code block get translated by htmlwriter

Bugs item #2152541, was opened at 2008-10-07 22:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2152541&group_id=38414

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jeet Sukumaran (jeetsukumaran)
Assigned to: Nobody/Anonymous (nobody)
Summary: double-quotes inside code block get translated by htmlwriter

Initial Comment:
The following rst source:

   This is a sample of Python code::

        print "Hello, world"

Results in the following HTML:

u'<p>This is a sample of Python code:</p>\n<pre class="literal-block">\nprint &quot;Hello, world&quot;\n</pre>\n'

Using 'core.publish_parts(s, writer_name="html")["fragment"]'.
(Continue reading)

Sebastian Noack | 6 Oct 16:13

Fw: Creating a file-like object.

On Sun, 5 Oct 2008 00:10:22 -0400
"David Goodger" <goodger <at> python.org> wrote:

> On Mon, Sep 29, 2008 at 12:13, Sebastian Noack
> <sebastian.noack <at> googlemail.com> wrote:
> > by using publish_file, I can read text from a file-like object and
> > write it to another file-like object, but is there a way to get a
> > file-like object which formats the text while it gets read? Thanks.
> 
> I don't understand what you're asking for. Please explain further, and
> include examples of what you'd like (input & output, code samples,
> etc.).
> 

I was asking for a way to don't have to publish the complete file at
once. For example:

fd = publish_*(...)
while True:
    buffer = fd.read(512)
    if len(buffer) == 0: break
    sys.stdout.write(buffer)

Note that this is just an example, I know that i can write to
sys.stdout directly. But sometimes i need a file like object to pass it
to an other function which expects a file-like object. In this case i
could create a StringIO but this would be waste of memory and
performance. Thanks

Regards
(Continue reading)

Sebastian Noack | 29 Sep 18:10

Creating a file-like object.

Hi guys,

by using publish_file, I can read text from a file-like object and
write it to another file-like object, but is there a way to get a
file-like object which formats the text while it gets read? Thanks.

Regards
Sebastian Noack
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Dave Kuhlman | 29 Sep 19:48

Adding rst2odt/odtwriter to the queue for the next release

I'd like rst2odt/odtwriter to be considered for the the next
release of Docutils.

Currently, when I run rst2odt.py on demo.txt, it successfully runs;
it produces an output file that looks good to me; and it shows me
that rst2odt does not support citations and sidebars.  Are these
required for inclusion?

I suppose that I am asking how we decide whether to include it.  I
suspect that there needs to be some demand for it and that it needs
to pass certain tests.  I believe that David (G.) said that the
ability to process demo.txt without failing was a requirement,
so it has passed that test.

So, is there anything I can do to move this forward or at least
have it considered?

And, by the way, we will have the same questions with rst2pdf, which
I'm also hoping will be included in the Docutils distribution,
soon.

- Dave

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Martin Maney | 22 Sep 17:08

I was thinking that reST would be just the thing for this application...


How to describe it?  I need a not too user-unfriendly format for
entering items that are mostly a scrap of descriptive text and a
hypertext link.  The tricky bit is that this is part of a system that
has a catalog of URLs, and I want to allow items to refere to cataloged
links by name - so that when a URL changes, there's one place to fix
it, or to redirect to a "sorry, this resource is no longer available"
(and, in my dreams, maybe suggest alternatives... but that's only a
dream for now).

I've been trying to avoid reinventing this wheel, but the first few
things I looked at didn't do well on the user ratings.  reST's
hyperlink syntax has always seemed kind of funky to me, but my users
seem to like it.  The problem then would be that this seems to call for
a transform, and it's probably quite simple... except that the
documentation of that area is so incomplete as to be useless.  I've
groveled the code enough to decide that if I have to go that route it
truly will be simpler to reinvent the wheel once again (this so is a
Pythonic trope, isn't it?).  I'd lose the other things that reST
provides, but frankly they're not of great importance for items, at
least we currently envision using them.

So sorry, but code is really crappy documentation, even when the trees
aren't lost in an ocean of do-nothing classes (was this designed by
someone with extensive Jave experience, perhaps?).  From what I've been
able to make out, dimly, I believe I need to

1) get the item parsed into nodes - that turns out to be easier than
the __doc__ suggested, just publish_doctree(item_string) (okay, with
stderr redirected if my extended syntax isn't quite legal reST form).
(Continue reading)

Georg Brandl | 12 Sep 19:16

Include roman.py as a submodule?

Just a suggestion for the next release: why not include roman.py as a
submodule of docutils? There are lots of problems people have with the
status quo, where roman is distributed and installed as a separate
toplevel module...

Georg

--

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
SourceForge.net | 8 Sep 19:21

[ docutils-Support Requests-2100641 ] not on internap mirror (San Jose)

Support Requests item #2100641, was opened at 2008-09-08 10:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422031&aid=2100641&group_id=38414

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nathan Youngman (nyoungman)
Assigned to: Nobody/Anonymous (nobody)
Summary: not on internap mirror (San Jose)

Initial Comment:
The default mirror SF picks for me is internap in San Jose. Seems the 0.5.0 download isn't there, and gives an
error. I originally got this error while trying to easy_install Sphinx.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422031&aid=2100641&group_id=38414

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

engelbert gruber | 1 Sep 16:24

Patch [ 1878977 ] make_id(): deaccent characters

hello,

any objections to apply this patch

--- docutils/nodes.py   (revision 5503)
+++ docutils/nodes.py   (working copy)
@@ -1766,13 +1766,183 @@
    .. _HTML 4.01 spec: http://www.w3.org/TR/html401
    .. _CSS1 spec: http://www.w3.org/TR/REC-CSS1
    """
-    id = _non_id_chars.sub('-', ' '.join(string.lower().split()))
+    if isinstance(string, unicode):
+        id = string.lower().translate(_non_id_translate)
+    else:
+        try:
+            id = string.decode().lower().translate(_non_id_translate)
+        except UnicodeDecodeError:
+            id = string.lower()
+    id = _non_id_chars.sub('-', ' '.join(id.split()))
    id = _non_id_at_ends.sub('', id)
    return str(id)

 _non_id_chars = re.compile('[^a-z0-9]+')
 _non_id_at_ends = re.compile('^[-0-9]+|-+$')
+_non_id_translate = {
+    # From Latin-1 Supplement
+    0x00df: u'ss',      # sharp s
+    0x00e0: ord('a'),   # a with grave
and 180 other mappings

(Continue reading)

SourceForge.net | 28 Aug 15:49

[ docutils-Bugs-2080572 ] RFE: document links

Bugs item #2080572, was opened at 2008-08-28 09:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2080572&group_id=38414

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Matthew Leingang (leingang)
Assigned to: Nobody/Anonymous (nobody)
Summary: RFE: document links

Initial Comment:
Metadata is good.

Much in the same way that ReST authors can specify metadata that gets converted to HTML meta elements by
rst2html, they should be able to use document links as specified in

http://www.w3.org/TR/html4/struct/links.html#edef-LINK

One way to implement this would be a copy of the meta directive, with an interface something like

.. link:: 
   :next type=text/html: chapter3.html
(Continue reading)

grubert | 14 Aug 20:52

Development Status

hi

we currently have the status "1 - Planning" and "3 - Alpha"
maybe "5 - Production/Stable" or at least "4 - Beta"
are more appropriate

cheers

--

-- 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
SourceForge.net | 14 Aug 16:41

[ docutils-Patches-2051599 ] multi-page tables in latex writer

Patches item #2051599, was opened at 2008-08-14 07:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422032&aid=2051599&group_id=38414

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter A. Bigot (pabigot)
Assigned to: Nobody/Anonymous (nobody)
Summary: multi-page tables in latex writer

Initial Comment:
This patch implements the endfirstheader/endfoot/endlastfoot commands so that table headers indicate
when they are a continuation, table footers indicate when there is a continuation, and multi-page tables
do not have multiple entries in the latex list of tables.

The patch is relative to 0.5 but seems to apply (with offset) to the current snapshot.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=422032&aid=2051599&group_id=38414

(Continue reading)


Gmane