From a43914ee349dd06a57051f94b452dbef0bd14e64 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 20 Apr 2009 17:52:09 +0000 Subject: [PATCH] hidden digraph entries for common character details Prepare fake digraphs with $ prepended for non-digraph pages. --- base.css | 8 +++--- rfc1345convert | 7 +++++- shiar.inc.txt | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 5 deletions(-) diff --git a/base.css b/base.css index 30b3846..4d0676b 100644 --- a/base.css +++ b/base.css @@ -275,11 +275,11 @@ td.Nd, td.Nl, td.No {background: #FDD} /* number */ td.Sc {background: #FCD} /* currency */ td.Sm {background: #ECE} /* math */ td.So {background: #DCF} /* symbol */ -td.Cf, td.Pd, td.Po {background: #CDF} /* punctuation */ +td.Pd, td.Po, td.Pc {background: #CDF} /* punctuation */ td.Ps, td.Pe, td.Pi, td.Pf {background: #BEF} /* quote */ td.Lm, td.Sk {background: #CEE} /* spacing modifier */ td.Mn {background: #ACC} /* modifier */ -td.Cc {color: #666; background: #BBB} /* control */ +td.Cc, td.Cf {color: #666; background: #BBB} /* control */ td.Zs {background: #ACB} /* space */ td.Zs span {background: #EEE} td.Co {background: #A99} /* private */ @@ -317,12 +317,12 @@ td.Nd:hover, td.Nl:hover, td.No:hover {background: #F99} /* number td.Sc:hover {background: #F8C} /* currency */ td.Sm:hover {background: #F8F} /* math */ td.So:hover {background: #A8F} /* symbol */ -td.Cf:hover, td.Pd:hover, td.Po:hover {background: #8AF} /* punctuation */ +td.Pd:hover, td.Po:hover, td.Pc:hover {background: #8AF} /* punctuation */ td.Ps:hover, td.Pe:hover, td.Pi:hover, td.Pf:hover {background: #8DF} /* quote */ td.Lm:hover, td.Sk:hover {background: #BFF} /* spacing modifier */ td.Mn:hover {background: #CDE} /* modifier */ td.Zs:hover {background: #CED} /* space */ -td.Cc:hover {background: #DDD} /* control */ +td.Cc:hover, td.Cf:hover {background: #DDD} /* control */ td.Co:hover {background: #A77} /* private */ td.Xr:hover {background: #FFF} /* reserved */ td.Xa:hover {outline: 1px solid #0F0} /* ascii */ diff --git a/rfc1345convert b/rfc1345convert index f932753..4fd3940 100755 --- a/rfc1345convert +++ b/rfc1345convert @@ -2,6 +2,7 @@ use strict; use warnings; +use utf8; use open OUT => ':utf8', ':std'; use Data::Dumper; @@ -109,7 +110,7 @@ my @extra; if (-r 'shiar.inc.txt') { open my $include, '<:utf8', 'shiar.inc.txt'; for (readline $include) { - m{^([!"%'-Z_a-z]{2}) (.)} or next; + m{^(\$?[!"%'-Z_a-z]{2}) (.)} or next; warn("$1 already defined"), next if defined $di{$1}; $di{$1} = ord $2; push @extra, $1; @@ -149,6 +150,10 @@ for (keys %di) { # show descriptive symbols instead of control chars themselves $info{$_}->{string} = $di{$_} < 32 ? chr($di{$_} + 0x2400) : chr(0xFFFD); } +# presentational string for some control(lish) entries +$info{$_}->{string} = '-' for grep { $di{$_} == 0x00AD } keys %di; +$info{$_}->{string} = '→' for grep { $di{$_} == 0x200E } keys %di; +$info{$_}->{string} = '←' for grep { $di{$_} == 0x200F } keys %di; # convert info hashes into arrays of strings to output in display order for my $row (values %info) { diff --git a/shiar.inc.txt b/shiar.inc.txt index 22db941..5b9f181 100644 --- a/shiar.inc.txt +++ b/shiar.inc.txt @@ -388,3 +388,70 @@ oK ㅛ eK ㅕ EK ㅖ +### +# under development or temporary + +# incompatible +$PR ► # current PR should be TR +$PL ◄ # current PL should be TL +$'> ˆ # where to put ^? +$'? ˜ # where to put ~? +$?' ΄ # tonos +$?" ΅ # tonos+dialytika +$!: ῏ # psili+peris +$?, ῞ # dasia+oxia +$,! ῝ # dasia+varia +$,' ῾ # dasia +$;! ῍ # psili+varia +$;' ᾿ # psili +$?: ῟ # dasia+peris +$?; ῎ # psili+oxia + +# undecided +$!D ‼ # !! in use +$<> ♦ +$ud ↨ # UD with base +$FS   # figure space +$!o ϕ # Ph? +$D= ₯ +$,i ͺ # spacing iota subscript +$vv װ +$vy ױ +$yy ײ +$g1 ׳ +$g2 ״ +$lr ‎ +$rl ‏ +$zw ‍ + +# rfc (incorrectly?) maps double to heavy +$vL ╡ +$Vl ╢ +$Dl ╖ +$dL ╕ +$VL ╣ +$VV ║ +$DL ╗ +$UL ╝ +$Ul ╜ +$uL ╛ +$vR ╞ +$Vr ╟ +$UR ╚ +$DR ╔ +$UH ╩ +$DH ╦ +$VR ╠ +$HH ═ +$VH ╬ +$uH ╧ +$Uh ╨ +$dH ╤ +$Dh ╥ +$Ur ╙ +$uR ╘ +$dR ╒ +$Dr ╓ +$Vh ╫ +$vH ╪ + -- 2.30.0