Michael Foord wrote:
Michael Foord wrote:
Michael Foord wrote:
Dino Viehland wrote:
I have no clue - any ideas what the issue was there? We only have
1 bug
that references it and it was fixed a long time ago.
First problem with 2.6B2:
File "c:\IronPythonPackages\docutils\utils.py", line 16, in
c:\IronPythonPackages\docutils\utils.py
import unicodedata
ImportError: No module named unicodedata
If I use the unicodedata module from FePy then it *seems* to work.
Although I do see a warning that I don't see under CPython:
<string>:1: DeprecationWarning: object.__new__() takes no parameters
Not dug in to see where it comes from.
Another issue. If you use the programmatic API it blows up with an odd
error. This is a function that uses a lot of keyword arguments (up to
seventeen, mainly defaulting to None) and delegates to another
function that also takes seventeen keyword arguments:
>>> from docutils.core import publish_string
>>> publish_string('foo')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Value cannot be null.
Parameter name: method
It looks like this might be the following issue, which is marked as fixed:
http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=24182
Cool.
Michael
This works fine with CPython.
Michael
Michael
Michael
-----Original Message-----
From: users-boun...@lists.ironpython.com [mailto:users-
boun...@lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, August 10, 2009 5:03 PM
To: Discussion of IronPython
Cc: Discussion of IronPython
Subject: Re: [IronPython] FlowDocument XAML syntax highlighting and
restructured text
Any idea if docutils works?
Michael
--
http://www.ironpythoninaction.com
On 11 Aug 2009, at 00:59, Dino Viehland <di...@microsoft.com> wrote:
FYI the fix is checked in and available on CodePlex as of last
Friday.
-----Original Message-----
From: users-boun...@lists.ironpython.com [mailto:users-
boun...@lists.ironpython.com] On Behalf Of Harry Pierson
Sent: Monday, August 10, 2009 4:57 PM
To: Discussion of IronPython
Subject: Re: [IronPython] FlowDocument XAML syntax highlighting and
restructured text
Very cool Michael.
FYI, pygments runs in IronPython except for a but in their
_automodule
class in pygments/lexers/__init__.py
(http://dev.pocoo.org/projects/pygments/browser/pygments/lexers/__init_
_.py). If you comment out the last 6 lines of lexers/__init__.py,
pygments will run under IronPython, but without the lexer module
automodule support. That means you have to write
from pygments.lexers.agile import PythonLexer
instead of
from pygments.lexers import PythonLexer
Dino assures me this bug is fixed and will be available in source
"soon" - definitely by RC.
Harry
-----Original Message-----
From: users-boun...@lists.ironpython.com [mailto:users-
boun...@lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, August 10, 2009 4:35 PM
To: Discussion of IronPython
Subject: [IronPython] FlowDocument XAML syntax highlighting and
restructured text
Hello all,
Just to let you know I've started a project to generate
FlowDocument
XAML from reStructuredText source. There is also a pygments
formatter
so that source code can be formatted.
The project, rst2xaml is at:
http://code.google.com/p/rst2xaml/
So far it can cope with rest documents consisting of bold, italics,
blockquotes and the sourcecode directive!
The pygments formatter looks quite nice though - here is the output
shown in a FlowDocumentReader:
http://twitpic.com/dfwu5
The goal is to be able to show highlighted Python examples /
tutorials
alongside an interactive interpreter in the browser with
Silverlight /
Moonlight.
Currently rst2xaml.py itself runs under CPython, but the xaml it
generates is intended to be used from IronPython with WPF. There is
an
example script, display_xaml.py, that will show generated xaml in a
window.
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com