Moving HTMLArea files

12 views
Skip to first unread message

kilucas

unread,
Oct 10, 2008, 7:42:17 PM10/10/08
to TiddlyWiki
I'd like to try moving all my external software files to a central
location and, all my environemnts are Windows, I'll make that "C:
\program files\tiddlywiki\". One such chunk of sofwtare is Bram Chen's
mathematical HTMLArea.

I've therefore moved all the HTMLArea files and folders into "C:
\program files\tiddlywiki\bramchen\" and consequently mkodfied the two
standard markup tiddlers that HTMLArea requires you to modify so that
they point to the new locations as follows:

MarkupPreHead
<!--{{{-->
<!--PJ-->
<script type="text/javascript" src="C:\Program Files\Tiddlywiki
\Bramchen\HTMLArea\plugins\AsciiMath\ASCIIMathML.js"></script>
<script type="text/javascript" src="C:\Program Files\Tiddlywiki
\Bramchen\HTMLArea\plugins\AsciiSvg\ASCIIsvg.js"></script>
<script type="text/javascript" src="C:\Program Files\Tiddlywiki
\Bramchen\HTMLArea\plugins\AsciiSvg\ASCIIsvgAddon.js"></script>
<script type="text/javascript" src="C:\Program Files\Tiddlywiki
\Bramchen\HTMLArea\plugins\AsciiMath\ASCIIMathCalculator.js"></script>
<script type="text/javascript">
_editor_url = "HTMLArea/";
_editor_lang = "zh-tw";
</script>
<script type="text/javascript" src="C:\Program Files\Tiddlywiki
\Bramchen\HTMLArea\htmlarea.js"></script>
<!--PJ-->
<!--}}}-->

MarkupPostBody
<script src="C:\Program Files\Tiddlywiki\Bramchen\HTMLArea
\htmlareaPlugin.js" type="text/javascript"></script>.

If I now reload my TW having removed the HTMLArea files from
alonsgide, where they used to be, the TW fails to display anything
merely saying "Error on page" in the lower left of IE6 or merely
"Done" in Firefox 3.

If I put a cvopy of all the HTMLArea files back alongside the TW but
leave my modified markup in place, then the TW loads correctly.

I see that there are files like TiddlySaver.jar and TiddlyWiki.en.js
which normally sit alongside my TW and there's nowhere in the markup
that I've indicated that these have moved. Do I need to signify this
somewhere?

If I leave just these alongside the TW, then the TW will load but does
not display MathXML but the ASCIIMath codes instead.

Is it obvious to anyone what else I need to do to relocate all the
HTMLArea files to my program files folder perhaps?

Thanks

Kevin

kilucas

unread,
Oct 10, 2008, 7:45:35 PM10/10/08
to TiddlyWiki
Apologies for typos - hit "Send" prematurely before proof reading.
Sorry.
Kevin

BramChen

unread,
Oct 12, 2008, 12:15:05 AM10/12/08
to TiddlyWiki
Hi Kevin,

Using the relative path is recommended if your TW and HTMLArea located
on the same drive.

Otherwise, you should specify the file locations in terms of full file
uri including "file:///" before the drive name, for example,

MarkupPreHead
<!--{{{-->
<!--PJ-->
<script type="text/javascript" src="file:///C:/Program Files/
Tiddlywiki/Bramchen/HTMLArea/plugins/AsciiMath/ASCIIMathML.js"></
script>
<script type="text/javascript" src="file:///C:/Program Files/
Tiddlywiki/Bramchen/HTMLArea/plugins/AsciiSvg/ASCIIsvg.js"></script>
<script type="text/javascript" src="file:///C:/Program Files/
Tiddlywiki/Bramchen/HTMLArea/plugins/AsciiSvg/ASCIIsvgAddon.js"></
script>
<script type="text/javascript" src="file:///C:/Program Files/
Tiddlywiki/Bramchen/HTMLArea/plugins/AsciiMath/
ASCIIMathCalculator.js"></script>
<script type="text/javascript">
_editor_url = "file:///C:/Program Files/Tiddlywiki/Bramchen/
HTMLArea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="file:///C:/Program Files/
Tiddlywiki/Bramchen/HTMLArea/htmlarea.js"></script>
<!--PJ-->
<!--}}}-->

MarkupPostBody
<script src="file:///C:/Program Files/Tiddlywiki/Bramchen/HTMLArea/
htmlareaPlugin.js" type="text/javascript"></script>


--
Bram Chen

kilucas

unread,
Oct 12, 2008, 8:02:08 AM10/12/08
to TiddlyWiki
Bram

Very helpful - I'll give this a try.

I'd like to centralise these if I can because otherwise I'm going to
have multiple copies of HTMLArea alongside my various TWs. And, if
HTMLArea changes, I've then got to refresh them all.

So I think I'm reaching the conclusion that just doing so in one
cetral location would be simplest.

Thanks very much.

Kevin
> > Kevin- Hide quoted text -
>
> - Show quoted text -

kilucas

unread,
Oct 12, 2008, 8:40:26 AM10/12/08
to TiddlyWiki
Bram

I've made those changes. In fact I pasted your changes in after
checking them and removing some extraneous characters caused by the
line breaks. And I've checked that these really are the paths to the
copy of HTMLArea I've created.

But I still see no HTML editor and my ASCIIMath markup isn't being
converted.

I've ensured I have your latest HTMLArea which uses the "wysiwyg" tag
but double checked by trying tiddlers tagged with the older "wyswyg"
too.

Is it at all obvious what else I'd need to do?

I continue to worry about files like TiddlySaver.jar and
TiddlyWiki.en.js which normally sit alongside my TW and there's
nowhere in the markup that I've indicated that these have moved. In
fact all the markup referes to the HTMLArea folder and its content
whereas these two files sit alongside the HTMLArea folder rather than
within it.

Mind you I still have no success even if I place these two files in
the same folder as my TW as well as in the remote location alongside
the HTMLArea folder.

But do you think I need to tell my TW something about where these are
for example?

Thanks for any clues you might have.

Kevin
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages