on the Curl Web Content Markup Language

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

Thursday, October 16, 2014

Curl for northerly star charts


I have added chart data files such as hygxyz_northofminus40_ucs.csv through hygxyz_northofminus10_ucs.csv and a hygxyz_north_only_ucs.csv at URL's such as

http://www.aule-browser.com/astro/stars/hygxyz_northofminus40_ucs.csv

for which the row counts vary from  93,132 down to 58,767 CVS data rows with the top 2 rows the usual info-only. The files are comma-separated fields of variable length encoded as utf-8.




Curl for star charts


As prep for building MIT/SCSK Curl 2-D path star charts, I have stripped the hygxyz.cvs file to 100K rows for the stars North of -50 Dec.  Please excuse my northern hemisphere bias.

I have made these CVS HipparcosYale+ files avail at  http://www.aule-browser.com/astro/stars/hygxyz_northofminus50.csv with alternates in three parts as hygxyz_PART_1_northofSouth50.csv and hygxyz_PART_2_northofSouth50.csv etc.

For UTF-8 versions of any of these files, add _ucs before the .cvs extension.

Please let me know if you see issues.

The regex used to drop rows was:

^[0-9]+,[0-9]+,([0-9]+,|,)([0-9]+,|,)([A-Za-z0-9\s^,]+,|,)([A-Za-z0-9\s^,]+,|,)[0-9]+\.[A-Za-z0-9^,]+,-[5-8][0-9][\.].*$

The CVS header is

StarID,HIP,HD,HR,Gliese,BayerFlamsteed,ProperName,RA,Dec,Distance,PMRA,PMDec,RV,Mag,AbsMag,Spectrum,ColorIndex,X,Y,Z,VX,VY,VZ

 A listing is given by the HYG author David Nash at https://github.com/astronexus/HYG-Databaseand he has a web page at http://www.astronexus.com/hyg

Wednesday, October 15, 2014

Smalltalk, SVG and Curl : starmaps


Coming from Smalltalk, the more time I spend in the XML of SVG work by others, the more I respect the achievement of the MIT team in the Curl language 2-D library of graphics classes.

Star maps or charts make so much more sense in Curl. We have the RA and Dec for the stars we need to map for star-hopping amateur astronomers.  We could even add "paths" !

It reminds me of the foolish basis on which Windows NT graphics appeared preferable to what IBM OS/2 had from mainframe world. Or rejecting the IBM SOM/DSOM ( for which we still pay a price in Win 7 and no doubt will still see the effects in Win 10 limitations.)


The Mac world embraced Smalltalk in a small way ... but why not Curl ?

The history and sociology of computing tech will eventually be of interest in applied science studies because the choices have not been in terms which pure science would commend to us.

#SVG #Curl #path #stroke #graphics #vector

Monday, September 8, 2014

Curl char type and the CharGraphic class


Over at kanji.aule-browser.com I have a Curl applet embedded in HTML as part of my efforts to learn to read and write Japanese kanji.

What is interesting is this : try to select the top 6 or 7 rows in the left-hand widget ; now try to paste them into the HTML TextArea below or the Curl RichTextEdit to the right.

See something odd?  Two of the kanji are not copied.  Try again and observe the selection range.  Two kanji do not hi-light.

Expression-based Curl is homoiconic, so here is the declarative code/data implicated :

{krow "0014","0000",'〇'}
{krow "0002","2850",'一'}
{krow "0003","1688",'ニ'}
{krow "0437","2851",{on-yomi-only {CharGraphic '丁'}}}
{krow "0009","2854",{CharGraphic '七'}}
{krow "0018","2542",{on-yomi-only 万}}
{krow "0657","2885",'丈'}
{krow "0004","1689",'三'}
{krow "0041","2876",'上'}
{krow "0040","2862",'下'}
{krow "0049","2890",{on-yomi-only 不}}
{krow "0858","2887",'与'}
|| first 12 rows of 'data'

The single-quoted kanji are of type char. At random I have replaced them with CharGraphic instances in either the minimal expression or within the {on-yomi-only } macro that paints some characters RED.




Sunday, August 24, 2014

My Curl kanji browser applet combined with Perapera and CintaNotes

Here is the result of my Curl applet for Conning's 2013 Kodansha Kanji Learner's Course book working within HTML with a TextArea, the Perapera kanji Firefox browser plugin and CintaNotes with its MySql db.


There is a more detailed explanation over at my KanjiRecog blog here on blogger/blogspot http://kanjirecog.blogspot.ca/2014/08/curl-conning-kanji-cintanotes.html

Saturday, August 23, 2014

Curl applet with suitable free font for kanji strokes

IPA Mincho font with ClearType and DirectWrite in IE 11 on Win7 - a good result on an old multisync CRT at low rez in default screen view of my Curl applet at 5.0em —




but perhaps only apparent if you Click the image below to see the full PNG #kanji #fonts