The best converter so far is pdftotext from http://www.glyphandcog.com/ who
maintain an open source project at http://www.foolabs.com/xpdf/.
It's not a Python library but you can call pdftotext from with Python using
os.system(). I used the pdftotext -layout option and that gave the best
Dinesh,
I have pdftotext version 3.0.0. I have decided to use this to go from
PDF to text. It is not the ideal solution, but is is a certainly doable
solution.
Thank you,
Robert
Dinesh B Vadhia wrote:
The best converter so far is pdftotext from
http://www.glyphandcog.com/ who maintain an
Robert Berman wrote:
Dinesh,
I have pdftotext version 3.0.0. I have decided to use this to go from
PDF to text. It is not the ideal solution, but is is a certainly doable
solution.
Thank you,
Robert
Dinesh B Vadhia wrote:
The best converter so far is pdftotext from
Hello! I’m not a programmer and am a beginner with Python, I would
like suggestion about ways of tackling the task I had to do. I have
bee been using the xlrd package to get data from some spreadsheets
successfully.
I have developed a simple report from a script that compares number of
shipments
Eduardo Vieira wrote:
Hello! I’m not a programmer
Do you mean that you were not a programmer and are now becoming one?
[snip] I wondered how would I save time avoiding repeating code, creating extra
variables, etc. So, I simply decided to alter the code as little as
possible and use the
Eduardo Vieira eduardo.su...@gmail.com wrote
I simply decided to alter the code as little as
possible and use the import statement. It's working this way.
Sounds wise?
Its an acceptab;e approach bwhen you are doing exactly
the same thing, but its not a very flexible approach and
I need to write code that determines a students final grade based on the
number of each type of assignment turned in with its corresponding weighted
percentage. There will be 15-20 inputs. I have not reached this point in
my learning of python, so I would like to request a resource that would
Le Wed, 22 Apr 2009 08:49:22 -0600,
Eduardo Vieira eduardo.su...@gmail.com s'exprima ainsi:
Hello! I’m not a programmer and am a beginner with Python, I would
like suggestion about ways of tackling the task I had to do. I have
bee been using the xlrd package to get data from some spreadsheets
John Jenkinson wrote:
I need to write code that determines a students final grade based on the
number of each type of assignment turned in with its corresponding
weighted percentage. There will be 15-20 inputs. I have not reached
this point in my learning of python, so I would like to
Hello John,
It is the general policy of the 'tutors group' to not solve homework
problems. Given that very basic rule, there are obvious elements for
which we can definitely give help. But, you have to take the first step
and that is a relatively big one. You have to define an algorithm or
Anyone know how to program this using Python
Add up the prices for items in a shopping cart. Some items are taxable and
some items are not. You may assume a 7% tax rate for all taxable items.
Apply a 10% discount if the customer is a student. (hint, instead of asking
the user to input items, set
Most teachers use spreadsheets for this. Is there a reason you'd like to use
Python? A spreadsheet would be easier to create and less error prone.
If you don't have a copy of Microsoft Orifice handy, you can use Gnumeric or
Open Office.
Cheers
On Wednesday 22 April 2009 10:54, John
Yes.
Show us your solution and perhaps we can help you make it a tad more
efficient.
Robert Berman
IT_ForMe wrote:
Anyone know how to program this using Python
Add up the prices for items in a shopping cart. Some items are taxable and
some items are not. You may assume a 7% tax rate for
On Wed, Apr 22, 2009 at 11:08 AM, IT_ForMe snice14...@aol.com wrote:
Anyone know how to program this using Python
Add up the prices for items in a shopping cart. Some items are taxable and
some items are not. You may assume a 7% tax rate for all taxable items.
Apply a 10% discount if the
Please use reply-all so a copy goes to the list.
Eduardo Vieira wrote:
On Wed, Apr 22, 2009 at 9:47 AM, bob gailer bgai...@gmail.com wrote:
Eduardo Vieira wrote:
Hello! I’m not a programmer
Do you mean that you were not a programmer and are now becoming one?
In a way
INDENTATION CORRECTION:
shipped = todaysList[shipindex]
total = sum([a for a in totals if type(a) == type(2.0)])
return shipped, total # specify the output(s) here
bob gailer wrote:
Please use reply-all so a copy goes to the list.
Eduardo Vieira wrote:
On Wed, Apr 22, 2009 at 9:47
I need to be able to decompose a formatted text file into identifiable,
possibly named pieces. To tokenize it, in other words. There seem to
be a vast array of modules to do this with (simpleparse, pyparsing etc)
but I cannot understand their documentation.
The file format I am looking at (it
Using Windows XP, Python 2.6 Al Sweigart's Invent Your Own..., I
keyed in the Hangman Program. So far as I can tell it is totally proofed
out. Still, I get an error message which makes no sense to me.
Herewith, the program, followed by the error message.
# CONSTANTS are all CAPS.
#
Le Wed, 22 Apr 2009 11:57:13 -0700,
WM. wfergus...@socal.rr.com s'exprima ainsi:
[...]
def DisplayBoard(HANGMAPIX, MissedLetters, CorrectLetters, SecretWord):
print HANGMANPIX[len(MissedLetters)]
print
print 'MissedLetters:',
for Letter in MissedLetters:
print
On Wed, Apr 22, 2009 at 2:57 PM, WM. wfergus...@socal.rr.com wrote:
Using Windows XP, Python 2.6 Al Sweigart's Invent Your Own..., I keyed
in the Hangman Program. So far as I can tell it is totally proofed out.
Still, I get an error message which makes no sense to me.
def
Le Wed, 22 Apr 2009 14:35:29 -0400,
William Witteman y...@nerd.cx s'exprima ainsi:
I need to be able to decompose a formatted text file into identifiable,
possibly named pieces. To tokenize it, in other words. There seem to
be a vast array of modules to do this with (simpleparse, pyparsing
Kent Johnson wrote:
On Wed, Apr 22, 2009 at 2:57 PM, WM. wfergus...@socal.rr.com wrote:
Using Windows XP, Python 2.6 Al Sweigart's Invent Your Own..., I keyed
in the Hangman Program. So far as I can tell it is totally proofed out.
Still, I get an error message which makes no sense to me.
On Wed, Apr 22, 2009 at 09:23:30PM +0200, spir wrote:
I need to be able to decompose a formatted text file into identifiable,
possibly named pieces. To tokenize it, in other words. There seem to
be a vast array of modules to do this with (simpleparse, pyparsing etc)
but I cannot understand
William Witteman wrote:
I need to be able to decompose a formatted text file into identifiable,
possibly named pieces. To tokenize it, in other words. There seem to
be a vast array of modules to do this with (simpleparse, pyparsing etc)
but I cannot understand their documentation.
The file
Hello William!
On Wednesday 22 April 2009, William Witteman wrote:
The file format I am looking at (it is a bibliographic reference
file) looks like this:
1 # the references are enumerated
AU - some text
perhaps across lines
AB - some other text
AB - there may be
WM. wfergus...@socal.rr.com wrote
def DisplayBoard(HANGMAPIX, MissedLetters, CorrectLetters, SecretWord):
for Letter in MissedLetters:
Blanks = '_' * len(SecretWord)
for i in range(len(SecretWord)):
for Letters in Blanks:
MissedLetters = ''
while
On Wed, Apr 22, 2009 at 12:15 PM, bob gailer bgai...@gmail.com wrote:
Please use reply-all so a copy goes to the list.
Thank you very much for your help and suggestions, I've modified my
code following your guidelines and looks so much better.
Regards,'
Eduardo
Just a comment [that might nudge your insight] regarding functions. From the
'good-ol-days'--a function was called a subroutine. They are the same thing.
When my thinking starts to muddle (often and easily) that connection always
helps.
From the virtual desk of Lowell Tackett
--- On
On Wed, Apr 22, 2009 at 05:16:56PM -0400, bob gailer wrote:
1 # the references are enumerated
AU - some text
perhaps across lines
AB - some other text
AB - there may be multiples of some fields
UN - any 2-letter combination may exist, other than by exhaustion, I
cannot
On Wed, Apr 22, 2009 at 11:23:11PM +0200, Eike Welk wrote:
How do you decide that a word is a keyword (AU, AB, UN) and not a part
of the text? There could be a file like this:
567
AU - Bibliographical Theory and Practice - Volume 1 - The AU - Tag
and its applications
AB - Texts in Library
On Wed, Apr 22, 2009 at 9:41 PM, William Witteman y...@nerd.cx wrote:
On Wed, Apr 22, 2009 at 11:23:11PM +0200, Eike Welk wrote:
How do you decide that a word is a keyword (AU, AB, UN) and not a part
of the text? There could be a file like this:
567
AU - Bibliographical Theory and Practice -
Well, Kent was right, it was an indent error, but 'way high in the
program. I was so catching commas that I got sloppy at an indent
change. sorry guys.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
32 matches
Mail list logo