File: t2html-1.html

package info (click to toggle)
t2html 2016.1020%2Bgit294e8d7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 840 kB
  • ctags: 290
  • sloc: perl: 4,711; makefile: 133
file content (664 lines) | stat: -rw-r--r-- 17,370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!--
        Note: the LINK tags are used by advanced browsers.
-->
<head>
<title>
Page title is embedded inside text file
</title>



<!--    ......................................................................
    META TAGS (FOR SEARCH ENGINES)
    ......................................................................
-->

  <meta http-equiv="keywords"
	CONTENT="test, html, example">

  <meta http-equiv="description"
	content="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Expires" content="Sat, 17 Nov 2007 14:44:49 GMT">


  <meta http-equiv="Made"
	content="mailto:author@examle.com">


  <meta name="Generator"
	content="2007-09-18 17:44 Perl program t2html v2007.0918.1443 http://freecode.com/projects/perl-text2html">



<!--    ......................................................................
    BUTTON DEFINITION START
    ......................................................................
-->

<link rel="stylesheet" type="text/css" href="./t2html-4.css">
</head>

<body >


<!--    ......................................................................
    TABLE OF CONTENT START
    ......................................................................
-->


<div class="toc" id="toc">
<A name="toc" id="toc" class="name"></A>
<h1>
    Table of Contents

</h1>


<ul>
<li>
           <a href="#headings" class="toc">
               Headings
           </a>
           <br>
<li>
           <a href="#markup" class="toc">
               Markup
           </a>
           <br>
<li>
           <a href="#emacs_minor_mode" class="toc">
               Emacs minor mode
           </a>
           <br>
<li>
           <a href="#bullets_lists_and_links" class="toc">
               Bullets, lists, and links
           </a>
           <br>
<li>
           <a href="#line_breaking" class="toc">
               Line breaking
           </a>
           <br>
<li>
           <a href="#specials" class="toc">
               Specials
           </a>
           <br>
</ul>
<a href="#samples_per_column_heading_level_h1" class="toc">
               Samples per column (heading level h1)
           </a>
           <br>

<ul>
<li>
           <a href="#column_4_next_heading_level_h2" class="toc">
               Column 4, Next heading level (h2)
           </a>
           <br>
<li>
           <a href="#another_level_2_heading_column_4" class="toc">
               Another level 2 heading (column 4)
           </a>
           <br>
</ul>
<a href="#table_rendering_examples" class="toc">
               Table rendering examples
           </a>
           <br>
<a href="#conversion_program" class="toc">
               Conversion program
           </a>
           <br>
</ul>

</div>


<!--    ......................................................................
    TABLE OF CONTENT END
    ......................................................................
-->

t2html Test Page



<p class="column8">
        Copyright &copy; 1996-2007 Jari Aalto


<p class="column8">
        License: This material may be distributed only subject to
        the terms and conditions set forth in GNU General Public
        License v2 or later; or, at your option, distributed under the
        terms of GNU Free Documentation License version 1.2 or later
        (GNU FDL).


<p class="column8">
        This is a demonstration text of Perl Text To HTML
        converter.



  <a name="headings" id="headings"></a>
  <h2>
      Headings

  </h2>




<p>
<p class="column8">
        The tool provides for two heading levels. Combined with
        bullets and numbered lists, it ought to be enough for most
        purposes, unless you really like section 1.2.3.4.5


<p class="column8">
        You can insert links to headings or other documents. The
        convention is interior links are made by joining the first
        four words of the heading with underscores, so they must be
        unique. A link to a heading below looks like this in the text
        document and generates the link shown. There also is syntax
        for automatically inserting a base URL (see the tool
        documentation).


<p class="column8">
        The following blue link is generated with markup code:
        # REF #Markup ;(Markup);


<p class="column8">
        <a href="#Markup " >(Markup)</A>



  <a name="markup" id="markup"></a>
  <h2>
      Markup

  </h2>




<p>
<p class="column8">
        The markup here is mostly based on column position, meaning
        mostly no tags. The exceptions are special marks for bullets
        and for emphasis. See later sections for the effects of column
        position on the output HTML.


