on the Curl Web Content Markup Language

on the Curl Web Content Markup and Programming Language from www.curl.com and www.curlap.com

Wednesday, July 31, 2013

style for TocDocument left pane

Here is a snapshot of a TocDocument applet which uses an {install-stylesheet haikuStyles} procedure to set the font-size and font-family for the left index pane and the TreeControl within its ScrollBox :


Wednesday, July 24, 2013

Curl markup of haiku by Shiki


Here is a screenshot of the spring kigo haiku of 1897 by Masaoka Shiki. The Curl browser applet has indexed, selectable and searchable utf-8 text instead of SH-JIS. There are over 300 haiku
in this set.



Saturday, July 20, 2013

Minimalist haiku markup


Here is a screen shot of thousands of Masaoka Shiki haiku through 2895 in a utf-8 web browser applet with selectable and searchable text :

The input text had headers prefixed with one back-quote character and annotations prefixed with tilde. The present light weight markup is using default Curl macros such as {heading }, {text } and {paragraph } with a document style of TocDocument ( Table of Contents style.)




Monday, July 8, 2013

npm express install fails with ERR and WARN


If an npm install fails with an error such as
npm ERR! install couldn't read dependencies
and IFF that error immediately follows warnings such as
WARN ... [YOUR_SERVER_NAME]@0,0,1 No repository field.
WARN ... [YOUR_SERVERR_NAME]@0,0,1 No readme data.
where YOUR_SERVER_NAME is the name in that package.json file

THEN

you may notice the perhaps not obvious typo of 0,0,1 for 0.0.1 with commas and not '.', i.e., full-stop, dot, period as the version delimiter.

mea culpa

Now to get back to my nunjucks templating for Curl web content ( Curl, as in www.curl.com and curl-aca in /opt/curl/surge/9/bin

Reminder : do not use a sudo for npm install.  Set the minimum privileges so that your, e.g., maintenance www group user, can run npm. without resorting to root privileges especially if the install is global.



Friday, June 28, 2013

node CoffeeScript + express + nunjucks generating Curl markup


My new Curl markup server has been rewritten as CoffeeScript ( still node.js + express + nunjucks on CentOS ).

Why are CoffeeScript programmers not sometimes using Curl ???

Curl is largely just curly braces instead of block indents ( plus all of those Curl libraries and docs and app's and ... )

There should be some LifeHacker on coffeescript.org and www.curl.com lessons learned ... by Brian Ford ?




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.




Sunday, May 26, 2013

Curl in Linux Firefox 17 fix


You must follow the advice at communities.curl.com concerning main process and

dom.ipc.plugins.enabled.libcurl-surge.so 

which you must add to the Firefox about:config page as a boolean using a right-click and NEW ; set it to false

Restart Firefox.

Curl app's should now run again in Firefox.

I have tested this solution with Curl 8.0 in CentOS 6.4 i386 in Firefox 17.0.6 in a situation where Curl ran fine in linux Opera, IDE was good but Curl would not run in Firefox.

CentOS prep included adding gcc environment for libstdc.so, libssl for libcrypt.so and libXext packages installed priot to installing RTE and IDE.

CentOS 32-bit is being run in VirtualBox on Windows 7 64-bit SP1 Home Prem on an i7 Quad core with 16GB of RAM.  CentOS is given 1024M and 8GB fixed virtual disk.