unicode: html styling
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 6 Jan 2011 23:53:30 +0000 (00:53 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 11 Jan 2011 22:41:38 +0000 (23:41 +0100)
Shiar_Sheet/FormatChar.pm
unicode.plp

index 0e59678..661bb75 100644 (file)
@@ -88,6 +88,11 @@ sub cell {
                                push @class, ('l2', 'u-prop'); # unofficial
                        }
                }
+               elsif ($self->{style} eq 'html') {
+                       if (defined $entity) {
+                               push @class, ('l3', 'u-html');
+                       }
+               }
                else {
                        my $codepoint = ord(substr $input, 0, 1);
                        if ($codepoint <= 0xFF) {
index f0e435f..d155c06 100644 (file)
@@ -38,6 +38,7 @@ if (exists $get{q}) {
 }
 if (exists $get{html}) {
        $glyphs->{anno} = ['html', 'xml'];
+       $glyphs->{style} = 'html';
 }
 
 our $verbose = exists $get{v};