Notes on the Curl web programming language and Curl markup using the Curl Surge Runtime Engine (RTE), the expression-based Curl language and Curl's macro facilities and class libraries
Pages
on the Curl Web Content Markup Language
on the Curl Web Content Markup and Programming Language from www.curl.com and www.curlap.com
Showing posts with label Curl applet. Show all posts
Showing posts with label Curl applet. Show all posts
Saturday, August 23, 2014
Wednesday, June 19, 2013
Node.js + express + nunjucks generating a Curl browser applet
Over at communities.curl.com there is now a screenshot of a Curl applet served by a CentOS VPS web server.
The applet is generated in Node.js using express and nunjucks templating.
A nunjucks template provides the basis for a Curl applet while two scurl files provide the contents and the text formats for that content. The remaining piece is the Curl styling using a Curl stylesheet..
The eventual aim is to replace the .js consumed by Node with a .xcurl script to be consumed by a Curl curl process on that server.
Tuesday, December 11, 2012
Japanese vocabulary
The Curl web applet at http://www.aule-browser.com/kanji/jlpt-5-1.curl has a curious property − can you spot it ?
hint: click in vertical slider; resize page; click again.
note: a Curl applet will only run with the Surge RTE browser plugin from www.curl.com installed.
Saturday, October 13, 2012
Unicode to kanji
I have a small Curl applet at kanji.aule-browser.com which works as you see below ( before and after a request )
The original JPG is at http://kanji.aule-browser.com/unicode-to-kanji.jpg
The original JPG is at http://kanji.aule-browser.com/unicode-to-kanji.jpg
Thursday, July 12, 2012
applet resync redux
As I noted over at the Curl forum, nothing forces a resync on an applet using a resync file ( Curl 7.0+ ) without
in the applet. No amount of work on the Surge RTE settings, the browser settings or the HTML wrapper's meta tags has any effect in a browser caching nothing.{on-applet-suspend do{exit 0}}
That places the issue in Surge: when it says it has purged a suspended applet, it has not.
Sunday, July 8, 2012
Applet Resync
I have placed a post on Curl applet resync at http://communities.curl.com/showthread.php?tid=555
The comments on version control versus release management may trigger a response ....
The virtual filenames available in Curl manifests ( mcurl files) are one of the great strengths of Curl projects - but that geat feature can trip you up by confounding VC, CM and RM.
At least in my experience.
I am not aware of any public documentation of gotcha's in this Curl PM area.
Monday, June 4, 2012
Varying Joyo kanji order of presentation
re: varying the order of presentation of Joyo kanji definitions without edits of the text original
By using the serialization technique of my last note, the pages from Kanjidic2 can be varied in their order without touching the text original or using a DB.
A Curl applet could use SQLite, MySQL or JSON to achieve the same, but this varying order of presentation can also be accomplished using just the one web language, namely, MIT's Curl from www.curl.com
By using the serialization technique of my last note, the pages from Kanjidic2 can be varied in their order without touching the text original or using a DB.
A Curl applet could use SQLite, MySQL or JSON to achieve the same, but this varying order of presentation can also be accomplished using just the one web language, namely, MIT's Curl from www.curl.com
serialization of an off-line text resource
To see the effect of my Curl serialization effort look at the speed of the small daily pages such as http://www.aule-browser.com/kanji/poets/basho-mee-indexed.html
The new daily page generated fast and it loads very fast. I have already cycled twice through the BIN serialization files as I find minor transcription errors in the principal text resource - but that text resource now does not need to reside on the applet web server !
Here is a snapshot for 見
Sunday, June 3, 2012
serialization for text source integrity
I now have a Curl applet up using only serialized data as the source - this will make all of the "Learn Kanji" applets faster hereafter and help keep my fingers off my input text source !
The applet uses the {deserialize } macro to load its data and does not reach the original source.
The approach will result in much faster "kanji of the day" applets using the Basho Haiku as their learning resource as no iteration through the data will occur at load time and the applets are one degree away from the vulnerable source.
This will be even more significant when working with no SQL and no JSON for the large JMDict Japanese resource as well as the smaller Kanjidic2 and its Edict2.
Entire arrays are serialized with a simple call to a stream to write one object. The object classes are declared as serializable and all affected fields have at least a default value.
The result is that my own annotations are kept independent of the source file.
I may turn this same approach to an applet for viewing the tags in my 9000+ Firefox booksmarks so as to avoid both HTML and JSON.
Here is a snap:
Tuesday, May 29, 2012
Basho Haiku as a Curl applet in HTML
Basho's haiku poetry in a Curl apple with hiragana and romaji transliterations/transcriptions.
www.aule-browser.com/kanji/poets/basho-complete.html
www.aule-browser.com/kanji/poets/basho-complete.html
Subscribe to:
Posts (Atom)



