Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Monday, May 7, 2012

Hanazono Mincho font


I have just added a Kanji study page to kanji.aule-browser.com which uses the lovely Hanazono Mincho TrueType font in HanaMinA.ttf from Japan.

This first page is only the Henshall Kanji from the on-line Kanjidic2 dictionary.

Of the browsers that I tested, Firefox 12.0 for Windows had the best load time before Kanji appeared.  Running the page locally as an "aule-page" is my preference.





Thursday, April 19, 2012

Kanjidic2 codepoint

Over at aule-browser I have added an HTML page which correctly displays the 13,108 characters in the Kanjidic2 according to the UCS codepoint found in each XML 'character' element.

The XML was parsed using an XPath expression with the Curl XML Document Model library.

日本におけるカール社のウェブサイト

Wednesday, April 18, 2012

Kanjidic2 UTF-8 character literal


Today I found that not all characters in the kanjidic2 XML file could be parsed and displayed as UTF-8 – at least not in the fonts available to me in IE.

I have posted a utf-8 web page with those that would display after parsing with Curl's xml path library for the content of the "literal" element for each character element.

Parsing gave a total of 13,108 elements when I was expecting fewer than 7000. Issues only arose with the last thousand or so elements - and a few in that tail-end did display. Problems start after the first 12,166 elements.

In the last thousand elements, only the following few literal values would display:

匇 匤 咊 增 寬 嵓 德 晥 栁 橫 瀨 炻 甁 皞 礰 竧 綠 緖 荢 薰 譿 賴 郞 鄕 霻 靍 馞 魲 黑 朗 隆 﨏 塚 﨑 﨓 凞 猪 神 祥 福 﨟 蘒 﨡 諸 﨤 都

If you have been parsing the kanjidic XML dictionary and have an idea, please drop a line.

UPDATE

Using a tail view of kanjidic2.xml I can see that the last UCS codepoint is FA6A which displays correctly in my browser as 頻.

I will revise my parse path to pull the codepoint instead of the literal.


Saturday, July 3, 2010

Running multiple Curl applets within a single HTML page

 

Over at http://aule-browser.com/multi-curl/index.htm I have placed an example of running more than one Curl applet within a single HTML page.

Each applet is an object element placed in one of two div elements within the main div of the page's body element. I might has easily have used the same applet twice if suitable input fields or controls were present.

One possible use if for the second applet to be used by a manager or auditor to make note on the use, content or features of some other applet within a single web page.

Thursday, May 13, 2010

Philosophy texts in HTML versus Curl

Over at phil.aule-browser.com I have placed an exerpt from Hannah Arendt's The Human Condition side-by-side with an exerpt from Martin Heidegger's "Die Frage nach der Technik" which I find in the GA edition of Vortraege u. Aufsaetze.

This opposition is unsatisfactory is so very many respects: first, the lack of context. Secondly, the lack of immediate links to the contexts of the exerpts, not to mention translations.  And why this selection?  The parallel citations of Heisenberg are far more striking - suggesting to me that, although the volume is listed as in Arendt's personal library at the time of her death, she may have relied on the Heidegger citations.

Repeatedly, at critical junctures in essays by Arendt, I find turns of phrase which strike me immediately as both regrettable and Heideggerian.  Time and again her polemical tone is his - the same chord, if you will.

That he cites no one for his great insights in his quote has a frightful parallel in Arendt (compare Jaspers earliest letters to her as a student.)

Two related posts elsewhere are
More detailed presentations of philosophy text can be found at phil.aule-browser.com

Friday, April 16, 2010

Joel on Software and UNICODE and HTML charset

I wanted to post an note on the joelonsoftware.com page on UNICODE basics.

That page has a link to i18nguy.com which has useful pages linked.

My own habit is to use a variety of pages at fileformat.info such as the P-page and the S-page when I want a Pilcrow sign ( ¶ ) or the planet Saturn symbol or some such.

