Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Round tuits via Text::Autoformat or other ways

by roboticus (Chancellor)
on Sep 26, 2007 at 21:02 UTC ( [id://641235]=note: print w/replies, xml ) Need Help??


in reply to Re: Round tuits via Text::Autoformat or other ways
in thread Round tuits via Text::Autoformat or other ways

sq:

++ Very nice!

While reviewing your code and examples, I had a couple of thoughts:

First, I'd preferentially add extra spaces after punctuation characters if any are on the line. I think people are used to seeing a bit more space after punctuation.

Secondly, you might have a table of common contractions that you can swap in and out as needed (e.g., "It's" ==> "It is", "Doesn't" ==> "Does not", etc.) That might give you enough flex to get your circles even better.

Finally, I'm going to have to try the code out, as the aspect ratio is still a little tall & thin on my monitor. ;^)

...roboticus

  • Comment on Re^2: Round tuits via Text::Autoformat or other ways

Replies are listed 'Best First'.
Re^3: Round tuits via Text::Autoformat or other ways
by sg (Pilgrim) on Sep 27, 2007 at 10:21 UTC

    Regarding the third point, I had found that when $width_to_height = 1/1.9, the code is unstable (perhaps because it exposes a bug in Text::Autoformat; try with $iterations_limit = 4) and so I did not experiment too much on aspect ratio. However, since your post, I have found that values of $width_to_height smaller than 1/1.9, e.g., 1/2.05, work and yeild more circular looking outputs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://641235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-20 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found