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 Basho. Show all posts
Showing posts with label Basho. Show all posts
Sunday, June 17, 2012
Find a haiku: GuiMark and TextSearchPattern
It was time to put a search panel into the views of Bashō haiku, so that was done today using the Curl GuiMark facility and the TextSearchPattern class.
What you see below is ぬ夜の雪 entered into the TextField next to the FIND button and the ScrollBox has scrolled down to place that poem at the top of our view.
This will now be the norm for these Curl applets on the web pages at aule-browser.com
Note added June 19: this is now generalized as a search using rotating GuiMark's.
Monday, June 4, 2012
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)