Project

General

Profile

Feature #2132

ASCIIMathML graphs

Added by Furio Petrossi about 9 years ago. Updated over 8 years ago.

Status:
Feature implemented
Priority:
Low
Category:
-
Target version:
Start date:
11/10/2010
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

I see that - using svg-editor - Chamilo agree to use svg files.

So it is possible to use the d.svg file that's a parte of the ASCIIMathML way to make graphs.

I know that Ivan Tcholakov is the very expert about this feature so I need an opinion.
The feature is not urgent but interesting.

For examples look at http://www1.chapman.edu/~jipsen/svg/asciisvgeditor.html or http://www1.chapman.edu/~jipsen/svg/graphs/lines.html


Files

GrapdsCattura.JPG (26.4 KB) GrapdsCattura.JPG graph popup window Furio Petrossi, 26/10/2010 22:55
asciisvg_editor_testing_sample.png (58.7 KB) asciisvg_editor_testing_sample.png Ivan Tcholakov, 05/01/2011 16:50

Related issues

Related to Chamilo LMS - Feature #2484: improve experience in the tool documentsFeature implemented28/12/2010

Actions
Related to Chamilo LMS - Bug #1662: wiki and ASCIIMathMLFeature implemented29/06/2010

Actions

History

#3

Updated by Furio Petrossi about 9 years ago

As you can see in
http://chamilodev.beeznest.com/courses/DEMOITA01/document/index.html?cidReq=DEMOITA01

There's a file ( index ) that contains only

agraph axes(); plot(sin(x -(pi/2))) endagraph

I used an uploaded ASCIIMathML.js file, 'cause I don't know if the Chamilo's one has all the features, using it so

<script src="ASCIIMathML.js" type="text/javascript"></script>

then I uploaded the image d.svg ; perhaps it's only necessary to declare a path in ;

<script type="text/javascript">dsvglocation="..."</script>

If you doubleclick the image, you can change the plot(...) text and preview the effect of changements.

For math people it's better to have a simple syntax for graph in files.
A more complicated statement can be

width=300; height=300; xmin=-10; xmax=10; xscl=4; axes(); plot(sin(x -(pi/2)))

_ Note: my friend in http://www.asciimathml.com/dredging/ changed the code and he's doing unbelievable things using his code, but perhaps it is too much for a LMS... _

#4

Updated by Ivan Tcholakov about 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Tcholakov
  • Complexity changed from Challenging to Normal
#5

Updated by Ivan Tcholakov about 9 years ago

12864:43a7aeed6d45 Feature #2132 - ASCIIMathML.js script: The default setting translateLaTeX has been set to boolean true. This is needed for showing mathematical graphics. But the script gets sensitive to $ signs in the document. If by $ you mean US dollars (not a LaTex formula), better change the symbol $ to USD.
http://code.google.com/p/chamilo/source/detail?r=43a7aeed6d45068062fe8301054ae6e83ed33799&repo=classic

Notes:
1. After this change the built script http://...../chamilo/main/inc/lib/asciimath/ASCIIMathML.js may be used for showing graphics too.
2. If in the document by the symbol $ you don't mean LaTeX formula, then escape it as \$ to preserve it.

12863:74342bd8a426 Feature #2132 - ASCIIMathML.js script: Conversion of the leading tabs into spaces.
http://code.google.com/p/chamilo/source/detail?r=74342bd8a426df6149630abda2086492c2a712ef&repo=classic

#6

Updated by Ivan Tcholakov about 9 years ago

12866:664ad801fa4b Feature #2132 - ASCIIMathML.js script: Correction of the previous transaction, fixing a date.
http://code.google.com/p/chamilo/source/detail?r=664ad801fa4bf8b56c58a1f4072bcfc6f9ee3cbd&repo=classic

#7

Updated by Ivan Tcholakov about 9 years ago