Some of my favourites are balanced quotation marks ( “ ” ) and a variety of foreign quotation marks ( »« ).

The reason for the quotation marks is so that when doing poetry markup in Curl I will not have to "escape" the keyboard dbl-quote character ( " ) which is used by the progamming language but which I don't want to use in text markup.

I seem to use the paired single-quotes ( ‘ ’ ) less often.

Here are German-style quotes: „Sein“ (will be better in a suitable font.)

Other favourites of mine are  § Ç ß ä ö ü à é and ê ë è ï î ö ô along with Ä Ö Ü.  The last characters should have been capital A O U with umlaut diacritics: if you see something else, you may have to change a browser VIEW setting for Encoding for your web browser.

If you are a Windows user who wants to copy and save these to a notepad cheatsheet, remember to save the file as UTF-8 on the SAVE AS menu.  When you need an  é  in a hurry, holding down the ALT-key and typing 1 3 0 on the keypad and then releasing the ALT-key will place U-00E9 into most text.

IF you are a Windows user with an editor that which will not use displauy UNICODE with the default Arial Unicode MS font, well, there is always Notepad++ ... and it will allow you to save the file with or without the initial BOM bytes that indicate the encoding (which default notepad will not suppress.)

The minimal HTML header follows:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
For more details, here is a char-encoding link.

Note:  the above links have been set to open in a tab or window other than this blog page.

Thursday, August 27, 2009

The poetry of Curl macros, or, poem markup for the web

Here is a snippet from an American poetry e-book on the web:

Stanza:

<div class="lg" ID="LG24">
<a name="L185"></a><div class="line" ID="L185">"In the name of all created,</div>
<a name="L186"></a><div class="line" ID="L186">Let us hear no more, my brothers;</div>
<a name="L187"></a><div class="line" ID="L187">Are we older than all others?</div>
<a name="L188"></a><div class="line" ID="L188">Are the planets in our way?"—</div>
<a name="L189"></a><div class="line" ID="L189">"Hark," said one; "I hear the River,</div>
<a name="L190"></a><div class="line" ID="L190">Calling always, night and day."—</div>
<a name="L191"></a><div class="line" ID="L191">"Forward, then! The lights are shining,"</div>
<a name="L192"></a><div class="line" ID="L192">Said the Watcher by the Way.</div>
</div>

and here is my Curl macros alternative markup:

{para
{ln L185, In the name of all created,}
{ln L186, Let us hear no more, my brothers;}
{ln L187, Are we older than all others?}
{ln L188, Are the planets in our way?"}
{ln L189, "Hark," said one; "I hear the River,}
{ln L190, Calling always, night and day."}
{ln L191, "Forward, then! The lights are shining,"}
{ln L192, Said the Watcher by the Way.}
}

even better:

{stanza 24 lines 185-192
In the name of all created,
Let us hear no more, my brothers;
Are we older than all others?
Are the planets in our way?"
"Hark," said one; "I hear the River,
Calling always, night and day."
"Forward, then! The lights are shining,"
Said the Watcher by the Way.
}

Now is the markup in the way of the content when you have to look over the output?

There ia an interest group devoted to Curl markup for the Semantic Web over at developers.curl.com - just register as a developer member to join.

Friday, July 10, 2009

Aule-Browser.com gets a new look

Our Aule Browser site has a new look.

Trying to give HTML-only its due ... now to show what Curl can do ...

And subdomains are starting to take shape:

games.aule-browser.com for Rack-O!

lang.aule-browser.com for Rosetta Stone

mail.aule-browser.com

music.aule-browser.com

perl.aule-browser.com

python.aule-browser.com

ria.aule-browser.com

ruby.aule-browser.com

wp.aule-browser.com for Wikipedia

Work progressing on note-taking + Curl CSPD with cl1p.net

And CSPD is now built into the wikipedia browser at wp.aule-browser.com