Coder Social home page Coder Social logo

pyrtf-ng's People

Watchers

 avatar

pyrtf-ng's Issues

Get a documentation or wiki going?

What steps will reproduce the problem?
1. Look for information regarding py rtf that isnt in the documentation

What is the expected output? What do you see instead?
Better documentaiton and examples

What version of the product are you using? On what operating system?


Please provide any additional information below.
If you drop me a line Ill be happy to contribute. Personally I am partial
to the wiki documentation as it gives users a very low treshhold for
contributing information.

Original issue reported on code.google.com by [email protected] on 9 Mar 2009 at 9:44

NameError in Renderer._WriteElements

What steps will reproduce the problem?
If no class is matched before the test on line 453, a NameError exception
is raised, because no Image class has been imported into Renderer.py:

NameError: global name 'Image' is not defined

What version of the product are you using? On what operating system?
pyrtf-ng (svn r73), OS X 10.5.5, System Python 2.5

Please provide any additional information below.
Related to Issue 2.

Original issue reported on code.google.com by [email protected] on 22 Oct 2008 at 11:36

global name 'StringType' is not defined

What steps will reproduce the problem?
1. c1 = Cell( Paragraph( 'Row One, Cell One'   ) )

What is the expected output? What do you see instead?
global name 'StringType' is not defined

What version of the product are you using? On what operating system?
OS X 10.5

Please provide any additional information below.
inert from types import * in paragraph.py and now it working

Original issue reported on code.google.com by [email protected] on 6 Jul 2009 at 10:03

Link an external document

What steps will reproduce the problem?
Trying to use pyrft-ng to link/embedd a MSword document (or any in essence 
a external file).

What is the expected output? What do you see instead?
Preferbly a hyperlink-type behavior whereby the appropriate application 
will open the referenced file. But my specific problem revolves around 
representing anouther MSword document as anything other than plain text 
(as in "for reference see x.doc")

What version of the product are you using? On what operating system?
Latest pyrtf-ng from trunk and pyrtf 0.45. (fetched 20090202)
Python 2.4.4
Debian etch

Please provide any additional information below.
I know this is not nessasarilly the scope of Pyrtf-ng, but it seems the 
place where someone recently has devoted a little time towards pyrtf. So I 
am essentially shooting of random requests as I dont know where to turn.


Original issue reported on code.google.com by [email protected] on 6 Mar 2009 at 2:36

Very simple RTF parser for pyrtf-ng

Hello,

I have not found a way to write a response in Google Code UI. Thus I
decided to create this issue record.

Recently I searched out Python RTF parser library and only one applicable
choice was your pyrtf-ng but parser code within it is uncompleted as I saw.
Thus I have implemented very simple RTF parser - one thing that I need from
RTF file is text content and it works for me very well.

Thank you for this library - it helped me very much, please check out
attached 'rtf_parser.zip' maybe some ideas can be applied to pyrtf-ng code.


Original issue reported on code.google.com by [email protected] on 4 Nov 2009 at 3:15

Attachments:

UnicodeType not being accepted by Renderer._WriteElements in Renderer.py

What steps will reproduce the problem?
1. Append unicode string to Footer element
2. Append Footer to Document object
3. Render Document object using Renderer.Write()

What is the expected output? What do you see instead?
The conditional test in Renderer._WriteElements() skips down to line 453:

elif clss in [ RawCode, Image ]:

An exception is thrown (caused by a separate issue):
NameError: global name 'Image' is not defined

Suggest changing line 450 from:

elif clss == StringType:

to 

elif clss == StringType or clss == UnicodeType:

What version of the product are you using? On what operating system?
pyrtf-ng (svn r73), OS X 10.5.5, System Python 2.5

Please provide any additional information below.
Test file attached.


Original issue reported on code.google.com by [email protected] on 22 Oct 2008 at 11:28

Attachments:

NameError when types aren't imported into document.paragraph

Various types need to be imported into document.paragraph to prevent a
NameError exception:

eg: global name 'StringType' is not defined

This is resolved by importing various types:

from types import StringType, IntType, FloatType, LongType

What version of the product are you using? On what operating system?
pyrtf-ng (svn r73), OS X 10.5.5, System Python 2.5

Original issue reported on code.google.com by [email protected] on 21 Oct 2008 at 10:47

No Python 3 support

Python versions starting with 3.0 aren't supported.

python3 setup.py install fails with syntax errors:

byte-compiling /usr/local/lib/python3.3/dist-packages/rtfng/parser/grammar.py 
to grammar.cpython-33.pyc
  File "/usr/local/lib/python3.3/dist-packages/rtfng/parser/grammar.py", line 84
    """
     ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in 
position 1529-1532: truncated \uXXXX escape

byte-compiling /usr/local/lib/python3.3/dist-packages/rtfng/parser/base.py to 
base.cpython-33.pyc
  File "/usr/local/lib/python3.3/dist-packages/rtfng/parser/base.py", line 61
    except ParseException, e:
                         ^
SyntaxError: invalid syntax

byte-compiling /usr/local/lib/python3.3/dist-packages/rtfng/Renderer.py to 
Renderer.cpython-33.pyc
  File "/usr/local/lib/python3.3/dist-packages/rtfng/Renderer.py", line 507
    text = ''.join(['\u%s?' % str(ord(e)) for e in element])
                           ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in 
position 0-1: truncated \uXXXX escape

Original issue reported on code.google.com by [email protected] on 22 Jun 2014 at 9:41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.