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
Sunday, March 10, 2013
WikizPad
Curl will make an easier wiki-pad than WikidPad because the Curl RichEditArea can generate the markup : The REA has both curl-source parse and format methods.
WikidPad is unable to display some of the input formatting until exported ! But Curl is a web content language for both data and processes - Curl offers both declarative markup and expression-based programming (rather like rebol, but without the graphics and UI issues and comes with two (2) developer IDE options (the Curl Lab or an Eclipse plugin.)
The security concern of generated markup can be addressed by requiring privilege for the applet and using a signed pcurl file along with encrypted text store.
WikizPad will offer one pane for formatting markup as RTF and one pane for editing markup as text (but with RTF appearance as desired for ease of edits.)
At the moment the features are being used for an SRS FlashCard edit/gen app, so reuse will be straight-forward.
[ more to follow ]
Saturday, March 9, 2013
customized Curl flashcard
Some Curl flashcard markup proposals in the testbed viewer :
http://www.aule-browser.com/flashcards/flashcard-kanji-03.dcurl
for Curl desktop code or
flashcards/flashcard-kanji-03.curl
to run a test in the browser.
The test markup is
{EmFontSize 36pt}{FrontSide color="gold",
{CardFontSize 18pt}
{CardBackground "blue"}
{HiLight "red"}
日本語の漢字は {KJ \u9801} がです。
}
Friday, March 8, 2013
Curl flashcard markup
Here are three snaps of user editing flashcard output format using Curl as the markup :
then after an edit
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.
Subscribe to:
Posts (Atom)



