Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2007-06-13 03:30:26

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

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

I’ve thought of a small improvement that I’ll try to implement as soon as I get some free time: allowing the aam_typogrify tag to take attributes for which filters you want to apply. If I end up adding support for Typogrify’s more extensive caps-wrapping down the road, this will make selective filter application a lot more convenient.

Offline

#17 2007-06-19 20:45:09

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

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

Brilliant. Thanks.

Offline

#18 2007-06-27 23:07:02

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

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

Textpattern 4.0.5 RC 1 has been released. I can’t think of anything in Typogrify that would conflict with a new Txp version, but if any testers have trouble please let me know.

Offline

#19 2007-06-29 00:37:28

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

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

Hi
I am new to textpattern, I am trying to convine my web www.mlarino.com with my blog www.staticforest.blogspot.com into one, I dont really know any php, but i am ok with html and css…

The thing is, I love typography, and I think Typogrify could be great, but I cant really get it to work…
I used the <txp:aam_typogrify> in my default form, but I am not really sure if its there where I should use it.
-I see it eliminated the typographical widows but the (“”) and the (&) are still the same….
Can someone help me?
www.mlarino.com/web2-

UPDATE!: Nevermind I figured out, I have to put the spans in the css.

But could you guys help me on how to manage the “” somehow the plugin is not wraping them in a span.
I am using this:
<txp:aam_typogrify><h2><txp:permlink><txp:title /></txp:permlink></h2></txp:aam_typogrify>
in the default page

Thanks

Last edited by mlarino (2007-06-29 10:23:00)

Offline

#20 2007-06-29 16:57:16

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

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

mlarino said:

But could you guys help me on how to manage the “” somehow the plugin is not wraping them in a span. I am using this:

<txp:aam_typogrify><h2><txp:permlink><txp:title /></txp:permlink></h2></txp:aam_typogrify>

in the default page

Thanks for posting this. I won’t have time to check into it until sometime this weekend, unfortunately. Meanwhile, can anyone else here reproduce mlarino’s problem?

Offline

#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: 707

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