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 0e5967807d68b8a2ec520b7523ebca166e08b136..661bb7551e897881c28532c2aef51f774dfed6f5 100644 (file)
@@ -88,6 +88,11 @@ sub cell {
                                push @class, ('l2', 'u-prop'); # unofficial
                        }
                }
                                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) {
                else {
                        my $codepoint = ord(substr $input, 0, 1);
                        if ($codepoint <= 0xFF) {
index f0e435f6940a8c31f093fadaa95978211d9213e7..d155c06b0b968afb292963add12b35102d451920 100644 (file)
@@ -38,6 +38,7 @@ if (exists $get{q}) {
 }
 if (exists $get{html}) {
        $glyphs->{anno} = ['html', 'xml'];
 }
 if (exists $get{html}) {
        $glyphs->{anno} = ['html', 'xml'];
+       $glyphs->{style} = 'html';
 }
 
 our $verbose = exists $get{v};
 }
 
 our $verbose = exists $get{v};