Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here is a Drupal 6 support patch.
Also removed trailing "?>" lines to comply with Drupal coding standards.
Comment | File | Size | Author |
---|---|---|---|
#19 | typogrify.class_.zip | 2.4 KB | neochief |
#18 | typogrify.module.gz | 2.13 KB | alan426 |
#14 | typogrify-drupal-6_0-2.patch | 32.04 KB | mikl |
#14 | typogrify.class_.php_.txt | 6.81 KB | mikl |
#3 | typogrify-drupal-6_0-1.patch | 12.45 KB | sym |
Comments
Comment #1
stefanor CreditAttribution: stefanor commentedUpdated patch, to meet coding standards (even though the included php scripts won't)
Comment #2
willfe CreditAttribution: willfe commentedThis works well for me, though there was one rejection when patching the latest build (as of September 19, 2008). All patches applied except for typogrify.info. The rejection file:
***************
*** 3,26 ****
name = Typogrify
description = Adds typographic refinements.
package = "Input filters"
- dependencies = filter
project = "typogrify"
-
-
- ; Information added by drupal.org packaging script on 2007-06-19
- version = "5.x-1.x-dev"
- project = "typogrify"
- datestamp = "1182212752"
-
-
- ; Information added by drupal.org packaging script on 2007-07-10
- version = "5.x-1.x-dev"
- project = "typogrify"
- datestamp = "1184069636"
-
-
- ; Information added by drupal.org packaging script on 2007-07-24
- version = "5.x-1.x-dev"
- project = "typogrify"
- datestamp = "1185279036"
-
--- 3,8 ----
name = Typogrify
description = Adds typographic refinements.
package = "Input filters"
+ dependencies[] = filter
project = "typogrify"
+ core = 6.x
The only two lines that don't get added are "dependencies[] = filter" and "core = 6.x"; I had to yank the existing "dependencies = filter" line as well. After that change, though, all is well -- all the expected replacements happen and my site looks better for it.
It's really amusing to have a module with version 5.x-1.x-dev humming right along in my D6 installation alongside all the 6.x modules :) Thanks for this patch!
I dunno if my chiming in counts as "tested by the community" but at least count me among the "it works!" crowd.
Comment #3
sym CreditAttribution: sym commentedPatch in #1 applied fine, however my PHP (5.2.6) needs:
* Quotation marks around the function in preg_replace_callback on lines 156 and 194 of php-typogrify.php and
* $characters_to_convert to be defined as an array on line 86 of typogrify.module
This patch fixed those problems.
Comment #4
frjo CreditAttribution: frjo commentedSubscribe
Comment #5
CosmicVoyager CreditAttribution: CosmicVoyager commentedAre there plans to make a 6.x module?
Comment #6
panji CreditAttribution: panji commentedSubscribe
Comment #7
adam_b CreditAttribution: adam_b commentedSubscribe
Comment #8
veriKami CreditAttribution: veriKami commentedsubscribing :-)
Comment #9
batje CreditAttribution: batje commentedsubscribe
Comment #10
no2e CreditAttribution: no2e commentedwill there be a Drupal 6 release?
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedThe patch from #3 works for me under Drupal 6.8.
Comment #12
mason@thecodingdesigner.com CreditAttribution: mason@thecodingdesigner.com commentedThe patch for #3 works for me as well. (d6.8)
Comment #13
sym CreditAttribution: sym commentedCan a few more people try this so we can move it on? As far as I can see, it's ready to be branched in to drupal 6. I'm willing ot take this on, if need be.
Comment #14
mikl CreditAttribution: mikl commentedI've tweaked syms patch from #3 a bit. Most important change is that I've taken the latest version of php-typogrify and converted it to a class (which in my opinion makes more sense and gives less namespace pollution). Otherwise, I agree with sym, this feels ready to be called 1.0 for Drupal 6 :)
Comment #15
mikl CreditAttribution: mikl commentedBtw, the new version included in typogrify.class.php should also fix #245187: Widont treats <pre> as </p> and alters preformatted text, so it should probably be merged into the Drupal 5 version.
Comment #16
rhache CreditAttribution: rhache commentedsubscribing
Comment #17
alan426 CreditAttribution: alan426 commentedPatch in #14 works ok with 6.8, with one fix: the class file doesn't match the module_load_include. Either rename the file with lower-case t ('typogrify.class.php') or change lines 88 and 152 in the patched module to:
module_load_include('class.php', 'typogrify', 'Typogrify');
Otherwise, great work -- thanks for the effort!
Comment #18
alan426 CreditAttribution: alan426 commentedOops, never mind. I renamed the class.php according to the comments in the file, not according to the way you named it. Works fine as is -- here's a copy of the patched module:
Comment #19
neochief CreditAttribution: neochief commentedThanks, guys, great job. One thing I should tell—the selected widont implementation breaks my site. I've added working implementation from #245187: Widont treats <pre> as </p> and alters preformatted text (first patch). Here's a patched typogrify.class.php file.
Comment #20
mikl CreditAttribution: mikl commented#18: Ah, yes, good catch. I hope to take over this project soonish and roll a BETA-release or something :)
#19: Well, just going back to an earlier version that has other issues (#245187: Widont treats <pre> as </p> and alters preformatted text) isn't really a good solution. Can you post the actual error message so I can try and work around it?
Comment #21
neochief CreditAttribution: neochief commentedPosted details about #245187: Widont treats <pre> as </p> and alters preformatted text into it's queue.
Comment #22
mikl CreditAttribution: mikl commentedThanks everyone. I've rolled this patch into a beta-release for Drupal 6 :)
http://drupal.org/cvs?commit=164513