<p class="column8">
        Text surrounded by = equals = comes out <span class="word-small">another</span> <span class="word-small">color</span><br>
        Text surrounded by backquote/forward quote comes out <samp class="word">color</samp> `<br>
        Text surrounded by * asterisks * comes out <em class="word">italic</em> <em class="word">text</em><br>
        Text surrounded by _ underscores _ comes out <strong class="word">bold</strong><br>
        The long dash &ndash; is signified with two consequent dashes (-)<br>
        The plus-minus is signified with (+) and (-) markers combined &plusmn;4<br>
        Big character &quot;C&quot; in parentheses ( C ) make a copyright sign (C)<br>
        Registered trade mark sign &reg; is big character &quot;R&quot; in parentheses ( R )<br>
        Euro sign is small character &quot;e&quot; right after digit: 400 &euro;<br>
        Degree sign is number &quot;0&quot; in parentheses just after number: 5&deg;C<br>
        Superscript is maerked with bracket immediately attached to text<span class="super">see this</span><br>
        Special HTML entities can embedded in a normal way, like: &times; &lt; &gt; &le; &ge; &ne; &radic; &minus; &alpha; &beta; &gamma; &#402; &divide; &laquo; &raquo; - &ndash; &mdash; &asymp; &equiv; &lsaquo; &rsaquo; &sum; &infin; &trade;<br>




  <a name="emacs_minor_mode" id="emacs_minor_mode"></a>
  <h2>
      Emacs minor mode

  </h2>




<p>
<p class="column8">
        If you use the advertised Emacs minor mode (tinytf.el) you can
        easily renumber headings as you revise the text. Test is also
        colorized as you edit content.


<p class="column8">
        The editing mode can automatically generate the table of
        contents and the HTML generator can use it to generate a two
        frame output with the TOC in the left frame as hotlinks to the
        sections and subsections.
        Visit <a href="http://freecode.com/projects/emacs-tiny-tools" >http://freecode.com/projects/emacs-tiny-tools</A>



  <a name="bullets_lists_and_links" id="bullets_lists_and_links"></a>
  <h2>
      Bullets, lists, and links

  </h2>




<p>
<p class="column8">
        This is ordinary text.

<ul>
	<li>This is a bullet paragraph with a continuation mark
            (leading comma) in the last line. It will not work if the
	            comma is on the same line as the bullet.
<P>


            This is a continued bullet paragraph. You use a leading
            comma in the last line of the previous block to make a
            continued item. This is ok except the paragraph fill code
            (for the previous paragraph) cannot deal with it. Maybe
            it is a hint not to do continued bullets, or a hint not to
	            put the comma in until you are done formatting.</li>
</ul>



<ul>
	<li>The next bullet.  the sldjf sldjf sldkjf slkdjf sldkjf
	            lsdkjf slkdjf sldkjf sldkjf lskdj flskdjf lskdjf lsdkjf.</li>
</ul>



<ol>
	<li>This is a numbered list, made with a '.' in column 8 of its
            first line and text in column 12. You may not have blank
            lines between the items.
<li>Clickable email <EM><a href="mailto:gork@ork.com" >gork@ork.com</A></EM>.
	</li>
<li>Non-clickable email gork@ork.com.
	</li>
<li>Clickable link: <a href="http://this.com" >http://this.com</A>
	</li>
<li>Non-clickable link: http://this.com.
	<li>Clickable file: <a href="file:/home/gork/x.txt" >file:/home/gork/x.txt</A>.</li>
</ol>





  <a name="line_breaking" id="line_breaking"></a>
  <h2>
      Line breaking

  </h2>




<p>
<p class="column8">
        Ordinary text with leading dot(.) forces line breaks in the HTML.
        Here is a line with forced break.<br>
        Here is another line thatcontains dot-code at the beginning.<br>



  <a name="specials" id="specials"></a>
  <h2>
      Specials

  </h2>




<p>
<p class="column8">
        You can use superscripts<span class="super">1</span>, multiple<span class="super">(2)</span> and almost
        any<span class="super">(ab)</span> and imaginable<span class="super">IV superscripts</span>

<hr>
               <A name="samples_per_column_heading_level_h1"  id="samples_per_column_heading_level_h1"></A>
               <h1>
               Samples per column (heading level h1)

               </h1>


<p class="column8">
        These samples show the range of effects produced by writing
        text beginning in different columns.  The column numbers
        referred to are columns in the source text, not (obviously)
        the output. The column numbering is counted starting from 0,
        <strong class="word">not</strong> <strong class="word">number</strong> <strong class="word">1</strong>.

 Column 1, is undefined and nothing special.

  Column 2, is undefined and nothing special.


<p class="column3">
   Column 3, plain text, with color



  <a name="column_4_next_heading_level_h2" id="column_4_next_heading_level_h2"></a>
  <h2>
      Column 4, Next heading level (h2)

  </h2>




<p>
<p class="column5">
     Column 5, plain text, with color


<p class="column6">
      Column 6, This i used for long quotations. The text uses
      Georgia font, which is designed for web, but which is
      equally good for laser printing font.


<p class="column7"><em><strong>
       Column 7, bold, italic</strong></em>



<p class="column8">
<span class="quote7">Column 7, start and end with double quote. Use for inner TOPICS</span><BR>


<p class="column8">
        Column 8, standard text <strong class="word">strong</strong> <em class="word">emphasized</em>


<p class="column9"><strong>
         Column 9, font weight bold, not italic.</strong>



<p class="column10"><em class="quote10">
          Column 10, quotation text, italic serif. This text has been made a
          little smaller and condensed than the rest of the text.
          More quotation text. More quotation text. More quotation text.
          More quotation text. More quotation text. More quotation text.
          More quotation text. More quotation text. More quotation text.
          More quotation text. More quotation text. More quotation text.</em>



<p class="column11">
           Column 11, another color, for questions, exercise texts etc.

<P>
<TABLE class="shade-note">
    <TR>
    <TD class="shade-note-attrib" valign="top">
    <b>      Note:</b>
 It is possible to say something important at
      column 12, which is normally reserved for CODE.
      You must supply options --css-code-bg and
      --css-code-note=Note:
    </TD>
    </TR>
</TABLE>


<p class="column8">
        Here is the code column 12:

<P>


<table  class="shade-note">
    <tr>
    <td class="shade-note-attrib" valign="top">
    <B>      Note:</B>  Here is something important to tell you about this code
      This part of the text in first paragrah is rendered differently,
      because it started with magic word <strong class="word">Note:</strong> The rest of the
      pararagraphs are rendered as CODE.
    </td>
    </tr>
</table>

    <TABLE class="shade-normal">
    <TR>
    <TD class="shade-normal-attrib" valign="top">
    <PRE>
      /* Column 12 code */
      /* 10pt courier navy */
      // col 12 and beyond stay as is to preserve code formatting.

      for( i=0 ; i &lt; 10 ; i++ )
      {
          more();
          whatever();
      }    </PRE>
</TD>
    </TR>
</TABLE>



  <a name="another_level_2_heading_column_4" id="another_level_2_heading_column_4"></a>
  <h2>
      Another level 2 heading (column 4)

  </h2>




<p>
<p class="column8">
        Here is more ordinary text.

<hr>
               <A name="table_rendering_examples"  id="table_rendering_examples"></A>
               <h1>
               Table rendering examples

               </h1>


<p class="column8">
        These examples make sense only if the options <em class="word">--css-code-bg</em>
        (use gray background for column 12) and
        <em class="word">--css-code-note=Note:</em> have been turned on. If orfer to take
        full advantage of all the possibilities, you should introduce
        yourself to the HTML 4.01 specification and peek the CSS code
        in the generated HTML: the <em class="word">tableclass</em> can take an attribute
        of the embedded default styles.

<P>


<table  class="shade-note">
    <tr>
    <td class="shade-note-attrib" valign="top">
    <B>      Note:</B>  This is example 1 and <samp class="word">--css-code-note</samp> options
      reads 'First word' in paragraph at column 12 and
      renders it differently. You can attache code right after
      this note, which must occupy only one paragraph
    </td>
    </tr>
</table>

    <TABLE class="shade-normal">
    <TR>
    <TD class="shade-normal-attrib" valign="top">
    <PRE>
      --css-code-note=REGEXP      Regexp matches 'First word'
      --css-code-bg    </PRE>
</TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 2 using table control code
        #t2html::tableborder:1

<P>
<TABLE class="shade-normal">
    <TR>
    <TD class="shade-normal-attrib" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 3 using table control code
        #t2html::td:bgcolor=#FFEEFF:tableclass:solid

<P>
<TABLE class="solid">
    <TR>
    <TD bgcolor="#FFEEFF" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 4 using table control code
        #t2html::td:bgcolor=#CCFFCC

<P>
<TABLE class="shade-normal">
    <TR>
    <TD bgcolor="#CCFFCC" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 5 using table control code. Due to bug in
        Opera 7-9.x, this exmaple may now show correctly. Please use
        Firefox to see the effect.
        #t2html::td:bgcolor=#FFFFFF:tableclass:dashed

<P>
<TABLE class="dashed">
    <TR>
    <TD bgcolor="#FFFFFF" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 6 using multiple table control codes. Use
        underscore sccharacter to separate different table attributes
        from each other. The underscore will be vconverted into
        SPACE. The double quotes around the VALUE are not strictly
        required by HTML standard, but they are expected in XML.
        #t2html::td:bgcolor=&quot;#EAEAEA&quot;:table:border=1_border=0_cellpadding=&quot;10&quot;_cellspacing=&quot;0&quot;

<P>
<TABLE border=1 border="0 cellpadding=">
    <TR>
    <TD bgcolor="#EAEAEA" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        Here is example 7 using table control code
        #t2html::td:class=color-navy:table:cellpadding=0 which cancels
        default grey coloring. The cellpadding must be zeroed, around
        the text to make room.

<P>
<TABLE cellpadding="0">
    <TR>
    <TD class="color-white" valign="top">
    <PRE>
      for ( i = 0; i++; i &lt; 10 )
      {
          //  Doing something in this loop
      }    </PRE></TD>
    </TR>
</TABLE>

<hr>
               <A name="conversion_program"  id="conversion_program"></A>
               <h1>
               Conversion program

               </h1>


<p class="column8">
        The perl program t2html turns the raw technical text format
        into HTML. Among other things it can produce HTML files with
        an index frame, a main frame, and a master that ties the two
        together. It has features too numerous to list to control the
        output. For details see the perldoc than is embeddedinside the
        program:

<P>
<TABLE class="shade-normal">
    <TR>
    <TD class="shade-normal-attrib" valign="top">
    <PRE>
      perl -S t2html --help | more    </PRE></TD>
    </TR>
</TABLE>


<p class="column8">
        The frame aware html pages are generated by adding the
        <em class="word">--html-frame</em> option.



<!--    ......................................................................
    DOCUMENT END BLOCK
    ......................................................................
-->

<!--


-->
</body>
</html>