David's made the following suggestion:
This is untested so no guarantees, but you can try this: In
AsvgHA.js
(or ASCIIsvgHA.js) drawPics, replace
var sscr = picture.getAttribute(sscr);
if ((sscr != null) (sscr != )) {
try {
if (isIE) {
Here's what I found when I tried this.
I placed the following in a wyswiwyg tiddler within Bram Chen's
HTMLArea using the html view (not the standard editor view):
embed src=HTMLArea/plugins/AsciiSvg/d.svg script=border = 0
initPicture(-10,10)
axes()
stroke = 'red'
p = []
with (Math)
for (t =
In a standard (non-wysiwyg tiddler) I get the same output as for a
wysiwyg tiddler when the tiddler is displayed - an empty SVCG pane -
if I surround the embed statement with html and /html which is
needed, I believe, to tell a standard tiddler to behave as a chunk of
html.
In both cases
I've succeeded in getting drawings to draw correctly when a tiddler is
displayed.
Guessing that ASCIIsvgAddon.js handled display of the drawing when a
tiddler is viewed and knowing it contains a drawpics function that was
almost identical to that in AsvgHA.js, I modified that in the former
as
Just on the truncation of the spiral drawing ...
The top and bottom truncation is fixed if I specifiy the y-axis
minimum and maximum explicitly in initpicture(-10,10,-10,10) rather
than initpicture(-10,10). I don't know why the version of ASCIISVG
that I'm using needs this when the ASCIISVG home
I posted some informatiuon about this in the ASCIIMath Google group
where David Lippman and Peter Jipsen, who were both instrumental in
producing the mathematical version of HTMLArea are posting. David got
back to me to suggest there's a bug in ASCIIsvg which is causing the
problem.
I've copied
Interesting. I tried the embed etc material in Firefox too but still
only saw the script. That's almost a relief anyway because my Firefox
objectes to pasting into a tiddler because of security problem that I
haven't been able to fix yet, but pasting example SVG code is much
faster and less error
Bram
Thanks for this and this parameter screen generates fine when I use
the trigger button on the HTMLArea toolbar.
But I think it is only useful for graphs. If I want to draw say a
trigonometric diagram such as that at
http://math.chapman.edu/cgi-bin/math.pl?Sum_of_angles_cos_formula
then I
Hi Kilucas,
I made some graphs with little effort.
See the TW of Paulo Soares at http://www.math.ist.utl.pt/~psoares/addons.html
This will certainly help you further.
Have a nice day, Okido
On 17 Oct, 09:43, kilucas [EMAIL PROTECTED] wrote:
Bram
Thanks for this and this parameter screen
Hi Kevin,
The attachment might be a solution for you if I understand you correctly.
--
Bram Chen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TiddlyWiki group.
To post to this group, send email to
10 matches
Mail list logo