Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CharClass as char-set CharMap
05-29-2012, 09:07 PM, (This post was last modified: 05-29-2012, 09:48 PM by RobertShiplett.)
#1
CharClass as char-set CharMap
Over at http://www.aule-browser.com/kanji/kana-charts.html the Punctuation view required

{let upunct3:CharClass = {CharClass '\u2329', '\u232A', '\u226A', '\u226B' } }


for later testing using

elseif {upunct3.member? val.upunc} then

set fontFamily="
DejaVu Sans"

This proved essential because to display all punctuation listed at ja.wikipedia.org/wiki/括弧 required 3 different font families on my Windows XP (using the local font test player at www.fileformat.info to "play" individual characters "by local installed font".)

The final font families as "first choice" were
  1. "DejaVu Sans"
  2. "Kozuka Gothic Pro B"
  3. "Arial Unicode MS"
  4. "HanaMinA, ..." || default list
and the CharClass were

{let upunct:CharClass={CharClass '\u27E8','\u27E9','\u27EA','\u27EB','\u0000','\u0001'}}

{let upunct2:CharClass = {CharClass '\uFF5F', '\uFF60' } }
{let upunct3:CharClass = {CharClass '\u2329', '\u232A', '\u226A', '\u226B' } }

You can see the result here: http://lcurlr.blogspot.ca/2012/05/japane...icode.html


Robert Shiplett, Curlr
Fredericton NB

Canada


Possibly Related Threads...
Thread Author Replies Views Last Post
  CharClass RobertShiplett 0 2,326 08-04-2012, 03:21 AM
Last Post: RobertShiplett
Forum Jump:


Users browsing this thread:

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('510')