12867:66a97246df93 Feature #2132 - Starting development of a new plug-in "asciisvg" for the online editor.
http://code.google.com/p/chamilo/source/detail?r=66a97246df93eb7d4221e7623ec52d2605ea856f&repo=classic

#8

Updated by Ivan Tcholakov about 9 years ago

12869:85dbcc4315f3 Feature #2132 - The online editor, cleaning the configuration file myconfig.php.
http://code.google.com/p/chamilo/source/detail?r=85dbcc4315f3d59126e58746eea2075f3bd3ee55&repo=classic

12868:ea22f962a5b4 Feature #2132 - Development of "asciisvg" plug-in (1).
http://code.google.com/p/chamilo/source/detail?r=ea22f962a5b4a6242aeb6e005ef30ed8cdfb175b&repo=classic

#9

Updated by Juan Carlos Raña Trabado almost 9 years ago

Ideally, the user can perform mathematical formulas nothing more than your browser. The new generation of browsers with SVG support probably make this plugin, whatever other utility and existing or future, the default editor Chamilo mathematician. Very well Ivan.

#10

Updated by Furio Petrossi almost 9 years ago

Perhaps my fault, but I tried to activate graph plugin changing fckeditpr myconfig.php

if ((api_get_setting('math_asciimathML') == 'true')) {
    $config['LoadPlugin'][] = 'asciimath';
    $config['LoadPlugin'][] = 'asciisvg';

and documents.php in toolbars/extended
array('mimetex','asciimath','asciisvg','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'),
    '/',

a blank popup window is opened (look at attached image)

#11

Updated by Ivan Tcholakov almost 9 years ago

Yes, this is where I am. There is enough time, this work is not urgent at the moment.

#12

Updated by Ivan Tcholakov almost 9 years ago

13170:88c87758148c Feature #2132 - Development of "asciisvg" plug-in (2), unfinished work.
https://code.google.com/p/chamilo/source/detail?r=88c87758148ccdefd570027cd593a81919c0eb02&repo=classic

#13

Updated by Ivan Tcholakov almost 9 years ago

  • Target version changed from 1.8.8 stable to 1.8.8 alpha
#14

Updated by Ivan Tcholakov almost 9 years ago

13195:321de9d089b6 Feature #2132 - Development of "asciisvg" plug-in (3), a file has been added temporarily.
http://code.google.com/p/chamilo/source/detail?r=321de9d089b6dfb0c53f094efe5de111eb2e434a&repo=classic

#16

Updated by Ivan Tcholakov almost 9 years ago

13210:5860bac9b185 Feature #2132 - Development of "asciisvg" plug-in (5). An image has been added.
http://code.google.com/p/chamilo/source/detail?r=5860bac9b1850d2d61b83822810d6034aaf3411e&repo=classic

#17

Updated by Ivan Tcholakov almost 9 years ago

13211:85204d2a0b6d Feature #2132 - Development of "asciisvg" plug-in (6). The css definition .FCK__AsciiSvg has been added.
http://code.google.com/p/chamilo/source/detail?r=85204d2a0b6dd734b9b7d52ee135138cd1c99e1f&repo=classic

#18

Updated by Ivan Tcholakov almost 9 years ago

13212:a5e0f6aaac01 Feature #2132 - Development of "asciisvg" plug-in (7). Minor corrections.
http://code.google.com/p/chamilo/source/detail?r=a5e0f6aaac0125fd86f1660b8e4716f4babc7399&repo=classic

#19

Updated by Ivan Tcholakov almost 9 years ago

13213:5afd08971fd2 Feature #2132 - "asciisvg" plug-in (8). Cleaning some files.
http://code.google.com/p/chamilo/source/detail?r=5afd08971fd2f3e572b2a721b621fa9f2b6519ba&repo=classic

#20

Updated by Ivan Tcholakov almost 9 years ago

13214:18d51922fa55 Feature #2132 - "asciisvg" plug-in (9). Updating some compressed javascripts.
http://code.google.com/p/chamilo/source/detail?r=18d51922fa551a0f22434ba744ba6be8bfb62eaa&repo=classic

#21

Updated by Ivan Tcholakov almost 9 years ago

13215:5bed484910fb Feature #2132 - "asciisvg" plug-in: Partial support for the so-called "fake images" in the editor.
http://code.google.com/p/chamilo/source/detail?r=5bed484910fbdffb4a172d4f327cc26ff5fe0c8f&repo=classic

#22

Updated by Ivan Tcholakov almost 9 years ago

13216:36c6d3064040 Feature #2132 - "asciisvg" plug-in: Supporting "fake images" has been implemented.
http://code.google.com/p/chamilo/source/detail?r=36c6d3064040a000ee6413569c2511092e6285be&repo=classic

#23

Updated by Ivan Tcholakov almost 9 years ago

13218:06beac40dfe6 Feature #2132 - "asciisvg" plug-in: Adding double-click and context menu support (updating the compressed files).
http://code.google.com/p/chamilo/source/detail?r=06beac40dfe6129b779c8f211b3abe2ee1d03dda&repo=classic

13217:d190c38c5829 Feature #2132 - "asciisvg" plug-in: Adding double-click and context menu support.
http://code.google.com/p/chamilo/source/detail?r=d190c38c58298df773e66a52ca7bd88da496db3d&repo=classic

#24

Updated by Ivan Tcholakov almost 9 years ago

13219:e2a743ade422 Feature #2132 - "asciisvg" plug-in: Selection loading has been added in the dialog (unfinished).
http://code.google.com/p/chamilo/source/detail?r=e2a743ade42246ce789ad12ba678c205f09e219f&repo=classic

#25

Updated by Ivan Tcholakov almost 9 years ago

13239:a11dbda3425e Feature #2132 - "asciisvg" plug-in: Testing and corrections.
http://code.google.com/p/chamilo/source/detail?r=a11dbda3425e68ad859ea91c69cf1055f4da3127&repo=classic

#26

Updated by Ivan Tcholakov almost 9 years ago

13248:b696bb712210 Feature #2132 - "asciisvg" plug-in: Code simplification.
http://code.google.com/p/chamilo/source/detail?r=b696bb71221062839385a3d2ee21959a1ee04116&repo=classic

13247:e3749cf73ec2 Feature #2132 - "asciisvg" plug-in: Cleaning and minor corrections.
http://code.google.com/p/chamilo/source/detail?r=e3749cf73ec27a6445932ba229ac7fdc31ff66bd&repo=classic

#27

Updated by Ivan Tcholakov almost 9 years ago

13249:3ce18509025e Feature #2132 - "asciisvg" plug-in: Reverting passed by mistake changes by the previous transaction.
http://code.google.com/p/chamilo/source/detail?r=3ce18509025e7b0b29595a321b3cf6ebb20831e2&repo=classic

#28

Updated by Ivan Tcholakov almost 9 years ago

13250:772d8f482345 Feature #2132 - "asciisvg" plug-in: Now created graphics can be stored in the document.
http://code.google.com/p/chamilo/source/detail?r=772d8f48234502ebe4147a9892e9c9571ce1b2bc&repo=classic

#29

Updated by Ivan Tcholakov almost 9 years ago

13252:d12ddee3319e Feature #2132 - "asciisvg" plug-in: The script ASCIIMathML.js is linked to the document automaticaly, when it is needed.
http://code.google.com/p/chamilo/source/detail?r=d12ddee3319e1a9db087b724059f3e8a4a95ebb8&repo=classic

#30

Updated by Ivan Tcholakov almost 9 years ago

13256:d63691578a0f Feature #2132 - "asciisvg" plug-in: Adding the configuration option, placing some buttons.
http://code.google.com/p/chamilo/source/detail?r=d63691578a0f4045bf61980b8cfe2468c17162c7&repo=classic

13255:c0c56ac07026 Feature #2132 - "asciisvg" plug-in: Adding the administrator's setting for activation of the feature (database changes only).
http://code.google.com/p/chamilo/source/detail?r=c0c56ac07026c23c8523a9290b4a2c7cd552832a&repo=classic

#31

Updated by Ivan Tcholakov almost 9 years ago

13257:b30e708d2670 Feature #2132 - "asciisvg" plug-in: Placing a missing button.
http://code.google.com/p/chamilo/source/detail?r=b30e708d2670b3b5673675d1dca8c7e64a9bd09f&repo=classic

#32

Updated by Ivan Tcholakov almost 9 years ago

  • % Done changed from 0 to 30
#33

Updated by Ivan Tcholakov almost 9 years ago

13259:fac7523787d6 Feature #2132 - "asciisvg" plug-in: Implementing language variables for the dialog so translations of the dialog to be possible.
http://code.google.com/p/chamilo/source/detail?r=fac7523787d6cab62006012f343770377b6ceee4&repo=classic

#34

Updated by Ivan Tcholakov almost 9 years ago

  • % Done changed from 30 to 50

13261:4d570d41d709 Feature #2132 - "asciisvg" plug-in: Various corrections.
http://code.google.com/p/chamilo/source/detail?r=4d570d41d709c7ed2822014e53b7fd1c99e3f357&repo=classic

13260:6d4888529752 Feature #2132 - "asciisvg" plug-in: Opening the language files.
http://code.google.com/p/chamilo/source/detail?r=6d48885297527ad6dccd2e8cb117723a770a6abd&repo=classic

#37

Updated by Ivan Tcholakov almost 9 years ago

I am attaching a picture which shows how the ASCIIsvg editor works.

#38

Updated by Ivan Tcholakov almost 9 years ago

13269:419fecdf79cd Feature #2132 - "asciisvg" plug-in: Writing the file readme.txt.
http://code.google.com/p/chamilo/source/detail?r=419fecdf79cd3f0f207fd5fa90236f8933d68e4e&repo=classic

#39

Updated by Ivan Tcholakov almost 9 years ago

13270:7631c221a83e Feature #2132 - "asciisvg" plug-in: Updating credits.html.
http://code.google.com/p/chamilo/source/detail?r=7631c221a83edd328337e0bf83848a0c9ac65d06&repo=classic

#40

Updated by Ivan Tcholakov almost 9 years ago

13271:b3f74f136035 Feature #2132 - "asciisvg" plug-in: Updating changelog.html and readme.txt.
http://code.google.com/p/chamilo/source/detail?r=b3f74f13603554f9ce31c7f81484ed274b4d09c7&repo=classic

#41

Updated by Ivan Tcholakov almost 9 years ago

13274:b25293b8ad78 Feature #2132 - "asciisvg" plug-in: Testing, fixing a mistake.
http://code.google.com/p/chamilo/source/detail?r=b25293b8ad78a9c42bee78ab29cf2473a71c60e6&repo=classic

#42

Updated by Ivan Tcholakov almost 9 years ago

13275:4f8e93ad7232 Feature #2132 - "asciisvg" plug-in: Fixing a wrong translation.
http://code.google.com/p/chamilo/source/detail?r=4f8e93ad72320b6b5a29fefd38bd3343857a5cdc&repo=classic

#43

Updated by Ivan Tcholakov almost 9 years ago

13276:06405ed68bf4 Feature #2132 - "asciisvg" plug-in: Testing, a minor correction.
http://code.google.com/p/chamilo/source/detail?r=06405ed68bf43a48ac7ed7be83671eedf5d89f04&repo=classic

#44

Updated by Ivan Tcholakov almost 9 years ago

13277:524a60b341c0 Feature #2132 - "asciisvg" plug-in: Testing, yet another correction.
http://code.google.com/p/chamilo/source/detail?r=524a60b341c083b1659024689cbd1e3cc9977041&repo=classic

#45

Updated by Ivan Tcholakov almost 9 years ago

13278:c4398403ec30 Feature #2132 - "asciisvg" plug-in: Fixing a minor error in the library file ASCIIMathML.js.
http://code.google.com/p/chamilo/source/detail?r=c4398403ec303497937494a33c2f0df16960e960&repo=classic

#46

Updated by Ivan Tcholakov almost 9 years ago

13280:1ecf98636cf4 Feature #2132 - "asciisvg" plug-in: Cleaning whitespace within a file.
http://code.google.com/p/chamilo/source/detail?r=1ecf98636cf46819528b8172c77ef56805bb56a8&repo=classic

#47

Updated by Ivan Tcholakov almost 9 years ago

13284:05f99124cf2e Feature #2132 - "asciisvg" plug-in: Corrections to the previous transaction.
http://code.google.com/p/chamilo/source/detail?r=05f99124cf2e0a4888628f17f48b61606866c804&repo=classic

#48

Updated by Ivan Tcholakov almost 9 years ago

13287:f48dfba31ad5 Feature #2132 - "asciisvg" plug-in: Disabling the preview element in the dialog when the browser does not support SVG.
http://code.google.com/p/chamilo/source/detail?r=f48dfba31ad5a82aa71e664b2dcbd85d69e3096f&repo=classic

#49

Updated by Ivan Tcholakov almost 9 years ago

  • Status changed from Assigned to Needs more info
  • Target version changed from 1.8.8 alpha to 1.8.8 stable
  • % Done changed from 50 to 80

I did successfull tests with:

Internet Explorer 8 + Adobe SVG Viewer (see http://www.adobe.com/svg/viewer/install/)
Mozilla Firefox 3.6.13
Opera 11.00
Chrome 8.0.552.224
Safari 5.0.3

The plugin is ready for Chamilo 1.8.8 alpha release. I am leaving this task opened for gathering some feedback and I intend to close it before the final Chamilo 1.8.8 release.

#50

Updated by Furio Petrossi almost 9 years ago

A great job.
I tested it in a local portable version (Uniform server)& Firefox.
All OK after saved; the graph is not showed immediatly during the editing - if it is a new graph - but when saved all is ok.
Thank you
Furio

#51

Updated by Juan Carlos Raña Trabado almost 9 years ago

It has been really good. But let me any question. ASCIIMath windows and SVGMath are too big for 1024x768, and was not popup, become unmanageable when keys are lost. The same happens with other plugins such as flv to have to be reduced especially in height. Note that some projects such as OLPC or minicomputers that use thousands of students have a reduced screen height. On the other hand, there are tools that do not get a correct image after saving the image, it would be ideal to extend these buttons to all the bars in the editor. And one last: in languages like Spanish characters are not seen either in the text. It seems much what I've written here, but it is infinitely small in comparison with the work you've done. Congratulations.

#52

Updated by Ivan Tcholakov almost 9 years ago

13290:72cf095f3629 Feature #2132 - "asciimath" and "asciisvg" plug-ins: Reduction of the heights of the dialogs, so they to fit on screen resolution 1024x768.
http://code.google.com/p/chamilo/source/detail?r=72cf095f362977e37d8b5d64daafc804f2fd0ea5&repo=classic

#53

Updated by Ivan Tcholakov almost 9 years ago

13291:72405d761dcc Feature #2132 - "asciisvg" plug-in: A correction for avoiding javascript error in a specific case.
http://code.google.com/p/chamilo/source/detail?r=72405d761dccf47f7f8860f1a129eab9a993fe48&repo=classic

#54

Updated by Ivan Tcholakov almost 9 years ago

See http://support.chamilo.org/issues/2484#note-20
Some additional work is to be done.

#55

Updated by Ivan Tcholakov almost 9 years ago

13313:0946424a4b93 Feature #2132 - Necessary additional configuration checks have been implemented.
http://code.google.com/p/chamilo/source/detail?r=0946424a4b930305cba04f31cb40c6a06aa05d70&repo=classic

13312:54554c7a9d53 Feature #2132 - Updating some language files.
http://code.google.com/p/chamilo/source/detail?r=54554c7a9d5362d290a5c69827055358abba06dd&repo=classic

13311:a932f3f99c5d Feature #2132 - Adding code for loading the file ASCIIMathML.js (2).
http://code.google.com/p/chamilo/source/detail?r=a932f3f99c5de6a3bbc45a6953b21d2e22ae4d51&repo=classic

13310:acaef0c87c17 Feature #2132 - Adding code for loading the file ASCIIMathML.js in the system's header. Thus this javascript is accessible almost elsewhere in the system.
http://code.google.com/p/chamilo/source/detail?r=acaef0c87c177bac3e44eea9e4f887ce33888881&repo=classic

13309:6d6bab6fd9bb Feature #2132 - Adding an administrator's setting allowing inclusion of the file ASCIIMathML.js in the system's header (database changes only are here).
http://code.google.com/p/chamilo/source/detail?r=6d6bab6fd9bbe5c070f3ad3f50038a947ed77350&repo=classic

#56

Updated by Ivan Tcholakov almost 9 years ago

13314:85a761193c3e Feature #2132 - Adding the buttons 'asciimath' and 'asciisvg' in the introduction section button-set for testing purposes and fun.
http://code.google.com/p/chamilo/source/detail?r=85a761193c3e168c93ca2d96720733cf9ade8309&repo=classic

#57

Updated by Ivan Tcholakov almost 9 years ago

One moment I should not forget about:

When a wiki-page is exported to the "Documents" tool it is converted to a full page html head /head body /body /html. The content of the wiki-page should be checked whether it contains ASCIMathML formulas and ASCIIsvg graphics. If so, the script ASCIIMathML.js should be included in the header of the newly created html-document.

#58

Updated by Ivan Tcholakov almost 9 years ago

13315:6d92ef56347c Feature #2132 - Automatic whitespace cleaning of the file wiki.inc.php.
http://code.google.com/p/chamilo/source/detail?r=6d92ef56347cbe14f86f3bf3f41478516ac04ec0&repo=classic

#59

Updated by Ivan Tcholakov almost 9 years ago

13316:fb74dc7b7604 Feature #2132 - Implementing automatic (when it is needed) inclusion of the script ASCIIMathML.js when a wiki-page is converted as full html document, stored in the Documents tool.
http://code.google.com/p/chamilo/source/detail?r=fb74dc7b7604adf284936872bf78f4114f18b19a&repo=classic

#61

Updated by Ivan Tcholakov almost 9 years ago

13321:8a203582d96e Feature #2132 - ASCIIMathML.js - The live coordinates in svg-graphs are removed, because they are not calculated correctly for most of the browsers.
http://code.google.com/p/chamilo/source/detail?r=8a203582d96eba995045b3ab5631d61523b3d4df&repo=classic

13320:7cdd7bcca9aa Feature #2132 - Suppressing yet another javascrit error.
http://code.google.com/p/chamilo/source/detail?r=7cdd7bcca9aa5bfa348217e0a22bb3e8f74871ee&repo=classic

13319:ba8f0b3d9867 Feature #2132 - Suppressing a javascrit error.
http://code.google.com/p/chamilo/source/detail?r=ba8f0b3d9867221f7e67fe15a1ea404f1756e7ca&repo=classic

#63

Updated by Ivan Tcholakov over 8 years ago

  • Status changed from Needs more info to Feature implemented
  • % Done changed from 80 to 100

I think, there is no sense for keeping this task opened anymore. I consider it as done.

Also available in: Atom PDF