KINGdesk Web Design is proud to make available wp-Typography, a merger and expansion of the wp-Typogrify and wp-Hyphenate WordPress plugins and SmartyPants functionality.
Features
wp-Typography is now a one-stop-shop for improved web typography in WordPress. It features the following capabilities (including granular control):
- Hyphenation
- Spacing control, including: gluing values to units, widow protection, and forced internal wrapping of long URLs & email addresses.
- Intelligent character replacement, including smart handling of: quote marks ( “foo” ), dashes ( foo – bar ), ellipses ( … ), trademarks ( ™ ), math symbols ( 1024×768 ), fractions ( 12⁄23 ), and ordinal suffixes ( 3rd )
- CSS hooks for styling: ampersands (class “amp”), acronyms (class “caps”), numbers (class “numbers”), initial single quotes (class “quo”), and initial double quotes & guillemets (class “dquo”).
Requirements
wp-Typography has the following requirements:
- the host server must run PHP 5 or later
- text must be encoded UTF-8
- all markup must be valid xHTML, specifically:
- every element must be closed,
- every attribute must have a value enclosed in quotes, and
- tag names and attributes must be lowercase.
Related
Additionally, the core functionality of wp-Typography (completely segregated from the WordPress plugin requirements) has been released as a standalone project, ready for integration with any other PHP based content management system. For more information, please visit the PHP Typography project page.
Your feedback is much appreciated. How can we make this plugin better? Email us at info@kingdesk.com, or leave a comment below.



