Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-07 15:59:00

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

[request] PHP Typography

PHP Typography 1.0 beta 3

PHP Typog­ra­phy is a PHP based solu­tion to greatly improve web typog­ra­phy. It fea­tures the fol­low­ing capa­bil­i­ties (includ­ing gran­u­lar con­trol):

  • Hyphen­ation
  • Spac­ing con­trol, includ­ing: glu­ing val­ues to units, widow pro­tec­tion, and forced inter­nal wrap­ping of long URLs & email addresses.
  • Intel­li­gent char­ac­ter replace­ment, includ­ing smart han­dling of: quote marks, dashes, ellipses, trade­marks, mul­ti­pli­ca­tion sym­bols, frac­tions, and ordi­nal suf­fixes (i.e. 1st, 2nd, 3rd)
  • CSS hooks for styling: amper­sands (class “amp”), acronyms (class “caps”), num­bers (class “num­bers”), ini­tial sin­gle quotes (class “quo”), and ini­tial dou­ble quotes & guillemets (class “dquo”).
    This project merges, builds upon, and gen­er­al­izes the func­tion­al­ity of wp‐​Typogrify, wp‐​Hyphenate and Smar­ty­Pants.

Not sure what it would take to get into Textpattern, especially if it’s to work nice with Textile. But a lot of what it does sounds very appealing!

Offline

#2 2009-07-07 16:27:07

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [request] PHP Typography

Jason

Have you tried aam_typogrify? I think it handles at least some of your requests.


Steve

Offline

#3 2009-07-07 16:36:14

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: [request] PHP Typography

Had a look at the link and was amused that in the first browser I used (OmniWeb) I couldn’t see the hyphens. Especially amusing as this was the line that I noticed first:

It features the following capabil
ties

Other browsers handle it as intended, but this is an interesting take on the issue of soft hyphens.


Code is topiary

Offline

#4 2009-07-07 16:38:49

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: [request] PHP Typography

Yes, well, aam_typogrify is wonderful but this does more! I’m especially excited about the hyphenation. And the extra CSS hooks sound nice.

Jsoo—huh, very interesting to read your link about ­ …

Last edited by floodfish (2009-07-07 16:40:27)

Offline

#5 2009-07-08 05:08:27

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] PHP Typography

Hey Jason. checked out your site and really like your watercolors and illustrations. Keep it up dude. {we return yo now to your original topic}

Offline

#6 2009-07-08 05:18:37

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: [request] PHP Typography

Thanks so much, Dale!

Offline

Board footer

Powered by FluxBB