Add a few "class" attributes to the html generated by lang.tcl to support conversion to pdf. (CVS 3677)

FossilOrigin-Name: 485c52ddc0f3c24f624825904cea3566f83f0e68
This commit is contained in:
danielk1977 2007-03-09 14:40:58 +00:00
parent fd6f59f51c
commit 2956aead93
4 changed files with 30 additions and 20 deletions

View File

@ -1,5 +1,5 @@
C Change\sthe\sdocumentation\sto\sbe\smore\sspecific\sabout\sthe\srestriction\son\nthe\suse\sof\skeywords.\s\sTicket\s#2264.\s(CVS\s3676)
D 2007-03-08T12:23:34
C Add\sa\sfew\s"class"\sattributes\sto\sthe\shtml\sgenerated\sby\slang.tcl\sto\ssupport\sconversion\sto\spdf.\s(CVS\s3677)
D 2007-03-09T14:40:59
F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f
F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -393,7 +393,7 @@ F www/c_interface.tcl b51b08591554c16a0c3ef718364a508ac25abc7e
F www/capi3.tcl 7a7cc225fe02eb7ab861a6019b08baa0014409e1
F www/capi3ref.tcl 4e0df9c41ebc669a7d7e9b81b410d1f907d20e78
F www/changes.tcl dba0e1f40192f79c7a887fa3efa56e6fdd54f85a
F www/common.tcl 14d121c28532ad20c3e349caa4db708b0b822083
F www/common.tcl c24da36fe05f72b44f84dba08e020f924a605eac
F www/compile.tcl 276546d7eb445add5a867193bbd80f6919a6b084
F www/conflict.tcl cdd0f4b59b0ba6d61f67e6a38f3ae45853bacb30
F www/copyright-release.html 294e011760c439c44951a6bfecd4c81a1ae359e8
@ -413,7 +413,7 @@ F www/fullscanb.gif f7c94cb227f060511f8909e10f570157263e9a25
F www/index-ex1-x-b.gif f9b1d85c3fa2435cf38b15970c7e3aa1edae23a3
F www/index.tcl 688cf1280232f4964d8d07fda65e166a4b2e16cc
F www/indirect1b1.gif adfca361d2df59e34f9c5cac52a670c2bfc303a1
F www/lang.tcl f76b1853bf5ac5677f9381c4ce9ab0c3c2519b26
F www/lang.tcl 0e74378b42d7293f03a263b3ff47a7b549fd5a24
F www/lockingv3.tcl f59b19d6c8920a931f096699d6faaf61c05db55f
F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
F www/nulls.tcl ec35193f92485b87b90a994a01d0171b58823fcf
@ -435,7 +435,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
P 302ec768579e2f7c17a33749e685289a041aeb11
R 7749edec062d6de6cf82b3267f875132
U drh
Z 527bcee1d1ae23e7c72be8880f2bc02b
P d03d480544e1f782ca796e4cfb83ff6894ed9147
R eb4acfbeb94b21158adba0355928518d
U danielk1977
Z 11704b93b183fd2016ac7d986e353ae6

View File

@ -1 +1 @@
d03d480544e1f782ca796e4cfb83ff6894ed9147
485c52ddc0f3c24f624825904cea3566f83f0e68

View File

