sharnett / presentr

a glitchy and beautiful slide show presentation generator
1 stars 1 forks source link

clean up/shorten caption strings from tumblr #7

Closed obsjames closed 12 years ago

sharnett commented 12 years ago

James, can give you some examples?

obsjames commented 12 years ago

thugs ValueError: sample larger than population

tigers KeyError: 'query'

karma sutra HTTPError: HTTP Error 400: Bad request

On Tue, Oct 2, 2012 at 12:08 AM, Sean Harnett notifications@github.comwrote:

James, can give you some examples?

— Reply to this email directly or view it on GitHubhttps://github.com/sharnett/james/issues/7#issuecomment-9058366.

obsjames commented 12 years ago

Sorry wrong issue.

Try ninja.

Some of the captions are super long.

On Tue, Oct 2, 2012 at 1:33 PM, James Lee-Thorp obsjames@gmail.com wrote:

thugs ValueError: sample larger than population

tigers KeyError: 'query'

karma sutra HTTPError: HTTP Error 400: Bad request

On Tue, Oct 2, 2012 at 12:08 AM, Sean Harnett notifications@github.comwrote:

James, can give you some examples?

— Reply to this email directly or view it on GitHubhttps://github.com/sharnett/james/issues/7#issuecomment-9058366.

sharnett commented 12 years ago

Open to suggestions on this. Latest code replaces all stretches of whitespace with a single space, and truncates to 80 characters.

obsjames commented 12 years ago

How about truncating at any special characters or punctuation marks.

On Tue, Oct 2, 2012 at 2:23 PM, Sean Harnett notifications@github.comwrote:

Open to suggestions on this. Latest code replaces all stretches of whitespace with a single space, and truncates to 80 characters.

— Reply to this email directly or view it on GitHubhttps://github.com/sharnett/james/issues/7#issuecomment-9081344.

obsjames commented 12 years ago

Perhaps with some leeway on the first, say, 20 characters.

On Tue, Oct 2, 2012 at 2:43 PM, James Lee-Thorp obsjames@gmail.com wrote:

How about truncating at any special characters or punctuation marks.

On Tue, Oct 2, 2012 at 2:23 PM, Sean Harnett notifications@github.comwrote:

Open to suggestions on this. Latest code replaces all stretches of whitespace with a single space, and truncates to 80 characters.

— Reply to this email directly or view it on GitHubhttps://github.com/sharnett/james/issues/7#issuecomment-9081344.

sharnett commented 12 years ago

What are you talking about

sharnett commented 12 years ago

Fixed.

obsjames commented 12 years ago

Can we apply a similar fix to wiki.py and udict.py?