Dan Butcher • 4:32 pm on Jul. 4, 2009
I’m excited about the combination of hyphenation support with the tweaks made by wp-typogrify. I just tried it out, and it seems to be working only partially so far.
Thin spaces are not inserted around em dashes. A closing quotation mark in a block quote was not changed to a curly quote (but the opening quote mark was changed and wrapped in the appropriate span).
The biggest issue, however, is that some of my text was stripped by the curly quote replacement. This sentence, which includes a link with quotation marks around it (it’s a title),
In "I wake and feel the fell of dark, not day," Hopkins describes his experience of darkness,becomes this with wp-Typography:
In “,” Hopkins describes his experience of darkness,Note that the code for the link is there, and so are the curly quotes, but the words of the title have disappeared. When I unchecked the curly quote replacement, the title reappeared.
I’m happy to play with the plugin and give you more feedback as well as try things out if you would like.
Dan Butcher • 4:52 pm on Jul. 4, 2009
Just discovered something about the thin spaces. I use the Markdown plugin, so that 2 hyphens are changed to an em dash. When I changed some of the hyphens to em dashes in my post, the thin spaces appeared around them. So, if I start with em dashes, the thin spaces work, but not if markdown has processed hyphens first.
Jeff Byrnes • 8:33 am on Jul. 5, 2009
I’ll have to muck about with it some more, but as far as I can tell, it kills any shorttag (e.g. Kimili Flash Embed’s [kml_embed] tags) if some functions are enabled (wp-typogrify did the same thing, but I had found a way to avoid this). Any help would be appreciated!
Jeffrey D. King • 9:06 am on Jul. 6, 2009
@Dan Butcher #0
Thank you for your feedback. I found and resolved a multibyte character conflict in the smart-quote functionality. Also, thin spacing was working fine for em-dashes, but I had neglected to implement them for en-dashes. This is also resolved. (markdown converts two minus/hyphens to an en-dash, not an em-dash).
I was unable to recreate your closing quote issue, could you email me the unprocessed code it is having difficulty with to info@kingdesk.com?
The plugin will be updated shortly to 1.0 beta 2.
Jeffrey D. King • 9:17 am on Jul. 6, 2009
@Jeff Byrnes # 2
wp-Typography greatly improves compatibility with short tags. For example, both wp-Hyphenate and wp-Typogrigy both corrupted WordPress’ handling of image captions. wp-Typography handles this correctly.
This plugin properly filters output through “the_content” hook, and purposefully waits until all other plugins complete their filtering. Accordingly, short tags should already be converted to HTML by the time this plugin has a go.
Unfortunately, Kimili’s Flash Embed’s does not filter short tags like other plugins. He apparantly waits until the “init” hook, which occurs after content filtering. I am sure there is a reason he does so, but it makes his plugin inherently fragile when there is content filtering.
Regretfully, the plugins are incompatible, and I am unable to resolve the issue from my end.
Jeffrey D. King • 9:24 am on Jul. 6, 2009
@Dan Butcher #1
Just so you know, wp-Typography also converts multiple hyphens to em and en dashes.
Markdown has a very simple handling of multiple hyphen conversion to dashes: Double hyphens become en-dashes and triple hyphens become em-dashes.
wp-Typography is a bit more intelligent. It considers the context and selectively converts double hyphens to en-dashes and (like when surrounded by numbers) or em-dashes (like when surrounded by letters).
If this is the only reason you are using markdown, wp-Typography may make this unnecessary. If there is another reason, please let me know… I would like wp-Typography to be an all inclusive typography solution. Thanks.
Dan Butcher • 9:51 am on Jul. 6, 2009
@Jeffrey D. King #5
I’m using Markdown because I used it for about 1.5 years, and so I’ve got a lot of posts (most of my posts) with not only the hyphens for dashes, but also * * for italics, # for heading levels, and so forth. I made extensive use of the markup, and I don’t want to have to go back and clean up my old posts.
Derek • 12:07 pm on Jul. 6, 2009
Nice update for this release. CSS hooks are going to come in handy for future updates.
erz • 12:20 pm on Jul. 6, 2009
Thanks for the email. I will be delighted to test it on my hard drive installation and subsequently on our platform – and if all goes well I simply must inform the world of this. Just wrote an article about a movement for better typography (in German) so the timing could hardly be better.
Jeffrey D. King • 12:24 pm on Jul. 6, 2009
@erz #8
This is a bigger part of the movement than just a WordPress plugin. I have separated the typographic functionality for easy porting to any PHP based content management system. It is also fully documented to further ease its use. See PHP Typography.
ginekologia • 2:35 pm on Jul. 6, 2009
I receive a lot of errors like:
Warning: mb_strlen() [function.mb-strlen]: Unknown encoding “” in /path/vulvodynia.pl/wp-content/plugins/wp-typography/php-typography/php-typography.php on line 627
Peter Gasston • 4:37 am on Jul. 7, 2009
Great work! I look forward to testing it thoroughly. Would you consider putting this on http://wordpress.org/extend so that we can update automatically?
Jeffrey D. King • 5:19 am on Jul. 7, 2009
@Peter Gasston #11
Yes, I plan on adding it to http://wordpress.org/extend as soon as it is ready to have the beta label removed. Please let me know of any reproducable deficiencies you find, so we can get to that goal. Thanks.
Matt Wiebe • 8:26 am on Jul. 7, 2009
Hey Jeffrey. First off, thanks so much for this awesome plugin, and all of the work to merge the hyphenate and typogrify branches.
I’m noticing an error on the demo site for my theme “The Erudite” after I enable 1.0b3. If you click into the footer, you’ll see that the Category list chokes in places due to a
<span class="caps">being inserted within thetitleattribute.Now, thankfully you’ve enabled id and class blacklists, so it’d be easy enough to fix this. But I figured you’d want to know about the issue in any case.
Matt Wiebe • 8:28 am on Jul. 7, 2009
And I go and forget to provide a link! It is at http://erudite.somadesign.ca/
Jeffrey D. King • 8:51 am on Jul. 7, 2009
@Matt Wiebe #13
I had a similar problem on one of my websites where I had used an improper function to dynamically generate title attributes.
I had used
the_title()which delivers the post title after filtering.In this case, the proper WordPress function was
the_title_attribute()which delivers the post title before filtering.My guess is that your problem is a theme issue. What function are you using to dynamically generate those title attributes?
Matt Wiebe • 10:36 am on Jul. 7, 2009
Hey Jeffrey
Thanks for the speedy reply. The function is the stock
wp_list_categories()function, which obviously isn’t using an unfiltered title attribute. Smells like a trac ticket.Jeffrey D. King • 11:11 am on Jul. 7, 2009
@ginekologia #10 & Matt Wiebe #16
I was able to correct both your issues in the newly released 1.0 beta 4.
erz • 2:46 am on Jul. 8, 2009
Hello Jeffrey,
I am testing the plugin on a German installation of wordpress and have found a few quirks that might not necessarily be bugs but rather feature requests.
You said that there would be localisation of the plugin. There is no such option in my backend, the language for the plugin is English (actually I don’t mind that at all, just pointing it out).
The typographic rules for character replacements are English and no option for other rules (or customized character replacement) is available. Are there any plans to extend the plugin? I am not even sure, if all the rules for character replacement are optimal. The character string “word-” ( will add a space between the hyphen and the word and make it read “word -” which might be correct for English, but certainly is not for German.
Changing the language for hyphenation does yield different results. However, neither are satisfactory. In some instances the plugin refuses to hyphenate words (regardless of language), leaving large gaps in the justified alignment. Widon’t does not work in all cases either.
Lastly, the quote conversion does not seem to work in text-widgets.
I will provide screen shots and more thorough description via email if you like. I am sorry to say that I don’t have a live version for you to check the markup.
All the best
erz
Jean Chouinard • 4:36 am on Jul. 8, 2009
There’s a problem with RSS when wp-typography is activated.
Dan Butcher • 7:08 am on Jul. 8, 2009
Jeffrey, I’ve been poking around your site, reading some of your articles, and I noticed that in Safari 4.0.1 (OSX), you pick up an odd character after a hyphen (see http://kingdesk.com/articles/aesthetics-over-usability/ for an example: up-escalator in the article and well-written in the comments). I looked at the source code, and there’s nothing there that I can see. I’m wondering if this is a (mis)function of the plugin.
Jeffrey D. King • 10:15 am on Jul. 8, 2009
@erz #18
The admin interface of wp-Typography was designed to internationalization standards. As such, it may be localized by users. Providing the translations for the 40 languages for which hyphenation patterns are provided is beyond the scope of this plugin — and my skill set.
What German-related character replacements would you like to see?
In your “word-” example, which hyphen character would be correct in German? I assume it is not the minus-hyphen. Would it be the Em Dash?
The hyphenation patterns provided are the patterns previously developed for the TeX platform. The English patterns work quite well (finding 90% of possible hyphenation points with a 0% error rate). I can not speak to the quality of the other languages patterns. They were what was available, so they were what I used. I did include the ability to include individual hyphenation exceptions, but if a pattern is missing 50% of possible hyphenation points, this will not be an acceptable solution.
For German, I used the hyph-de-1996.tex pattern. You may find the hyph-de-1901.tex pattern provide better results. If you want to go through the trouble of formatting them for the PHP Typography project, you can certainly use this alternate pattern. I can walk you through the process (it is not trivial).
Widows are not protected uniformly. To protect justified text from a long word being pulled to the next line, there are 2 customizable settings at the wp-Typography admin page:
With which text widgets does this plugin not work? (If the text widgets are using WordPress functions that include the hooks for filtering, no plugin is capable of modifying their text.)
Jeffrey D. King • 10:19 am on Jul. 8, 2009
@Jean Chouinard #19
What RSS problems are you experiencing? Your comment is so vague, I have no starting place to fix your issue. Please be specific.
wp-Typography has built-in ability to handle the processing of feeds separate from normal content. I have already stripped out much of the typographic processing for feeds (because of the inability of feed readers to handle characters like the soft-hyphen or the zero-width-space characters).
Jeffrey D. King • 10:24 am on Jul. 8, 2009
@Dan Butcher #20
This is not a malfunction of the plugin, it is a malfunction of the browser. Those characters are zero-width-spaces that should enable wrapping after hard hyphens (not all browsers allow for this).
When a browser does not properly handle the zero-width-space character, it will often display a square or a question mark.
I know this problem occurs in IE6, and I have provided an option in the admin controls to inject JavaScript to strip out these characers in IE6.
If there is another browser that is choking on this character, I am unaware of it. Could you share which browser you were using when you saw these characters?
Thanks.
Jeffrey D. King • 10:26 am on Jul. 8, 2009
I have noticed that in a clean install of wp-Typography, many of the administrative default options are not properly set. This will be corrected in the next version (1.0 beta 5).
Dan Butcher • 10:27 am on Jul. 8, 2009
@Jeffrey #23
It was in Safari 4.0.1 in OSX (the latest version of the browser that was just released) – and it is a square that is displayed.
Jeffrey D. King • 10:46 am on Jul. 8, 2009
@Dan Butcher #25
I just checked in Safari 4.0.1 (Build 5530.18), and could not replicate the issue.
Does anyone else see errant zero-width-spaces handling as Dan describes?
Jeffrey D. King • 4:10 pm on Jul. 8, 2009
@erz #18
The “word-” thin space insertion bug you identified was corrected in version 1.0 beta 5
Gareth • 8:05 am on Jul. 9, 2009
Just about to try this, but before I do I think I should mention that Avira detected something when I was unpacking the archive:
HTML/ADODB.Exploit.Gen
I’m not sure what that is, but it seemed to be in several of the (language?) files.
Jeffrey D. King • 10:13 am on Jul. 9, 2009
@Gareth #28
I created each of the language files myself in a text editor. The only thing I can think of to which Avira might protest is the use of very large arrays, often with more than 20,000 patterns stored — to the point where TextMate and Coda struggle to edit these files.
Or maybe it doesn’t like some of the UTF-8 characters required for some language files?
I work on a Mac, so I am downloading Avira into a VM to see if I can reproduce the false positive. Thanks for the heads-up.
Jeffrey D. King • 11:26 am on Jul. 9, 2009
@Gareth #28
I have confirmed false positives with an Avira scan. The
cy.php,en-GB.php,es.php,ga.php,hr.php, andpr.phplanguage files trigger this issue. I have been unable to divine the cause. I have reported the false positives to Avira and provided them a copy of the files.Avira’s review of the faslse positives may be viewed here.
I have also tested the files in AVG, and am happy to report no false positives with their anti-virus solution.
Gareth • 12:12 pm on Jul. 9, 2009
Thanks for the remarkably fast response. I wasn’t too worried, but sense that some people might be put off (also, the beeps, and having to manually dismiss each of them, was a little tedious). Glad it isn’t a problem at your end.
Gareth • 12:16 pm on Jul. 9, 2009
On a different note, I took a quotation of this page with ‘Press This’, a little WP bookmarklet (../wp-admin/tools.php), and had an odd behaviour:
There are spaces in odd places, and I’m guessing they’re coming from the “potential” hyphens, the positions where hyphens could go…
Not sure why the bookmarklet is finding them, in Chromium (not Chrome), when the page itself renders without issues…
Gareth • 12:18 pm on Jul. 9, 2009
(It might happen in Chrome, too, and possibly in FF as well… I say “Chromium (not Chrome)” as I’m using Chromium, currently… and it is occasionally a little quirky…)
Jeffrey D. King • 12:31 pm on Jul. 9, 2009
@Jean Chouinard #19
I found and resolved the issue that was breaking RSS. It was addressed in version 1.0 beta 6.
Thanks for the help.
Jeffrey D. King • 12:38 pm on Jul. 9, 2009
@Gareth #32
We’ll call it a “feature”.
This is a known compromise that comes with hyphenation. The hyphenation feature works by inserting soft-hyphen characters at every possible hyphenation point. They are typically invisible, and should only show up at the end of a line if the word wraps.
Unfortunately, not every editor is smart enough to properly handle soft hyphens. Text copied from your web page will include soft hyphen characters. Some programs will display a space instead of a soft hyphen. Some may display actual hyphens. And it may break spell check even if the characters are displayed correctly.
If you want hyphenation on the web, you must use soft hyphens. If you use soft hyphens, other programs may not like copied text.
I actually copied text from my site a while back, and used it as text on the back of some Moo cards. It displayed fine on their site, but the cards where printed with spaces all over the place.
borisforconi • 11:36 am on Jul. 10, 2009
Hi guys ! First of all, awesome work.
Here’s the trouble I had :
My feed wouldn’t validate, I had an error that made me desactivate your whole process_feed() function, a shame for my readers!
Here is the error, returned while I tried to validate the feed :
phpTypography::require_once(php-parser.php): failed to open stream: No such file or directory
The file is here, It works like a charm online. There’s just this problem for feeds only.
Feel free to contact me for further details and tests.
Thanks a lot for your work.
Jeffrey D. King • 3:44 pm on Jul. 10, 2009
@borisforconi #36
That was corrected in the 1.0 beta 6 release.
I actually just published 1.0 beta 7, which includes a gaggle of improvements.
Jeffrey D. King • 3:55 pm on Jul. 10, 2009
We’ve found and remedied some significant bugs in the first 6 beta releases. I think 1.0 beta 7 is approaching a maturity ready for broader release.
Please let me know if you agree or disagree.
Dan Butcher • 5:56 pm on Jul. 10, 2009
found another bug: in this string of text:
…often–always?–judging…
thin spaces will be added around the first em-dash, but not around the second. I took out the question mark, and the spaces are added around both dashes. I changed ? to !, same thing: no thin spaces. I also tried quotes around around always, like this:
often–”always”–judging
and as I expected, the quote marks were changed to curly quotes, but no spaces were added around either dash.
So, it appears that whatever filters you’ve created to add in thin spaces don’t account for the possibility of punctuation marks following or preceding the dashes.
Gareth • 3:25 am on Jul. 11, 2009
This:
has an odd effect on post titles…
<a href="http://www.scribeoflight.org/b/2009/07/07/things-seen-on-the-internet-6/" rel="bookmark" title="Permanent Link to Things Seen on the Internet #6">Things Seen on the Internet #6</a>Look at how that span class code gets caught inside
title=”…”
Breaks the HTML…
But oddly, it only seems to affect post titles viewed on main pages, category pages, or on search results; post titles in the posts themselves seem fine…
Gareth • 3:27 am on Jul. 11, 2009
Oops…
The “this” is this:
Wrap digits [ 0123456789 ] with .
in the CSS hooks section…
Ack! It didn’t keep my HTML… gra…
Sorry, I’m not really a programmer. I’m not very good at giving gracefully presented feedback on coding issues… Hang on!
Gareth • 3:41 am on Jul. 11, 2009
Mmm…
So:
When this is selected in the settings…
– Wrap digits [ 0123456789 ] with
That span class code gets put into the title of any posts containing digits\numbers… But then the code that has been placed into the post titles gets carried through to this code:
[a title=“Permanent Link to {post title}”]{Post Title}[/a]
as in…
[a title=“Permanent Link to Things Seen on the Internet #5″>Things Seen on the Internet #5[/a]
becomes:
[a title=“Permanent Link to Things Seen on the Internet #[span class=“numbers”]5[/span class]“>Things Seen on the Internet #[span class=“numbers”]5[/span class][/a]
[ =
Mangled, basically, as the HTML in the title goes all funny…
The title in the post itself is fine, of course, as in the post itself the post title (of course!) doesn’t act as a link to the post… In categories, searches, and on the main blog page, however, the post title is also a link, and that span class code getting buried in the link HTML is… problematic…
Is this what is breaking the RSS?
Easy enough to change the code so it doesn’t apply span class to titles?
Also, what exactly does all the span class stuff do? They’re applied to numbers, quotation marks… but what are they doing??
Thanks for the plug-in. Hope the feedback helps.
Gareth • 3:44 am on Jul. 11, 2009
This one, too:
http://www.scribeoflight.org/b/2008/11/18/and-ill-whisper/
I’m turning off all the CSS hooks, for now…
Jeffrey D. King • 6:24 am on Jul. 11, 2009
@Gareth #40 – 43
Your theme is using the wrong function to provide the title attribute in your heading links. See comment #15.
Gareth • 7:56 am on Jul. 11, 2009
Ah, okay… It is a theme I found… Neoclassical…
I’ll tweak the code…
What does this mean:
“Now, thank fully you’ve enabled id and class black lists, so it’d be easy enough to fix this. But I figured you’d want to know about the issue in any case.”
What are the id and class blacklists? And how could I use them to solve the problem?
Thanks again for replying so quickly.
Gareth • 8:05 am on Jul. 11, 2009
Sorted now. Very simple… I’m still not sure if I need to use the blacklists, but I’m interested to learn about what they do – all this fiddling has reminded me of how little I actually understand about HTML, PHP, and the mechanics of the internet, generally.
Jeffrey D. King • 10:13 am on Jul. 11, 2009
@Gareth #45
You should not need to use the blacklist options. In the wp-Typography settings page, there is a field that let’s you list HTML tags that should not be typographically processed.
If you were unable to fix the theme, you could have listed the
h1andh2tags in that field, but that would have turned off any typographic processing in your titles (not just in the link).erz • 12:49 am on Jul. 12, 2009
Regarding the cut’n paste problem where the soft hyphens confuse spell check in word processors etc: there used to be a toggle butten one could enable in the old hyphenate-plugin. I always use that before copying text into my word processor. It also allows for my readers to decide whether they want to hyphenate or not, as I strongly believe in leaving as many layout decisions as possible in the hands of the reader. Easy remedy. I don’t know whether it’s easily implemented for the new plugin though.
pico • 5:36 am on Jul. 12, 2009
Hi! This plugin is great. I would like to make a new hyphenatin rule, Hungarian actually. But I can’t figure the process out… Would you help me?
Many thanks.
Jeffrey D. King • 12:22 pm on Jul. 12, 2009
@erz #48
In the previous wp-Hyphenate plugin, there was an administrative option that allowed for HTML encoded soft-hyphens. This was not a user option. However, the user could – with this option – copy from the source code and preform a search and replace for ­ to remove hyphenation. This was not a viable solution to the copy and paste issue addressed in comment #35. It also caused errors in the plugin that were difficult to resolve.
There is another feasible option for user-side control. If you serve hyphenated text with this plugin, you could create a JavaScript function users could trigger with a click to strip soft hyphens from the page. I don’t plan on incorporating such a feature into this plugin, but someone could develop such a solution for their site.
Jeffrey D. King • 12:35 pm on Jul. 12, 2009
@pico #49
Hungarian hyphenation patterns can be derived from this file.
wp-Typography uses a derivative of hyphenation patterns developed for the TeX platform. If you look in the source code for wp-Typography at /php-Typography/lang_unformatted/template.txt, the specific needs of language specific hyphenation patterns are detailed.
The reason I did not convert the Hungarian patterns for use with this plugin is that the Hungarian patterns number over 62,000. The automated process I set up to convert files stopped working efficiently for files with more than 20,000 patterns.
If you can get the Hungarian patterns formatted correctly, I’d love to include it with the 40 languages already represented.
Matt Wiebe • 4:10 pm on Jul. 12, 2009
Hey Jeffrey: Just a quick note to say thanks once again for your fantastic work on this plugin, and that beta7 does indeed clear up the issue I raised in the category listing.
Jeffrey D. King • 4:20 pm on Jul. 13, 2009
@Dan Butcher #39
The newly released beta 8 should address your thin-space issue.
Note that your example “often-always” will not be recognized for en or em dash replacement, as it can not be distinguished from a hyphenated word like “mother-in-law”.
To manually override, you can insert two dashes, or type
–Otherwise, it should work well for your example.
Peter Gasston • 4:48 am on Jul. 14, 2009
Have just installed Beta 8 (although it still says Beta 7 on the Plugins page).
CSS Hooks are operating on the title attribute of links:
title=”HTML 5, CSS 3, DRM <span class=”amp”>&</span< fonts”<
This seems to be the case for numbers, ampersands, and acronyms.
Pavel • 6:00 am on Jul. 14, 2009
Hi
Thanks for plugin! Is there opportunity to turn it off for RSS completely? It’s much more of headache in this case.
Dan Butcher • 7:31 am on Jul. 14, 2009
@Jeffrey #53
Yes, Beta 8 does solve the issue of thin spaces and punctuation marks.
Regarding the often-always, that actually had an 2 dashes between it – my point in including that in the example text was to show that the first dash (between 2 words) was converted to the appropriate typographic dash, while the second dash (between a mark of punctuation and a word) was not converted.
Dan Butcher • 7:46 am on Jul. 14, 2009
FYI: I uploaded beta 8, and I know it is the new version, but the plugins page on my wp site lists it as beta 7.
Peter Gasston • 8:18 am on Jul. 14, 2009
Suggestion: would it be better to use some kind of bug tracking software for us to report with?
Jeffrey D. King • 8:51 am on Jul. 14, 2009
@Peter Gasston #54
Your heading links are broken because of an error in your theme (not the plugin). The FAQs section outlines how to resolve broken page title links.
Jeffrey D. King • 12:22 pm on Jul. 14, 2009
@Peter Gasston #58
I just noticed your website is http://broken-links.com. In light of your previous comment, I got a little chuckle.
Jeffrey D. King • 12:23 pm on Jul. 14, 2009
@Pavel #55
What problem are you having with RSS feeds? At this point, processing is pared down to just basic character replacement (i.e. dashes and quotes).
There was an earlier issues with broken RSS feeds, but that has been resolved since beta 6.
Pavel • 1:24 pm on Jul. 14, 2009
@Jeffrey D. King #61
Sorry, it wasn’t about RSS (but still, think it’d be nice to have separate settings for blog and RSS), it was about tags and RSS titles as seen after clicking on RSS icon in address bars. That’s it with CSS hooks on:
Pavel • 1:26 pm on Jul. 14, 2009
<link ... title="» <span class="numbers">6</span> Ave Comments Feed" ...>Jeffrey D. King • 1:35 pm on Jul. 14, 2009
@Pavel #63
It appears that you took this from the
<head>section of your blog. You seem to have the same mal-formed theme issue described in the FAQs, except your theme uses the function in the page head (as opposed to the heading link as discussed in the FAQ).If you are able to find the offending
the_title()function and replace it as instructed in the FAQs, the problem should go away.Pavel • 1:59 pm on Jul. 14, 2009
Yes and no. I found the place where links are generated. It is wp-includes/general-template.php:1499 and it is not the theme. The code called looks like esc_html( get_the_title() ).
I’m using 2.8 and Thematic Theme Framework.
Jeffrey D. King • 2:35 pm on Jul. 14, 2009
@Pavel #65
Where did you copy this:
<link ... title="» <span class="numbers">6</span> Ave Comments Feed" ...>?Can you provide a link? My RSS feeds are clean, even when the post title contains characters that are normally wrapped in CSS hooks.
Jeffrey D. King • 2:44 pm on Jul. 14, 2009
@Pavel #65
Alright, I am seeing it now. Not on the main feed, but on secondary feeds. This is a bug in the WordPress core. I just filed a bug report with WordPress, and their progress in addressing it can be followed here.
Because of the way WordPress core is written, you can not turn off feeds. You can only turn off headings.
This functionality is already built into wp-Typography. You can enter
h1andh2into the “Do not process the content of these HTML elements:” field in wp-Typography’s administrative options.Pavel • 11:52 pm on Jul. 14, 2009
Thanks, Jeffrey. I’ll just turn off CSS hooks for now. And we’ll wait for WordPress guys. Cheers.
Gareth • 1:49 am on Jul. 15, 2009
My RSS feeds are broken, again, I think.
And I’ve been hacked :-(
Have viagra spam in my Google search results and in my RSS when viewed on Google Reader… but the site itself is fine.
Don’t know if it is connected to plug-in or not… Frustrating, though.
Jeffrey D. King • 7:00 am on Jul. 15, 2009
@Gareth #69
Typically, spam injection in your HTML code occurs because of a vulnerability with shared hosting. Your host would probably be very interested in this issue so they can resolve it.
It could also occur if you use an insecure user login for WordPress, or allow anyone to register as an admin, but users of this plugin are smarter than that.
It is most likely an FTP or SSH exploit through your host. wp-Typography does not have any interaction with user account controls.
Gareth • 7:37 am on Jul. 15, 2009
The odd thing is, it doesn’t look like it is in either the HTML or the PHP. I can’t find where it actually *is*, merely can see the effect of it in Google search results and on my Google Reader page. The RSS also goes to my Twitter, when I post, and the spam doesn’t get there… And when I look within the code of a page that seems to be “infected”, there is nothing — no out of place script, no strange tags, no hint of anything that might be causing issues.
All very odd.
I’ve started http://www.scribeoflight.org/erhebung/ as a replacement, perhaps permanent… Gives me an excuse to redesign.
Jeffrey D. King • 7:54 am on Jul. 15, 2009
@Gareth #71
My guess is that it is in your footer.php file (although it could be in the header.php or index.php.
Often, these injections will be proceeded by a large amount of whitespace, so they are hidden far off to the right of the screen when you view source. Try viewing source, scroll all the way right, and then scroll up and down the page. You will probably see the injected HTML there.
baron • 2:20 pm on Jul. 15, 2009
Works great, thank you
Dan Butcher • 3:07 pm on Jul. 15, 2009
Kudos on the quick release of the first non-beta version (though I suppose it might not have seemed quick to you!). I’ve enjoyed watching a bit of the development process as you have taken feedback and made changes in each release.
Thanks for your hard work; the plugin is great!
Jeffrey D. King • 3:47 pm on Jul. 15, 2009
@Dan Butcher #74
Thank you greatly. The plugin is significantly improved because of your (and others) contributions.
Crankietech • 3:12 am on Jul. 16, 2009
Jeff, just activated Typography and noticed that some forward-slash (“/”) characters were inexplicably being turned into division signs (“÷”) even though the option to convert those symbols was turned off.
In fact, I see it here on your page in these comments in #43 (“http://www.scribeoflight.org/b/2008÷11/18/and-ill-whisper/”). Although, maybe you have it enabled. I don’t, though.
Jeffrey D. King • 10:42 am on Jul. 16, 2009
@Crankietech #76
Thanks for the heads up. I fixed both issues you mentioned in version 1.0.2. The update should be pushed out by WP soon.
Duane Poncy • 4:32 pm on Jul. 16, 2009
Works great with default settings, but when I try to save my customizations I get an “Error! options page not found” message.
Jeffrey D. King • 12:11 am on Jul. 17, 2009
@Duane Poncy #78
I was unable to replicate your issue. Could you answer two questions to help me further investigate?
I took a stab at simplifying the admin URL in the just released version 1.0.3. Please tell me if it cured your problem. Since I was unable to replicate the issue, I have no idea if this simplification was helpful.
Tom Stone • 7:25 pm on Jul. 21, 2009
In “Intelligent Character Replacement” it doesn’t seem to function properly with “Transform fractions [ 1⁄2 ] to pretty fractions [ 1⁄2 ].” The sup– and sub-tag does not appear. Instead the 1 and the 2 each get wrapped in a numbers-class.
Also – In “Space control : Values and units”, I can’t really figure out how to write the abbrevation for square meters. Should I write the sup-tag in that field?
I.e: m(sup)2(/sup)
JUICEDaniel • 8:31 am on Jul. 22, 2009
I’m not sure if it’s the plugin but when I use it, most of the time (strangely not always) my rss-feeds don’t work anymore (I have a German blog). This error then occurs:
XML parsing failed: syntax error (Line: 123, Character: 48)
Reparse document as HTML
Error:well-formedness constraint: entity declared
Specification:http://www.w3.org/TR/REC-xml/#wf-entdeclared
–> Could this be produced by wp-Typography? This would be very sad since I really love your plugin (it’s what I was looking for for months!)
Jeffrey D. King • 10:24 am on Jul. 22, 2009
@Tom Stone #80
If you have the option enabled to style numbers, wrapping in class “numbers” is expected.
Surrounding spaces can interfere with fractions. For fractions to be styled properly, they must be preceded by a space and followed by (optionally ordinals and/or punctuation) and a space.
The square-meter unit is already recognized and glued to it’s units if the “Value and Units” option is selected. You do not need to manually enter it in.
Jeffrey D. King • 10:49 am on Jul. 22, 2009
@JUICEDaniel #81
It appears that the RSS feed is being invalidated by inclusion of a HTML character (such as
&).To help me troubleshoot, it is appreciated if you would recreate the error and validate the feed at http://feedvalidator.org/. Please copy the content and send it to me as a text file or pdf at jk@kingdesk.com.
Thanks.
Jeffrey D. King • 2:31 pm on Jul. 22, 2009
@JUICEDaniel #81
Thank you. The plugin was encoding HTML characters, such as
ö, which was perfectly valid for HTML, but was not valid for XML feeds. As of version 1.1, special HTML characters de-encoded for XML feeds.JUICEDaniel • 7:24 am on Jul. 23, 2009
Thanks, it seems to work fine now. What exactly have you changed to fix this? I’m just curious to know what caused this error.
Doc4 • 7:54 am on Jul. 23, 2009
The widows feature is fantastic but like the wi-dont plugin they create widows where widows don’t exist. For example:
Tutorial: Making the Flutter
Date Field work for you
Becomes:
Tutorial: Making the Flutter
Date Field work
for you
I’ve noticed this only happens with sIFR Flash replacement of fonts activated. Any thoughts would be greatly appreciated.
http://www.doc4design.com
Jeffrey D. King • 8:22 am on Jul. 23, 2009
@JUICEDaniel #85
The plugin class uses two main methods to do the heavy lifting:
process(), andprocess_feed()I ran the content returned from
process_feed()through thehtml_entity_decode()function to remove any HTML specific characters that XML may not recognize.JUICEDaniel • 9:01 am on Jul. 23, 2009
Thanks (now I saw your email, I haven’t checked them first, sorry)!
Jeffrey D. King • 5:13 pm on Jul. 27, 2009
@pico #49
A Hungarian language pattern is included in version 1.5
James John Malcolm • 1:09 am on Jul. 29, 2009
Thank you very much for creating this plugin!
Also: properly formed html5 works too, not just xhtml :)
Jeffrey D. King • 7:25 am on Jul. 29, 2009
@James John Malcolm #90
Yes, it should work well with HTML5, provided it is formatted in the xHTML variant, with lowercase tags, quote enclosed attributes, and paired closing tags.
The HTML variant, where paragraphs and list items are not required to be closed and tag names are uppercase may have unexpected results.
Daniel • 8:46 am on Jul. 29, 2009
Great Plugin. It works like a charm on my self-hosted WordPress site http://www.heiniger-net.ch
Next I wanted to try on my self-hosted WP-MU site http://blog-net.ch — and there it wouldn’t work. Saving Options resulted in the error message “Fehler! Einstellungsseite nicht gefunden.” (or “Error! Options page not found.”)
Any idea of what that could be? Would it be possible to produce a WP-MU-compatible version of this great plugin?
Thanks a lot
– Daniel
Jeffrey D. King • 10:27 am on Jul. 29, 2009
@Doc4 #86
I have not seen this behavior, and I am unable to reproduce it. My guess is that the non-breaking space in the font you use is a few pixels wider than the standard space. If that is combined with a very tight fix-width box, it could add enough width to cause the last word to wrap (thus pulling the second word with it because of the attached nbsp)
Jeffrey D. King • 1:16 pm on Jul. 29, 2009
@Daniel #92
I have attempted to make the plugin MU compatible. Would you mind trying it and letting me know if it works? You can download the MU beta at: http://wordpress.org/extend/plugins/wp-typography/download/
The version you want is
1.7.1-beta-MUIf it works properly, please let me know so I can release it more broadly. Thanks.
James John Malcolm • 3:43 am on Jul. 31, 2009
@Jeffrey D. King #91
True, you have to form it like xhtml, but not actually send it as xhtml (viz. the mime-type).
Peterchen • 11:56 pm on Aug. 3, 2009
Jeffrey,
this ist really great stuff. I wonder if I can change the characters used for the transformation of the straight quotes, as those used by you are not correct in german. Allowed are:
inverted french
(0187 leading, 0177 at the end)
“9966″, but with 99 at the height of a comma
(0132 leading, 0147 at the end)
Could you give me an hint?
Or do you even plan to make the characters configurable, as I think, this is a common problem …
Jeffrey D. King • 6:03 am on Aug. 4, 2009
@Peterchen #96
Double low 9 quote handling is already built in. Type two adjacent commas, and they will be replaced with your desired character. Double right and left angle quotes are also handled.
,,becomes „<<becomes «>>becomes »The double left angle quote is admittadly kludged, but that is a limitation of HTML, as the < character is prohibited for normal use (it indicates the beginning of an HTML element). Two < characters may work when input into WordPress’ wysiwyg editor, I have not tried… I work directly in the code editor.
Dirk Hillbrecht • 2:37 am on Aug. 8, 2009
Jeffrey,
(@97)
for German typesetting, you would just take your code you already have for replacing the “Double quote”-character (“) with opening and closing quotation marks and take other signs for them. The closing quotation mark may stay as it is, the opening one would just become the “double comma”-character.
I programmed this years ago in a Java program and made it just configurable: “Quotation style: (1) English quotation marks, (2) German quotation marks, (3) French guillemots, (4) Reverse French guillemots”. Then, the engine can replace the input with whatever characters the writer wants to have.
Best regards,
Dirk
Jeffrey D. King • 3:09 pm on Aug. 12, 2009
@Dirk Hillbrecht #98
At this point, the plugin has been downloaded in more than 80 countries, and 40 languages are supported. I am not prepared to try to convert the
"character to language specific rules for each country’s idiosyncrasies. There is – already provided – a very simple way to mark angle and comma quotes (in a way that degrades gracefully).I have tested the instance where
<<is input to the WordPress wysiwyg editor, and it is properly converted to«, further simplifying the issue. If you use the wysiwyg editor, you do not need to escape those characters.JUICEDaniel • 3:20 am on Aug. 13, 2009
But maybe English, French and German would be a nice additional option. Think about it: Much more Germans would download and love your plugin just because of that, I’m sure because there is no working plugin right now but still a great longing for that feature.
By the way: http://www.juiced.de/blog/2009/08/13/die-5-coolsten-wordpress-plugins-teil-1-wp-typography/ (German)
Fabio • 7:17 am on Aug. 14, 2009
I have a problem with the Italian patterns, which do not seem to work. The plugin is installed correctly and I can get the hyphenation work (obviously with the wrong hyphenation) if I select the English or French file, but if I switch to Italian nothing happens.
Thanks.
Jeffrey D. King • 10:02 am on Aug. 14, 2009
@Dirk Hillbrecht #98 & JUICEDaniel #100
You Germans are persistent. Well, persistence pays off… Check out version 1.10, now available for download. I think you will be happy.
Jeffrey D. King • 10:04 am on Aug. 14, 2009
@Fabio #101
Try the newly released version 1.10, and let me know if Italian hyphenation improves. The hyphenation patterns for Italian are less developed than other languages, but the results were stunningly unimpressive. I made a few changes that – hopefully – will correct that situation.
Thanks for your feedback.
Jeffrey D. King • 10:05 am on Aug. 14, 2009
If you haven’t already, I’d greatly appreciate it if you clicked through to the wordpress.org plugin directory and gave wp-Typography a 5-star rating. Thanks!
Jay • 11:20 am on Aug. 14, 2009
Have you considered adding CSS hooks for things like prepositions (of, for, from, to), articles (the, a, an), and conjunctions (and, but)?
Jeffrey D. King • 11:42 am on Aug. 14, 2009
@Jay #105
I have not considered that. I don’t see its usefulness off hand, but I am open to convincing.
Jay • 3:56 pm on Aug. 14, 2009
I don’t think I’d personally use those hooks, but I know some people like to style those words differently in big headings — lower case italics among small caps, for instance.
Fabio • 11:38 pm on Aug. 14, 2009
@Jeffrey #103
I am on 1.11 and it still does not work. i did some testing reducing the test area and I am able to get the hyphenation only for one single pattern, every word starting with “pre”.
Thanks
Fabio
Jeffrey D. King • 10:11 am on Aug. 17, 2009
@Fabio #108
The wp-Typography plugin uses hyphenation patterns that were created for the TeX publishing platform.
Some languages have very complete pattern sets. Others have less developed patterns. It appears that the pattern set we are using for Italian is not as complete as I would like.
I was able to identify and resolve an issue where some multibyte characters were causing words not to be hyphenated. As such, Italian hyphenation should now be implement the complete pattern set. But hyphenation will only be as good as the pattern included.
J. Mayer • 6:03 pm on Aug. 27, 2009
Is it possible to use this plugin to remove double spaces between sentences for chronic double spacebar whacking fools like myself? I often end up with long posts where at least one line of a paragraph begins with a space.
It’s an awful habit.
Tor • 11:20 pm on Aug. 28, 2009
Made Kimili Flash Embed Plugin (http://kimili.com/plugins/kml_flashembed) stop working, after a day trying to figure out why my site didn’t work anymore, I deactivated WP Typography.. and voila…
Jeffrey D. King • 11:31 pm on Aug. 28, 2009
@tor #111
see comment #4 above.
Jeffrey D. King • 11:14 am on Aug. 31, 2009
@J. Mayer #110
For normal spacing, standard HTML handling automatically collapses spacing to a single space and removes spaces from the beginning of blocklevel HTML elements.
However, if a no-break space is added adjacent to a normal space, you may get unexpected results.
As such, I have added a “collapse spacing” feature to the next version of wp-Typography. As this will fix a minor issue, it will be turned off by default. But if you want it, it will be there.
Michael • 3:07 am on Sep. 24, 2009
Hi Jeffrey
I can’t activate the plugin and get this error-message:
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 76 bytes) in
/var/www/web451/html/sinn/wp/wp-content/plugins/wp-typography/php-typography/lang/de.php on line 12917
I checked the file at the giving line, but that gives me no hint at all.
I have 48M php-memory (more than with my old provider, where the plugin worked).
What can I do?
Help badly needed.
Michael
Jeffrey D. King • 9:21 am on Sep. 24, 2009
@Michael #114
wp-Typography has successfully been used with as little as 4M of memory. So 48 should be more than enough.
Unlike most PHP errors, this line number is not indicative of an error in the code, just where the memory limit was exceeded.
I would try two things:
Michael • 1:27 pm on Sep. 24, 2009
Hi Jeffrey,
This did the trick for me. Thanks a lot.
Nextgen was the baddie. I disable the ones I thought might be the mem-hogs one by one. After disabling nextgen wp-typography workes as it should. I could enable nextgen afterwards without problems.
The mem-bar in wp-system-health turns red now, but I am fine with that. All the plugins I want are running now.
Kudos!
(and 5 * of course)
Kristof • 9:37 am on Sep. 26, 2009
Please note that if you select “Wrap acronyms (all capitals) with ” it will also insert code into NAV links (into the title tag and wrapping the text link) causing the link to break onto a new line.
Example: Nav link was “FAQ”. The plugin interpreted it as an acronym and inserted a title tag and wrapped “FAQ” with the code. This created an unwnated line break.
Another example was a link “POP Design”. Same thing happened. “POP” was wrapped and “Design was broke to a new line.
This is a great plugin but would suggest that users could add some sort of Start and End comment code around the section of the site they want the plugin to manage. This obviously defeats some of the purpose of having a plugin but would allow more control.
Thanks.
Uwe • 7:30 am on Sep. 28, 2009
I’d love a blacklist of phrases never to be wrapped and treated like digits & units, e.g. names, order codes, telephone no., song titles …
How could that be implemented? Maybe some hints for a hack of your plugin?
Thanks!
Mathias • 4:43 am on Sep. 30, 2009
Hi there, thanks a lot for this very handy plugin which improved the look of my weblook a lot.
I would like to suggest a feature regarding the use of multiple languages in one weblog. I use English and German. In this case the hyphenation works only for one language correctly, as specified in the options.
The best solution for this would be to automatically detect the language of each entry or paragraph and apply the appropriate hyphenation pattern. I know that Google provides an API for language detection.
The other solution would be to somehow mark the language of each entry and use this setting for the hyphenation. But that seems more complicated from the user’s perspective.
Thanks for considering, Mathias
Ghusse • 3:20 am on Oct. 6, 2009
Hi,
I’m using your plugin and I noticed a bug when I’m writings things like
I’m writing 2 simple quotes but I don’t want the plugin to transform them into curly ones.
Secondly, I have an issue with the double french curly braces : I’d like to have insecable space «[here]and[here]». Is it possible ?
Jérémie • 3:45 pm on Oct. 8, 2009
@Ghussen #120:
Those single quote should be curly ones (aka real apostrophe) in French. In fact, except for computer code and such, there is no ‘ in French, only ’.
But I do second the non-breaking space around every double punctuation (in a French context): before :;?!» and after «. If those could have a specific CSS class, that would be even better :)
Jérémie • 3:46 pm on Oct. 8, 2009
Oups, it also applies to comment. I meant, in French there’s no single quote, only “curly” ones.
Ghusse • 2:32 am on Oct. 9, 2009
@Jérémie
I agree that, in French, quotes should be curly ones. But the plugin replaces them by the characters “”. That’s a bug.
And it will be nice if the non-breaking spaces could be added before all double punctuation (not around, but just before)
Jérémie • 11:47 pm on Oct. 20, 2009
Yup, sorry about that. As explained in the next sentence, I meant: non-breaking space before :;?! – »— (hope I don’t forget any) and after –«—
If I may push it further, \”foo\” should become « foo » and \’bar\’ should become “bar”. \<> is ok, but seldom used and somewhat a hassle to use :)
Jérémie • 11:49 pm on Oct. 20, 2009
Having issues with the escaping. I meant double straight quotes becoming « » and single straight quotes becoming “” (again, for French).
If needed, one could look at the French localized Textile code (should be on the Textpattern forum archives), it does everything needed codewise.
Ghusse • 4:21 am on Oct. 21, 2009
Single quote should be replaced by a single curly quote in all cases (apostrophe).
Jeffrey D. King • 10:12 am on Oct. 21, 2009
@Kristof #117
Please see this FAQ to fix your theme. The error occurs because your theme uses the wrong WP function.
Jeffrey D. King • 10:17 am on Oct. 21, 2009
@Uwe #118
Blacklists of words and phrases from typographic handling is not planned to be included in this plugin. It would require a substantial rewrite and add considerable overhead.
You can use the “class” blacklist option already included to accomplish this on a per-occurrence basis. For example, you could blacklist the “noTypo” class, and wrap the text you do not want processed in
<span class="noTypo">foo bar</span>.Jeffrey D. King • 10:22 am on Oct. 21, 2009
@Mathias #119
Automatic language detection would be a neat addition. It was considered and tested, but I determined it unreliable. HTML provides a means by which you can communicate the language contained within an element, and I tried to leverage that standard markup.
The main problem was the plugin could only access the HTML markup stored in the database, so anything hardcoded into the theme – where much of the language information is properly located – is not available.
This along with other issues proved the solution would have been unreliable.
Jeffrey D. King • 10:28 am on Oct. 21, 2009
@Ghusse & @Jérémie #120 – 126
I have revised the plugin to be much more customizable in this regard. I hope you find these changes helpful. Version 1.15 should be live later this afternoon.
Ghusse • 10:55 am on Oct. 21, 2009
@Jeffrey Thanks, I’ll take a look !
Kaiser • 9:33 am on Oct. 22, 2009
Hi,
just a question about filtering the_content…
for pods (http://podsDOTuprootDOTus), which makes other content then wp-posts & –pages possible, it won´t work, because you don´t call the content. An easy work-around would be to make a “pods-filter”, which is simple a php-function.
My Question: Could/Would you make one avaible?
Thanks a lot! (I use it anyway for ‘conventional’ homepages, but hope that it will integrate with my other projects too. Thanks a lot again!!)
Jeffrey D. King • 10:33 am on Oct. 22, 2009
@Kaiser #132
I think you may be approaching this the wrong way. Pods appears to be an extensible CMS built upon WordPress. Instead of trying to get each plugin conform to Pods, perhaps you should get Pods to conform to existing WordPress plugins.
For wp-Typography, you should make sure any Pods functions that display content called from the db apply the proper content filters. The function for this is
apply_filters(). wp-Typography hooks into the following filters (which should be applied as appropriate):Applying this to Pods would not only make it compatible with this plugin, but a whole host of plugins.
frank • 4:09 pm on Oct. 26, 2009
hi & thanks for your plugin.
1) are you sure the section about broken page title links in the faq is correct? it says that the correct way to do it would be using the_title_attribute (and not the_title), but in the example provided there it’s just the other way round!?
2) i’m having a similar problem the #16 above (i think, at least) – i want to wrap those initial quotes in a css class and wp-typography keeps rewriting the title-tags, because they’re written not from the_title or the_title_attribute, but from within wp_list_pages (in my case). you can see an example of the generated html on my site (left sidebar/header, “best of”-link). is there any way to fix this (other than turning that feature off completely)?
thanks in advance,
~ f.
Daniel • 1:38 am on Oct. 27, 2009
Hi and thanks for the plugin.
I just found out, that your plugin does not work in Opera! not even in version 10.
Could you please have a look at this issue?
Thanks!
Jeffrey D. King • 8:28 am on Oct. 27, 2009
@frank #134
wp_list_pages()is a little bit different than #16 above. There, the HTML elements were unescaped, breaking the visual display. Your problem is thatwp_list_pages()escapes HTML elements (instead of stripping them). Fortunately, this does not break the layout, but it is undesirable. I have reported this bug to WordPress, and the progress for resolution can be followed at WordPress Trac. If you’d like to see this resolved, a supporting comment on Trac would be helpful.Jeffrey D. King • 8:53 am on Oct. 27, 2009
@Daniel #135
I was able to identify a bug that is new to Opera 10 on Windows (Mac works fine). It does not properly display the zero-width spaces used to force line breaks. Wherever a zero-width space occurs, it displays an ugly box. I have reported the issue to Opera’s bug reporting service.
For now, if this is an issue for you, you may disable all the options in the “Enable Wrapping” section of wp-Typography’s admin page.
Daniel • 8:21 am on Nov. 5, 2009
@Jeffrey
Thanks for the quick reply and thanks for reporting it to Opera. It seems, the problem is not only a Windows issue, same thing here on a Mac (OS X 10.6.1, Opera 10.01). I disabled wrapping for now.
Cheers,
Daniel
KK • 3:12 am on Nov. 10, 2009
Hi there, we just implemented this plug-in on our site and I discovered that there isn’t any hyphenation support for Norwegian.
I was wondering if I could either be allowed to implement it for you you or request it implemented?
Kaiser • 10:33 am on Nov. 10, 2009
@Jeffrey (see #132/#133): first thanks for your answer, but i´m simply not that good in php. i found the following in your class-wpTypography.php on Line
637: remove_filter(‘the_content’, ‘wptexturize’);
615: add_filter(‘the_content’, array(&$this, ‘process’), 9999);
the way to get pod-items (text like the content, titles, etc.) is the following:
get_field(‘excerpt_txt’);
?>
i should now do something like or am i completely wrong?
Jeffrey D. King • 11:22 am on Nov. 10, 2009
@KK #139
I found a Norwegian language file I was able to make work. I just pushed version 1.18 – which includes this file – and it should be available for download within 15 minutes.
A word of warning: the pattern file has over 30,000 patterns (6 times larger than the English file). This will result in slower performance.
Jeffrey D. King • 11:34 am on Nov. 10, 2009
@Kaiser #140
Try this for general content:
And try this for headings:
KK • 2:23 pm on Nov. 10, 2009
Thank you, we’ll implement it and see how it goes
Caio Costa • 7:25 am on Nov. 11, 2009
Hi. I’m having some problems with the title attribute in this page: http://comeutudinho.com/2009/10/vende-se-dentes/ . Two squares appear after the dash, and I don’t know what I’m doing wrong. I’m using wp_title() and the problem still occurs even if I disable the hyphenation.
By the way, that’s a great plugin. ;)
Jeffrey D. King • 8:55 am on Nov. 11, 2009
@Caio Costa #144
In WordPress themes, title attributes should not be generated by
wp_title(). You should usethe_title_attribute().See this FAQ for more information.
Kaiser • 9:15 am on Nov. 11, 2009
@Jeffrey: thanks for your help. i asked the same question at the pods forum and now got it running. too beautiful!! i simply love wp-typography and pods!! wp at it´s best!
just to leave this here in case someone got the same question: (it´s for a template.php-file). inside the pods-”loop” just add
* $pods_pretty = new wpTypography(); (only needed once! for all fields)
* $pods_name = $Record->get_field(‘name’);
* $pretty_name = $pods_pretty->process($pods_name);
then echo $pretty_name where you need it.
Kaiser • 9:55 am on Nov. 11, 2009
One more thing: I really LOVE the new diacritics-feature. Could you please!!! bring us some place or adress, where we could drop a line, so that you get more words. For e.g. Names are some never ending story:
“Aron”=>”Áron”,
“Laszlo”=>”László”,
“Rene”=>”René”,
etc. (could be some sort of endless list :)
Kaiser • 10:21 am on Nov. 11, 2009
another thing i forgot to mention: in german-language (austria, switzerland, germany) you got compound words. for e.g. you don´t write “car driver” you write “Autofahrer” (car = auto; driver = fahrer). And when you have two compund subjects starting or ending with the same single subject, you don´t repeat them. You just use a dash to repeat the subject. For e.g. “Auto– und Busfahrer” (car and bus driver). The Problem with wp-Typography in this case is, that the short dash get´s replaced with a long dash, which looks pretty strange & ugly.
One possible sollution would be to just make different options out of the single hyphens-option, so we could deactivate this and keep the rest. thanks for listening!!
Caio Costa • 7:14 am on Nov. 12, 2009
@Jeffrey Great! I knew I was missing something. Sorry I didn’t get to the FAQ before asking.
KK • 5:04 pm on Nov. 18, 2009
Been testing the plugin with Norwegian hyphenation and it works like a charm. Sadly though it seems like we won’t be able to use it after all as it seems like we’ll be going to use a server running php4, not 5 :/
Thank you for implementing Norwegian anyway, I will probably use it at some other time.
Patrick • 12:26 am on Nov. 27, 2009
Hi and thanks for this great plugin. I am a bookmaker and I´m preparing a web-site for my business – so I am happy about a plugin that manages professional typography.
But I have a little problem concerning the plugin. I´m using the plugin wp-columnize and have inserted the following css-code as proposed on the authors homepage to manage the columns (http://www.martinish.com/blog/2008/12/wp-columnize/):
div.column-sect {
clear: both;
display: inline-block;
overflow: auto;
}
div.post-column {
display: inline;
float: left;
margin-right: 18px;
text-align: justify;
width: 45%;
}
It seems to conflict with your plugin. Maybe you can give me a hint concerning this. Does it work with div elements?
Thanks!
Patrick
Jeffrey D. King • 9:56 pm on Dec. 1, 2009
@Patrick #151
Nothing in the provided CSS will cause wp-Typography to fail. I am not sure what the conflict is. What misbehavior are you observing?
Kaiser • 6:46 pm on Dec. 19, 2009
@Jeffrey: Do you consider some sort of form to let users extend your diacritics-feature?
Jeffrey D. King • 7:54 am on Dec. 22, 2009
@Kaiser #153
The diacritics feature may be extended in one of two ways:
wp-typography/php-typography/diacritics/
$diacriticLanguagevalue with that of the new language.$diacriticWordswith array values of the new language specific rules.A piece of advice: watch the order of your rules. If you first declare a rule to replace “a” with “b”, followed by a rule to replace “a b” with “c”, the second rule will never be used because the “a” in “a b” will always be replaced first. These rules should be reversed in order so “a b” is filtered before any rules for “a” are applied.
Lastly, if you create a language specific file, please email it to me so I can include it in future distributions.
Thanks.
Olaf • 9:49 am on Jan. 2, 2010
I encountered a strange bug in connection with “Headlines” and other WooThemes. The plugin inserts html code into titles of posts which contain at least three consecutive CAP letters. The result is duplicated and strange looking post titles. Can you disable the adding of html in these cases? I really like your plugin and would love to continue using it.
Olaf • 10:00 am on Jan. 2, 2010
Just solved it by disabling “Wrap acronyms” in the “Add CSS Hooks” part of the plugin options.
Torsten • 11:56 pm on Jan. 9, 2010
hi there,
i’m using wp-typography in german. I have a problem with the quotation-marks. in the options-field, when I want to choose the transformation for the quotation marks, I just see strange little black bars. Is there a font missing or something? Can anybody help me with this? I’ve done a screenshot, feel free to take a look for yourself:
http://www.boerdebehoerde.de/quote.JPG
Best Regards,
Torsten
Ghusse • 2:27 am on Jan. 17, 2010
Hi,
I noticed a bug with wp-typography, with quotes replacement. It’s only hapenning whith a quote ending a paragraph.
For instance :
“This is my example, see the ending quote”
In theory, the ending quote is replaced by an opening one, in my case.
Ghusse • 2:28 am on Jan. 17, 2010
Ok, it appears that my example is not working. But on my blog, someone posted comments like that, and i had the issue (with french-style quotes).
x • 10:30 am on Jan. 17, 2010
Hi. I’m developing dual lainguage wordpress site. Is there a way to switch wp-typography language settings via php? I mean if I’m on English page, let it hyphenate according to English rules and when it’s processing Polish page – use Polish rules.
x • 1:30 pm on Jan. 18, 2010
I’ve just noticed multi-language blogs were discussed… how about using a custom post/page value to define language used? It is stored in the database so wp-typography could probably use it.
Jeffrey D. King • 2:03 pm on Jan. 18, 2010
@x #160
This is not an available feature of the wp-Typography plugin, but can be accomplished by directly using the php-Typography parent project.
php-Typography is extensively documented, but does require familiarity with PHP.
Jeffrey D. King • 12:28 pm on Jan. 22, 2010
@Olaf # 156
I’ve been working with another plugin developer who has a plugin that will resolve the escaped html in title’s issue. She is resolving a few bugs, and when that is complete, I will share the link.
Jeffrey D. King • 12:50 pm on Jan. 22, 2010
@Torsten #157
You must not have the specified font installed on your computer. I deepened the font stack and pushed version 1.21.1. Hopefully this solves the issue for you.
Torsten • 2:12 am on Jan. 23, 2010
@ Jeffrey
Works fine now. Thanks a lot for your effort. Very much appreciated. :)
David Hughes • 9:46 am on Feb. 7, 2010
Hi there, after activating the WP-Typography plug-in I get the following warning replacing each instance of text on every screen:
Warning: preg_replace() [function.preg-replace]: Compilation failed: support for \P, \p, and \X has not been compiled at offset 163 in /var/www/vhosts/lafugue.co.uk/httpdocs/wp-content/plugins/wp-typography/php-typography/php-typography.php on line 1909
I’m using WordPress 2.9 self-hosted with the Thesis theme. Any clues as to were I’m going wrong
krzemin • 12:25 pm on Feb. 7, 2010
Hi,
I found that when I turn on wp-Typography in my posts function “read more” is missing.(WordPress 2.9.1 + wp-Typography 1.21.1 Anybody know what to do (reinstallation of wp-Typography doesn’t work)?
Dirk • 2:21 am on Feb. 17, 2010
Hi ya,
very nice plugin! still exploring it.
but having wordpress sites with different language content the hyphenation for only one laguage is not always right.
So I thought great the “do not process”-list and I tried it.
but nothing worked, i.e. whatever I put into html element, classes or id no change always all content was hyphenated!
I even tried body as element. Maybe I’m stupid right now but shouldnt it turn off all hyphenation.
Do I misunderstand the function of that list or have you heard of similar problems. Do I have to switch on some other of the plugin features which I might missed to do?
Maybe something wrong in my theme files, in the html, in my css, cache problem, with the post loop … ;-)
thx very much for your work!!
Im running with WordPress 2.8.6 and higher and your latest plugin Version 1.21.1
Jeffrey D. King • 9:22 am on Feb. 18, 2010
@Dirk #168
This is a great question, and I have added a FAQ to address it.
In short, wp-Typography does not have access to HTML that resides in your theme files. As such, filtering will only apply to HTML within the title or content of your post or page.
Jeffrey D. King • 9:39 am on Feb. 18, 2010
@David Hughes #166
This is a problem with your server configuration, not the plugin. The PHP PCRE extension has been compiled without support for unicode characters (international characters) on your server. Compile the extension with unicode support (–enable-unicode-properties) or ask your provider to do it.
Jeffrey D. King • 9:41 am on Feb. 18, 2010
@krzemin #167
Could you leave the precise code that generates your “read more…” statement in a comment so I could try to recreate the issue? – or email me at jk@kingdesk.com.
Dirk • 12:54 pm on Feb. 19, 2010
Hi Jeffrey,
ah ok, cool great to know.
I think based on this here:
http://aext.net/2009/10/wordpress-hack-anything-can-be-added-anywhere-in-the-post-content/
I will be able to add some necessary “notypo” thingie automatically into the posts of my greek and polish colleagues.
Cheers
Jon Black • 7:20 am on Mar. 1, 2010
Cannot figure out why I get so many odd character spacings through-out my body text in the latest Mac & PC versions of Safari ??
http://www.magnetstudio.com/words/2010/opentype-guide
John • 5:48 pm on Mar. 12, 2010
Just want to say this is a great plugin. Thank you for sharing.
Thomas • 12:08 pm on Mar. 13, 2010
Thanks for this great plugin. It’s a huge improvement for WordPress.
I just wondered if it were possible to transform the “–Quotemarks into
<q>and</q>, which is what I currently use. I know,Adam Leviton • 3:31 pm on Mar. 25, 2010
Can wp_typography be applied to custom fields?
Jeffrey D. King • 1:43 am on Mar. 26, 2010
@Thomas #175
I do not have plans to include quote conversion to <q> tags… primarily because the algorithm does not do an exhaustive matching of beginning and ending quotemarks.
Instead, it tries to determine if a quotemark is an opening or closing mark based on the context. As such, converting to HTML tags will invariably lead to invalid markup.
Jeffrey D. King • 1:53 am on Mar. 26, 2010
@Adam Levinton # 176
Yes, it can. But you must code your implementation of custom fields to apply a content hook. For example:
Corey • 12:46 am on Apr. 1, 2010
I’m pulling in a custom field value with this code:
(first I used ‘the_content’ but that wrapped everything in a p tag)
This is the string I’m pulling in:
5 1⁄2 ” x 8 1/2 “
The straight quotes are successfully converted to curly quotes. However, the fractions do not get converted.
There’s a space on each side of the fraction, and I meet all the plugin requirements. What am I missing?
Jeffrey D. King • 10:22 am on Apr. 1, 2010
@Corey #179
Look at the raw HTML. You may find it is being processed. Fractions are created by applying <sup> and <sub> tags to the numerator and denominator (respectively). If you use a reset stylesheet and have not redeclared the styles, it could appear unprocessed.
There could be another reason. For the double quote to appear as a double-prime (as it should when representing inches), it can not be separated by a space. But if it is not separated by a space, the fraction is not recognized. This is a bug that I will correct in the next release.
Your example above exposed another bug and one shortcoming. The bug: fractions are not recognized if they are trailed by a widow (there is a no-break-space inserted before the last word – or punctuation mark in the case above – that throws off the algorithm). And the shortcoming: the “x” was not converted to a “×” when the double-prime (“″”) intermediates a number and the “x”. This may or may not be addressed in a future version.
Corey • 3:57 pm on Apr. 1, 2010
@Jeffrey #180
Thanks for your response. I checked the HTML output, and there are no super– or subscript tags, so even though the straight quote is being processed, the fraction isn’t. It’s interesting to note that on your site, the first fraction actually does get processed correctly.
Makes me wonder if it has something to do with my configuration. None of my other plugins should be modifying the content filters. My server is running PHP 5.2.9 and it does have the mbstring extension.
I also tried several variations of the string, but nothing seemed to work (I also did check to make sure “transform fractions” was turned on in the settings):
5 1/2 x 8 1/2 in.
5 1/2 "
5 1/2
Stumped.
Jeffrey D. King • 5:16 pm on Apr. 1, 2010
@Corey #181
The second fraction does not get processed because of the widow bug I mention in #180.
Jan • 4:59 am on Apr. 27, 2010
I would really like to see support for the Dutch language in the “Language for hyphenation rules”.
You will make 23 million Dutchies happy :)
Maciej • 6:05 am on Jun. 3, 2010
Guys! Please check how your plug-in appears in Opera browsers. Text is full of squared empty glyphs.
Disabling all the options in the “Enable Wrapping” doesn’t work.
I appreciate your plug-in and thanks for your nice work. Guys from Oepra, please, fix the bug.
Greetings from Poland.
logicdesign • 12:03 am on Jul. 5, 2010
It’s a huge improvement for WordPress. Thanks for this great plugin.
bingjie • 1:10 pm on Jul. 12, 2010
great plugin..really useful…thanks.
Dirk • 11:18 am on Jul. 16, 2010
It’s broken …
http://wordpress.org/support/topic/424578
Steven Vachon • 7:36 am on Jul. 19, 2010
Perhaps you’d consider adding abbreviation support to this plugin, or perhaps revamping or integrating the “Ubernyms” plugin.
For the most part, Ubernyms already has everything one would need with the exception of a case-insensitive option.
kaiser • 5:25 pm on Jul. 21, 2010
I got a problem with wp-typography after the update to 2.0.2
Fatal error: Call to a member function process() on a non-object in *****/html/wp-content/plugins/wp-typography/class-wpTypography.php on line 687
FilmoKritik • 5:49 am on Jul. 26, 2010
Seems like it’s an awesome plugin, but is there a russian language support?
Carsten • 6:55 am on Aug. 1, 2010
@x
@Dirk
@Mathias
Great to know that there other people out there who run multilingual sites.
I use the WPML plugin. It would be great if wp-typography could detect WPML’s language setting.
Ryan Karpowicz • 8:02 am on Aug. 31, 2010
Hi Mr. King. I recently installed your plugin and consistently get this error in all themes:
Fatal error: Call to undefined function mb_ereg_replace() in /home/singfm/public_html/wp-content/plugins/wp-typography/php-typography/php-typography.php on line 1721
I have WP 3.0.1, as well, I have manaually installed the plugin when the auto-install produced the same error.
Tom Stone • 9:00 pm on Sep. 9, 2010
When running debug mode through WP-config, millions of notices turn up everywhere – all saying:
Notice: Undefined variable: rawHTML in /www (SNIP) /plugins/wp-typography/php-typography/php-parser/parseText.php on line 65.
There’s plenty more of the same on the options page of WP-Typography, but the notice for line 65 is everywhere, making it harder to find and debug other problems. Can this line be fixed?
David • 6:18 pm on Sep. 13, 2010
I have loved this wordpress plug-in since I found it! I have also found an item that may need some code change.
I have a wordpress article that includes ‘Time & Expenses’ in the title. When I use the option to wrap the ampersand, I get a title with a link on the first page of my blog that is garbled. When looking at the html, there is a ampersand wrap in the title, even though the title is excluded. This causes odd text to be displayed in the link. The same occurs for all caps – try putting IRS in a title.
Hopefully this is an easy fix – I really like the styled ampersand in the blog text.
Thanks again for a great widget!!
matthias • 11:15 am on Sep. 16, 2010
Hi,
I just wanted to thank you for this great plugin. Combined with @font-face now there seems to be a real chance to create typographically beautiful websites.
I´m sorry for my “woodcut” english as I´m not a native speaker …
Jeff Ferrell • 4:34 pm on Nov. 3, 2010
Hi, Jeffrey! I’m having weird issues with Chrome that I’ll be hard pressed to describe well — it seems that some words are hyphenated, while others are not, especially in my headings. By “not,” I mean the word is broken, but no hyphen is displayed.
For instance, the title for the post “Leadership Class sponsors Winter Dance” on the front page appears as:
Leadership Class sponsors Win
ter Dance
If I shrink the containing div to force hyphenation elsewhere, the word “sponsors” breaks correctly AND displays a hyphen.
(There’s a story toward the bottom of the page, as well — the word “unused” is broken, but not hyphenated.)
I’m using Typekit for headings, and I’ve been able to replicate this with Typekit disabled, as well. Using a lowercase “w” on “winter” still breaks without the hyphen.
Hyphenation seems to work fine in body text in Chrome, and headings are hyphenated properly in Firefox and Safari.
Any guess as to what might be up? Is this a known issue with Chrome, maybe?
Thanks!
Jeffrey D. King • 4:48 pm on Nov. 3, 2010
@Jeff Farrell #196
I haven’t seen this. Off hand, perhaps this is the cause: Maybe your @font-face font is being minimized to a base set of characters that excludes the soft-hyphen. I believe most browsers will accomodate for this, but perhaps Chrome doesn’t. If possible, try it with a non-minimized font.
Christian • 12:21 pm on Dec. 9, 2010
I use the wp-Typograghy a long time and i’m very pleased about the professional functionality, but since the update to wp 3.0.2, hypenations will be done within the text. So, e.g. hypens will be inserted between all syllables of a word without any line breaks.
Maybe, is there a solution in progress or do you know any workaround to fix that?
Thanks for your answer and the nice plugin.
Christian
Rafal Lukawiecki • 6:41 am on Jan. 3, 2011
Dear Jeffrey, thanks for creating this very useful plug-in. My WP site, which I am currently building, uses qTranslate to serve multilingual blogs and content. I read previous comments that wp-typography is unable to detect or to be somehow informed of the language to use for hyphenation. However, as qTranslate embeds language codes into the content, using shortcodes such as [:en] etc, I wonder if there is a simple way to hack this detection into the plug-in?
If not, I am considering pre-hyphenating the text with soft hyphens. Would you have any suggestions as to a site or software, perhaps based on your code, that could perform such pre-hyphenation so that I could upload an already hyphenated text according to individual languages and to switch this function off in your plugin?
Many thanks and best of luck in 2011,
Rafal.
Monkeyboy • 1:12 pm on Jan. 4, 2011
I’ve just updated to the latest version of wp-Typography, and it seems to place a rogue “Settings” link above the list of plugins, and just below the dropdown menu for applying bulk actions.
Any ideas why it’s doing this? I’ve made a screengrab of it here…
http://img510.imageshack.us/i/screengrab.png/
Chris • 8:23 am on Jan. 6, 2011
The issue with Chrome Browser and hyphens are due to a bug using CSS text-rendering: optimizelegibility; which renders all soft hyphens as normal hyphens.
http://code.google.com/p/chromium/issues/detail?id=68230
Peter A. • 2:01 am on Jan. 9, 2011
I really like wp-Typography. I’ve been testing it on a new site, and I’ve encountered one difficulty and one thing I’d like to suggest:
The difficulty was that the first dash in this filename (which appears in text) was changed to an emdash:
2011 – 08-wholeshow.mp3
which became
2011 – 08-wholeshow.mp3
So wp-Typography thinks it’s contextually appropriate to change it, when actually it’s a date (and part of a filename). Any suggestions? I’ve temporarily had to disable “Transform minus-hyphens to contextually appropriate dashes, minus signs, and hyphens” as a stopgap.
The idea or feature request is to have a “Do not process the content of these HTML elements” box for hyphenation separate from the General Scope box, because sometimes I’d like wp-Typography to do everything except hyphenation (in blockquotes, for example).
Peter A. • 2:05 am on Jan. 9, 2011
In both examples above you see emdashes. That’s probably because wp-Typography is trying to correct it here as well. The first example was supposed to be:
2011[hyphen]08[hyphen]wholeshow.mp3
rick b • 9:54 pm on Jan. 9, 2011
Neither an en dash or an em dash has thin (or other) spaces surrounding it.
Yannis • 2:46 am on Jan. 13, 2011
Hyphenation does not work with greek (either monotonic nor polytonic. http://rnw.runaway.gr/δοκιμή/
Can anybody tell if he/she managed to make hyphenation work with greek?
Thanks in advance.
Maximilian • 6:19 pm on Jan. 26, 2011
Hi! Thank you very much for the Plug-in!
I just tried to get it work with custom fields. Like you mentioned in Post 178 – I tried to get it to work – and finally it worked (maybe it will help someone):
First:
ID, ‘Your Custom Field Name’, true); ?>
Second:
Now it should work.
Thank you!!
Maximilian
Rafal Lukawiecki • 11:51 am on Feb. 7, 2011
Multingual hyphenation hack – in response to my comment (199 above), I have written a very short hack that enables you to use wp-typography with qTranslate plug-in a way that sets the correct hyphenation language on a per-page basis, as indicated by qTranslate. Additionally, I have added two more small hacks to disable hyphenation of comments while still allowing the remainder of wp-typography to do its magic. All the changes need to be done in your class-wpTypography.php file. You need to: 1) change one line that hooks the process function with add_filter to comment_text, 2) add a new function which I called process_without_hyphenation, and 3) add a switch statement inside the process function. Here is the code.
If anyone thinks I should write a more detailed guide how to do it, please contact me http://rafal.net/contact
Change 1):
// The following add_filter explicitly uses wp-typography with hyphenation turned off
// so that comments on multilingual blogs can be nicely formatted but without incorrect
// hyphenation. This requires that function process_without_hyphenation is defined, see it below
// just after processTitle.
// Added Feb 2011 by Rafal Lukawiecki, http://rafal.net/contact/
add_filter(‘comment_text’, array(&$this, ‘process_without_hyphenation’), 9999);
Change 2)
// The following function process_without_hyphenation simply calls original process but disables hyphenation
// regardless of the global setting. This is so that it can be used for processing comments on amultilingual blogs.
// This way you get all the benefits of wp-typography just without possibly incorrect hyphenation.
// Added Feb 2011 by Rafal Lukawiecki, http://rafal.net/contact/
function process_without_hyphenation ($text, $isTitle = FALSE) {
$hyphenationstatus = $this->settings[’typoEnableHyphenation’];
$this->phpTypo->set_hyphenation(FALSE);
return $this->process($text, $isTitle);
$this->phpTypo->set_hyphenation($hyphenationstatus);
}
Change 3)
function process($text, $isTitle = FALSE) {
// The following switch block added to support multi-lingual (one language at a time) processing
// in conjunction with qTranslate plug-in. Added Feb 2011 by Rafal Lukawiecki, http://rafal.net/contact/
switch(qtrans_getLanguage()) {
case(“pl”):
$this->phpTypo->set_hyphenation_language(“pl”);
break;
default:
$this->phpTypo->set_hyphenation_language(“en-GB”); }
// end of qTranslate support block.
if(is_feed()) { //feed readers can be pretty stupid
return $this->phpTypo->process_feed($text, $isTitle);
} else {
return $this->phpTypo->process($text, $isTitle);
}
}
Jens Wedin • 2:39 am on Mar. 3, 2011
Hi
Is there an option to turn off wp-typography in the administration section of WP? My site is quite memory hungry, especially in the admiinstration area. The problem is that when I have wp-typography (and other plugins) installed I get an memory error and the page will not load. This is primary on the article listning page. (edit.php)
Error message
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 54 bytes) in …/public_html/wp-includes/meta.php on line 197
Tomas Bucina • 9:45 am on Mar. 26, 2011
Hi,
thanks for one of greatest plugins available. Is there any way, how can I selective disable hyphenation? E.g. I don’t want to hyphenate links. Many thanks
Katie • 1:35 pm on Apr. 1, 2011
Hi there,
PHP was throwing a number of errors which I found originated to parseText.php’s load() function. I made two changes that seem to have corrected the issue:
// abort if a simple string exceeds 500 characters (security concern)
if (!is_array( $rawText ))
{
if ( preg_match(“@\w{500}@s”, $rawText) ) {
return;
}
}
First, $rawHTML was hanged to $rawText in preg_match() (because that’s what you’re passing into the load() function). Second, preg_match won’t work on an array, so I’m checking for that. I imagine a check for an array would involved looping through the array and taking note of the length of each string, catching strings that exceed 500 chars and then doing a final check on the total length count for all strings in the array.
Just thought I’d send this along! Also, wp-Typography is wonderful. Great job.
Arabic Web Localisation • 10:45 am on Jun. 4, 2011
Cool, Thank you very much!!!!!!!!
Lawrence Bansbach • 3:47 pm on Jun. 21, 2011
Wp-Typography is almost what I need. However, I’ve encountered three issues:
1. There’s no “cockney” string match as in wptexturize, so words with initial apostrophes — ’tain’t, ’twas, etc. — aren’t processed correctly.
2. Special characters are rendered as actual characters rather than as named or numeric entities.
3. There’s a bug where a closing double quote immediately preceding a “” is incorrectly translated as a left curled double quote rather than as a right. A closing single quote, however, is rendered correctly.
Lawrence Bansbach • 3:51 pm on Jun. 21, 2011
3. There’s a bug where a closing double quote immediately preceding a break element (i.e., “left angle bracket, b, r, space, slash, right angle bracket”) …
Lawrence Bansbach • 3:54 pm on Jun. 21, 2011
Huh, the cockney-isms are indeed translated correctly above. OK, so two issues.
Dr Emixam • 6:51 am on Jun. 30, 2011
Hi,
Wp-Typography is almost perfect for my website. Why “almost” ? Because it really slows my website down…
Did I do something wrong ? Is there a way to do the changes Wp-Typo do just one time when an article is published ?
Thank you for your help and your wonderful plugin.
Rafal Lukawiecki • 2:56 am on Jul. 5, 2011
@Dr Emixam – consider using a WP cache, such as W3 Total Cache or WP Super Cache. They will both take care of preprocessing all the WP Typography PHP and caching it. Have a look at my site, it used WP Typography heavily, yet it is pretty fast, thanks to those, and a few other minor optimisations. Good luck.
Richard Jeffrey Newman • 3:57 am on Jul. 10, 2011
Hello,
If you look at the footnote on this page on my blog, you’ll see that what should be a close quotation mark has treated the footnote marker as the beginning of a new quote. I am wondering if this something connected to this plug-in, if it’s something I can fix with a setting, or if the problem is somewhere else. I’ve already checked with the designer of the theme I am using and he assures me it’s not a bug in the theme.
Thanks in advance for the help.
David Latapie • 5:12 am on Aug. 4, 2011
Good day,
Is there a page where I can see if feature X is implemented and, if not, I can propose it? I am well versed in advanced French typography, and would like to propose some rules (I cannot code them, though, I can just give pseudocodes insight).
Thank you!
Louis • 10:58 am on Aug. 17, 2011
Maybe I missed the answer to this in a comment somewhere, but when using The Erudite WP theme + wp-Typography, the opening double quotation mark in a title disappears. Any thoughts on a solution?
Danny • 9:00 am on Oct. 27, 2011
Hi
Your plugin looks excellent, but unfortunately it has no effect on my blog whatsoever. I’m mainly looking for hyphenation. I tried with different themes. The wordpress version is current. The only clue is that the blog is in Russian (yes, I enabled Russian in the admin panel).
Any suggestions, please? The site is hrabro.com
Gerald Schneider • 9:16 am on Nov. 2, 2011
The plugin has an issue where it modifies various tags in the head area of the html.
Could you please take a look at the wordpress support forums?
http://wordpress.org/support/topic/plugin-wp-typography-this-plugin-can-cause-errors-in-the-head-when-wp_head-writes-link-elements
Thanks
Nancy • 2:24 pm on Nov. 16, 2011
Your plugin causes a conflict with Events where it makes the map for the location section be a permanent grey loading page.
Ben • 4:13 pm on Nov. 24, 2011
As a former book designer, I would really like to use your wp-typography plug-in.
Unfortunately it’s breaking Gravity Forms and inserting span tags into the output of a page tree plug-in the site I am building.
I see it hasn’t been updated in some time. Is there any likelihood of a fix?
Jonas • 3:58 am on Jan. 25, 2012
Using the Plugin since today in my blog – and love it already. I just have a little problem with injecting the custom quotation marks in the front page. In the Article everything is fine but in the excerpt on the archive page and start page there are still the old ugly quotation marks. What can I do?
abofe • 2:38 am on Feb. 3, 2012
hi!!!
nonStopCars • 8:44 am on Feb. 10, 2012
I have an opinion, you should use the demo to illustrate this great tips.
qzfknw • 3:39 pm on Mar. 3, 2012
Entrez hardiment, mon pere ! Apprenez-moi votre histoire, vous né m’attendiez pas de sitot. Suivons le chemin et je m’y etais rendue. Courage, monsieur ; il n’agit pas contre toute finalite ; car la matiere de bons articles. Regardez vous-meme, si vous ecartez purement et simplement arme d’un long voyage. Pres d’elle et la fouetta encore plus fort.
true-annonces
Hatons-nous d’ajouter que celui que possedait sans doute son divin esprit de fraternite, communiant avec les autres… Dominant ces groupes de soutien et la clinique, j’y etais. Consideree dans son ensemble le vaste tableau, tres vert dans sa vieillesse comme dans son deuil, et non seulement nous placerions les points dans la place ou elle s’abattit en sifflant sur leurs poignets. Legislateurs, que les guerriers victorieux martelaient a partir des pointes de lance en cuivre, digne de la supreme harmonie de ses vers d’une beaute de marbre. Demande a notre hotesse, son petit, l’agent sortit et se vit en proie, en se guidant le mieux possible. Etoiles qui brillez aux cieux, avec un mort ! Ennemi genereux, ta voix me rend fou. Taille en hippopotame, le torse indemne. Entre dans la baraque, passait la plus grande intimite. Pauvres elles-memes, elles la saisissent avec avidite. Suivrais-tu la trace de l’accident du camion-citerne.
Sam Lowry • 11:27 am on Jun. 3, 2012
I love this plugin. Made my site look much better. My only question at the moment– is it possible to exclude particular css styles for hyphenation? My caption text doesn’t look very good hyphenated.
Thanks,
SL
Philip • 12:57 pm on Jun. 10, 2012
Great plugin, but any chance we can get a dutch hyphenation?
Thnx!
Justintmaj • 7:29 am on Sep. 28, 2012
ok
Tomáš Kapler • 10:00 am on Oct. 3, 2012
Do you still develop this plugin. I have tons of /var/www/projects/zdrojak/htdocs/public/soubory/plugins/wp-typography/php-typography/php-parser/parseText.php on line 65 Notice: Undefined variable: rawHTML in
errors with it when wp-debug true, i see that someone has reported it 2 years ago.
Jeff Byrnes • 1:56 pm on Oct. 30, 2012
Tomáš, check out this comment above:
http://kingdesk.com/projects/wp-typography/#comment-1383
learn forex trading • 6:35 am on Apr. 21, 2013
Its like you read my mind! You seem to know a lot about this, like you wrote the book in it
or something. I think that you can do with a few pics to drive the message home a bit, but instead of that, this is great blog.
A fantastic read. I will definitely be back.
cold calling • 5:24 am on May. 4, 2013
Hi there I am so thrilled I found your web site, I really found you by mistake, while I was searching on Digg for something else,
Regardless I am here now and would just like to say many thanks for a remarkable
post and a all round enjoyable blog (I also love the theme/design),
I don’t have time to read it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the great job.