OSDN Git Service

Updated bd2tex with sw seals
[dianzhuhui/script.git] / ebas-list.html.erb
1 <?xml version='1.0'?>
2     <html lang='zh-tw' xml:lang='zh-tw' xmlns='http://www.w3.org/1999/xhtml'>
3     <head>
4       <title>說文解字注 True Type 字型</title>
5       <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
6       <style type="text/css">
7         @font-face {
8         font-family: "EBAS"; }
9       </style>
10       <style type="text/css">
11         .eb { 
12         font-family: EBAS, 'MS 明朝', serif; font-size: 200%;
13         }
14         .ebs { 
15         font-family: EBAS, 'MS 明朝', serif; font-size: 100%;
16         }
17       </style>
18     </head>
19     <body lang='zh'>
20     <h1><span class='ebs'>說文解字注 True Type 字型</span></h1>
21
22       <!-- % codes = (0x4e00..0x9fff).to_a % -->
23       <!-- % codes.each do |code| % -->
24
25     <% blocks = (0x4e..0x9f).to_a %>
26     <% blocks.each do |block| %>
27     <table border='1' cellspacing='0' style='width:97%'>
28       <tr><th><%= sprintf("%X", block) %></th>
29         <% (0x0..0xf).to_a.each do |column| %>
30           <th><%= sprintf("%X", column) %></th>
31         <% end %>
32       </tr>
33         <% lines = (0x0..0xf).to_a %>
34         <% lines.each do |line| %>
35       <tr>
36         <td><%= sprintf("%X0", line) %></td>
37           <% chars = (0x0..0xf).to_a %>
38           <% chars.each do |char| %>
39             <% code = sprintf("%X%X%X", block, line, char) %>
40           <td>
41             <% if code.hex < '9FCC'.hex then %>
42                <span class='eb'><%= sprintf("&#x%s;", code) %></span><span style='font:50%'><%= sprintf("&#x%s;", code) %></span>
43             <% else %>
44               <br />
45             <% end %>
46           </td>
47           <% end %>
48       </tr>
49       <% end %>
50     </table>
51     <br />
52     <% end %>
53     </body>
54     </html>
55
56
57
58