@ -4,6 +4,7 @@
proc header {txt} {
puts "<html><head><title>$txt</title></head>"
puts {<DIV class="pdf_ignore">}
puts \
{<body bgcolor="white" link="#50695f" vlink="#508896">
<table width="100%" border="0">
@ -43,6 +44,7 @@ proc header {txt} {
<table width="100%">
<tr><td bgcolor="#80a796"></td></tr>
</table>}
puts </DIV>
}
proc footer {{rcsid {}}} {
@ -62,7 +64,7 @@ proc footer {{rcsid {}}} {
# HTML generated by lang.tcl and pragma.tcl.
#
proc Syntax {args} {
puts {<table cellpadding="10">}
puts {<table cellpadding="10" class=pdf_syntax>}
foreach {rule body} $args {
puts "<tr><td align=\"right\" valign=\"top\">"
puts "<i><font color=\"#ff3434\">$rule</font></i>&nbsp;::=</td>"

View File

@ -1,7 +1,7 @@
#
# Run this Tcl script to generate the lang-*.html files.
#
set rcsid {$Id: lang.tcl,v 1.123 2007/03/08 12:23:34 drh Exp $}
set rcsid {$Id: lang.tcl,v 1.124 2007/03/09 14:40:59 danielk1977 Exp $}
source common.tcl
if {[llength $argv]>0} {
@ -12,7 +12,7 @@ if {[llength $argv]>0} {
header {Query Language Understood by SQLite}
puts {
<h1>SQL As Understood By SQLite</h1>
<h1 class="pdf_section">SQL As Understood By SQLite</h1>
<p>The SQLite library understands most of the standard SQL
language. But it does <a href="omitted.html">omit some features</a>
@ -31,7 +31,7 @@ by SQLite. Many low-level productions are omitted. For detailed information
on the language that SQLite understands, refer to the source code and
the grammar file "parse.y".</p>
<div class="pdf_ignore">
<p>SQLite implements the follow syntax:</p>
<p><ul>
}
@ -83,9 +83,12 @@ foreach {section} [lsort -index 0 -dictionary {
puts "<li><a href=\"[slink $s_tag]\">$s_title</a></li>"
}
puts {</ul></p>
</div>
<p>Details on the implementation of each command are provided in
the sequel.</p>
<h1 class="pdf_section">SQLite Commands</h1>
}
proc Operator {name} {
@ -104,6 +107,7 @@ proc Example {text} {
proc Section {name label} {
global outputdir
if {[string length $outputdir]!=0} {
if {[llength [info commands puts_standard]]>0} {
footer $::rcsid
@ -1094,7 +1098,7 @@ Parameters can take several forms:
</p
<blockquote>
<table>
<table class="pdf_functions">
<tr>
<td align="right" valign="top"><b>?</b><i>NNN</i></td><td width="20"></td>
<td>A question mark followed by a number <i>NNN</i> holds a spot for the
@ -1257,7 +1261,7 @@ functions may be written in C and added to the database engine using
the <a href="capi3ref.html#cfunc">sqlite3_create_function()</a>
API.</p>
<table border=0 cellpadding=10>
<table border=0 cellpadding=10 class="pdf_functions">
<tr>
<td valign="top" align="right" width=120>abs(<i>X</i>)</td>
<td valign="top">Return the absolute value of argument <i>X</i>.</td>
@ -1470,7 +1474,7 @@ of distinct values of column X instead of the total number of non-null
values in column X.
</p>
<table border=0 cellpadding=10>
<table border=0 cellpadding=10 class="pdf_functions">
<tr>
<td valign="top" align="right" width=120>avg(<i>X</i>)</td>
<td valign="top">Return the average value of all non-NULL <i>X</i> within a
@ -1982,7 +1986,9 @@ set keyword_list [lsort {
Section {SQLite keywords} keywords
puts {<DIV class="pdf_section">}
Section {SQLite Keywords} keywords
puts {</DIV>}
puts {
<p>The SQL standard specifies a huge number of keywords which may not
@ -1997,7 +2003,7 @@ are three ways of quoting keywords in SQLite:</p>
<p>
<blockquote>
<table>
<table class="pdf_functions">
<tr> <td valign="top"><b>'keyword'</b></td><td width="20"></td>
<td>A keyword in single quotes is interpreted as a literal string
if it occurs in a context where a string literal is allowed, otherwise
@ -2036,7 +2042,7 @@ The following are the keywords currently recognized by SQLite:
</p>
<blockquote>
<table width="100%">
<table width="100%" class="pdf_keywords">
<tr>
<td align="left" valign="top" width="20%">
}
@ -2070,7 +2076,7 @@ puts {
system objects. They can be used as an identifier for a different
type of object.</p>
<blockquote><b>
<blockquote class="pdf_keywords"><b>
_ROWID_<br>
MAIN<br>
OID<br>
@ -2082,7 +2088,9 @@ type of object.</p>
</b></blockquote>
}
puts {<DIV class="pdf_ignore">}
footer $rcsid
if {[string length $outputdir]} {
footer $rcsid
}
puts {</DIV>}