Shoutbox

Equation sender plugin - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Equation sender plugin (/showthread.php?tid=26838)

Equation sender plugin by illuzn on 06-06-2004 at 04:27 PM

Hi guys

I was wondering if anybody knew of an equation sender plugin for maths homework and the like... I remember seeing something on the forum a while back but a search revealed nothing. Any help is appreciated.


RE: Equation sender plugin by Tochjo on 06-06-2004 at 04:48 PM

I don't think a plug-in for this exists.
I'd advise you to either

  • type it like  sqrt(34)*2^3  (or similar)
  • type it in a Word document using the Equation editor

RE: Equation sender plugin by dotNorma on 06-06-2004 at 04:52 PM

The StuffPlug by DJMystic (TheBlasphemer) had these functions. You could do like...

/xcalc 4+3-7/53 and stuff (y)


RE: Equation sender plugin by Tochjo on 06-06-2004 at 04:54 PM

But wouldn't that do the calculation, not send the actual text? To me, it looks like illuzn wants the text to be sent, in a mathematical looking way.


RE: Equation sender plugin by dotNorma on 06-06-2004 at 05:03 PM

Ohhh , Like instead of sending the "4 + 5 - 7 / 8 * 9"

It sends the mathmatical symbols? It would be possible if somebody new what the mathmatical symbols where. I could never find them :-/

It wouldnt be hard , It could actually be done with a stuffplug talker and a quick text to make it easier.

/xtalk math <Equation> and make it a quick text to make it "/math (!P)". But somebody needs to make the talker.


RE: Equation sender plugin by Plik on 06-06-2004 at 10:45 PM

Okay so far i've got this in javascript

code:
function talker (input) {

    var output=input;
    output=output.replace(new RegExp("Sqrt","gi"),"v");
    output=output.replace(new RegExp("^2","gi"),"²");
    output=output.replace(new RegExp("^3","gi"),"³");
    output=output.replace(new RegExp("/","gi"),"÷");
    output=output.replace(new RegExp("*","gi"),"x");
    return output;
}


But when i try it it returns this error
Error:Error: Unexpected quantifier, ; in line 8
:S so im stumped
so if anyone could give me a tip i could finish it of and post a finished version

<edit>
the "v" is the square root symble i just lost it when i was writing the script
</edit>

oh and if you nick my code please give me credit :D
RE: Equation sender plugin by illuzn on 06-07-2004 at 09:47 AM

if i did it in MS Equation 3.0 i wouldn't be able to just send it on the screen right?
I'm just looking for a plugin that will superscript powers for me and do soe of the other stuff maddman66 has got...
I guess i could always handwrite it *eek* except i've got ugly writing :p


RE: Equation sender plugin by Plik on 06-07-2004 at 03:32 PM

All i did was use word and its insert simble to get the simbles :D


RE: Equation sender plugin by KeyStorm on 06-07-2004 at 03:36 PM

Well, Windows Blackboard supports text, there could be actually a way using Handwriter, but... it much work. Although it's useless if you have to help others in maths. ;)


RE: Equation sender plugin by Plik on 06-07-2004 at 03:38 PM

Found the bug :D and fixed it but i found anouther 1 :'(


RE: Equation sender plugin by Plik on 06-07-2004 at 09:13 PM

I've finished the first version of the talker :D
unfortionatly it only lets you have the sqared, cubed and divided untill i can figer out how to use the other charactures :(

Lastly this is a javascript talker for stuff plug so you need stuffplug to run it and im hoping you all can set them up :D and its only a beta. I've tested it myself as much as i can but i cant garantee anything so feel free to report bugs here

Download the talker here
Maths talker
<edit>
i forgot to tell you the commands:
Sqr = ²
Cube = ³
/ = ÷
hopefuly i will figuare out how to get more but im very busy at the moment
</edit>


RE: Equation sender plugin by illuzn on 06-13-2004 at 08:19 AM

madmann66 it would be better if it could interpret the inputs eg. x^2 goes to x² and x^3 goes to x³ i don't think that would be much harder than you've already done and * should goto × (multiplication sign) its alt+0215

also maybe:
[list]
[*]sqrt(...) -> &#8730;(...)
[*]<= -> &#8804;
[*]>= -> &#8805;
[*]<> -> &#8800;
[*]=* or something -> &#8776;

<edit> arghh wtf?!?!?! ermm replace with the appropriate symbols their in character map =* is approximately equal to</edit>


RE: Equation sender plugin by Plik on 06-13-2004 at 12:04 PM

yeh thats what i had at first
just the script didnt like the ^ bit and the * because thats a wildcard in javascript


RE: Equation sender plugin by illuzn on 06-13-2004 at 02:47 PM

hrmm isn't there a way to tell it that its a literal character i'm sure there is because i've done it before... arghh my brain is offline right now


RE: Equation sender plugin by Plik on 06-13-2004 at 03:56 PM

if there is i cant remember it