? .1Xcdw7 ? .CNgSO6 ? .Rm0TBZ ? .WHIsX0 ? .dPNeGg ? .swp ? .uW9kJi ? .wqpiEB ? .yowKgP ? typogrify-drupal-6_0-1.patch ? typogrify-drupal-6_0.patch Index: php-typogrify.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/typogrify/php-typogrify.php,v retrieving revision 1.2 diff -u -p -r1.2 php-typogrify.php --- php-typogrify.php 10 Jul 2007 00:20:01 -0000 1.2 +++ php-typogrify.php 29 Sep 2008 15:02:36 -0000 @@ -153,7 +153,7 @@ function caps( $text ) } else { - $result[] = preg_replace_callback($cap_finder, _cap_wrapper, $token[1]); + $result[] = preg_replace_callback($cap_finder, "_cap_wrapper", $token[1]); } } } @@ -191,7 +191,7 @@ function initial_quotes( $text ) # double quotes are in group 7, singles in group 8 /x"; - return preg_replace_callback($quote_finder, _quote_wrapper, $text); + return preg_replace_callback($quote_finder, "_quote_wrapper", $text); } /** @@ -261,5 +261,3 @@ if ( isset($wp_version) ) // Strip the potential HTML in the header add_filter('wp_title', 'strip_tags'); } - -?> \ No newline at end of file Index: smartypants.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/typogrify/smartypants.php,v retrieving revision 1.1 diff -u -p -r1.1 smartypants.php --- smartypants.php 7 Jun 2007 13:47:15 -0000 1.1 +++ smartypants.php 29 Sep 2008 15:02:37 -0000 @@ -857,4 +857,3 @@ arising in any way out of the use of thi possibility of such damage. */ -?> \ No newline at end of file Index: typogrify.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/typogrify/typogrify.info,v retrieving revision 1.5 diff -u -p -r1.5 typogrify.info --- typogrify.info 27 Jul 2007 04:03:33 -0000 1.5 +++ typogrify.info 29 Sep 2008 15:02:37 -0000 @@ -3,24 +3,6 @@ name = Typogrify description = Adds typographic refinements. package = "Input filters" -dependencies = filter +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" - +core = 6.x Index: typogrify.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/typogrify/typogrify.module,v retrieving revision 1.4 diff -u -p -r1.4 typogrify.module --- typogrify.module 27 Jul 2007 04:03:33 -0000 1.4 +++ typogrify.module 29 Sep 2008 15:02:37 -0000 @@ -1,10 +1,16 @@ @@ -35,22 +44,27 @@ function typogrify_filter_tips($delta =
Enable the following typographic refinements:
', ); - + // Smartypants settings // We impersonate Marksmarty to ensure that settings are honored by both marksmarty.module and typogrify.module if (! function_exists('smartypants')) { @@ -158,7 +177,7 @@ function _typogrify_settings($format) { '#title' => t('Use typographers quotation marks and dashes (SmartyPants)'), '#default_value' => variable_get("marksmarty_is_smarty_on_$format", 1), ); - + // Smartypants hyphenation settings $form['typogrify_settings']["marksmarty_smarty_hyphens_$format"] = array( '#type' => 'select', @@ -173,28 +192,28 @@ function _typogrify_settings($format) { '#title' => t('Wrap ampersands'), '#default_value' => variable_get("typogrify_is_amp_on_$format", 1), ); - + // Remove widows settings $form['typogrify_settings']["typogrify_is_widont_on_$format"] = array( '#type' => 'checkbox', '#title' => t('Remove widows'), '#default_value' => variable_get("typogrify_is_widont_on_$format", 1), ); - + // Wrap caps settings $form['typogrify_settings']["typogrify_is_caps_on_$format"] = array( '#type' => 'checkbox', '#title' => t('Wrap caps'), '#default_value' => variable_get("typogrify_is_caps_on_$format", 1), ); - + // Wrap initial quotes settings $form['typogrify_settings']["typogrify_is_initial_quotes_on_$format"] = array( '#type' => 'checkbox', '#title' => t('Wrap quotation marks'), '#default_value' => variable_get("typogrify_is_initial_quotes_on_$format", 1), ); - + // Ligature Conversion Settings $form['typogrify_settings']['ligatures'] = array( '#type' => 'fieldset', @@ -203,15 +222,16 @@ function _typogrify_settings($format) { '#collapsed' => TRUE, ); + global $ligature_map; foreach ($ligature_map as $pair => $ligature) { - $setting = 'typogrify_use_' . $pair . '_ligature_' . $format; + $setting = 'typogrify_use_'. $pair .'_ligature_'. $format; $form['typogrify_settings']['ligatures'][$setting] = array( '#type' => 'checkbox', '#title' => t("Convert $pair to $ligature"), '#default_value' => variable_get($setting, 0), ); } - + // Arrow Conversion Settings $form['typogrify_settings']['arrows'] = array( @@ -221,21 +241,23 @@ function _typogrify_settings($format) { '#collapsed' => TRUE, ); + global $arrow_map; foreach ($arrow_map as $ascii => $unicode) { - $setting = 'typogrify_use_unicode_for_' . $ascii . '_' . $format; + $setting = 'typogrify_use_unicode_for_'. $ascii .'_'. $format; $form['typogrify_settings']['arrows'][$setting] = array( '#type' => 'checkbox', '#title' => t("Convert $ascii to $unicode"), '#default_value' => variable_get($setting, 0), ); } - - + + // Version Information Settings $the_output = '