Index: INSTALL.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textile/INSTALL.txt,v
retrieving revision 1.4
diff -u -r1.4 INSTALL.txt
--- INSTALL.txt	15 Feb 2007 18:10:10 -0000	1.4
+++ INSTALL.txt	18 Jun 2007 19:02:27 -0000
@@ -1,10 +1,11 @@
-textile.module
-INSTALL.txt
 $Id: INSTALL.txt,v 1.4 2007/02/15 18:10:10 jhriggs Exp $
 
-For a new installation, copy the entire textile module directory to
-the appropriate module directory within your Drupal installation. Then
-log into your site, enable the Textile module on the
-admin/build/modules page. Finally, you must add the Textile filter to
-the appropriate input formats and set any desired configuration
-options.
+For a new installation, copy the entire textile module directory to the appropriate module directory within your Drupal installation. 
+
+Then download the most up to date (2.0.0 or later) textile library from thresholdstate:
+
+http://textile.thresholdstate.com/
+
+The library should be availble via a link on the right in tar.gz or zip formats. Uncompress the download, and place the classTextile.php file into the same directory as textile.module.
+
+Then log into your site, enable the Textile module on the admin/build/modules page. Finally, you must add the Textile filter to the appropriate input formats and set any desired configuration options.
\ No newline at end of file
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textile/README.txt,v
retrieving revision 1.4
diff -u -r1.4 README.txt
--- README.txt	15 Feb 2007 18:10:10 -0000	1.4
+++ README.txt	18 Jun 2007 19:02:27 -0000
@@ -23,12 +23,13 @@
   - textile.info
       the module information file used by Drupal
 
-  - textilephp (directory)
-      a PHP port of Brad Choate's (<brad at bradchoate dot com>)
-      Textile.pm (<http://bradchoate.com/mt-plugins/textile>) Perl
-      module ported by Jim Riggs (PHP source code); this file is
-      available separately under the GNU GPL from
-      <http://jimandlissa.com/project/textilephp>
+  - classTextile.php (external dependency)
+      you will need to download the most up-to-date textile library from:
+      
+      http://textile.thresholdstate.com/
+      
+      and place its classTetxile.php file in to the same directory as 
+      textile.module
 
   - README.txt (this file)
       general module information
Index: textile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textile/textile.module,v
retrieving revision 1.19.2.1
diff -u -r1.19.2.1 textile.module
--- textile.module	1 Mar 2007 18:12:43 -0000	1.19.2.1
+++ textile.module	18 Jun 2007 19:02:27 -0000
@@ -1,10 +1,10 @@
 <?php
-// $Id: textile.module,v 1.19.2.1 2007/03/01 18:12:43 jhriggs Exp $
+// $Id: textile.module,v 1.20 2007/03/01 18:16:02 jhriggs Exp $
 
 /**
  * The textile module allows input of Textile shorthand.
  *
- * @version $Id: textile.module,v 1.19.2.1 2007/03/01 18:12:43 jhriggs Exp $
+ * @version $Id: textile.module,v 1.20 2007/03/01 18:16:02 jhriggs Exp $
  * @copyright Copyright (c) 2003-2007 Jim Riggs.  All rights reserved.
  * @author Jim Riggs <drupal at jim and lissa dot com>
  */
@@ -371,12 +371,18 @@
   static $textile = NULL;
 
   if ($textile === NULL) {
-    require_once(dirname(__FILE__) . '/DrupalTextile.inc');
+    require_once(dirname(__FILE__) . '/classTextile.inc');
 
-    $textile = new DrupalTextile(array('charset' => 'UTF-8', 'char_encoding' => 0, 'smarty_mode' => DEFAULT_OPERATION_MODE));
+    $textile = new Textile();
+    //$textile->hu is the string that preceeds all relative URLs.
+    //So I copied the part of url() implementation in common.inc
+    //not tested in real non-Apache webserver yet
+    $textile->hu = 
+      base_path()
+      . ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') === FALSE) ? 'index.php' : '')
+      . ((bool)variable_get('clean_url', '0') ? '' : '?q=')
+    ;
   }
-
-  return $textile->process($matches[1]);
-}
-
-?>
\ No newline at end of file
+  //should there be any encoding declaration of some sort?  Can't find how to do it though
+  return $textile->TextileThis($matches[1]);
+}
\ No newline at end of file
