|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: tables.src,v 2.48 2002-04-22 22:05:22 bbos Exp $ --> |
| 3 | +<!-- $Id: tables.src,v 2.49 2002-04-29 19:15:56 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> |
6 | 6 | <title>Tables</title> |
@@ -1429,150 +1429,6 @@ it were coming out of the canvas. In the |
1429 | 1429 | border model</a>, same as 'ridge'. |
1430 | 1430 | </dl> |
1431 | 1431 |
|
1432 | | -<h2>Audio rendering of tables</h2> |
1433 | | -<p>When a table is spoken by a speech generator, the relation between |
1434 | | -the data cells and the header cells must be expressed in a different |
1435 | | -way than by horizontal and vertical alignment. Some speech browsers |
1436 | | -may allow a user to move around in the 2-dimensional space, thus |
1437 | | -giving them the opportunity to map out the spatially represented |
1438 | | -relations. When that is not possible, the style sheet must specify at |
1439 | | -which points the headers are spoken.</p> |
1440 | | - |
1441 | | -<h3><a name="speak-headers">Speaking headers:</a> the <span |
1442 | | -class="propinst-speak-header">'speak-header'</span> property</h3> |
1443 | | - |
1444 | | - |
1445 | | -<!-- #include src=properties/speak-header.srb --> |
1446 | | - |
1447 | | -<P>This property specifies whether table headers |
1448 | | -are spoken before every |
1449 | | -cell, or only before a cell when that cell is associated with a |
1450 | | -different header than the previous cell. Values have |
1451 | | -the following meanings:</p> |
1452 | | - |
1453 | | -<dl> |
1454 | | -<dt><strong>once</strong> |
1455 | | -<dd>The header is spoken one time, before a series of |
1456 | | -cells. |
1457 | | -<dt><strong>always</strong> |
1458 | | -<dd>The header is spoken before every pertinent cell. |
1459 | | -</dl> |
1460 | | - |
1461 | | -<p>Each document language may have different mechanisms that allow |
1462 | | -authors to specify headers. For example, in HTML 4.0 ([[HTML40]]), it |
1463 | | -is possible to specify header information with three different |
1464 | | -attributes ("headers", "scope", and "axis"), and the specification |
1465 | | -gives an algorithm for determining header information when these |
1466 | | -attributes have not been specified.</p> |
1467 | | - |
1468 | | -<div class="html-example"> |
1469 | | -<div class="figure"> |
1470 | | -<P><img src="images/table1.gif" alt="Image of a table created in MS |
1471 | | -Word"><p class="caption"> Image of a table with header cells ("San |
1472 | | -Jose" and "Seattle") that are not in the same column or row as the |
1473 | | -data they apply to. |
1474 | | -</div> |
1475 | | - |
1476 | | -<p>This HTML example presents the money spent on meals, hotels and |
1477 | | -transport in two locations (San Jose and Seattle) for successive |
1478 | | -days. Conceptually, you can think of the table in terms of an |
1479 | | -n-dimensional space. The headers of this space are: location, day, |
1480 | | -category and subtotal. Some cells define marks along an axis while |
1481 | | -others give money spent at points within this space. The markup |
1482 | | -for this table is:</p> |
1483 | | - |
1484 | | -<pre> |
1485 | | -<TABLE> |
1486 | | -<CAPTION>Travel Expense Report</CAPTION> |
1487 | | -<TR> |
1488 | | - <TH></TH> |
1489 | | - <TH>Meals</TH> |
1490 | | - <TH>Hotels</TH> |
1491 | | - <TH>Transport</TH> |
1492 | | - <TH>subtotal</TH> |
1493 | | -</TR> |
1494 | | -<TR> |
1495 | | - <TH id="san-jose" axis="san-jose">San Jose</TH> |
1496 | | -</TR> |
1497 | | -<TR> |
1498 | | - <TH headers="san-jose">25-Aug-97</TH> |
1499 | | - <TD>37.74</TD> |
1500 | | - <TD>112.00</TD> |
1501 | | - <TD>45.00</TD> |
1502 | | - <TD></TD> |
1503 | | -</TR> |
1504 | | -<TR> |
1505 | | - <TH headers="san-jose">26-Aug-97</TH> |
1506 | | - <TD>27.28</TD> |
1507 | | - <TD>112.00</TD> |
1508 | | - <TD>45.00</TD> |
1509 | | - <TD></TD> |
1510 | | -</TR> |
1511 | | -<TR> |
1512 | | - <TH headers="san-jose">subtotal</TH> |
1513 | | - <TD>65.02</TD> |
1514 | | - <TD>224.00</TD> |
1515 | | - <TD>90.00</TD> |
1516 | | - <TD>379.02</TD> |
1517 | | -</TR> |
1518 | | -<TR> |
1519 | | - <TH id="seattle" axis="seattle">Seattle</TH> |
1520 | | -</TR> |
1521 | | -<TR> |
1522 | | - <TH headers="seattle">27-Aug-97</TH> |
1523 | | - <TD>96.25</TD> |
1524 | | - <TD>109.00</TD> |
1525 | | - <TD>36.00</TD> |
1526 | | - <TD></TD> |
1527 | | -</TR> |
1528 | | -<TR> |
1529 | | - <TH headers="seattle">28-Aug-97</TH> |
1530 | | - <TD>35.00</TD> |
1531 | | - <TD>109.00</TD> |
1532 | | - <TD>36.00</TD> |
1533 | | - <TD></TD> |
1534 | | -</TR> |
1535 | | -<TR> |
1536 | | - <TH headers="seattle">subtotal</TH> |
1537 | | - <TD>131.25</TD> |
1538 | | - <TD>218.00</TD> |
1539 | | - <TD>72.00</TD> |
1540 | | - <TD>421.25</TD> |
1541 | | -</TR> |
1542 | | -<TR> |
1543 | | - <TH>Totals</TH> |
1544 | | - <TD>196.27</TD> |
1545 | | - <TD>442.00</TD> |
1546 | | - <TD>162.00</TD> |
1547 | | - <TD>800.27</TD> |
1548 | | -</TR> |
1549 | | -</TABLE> |
1550 | | -</pre> |
1551 | | - |
1552 | | -<p>By providing the data model in this way, authors make it |
1553 | | -possible for speech enabled-browsers to explore the table in |
1554 | | -rich ways, e.g., each cell could be spoken as a list, repeating the |
1555 | | -applicable headers before each data cell:</p> |
1556 | | - |
1557 | | -<pre> |
1558 | | - San Jose, 25-Aug-97, Meals: 37.74 |
1559 | | - San Jose, 25-Aug-97, Hotels: 112.00 |
1560 | | - San Jose, 25-Aug-97, Transport: 45.00 |
1561 | | - ... |
1562 | | -</pre> |
1563 | | - |
1564 | | -<p>The browser could also speak the headers only when they change:</p> |
1565 | | - |
1566 | | -<pre> |
1567 | | -San Jose, 25-Aug-97, Meals: 37.74 |
1568 | | - Hotels: 112.00 |
1569 | | - Transport: 45.00 |
1570 | | - 26-Aug-97, Meals: 27.28 |
1571 | | - Hotels: 112.00 |
1572 | | -... |
1573 | | -</pre> |
1574 | | -</div> |
1575 | | - |
1576 | 1432 | </body> |
1577 | 1433 | </html> |
1578 | 1434 | <!-- Keep this comment at the end of the file |
|
0 commit comments