Closed (fixed)
Project:
DruTeX
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
25 Sep 2009 at 21:42 UTC
Updated:
23 Sep 2011 at 16:16 UTC
Jump to comment: Most recent file
Hello, is there an intention to make Drutex work for Drupal 7?
| Comment | File | Size | Author |
|---|---|---|---|
| #28 | notice_remove.patch.txt | 2.61 KB | Hyunwoo |
| #26 | Screen shot 2011-07-11 at 1.53.35 PM.png | 133.43 KB | dwalker51 |
| #13 | 46ebb3b4ca2313e7e38a0aff36f6577dd399cfe4.png | 637 bytes | csp |
| #13 | 383276ef1367523496ff955fe64d81453a28b131.png | 355 bytes | csp |
| #11 | initial-port-to-D7.patch | 96.67 KB | abbasmousavi |
Comments
Comment #1
MGN commentedI will be interested in this and hope to find some time to work on it, but it probably won't be for a while. I am working on porting two other packages over the next couple of months. But then I'll be happy to help port this one.
Comment #2
semio commentedI will also be interesed in a D7 version. I will stay in D6 until DruTeX is ported.
Thank for your work.
Comment #3
majortom commentedThis would be one of the things I need to move one of the sites I help maintain to Drupal 7.
Comment #4
julou commented+1
Comment #5
csp commented+1
Comment #6
Robert S commented+1
Comment #7
julou commentedAny news about this?
Could the maintainer comment on the port of this module? any timeline?…
Thank you in advance,
Thomas
Comment #8
esculcar commentedComment #9
Daimon commented+1
Comment #10
abbasmousavi commentedThe 7.x-1.x-dev version on release page does not work,
I am working on a port to D7 and it is now working but has some small
problems, I will post the patch here soon.
Comment #11
abbasmousavi commentedThis is initial port to drupal 7. I have ran coder update on code and then manually edited the code.
I have changed the setting system to use filter settings column in database instead of drupal variables, and updated some functions that changed from D6 to D7.
With this patch, render module, security module and tools modules work correctly. It means that you can now render latex formula in nodes, other modules need work, and I am working on them.
This is a patch against 7.x-1.x-dev version.
I will post my work on other modules soon.
Comment #12
abbasmousavi commentedI have committed the patch in #11 to 7.x-1.x branch.
Comment #13
csp commentedThanks for the port.
I currently have 2 problems with it:
- the png images are to big (see attached files) and not line align;
- I have the flowing notices:
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 843 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 844 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 846 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 848 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: format dans drutex_submodule_implements() (ligne 853 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: displaystyle dans drutex_render() (ligne 232 dans /home/user/sitename/sites/all/modules/drutex/drutex_render.inc).
Notice: Undefined index: id dans drutex_render() (ligne 325 dans /home/user/sitename/sites/all/modules/drutex/drutex_render.inc).
Notice: Undefined index: dans _drutex_references() (ligne 100 dans /home/user/sitename/sites/all/modules/drutex/drutex_numbering.inc).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined variable: displaystyle dans drutex_render() (ligne 232 dans /home/user/sitename/sites/all/modules/drutex/drutex_render.inc).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Trying to get property of non-object dans drutex_linebreak_node2html_postprocess() (ligne 49 dans /home/user/sitename/sites/all/modules/drutex/drutex_linebreak.inc).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/sitename/sites/all/modules/drutex/drutex.module(444) : regexp code).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Undefined property: stdClass::$type dans _drutex_create_regex() (ligne 446 dans /home/user/sitename/sites/all/modules/drutex/drutex.module).
Notice: Trying to get property of non-object dans drutex_linebreak_node2html_postprocess() (ligne 49 dans /home/user/sitename/sites/all/modules/drutex/drutex_linebreak.inc).
Comment #14
abbasmousavi commentedThank you for testing Drutex.
I know about the notices and I will fix them in next commit.
about png images:
are you using default settings for drutex and your TeX installation?
can you help me reproduce the problem?
Comment #15
csp commentedThanks,
Conversion Method: dvipng
The temporary directory is writable.
The image directory is writable.
Executing "latex" was successful: pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
Executing "dvipng" was successful: This is dvipng 1.11 Copyright 2002-2008 Jan-Ake Larsson
Executing "convert" (ImageMagick) was successful: Version: ImageMagick 6.3.7 11/16/10 Q16 http://www.imagemagick.org
Comment #16
csp commentedMore details about my TeX installation:
----------------------------------------------
$ tex -version
TeX 3.141592 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 D.E. Knuth.
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
Kpathsea written by Karl Berry, Olaf Weber, and others.
----------------------------------------------
$ latex -version
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX using libpoppler copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX using libpoppler source.
Primary author of pdfTeX using libpoppler: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with libpng 1.2.27; using libpng 1.2.27
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
Compiled with libpoppler version 3.00
-------------------------------------------
$ dvipng -version
This is dvipng 1.11 Copyright 2002-2008 Jan-Ake Larsson
dvipng 1.11
kpathsea version 3.5.6
Compiled with Freetype 2.3.7
Using libft 2.3.7
Using t1lib 5.1.2
Copyright (C) 2002-2008 Jan-Ake Larsson.
There is NO warranty. You may redistribute this software
under the terms of the GNU Lesser General Public License
version 3, see the COPYING file in the dvipng distribution
or .
Comment #17
abbasmousavi commentedthanks,
I will look at the problem as soon as possible.
Comment #18
FrequenceBanane commentedsubscribe
Comment #19
mateoR commentedLikewise, very eager for a (functioning) D7 version to come out! Any updates since last month abbasmousavi?
Does anyone know of a module that can be used to display math in the meantime on D7?
Comment #20
abbasmousavi commented@mateoR:
In the meantime you can use the D7 dev version if you want just render math in nodes, it has some problems but it works.
Comment #21
abbasmousavi commentedjust to inform everybody on this issue, please test the first alpha release of DruTeX for D7.
Comment #22
csp commentedThank you.
I just test it, and after an unfinishing update, I now have everywhere a white page with :
Fatal error: Call to undefined function dpm() in /home/user/website.com/sites/all/modules/drutex/drutex.module on line 862
Do you need more info?
Comment #23
jmaguniaYes, I get the same thing:
Fatal error: Call to undefined function dpm() in /home//html/d7/sites/all/modules/drutex/drutex.module on line 862
Comment #24
abbasmousavi commentedI fixed this and commited
see http://drupalcode.org/project/drutex.git/commit/766d34f
Comment #25
csp commentedThank you,
I don't have #22 anymore.
But I still have
the png images are to big and not line align
like in #13, and ("dans" is the french word for "in"):
Notice: Undefined index: verbatim dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: numbering dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: tools dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Undefined variable: id dans drutex_render() (ligne 327 dans /home/user/website/sites/all/modules/drutex/drutex_render.inc).
Notice: Undefined index: dans _drutex_references() (ligne 100 dans /home/user/website/sites/all/modules/drutex/drutex_numbering.inc).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Trying to get property of non-object dans drutex_linebreak_node2html_postprocess() (ligne 49 dans /home/user/website/sites/all/modules/drutex/drutex_linebreak.inc).
Notice: Undefined index: verbatim dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: numbering dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: tools dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Undefined variable: id dans drutex_render() (ligne 327 dans /home/user/website/sites/all/modules/drutex/drutex_render.inc).
Notice: Undefined index: dans _drutex_references() (ligne 100 dans /home/user/website/sites/all/modules/drutex/drutex_numbering.inc).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Use of undefined constant filter - assumed 'filter' dans preg_replace() (ligne 1 dans /home/user/website/sites/all/modules/drutex/drutex.module(363) : regexp code).
Notice: Trying to get property of non-object dans drutex_linebreak_node2html_postprocess() (ligne 49 dans /home/user/website/sites/all/modules/drutex/drutex_linebreak.inc).
Notice: Undefined index: verbatim dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: numbering dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Notice: Undefined index: tools dans drutex_submodule_is_active() (ligne 635 dans /home/user/website/sites/all/modules/drutex/drutex.module).
Comment #26
dwalker51 commentedI upgrade from the penultimate dev version ( before 2011-Jul-03) to the alpha1 version it worked fine, however I had to modify the drutex.module file on line 862 due to an having a hwhole lot of comments appear on the screen.
I commented out the following line and everything came back to normal, please advise if this what I should have done or wether this will cause any problems
/*dpm(drutex_submodule_list());*/
Thanks... everything else seems to work fine, I can create latex formula and my previous formulas still work
Comment #27
shaundychkodpm is just a debugging statement used by the Devel module. It is fine to comment it out (the module author will delete it on their next commit).
Comment #28
Hyunwoo commentedI have removed some php notices, warnings that was mentioned above..
can you review the patch?
Comment #29
abbasmousavi commentedThanks, I will review the patch as soon as possible.
Comment #30
Hyunwoo commentedhttp: slash slash hamyeo dot net/~hyun/tmp/drutex.somemore.diff
here is some more fixes. rewritten some functions.
its working on http: slash slash hamyeo dot net/drupal/node/1
Regards.
Comment #31
abbasmousavi commentedThe initial port is complete now, please create a new issue for each problem in D7 version.