Closed (fixed)
Project:
Typogrify
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Sep 2008 at 20:34 UTC
Updated:
27 Jan 2009 at 12:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stefanor commentedUpdated patch, to meet coding standards (even though the included php scripts won't)
Comment #2
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 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 commentedSubscribe
Comment #5
CosmicVoyager commentedAre there plans to make a 6.x module?
Comment #6
panji commentedSubscribe
Comment #7
adam_b commentedSubscribe
Comment #8
verikami commentedsubscribing :-)
Comment #9
batje commentedsubscribe
Comment #10
no2e commentedwill there be a Drupal 6 release?
Comment #11
Anonymous (not verified) commentedThe patch from #3 works for me under Drupal 6.8.
Comment #12
mason@thecodingdesigner.com commentedThe patch for #3 works for me as well. (d6.8)
Comment #13
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
miklI'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
miklBtw, 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 commentedsubscribing
Comment #17
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 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 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#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 commentedPosted details about #245187: Widont treats <pre> as </p> and alters preformatted text into it's queue.
Comment #22
miklThanks everyone. I've rolled this patch into a beta-release for Drupal 6 :)
http://drupal.org/cvs?commit=164513