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
Wednesday, March 6, 2013
wikibooks as Curl ebooks
wikibooks as Curl ebooks
Currently some wiki books can be exported as PDF, ODT or ZIM.
[ what this space ]
Monday, March 4, 2013
formatting French ebooks
You might think that formatting French ebooks in Curl as web markup would be easy – and it is – but there are still challenges.
If you use the TocDocument as the default document-style there are markup hierarchy issues under each {heading level=n, } macro.
I usually start with simply a default vanilla {paragraph } macro and then move to user defined formats and procedures.
The challenge is to make this accessible to the non-programmer working in a non-Western language.
At this time I am evaluating two rebol language variants (r3 and red) and one Icon variant (Object Icon) for parsing my Curl markup in accordance NOT with Curl syntax but USER preferences.
If all else fails, I will fall back to Logtalk with some Prolog dialect.
In the case of my current French ebook, the rules are to cover non-breaking spaces. The rule of thumb in France is to surround "two-part" punctuation with spaces. The challenge is to address resizeable text frames or panes in which re-flowed text must remain readable.
The minor rules apply to ALL Curl ebooks where the text is in Curl markup (and until we have a webkit wrapper library, that is what I use) such as converting all ASCII single quotes, quotes, psuedo-hypens, brackets and installing matching left- and right- quotation devices.
Tuesday, February 19, 2013
Curl surge-do help FAQ
Here are some valid uses of the Curl executable file named "surge-do" :
/opt/curl/surge/9/bin/surge-do --edit "%1"
/opt/curl/surge/9/bin/surge-do --launch "%1"
/opt/curl/surge/9/bin/surge-do --browse "%1"
/opt/curl/surge/9/bin/surge-do --open "%1"
Running curl itself in that ./bin as ./curl --help would give you
Usage:
-h --help : Prints a Usage message to stdout and exits.
-v --version : Prints a version-number to stdout and exits.
--lazy-compilation : Requests that certain methods should be compiled lazily (normally the default).
-l --no-lazy-compilation : Requests that no methods should be compiled lazily (the opposite of --lazy-compilation).
--lazy-types : Requests that certain types should be compiled lazily (normally the default).
-t --no-lazy-types : Requests that no types should be compiled lazily (the opposite of '--lazy-types').
--show-gc : Report GC information to the console.
--verify-integrity : Enable extra verifications of internal integrity.
--host-console : Force use of the host console.
--trust : Trust all applets.
--graphics-info : Show a description of the available graphics driver, then exit.
--force-graphics-hw : Force use of the native graphics driver, even if it may be unstable.
--safe-graphics : Force use of the software graphics.
-- : Halts option-parsing. The rest of the arguments are passed directly on to the application.
--batch-mode : Run in batch mode (dialog boxes and such are illegal).
-D --use-console-debugger: Enable use of the console debugger.
--no-use-console-debugger: Disable use of the console debugger.
--resync : Force resynchronization of all files as of process start time.
--tag-console : Tag each line of console output with the time and thread.
--debug : Activate additional debug code in the given package.
--debug-graphics : Activate additional debug code in the graphics system.
--sse2 : Enable generation of SSE2 instructions.
--no-sse2 : Disable generation of SSE2 instructions.
--cache : Enable persistent caching of packages.
-H --default-heap-size : Set default starting heap size (e.g. 6M or 3200K).
-i --redirect-stdin : Redirect standard-input from a file.
-o --redirect-stdout : Redirect (append) standard-output to a file.
-e --redirect-stderr : Redirect (append) standard-error to a file.
--utf8-stdin : Use UTF8 character encoding for 'stdin'.
--utf8-stdout : Use UTF8 character encoding for 'stdout'.
--utf8-stderr : Use UTF8 character encoding for 'stderr'.
--privileged : Run with 'privilege'.
--unprivileged : Run without 'privilege'.
--preload : Preload a given file (using evaluate).
--eval : Evaluate a string.
-s --shell : Enter interactive shell mode.
--default-exit : Default exit value for scripts.
--do-not-panic : Do not panic. Just abort instead.
The flag -l is used when running a .xcurl script
[ more to follow]
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.
Monday, December 3, 2012
How to enable the Curl plugin in Google Chrome browser
With the latest updates - whether to Chrome or to Curl - my own Curl applets ceased to run in my Chrome browser.
There was no warning and the plugins are not in the Tools list.
The cure is to enter
as a URI in the address bar and then set the Curl Surge RTE plugins to Always allowed.
There was no warning as with either Java or Adobe Flash.
NOTE: on that plugins page, the Curl plugins were NOT listed as DISABLED !
Google has decided that they know what is best for what they view as "little used plugins" - something decidely anti-competitive.
There was no warning and the plugins are not in the Tools list.
The cure is to enter
chrome://plugins/
as a URI in the address bar and then set the Curl Surge RTE plugins to Always allowed.
There was no warning as with either Java or Adobe Flash.
NOTE: on that plugins page, the Curl plugins were NOT listed as DISABLED !
Google has decided that they know what is best for what they view as "little used plugins" - something decidely anti-competitive.
Saturday, December 1, 2012
Curl in Puppy linux
The latest release of the Curl web language browser plugin (8.0.03 for curl9) is now running in my RAM-resident Puppy linux on this old Asus 900A netbook - it boots from an SD chip thanks to grub.
Gettting Curl to run required going into a bin in the path as root and adding a sym-link to surge-do over in /opt/curl/surge/9/bin/surge-do which made possible manually launching the Surge manager, the Curl docs viewer and the development IDE.
What remained was to get Curl applets to run in SeaMonkey and Firefox browsers. That required visit as root to /usr/lib/mozilla/plugins and the creation of 3 sym-links to the 3 key .so files in /opt/curl/surge/9/lib
EX:
su
cd /usr/lib/mozilla/plugins
ln -s /opt/curl/surge/9/lib/libcurl-surge-8-0.so ./libcurl-surge-8-0.so
and ditto for 7-0 and for the generic libcurl-surge.so
Gettting Curl to run required going into a bin in the path as root and adding a sym-link to surge-do over in /opt/curl/surge/9/bin/surge-do which made possible manually launching the Surge manager, the Curl docs viewer and the development IDE.
What remained was to get Curl applets to run in SeaMonkey and Firefox browsers. That required visit as root to /usr/lib/mozilla/plugins and the creation of 3 sym-links to the 3 key .so files in /opt/curl/surge/9/lib
EX:
su
cd /usr/lib/mozilla/plugins
ln -s /opt/curl/surge/9/lib/libcurl-surge-8-0.so ./libcurl-surge-8-0.so
and ditto for 7-0 and for the generic libcurl-surge.so
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
Subscribe to:
Posts (Atom)