Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2007-07-02 02:48:26

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

I have been testing this all weekend, but I cant get the “” to work :(
Any sujestions?

Offline

#22 2007-07-03 07:41:30

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

I kept testing this, I thought the widowed words was working, but it was actually because I had it set up in the textpattern preferences, not because of typogrify.
The only thing that works is the wraping of the &.

Offline

#23 2007-07-03 18:08:05

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

I’m sorry you’re still having problems, mlarino. I won’t be able to look into this further until probably the weekend (gotta pay the bills), but there are a few things you can do to help me troubleshoot the issue once I get some more time:

  1. Pay a visit to the Diagnostics tab (Admin -> Diagnostics), and look for the following information in the text box on that screen:
    • What version of Textpattern are you using?
    • What version of PHP does your site run on?
    • What are your active plugins?
    • Are you shown any red error messages on the Diagnostics tab? If so, what are they?
  2. Put your site into Testing mode (on the Admin -> Preferences tab) and re-load the page where this problem occurrs. Do any PHP error messages appear at the top of the page?
  3. Put your site into Debugging mode, re-load the page again, and view its source code using your Web browser’s view source command. At the bottom of the page, you should see a whole lot of information contained within HTML comments. This is the tag trace for that page. Please e-mail the trace information to me, and I’ll look through it this weekend.
  4. Try putting the exact same template tags that you posted here into an article form instead of the default page template. Does the problem still occur?

Thanks for the extra information, and for your patience.

Offline

#24 2007-07-09 05:24:06

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

@mlarino: I’m not sure if you got my e-mail reply, but the code you sent through my contact form got truncated. I have a bunch of HTML source, but no tag trace.

Please try again, sending only the tag trace through either my website’s contact form or the one here on the forum. You can also post the trace in this thread, where other users may be able to help you out.

You can find the tag trace in your HTML source code by looking for lines similar to these:

<!-- Runtime:    0.1063 -->
<!-- Query time: 0.028467 -->
<!-- Queries: 25 -->

Those lines will appear at the beginning of the trace, which will extend from there to the end of your source code.

Thanks again. I’m sorry my contact form chopped up your message, but the character limit is in place to help prevent form abuse.

Offline

#25 2008-03-13 03:39:09

lajackie
Member
Registered: 2008-03-09
Posts: 11

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

i’m sure this isn’t really something that has to do with you guys, but i keep getting this error and i don’t know how to fix it :( I’m using the “palpable” template…

Tag error: <txp:aam_typogrify> -> Textpattern Warning: tag does not exist on line 983

Offline

#26 2008-03-13 04:01:30

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 704

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

I get errors like that when the plugin that the tag I’m working on is in is not enabled

Last edited by rsilletti (2008-03-13 04:02:05)

Offline

#27 2008-03-13 15:44:20

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

@lajackie: What Rick said. Check to make sure the plugin is both installed and enabled. You can find some documentation on installing and activating plugins here (under the heading “Using the Plugin”).

Offline

#28 2008-05-21 03:08:27

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

A bug has been found in aam_typogrify’s widont feature. Details and a work-around have been added to the first post in this thread.

Meanwhile, keep your eyes peeled for a new release coming soon. Along with a permanent fix for the bug, the new version will feature a simplified single-tag syntax. Instead of nesting tags to pick which Typogrify filters you want, you’ll use attributes on one <txp:aam_typogrify /> tag. The old tags will still work, too. No need to edit all your templates. :-)

Offline

#29 2008-07-18 23:03:58

encry
New Member
From: Republic of Moldova
Registered: 2008-03-31
Posts: 5

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

Logoleptic,

As I understand, I must create by myself the CSS classes?
I’m not writing my articles in english, so the quotes I use in my language are and . How can I edit the source code in order to typography with the needed quotes? Iâve tried, but I can see changes only with english quotes.

A question that is more related to “hunging punctuation”. As I know, not only the quotes need to be hunged up, but also the brackets. You can see here the article of the most famous russian designer Artemy Lebedev about hanging punctuation. As you can notice, they are using hanging punctuation on all site pages. What about adding the brackets in your plugin?

Best regards.

Last edited by encry (2008-07-18 23:07:43)

Offline

#30 2010-07-17 06:36:23

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: aam_typogrify - Typogrify: Widon't + CSS hooks for better typography

Thank you for your great work. I love this plugin.

I also love typography. There’s one thing that I think could make this plugin even better. And that would be the ability to wrap certain strings (specifically strings of three or more letters that are capitalized) in an <abbr> tag that could then be styled in css. Some people would prefer to style such strings as small caps rather than leave them at cap-height. The effect is not quite so jarring and the text flows better thus.

My lack of programming knowledge is embarrassing (I’m a designer, not a programmer), but it seems like one should be able to add a utility function like so

/** aam_typogrify_abbreviate
* my desperate, amateurish attempt to find strings of all-caps and wrap them in "abbr"
*/
function aam_typogrify_abbreviate( $text ) {
$search = '/\b([A-Z][A-Z0-9]{2,})\b/';
$replace = '<abbr>$1</abbr>';
$text = preg_replace($search,$replace,$text);
return $text;
}

and then lump it into aam_typogrify down below like so

$text = aam_typogrify_abbreviate( $text );

and I feel like that should work, but of course it doesn’t.

Could anyone please tell me why this doesn’t work — or point me in the right direction?

Thanks in advance.

Offline

Board footer

Powered by FluxBB