![]() ![]() | ![]() |
1.1 cvs 1: TRANSLATION HTML;
2:
3: LINELENGTH 78;
4:
5: COUNTERS
6: ItemCounter : Rank of List_Item;
1.5 cvs 7: AnchorCounter : Set 1 on BODY Add 1 on Anchor;
8:
1.3 cvs 9: CONST
1.5 cvs 10: TmpFileName = 'test';
1.3 cvs 11: TmpFileExt = '.tmp';
12: TmpFileDir = '/tmp/';
1.5 cvs 13: DoubleQuote = '"';
1.3 cvs 14:
15: VAR
1.5 cvs 16: OUT_AnchorCounter : Value(AnchorCounter);
1.3 cvs 17: TmpFile : TmpFileDir TmpFileName TmpFileExt;
1.1 cvs 18:
19: RULES
20:
21: HTML : BEGIN
1.5 cvs 22: Create '\12' After;
1.1 cvs 23: END;
24:
25: HEAD: BEGIN
1.5 cvs 26: Create in TmpFile '\12' After;
1.1 cvs 27: END;
28:
29: Document_URL:
30: BEGIN
1.5 cvs 31: Create In TmpFile 'The URL of the document is: ';
1.8 cvs 32: Create In TmpFile Content;
1.5 cvs 33: Create In TmpFile '\12' After;
34: Remove;
1.1 cvs 35: END;
36:
37: TITLE: BEGIN
1.5 cvs 38: Create '\12\12' After;
1.1 cvs 39: END;
40:
41: ISINDEX: BEGIN
42: Remove;
43: END;
44:
45: BASE: BEGIN
1.5 cvs 46: Create IN TmpFile 'The base of the document is: ';
47: Create Attributes;
48: Create IN TmpFile '\12' After;
1.1 cvs 49: END;
50:
51: Styles:BEGIN
1.7 cvs 52: Remove;
1.1 cvs 53: END;
54:
55: StyleRule:
56: BEGIN
1.7 cvs 57: Remove;
1.1 cvs 58: END;
59:
60: SCRIPT: BEGIN
1.7 cvs 61: Remove;
1.1 cvs 62: END;
63:
64: META: BEGIN
65: Remove;
66: END;
67:
68: LINK: BEGIN
69: Remove;
70: END;
71:
1.5 cvs 72:
1.1 cvs 73: BODY: BEGIN
1.8 cvs 74: Indent +4;
75: Indent -4 After;
1.3 cvs 76: Create '\12\12' After;
77: Create '-------------------------\12' After;
1.5 cvs 78: Create 'List of References\12\12' After;
79: Include '/tmp/test.tmp' After;
1.1 cvs 80: END;
81:
82: H1: BEGIN
1.8 cvs 83: Indent -4;
1.7 cvs 84: if not within Preformatted Create '\12';
1.8 cvs 85: Indent +4 After;
1.7 cvs 86: if not within Preformatted Create '\12\12' After;
1.1 cvs 87: END;
88:
89: H2: BEGIN
1.8 cvs 90: Indent -2;
1.7 cvs 91: if not within Preformatted Create '\12';
1.8 cvs 92: Indent +2 After;
1.7 cvs 93: if not within Preformatted Create '\12\12' After;
1.1 cvs 94: END;
95:
96: H3: BEGIN
1.7 cvs 97: if not within Preformatted Create '\12';
98: if not within Preformatted Create '\12\12' After;
1.1 cvs 99: END;
100:
101: H4: BEGIN
1.8 cvs 102: Indent +2;
1.7 cvs 103: if not within Preformatted Create '\12';
1.8 cvs 104: Indent -2 After;
1.7 cvs 105: if not within Preformatted Create '\12\12' After;
1.1 cvs 106: END;
107:
108: H5: BEGIN
1.8 cvs 109: Indent +4;
1.7 cvs 110: if not within Preformatted Create '\12';
1.8 cvs 111: Indent -4 After;
1.7 cvs 112: if not within Preformatted Create '\12\12' After;
1.1 cvs 113: END;
114:
115: H6: BEGIN
1.8 cvs 116: Indent +6;
1.7 cvs 117: if not within Preformatted Create '\12';
1.8 cvs 118: Indent -6 After;
1.7 cvs 119: if not within Preformatted Create '\12\12' After;
1.1 cvs 120: END;
121:
122: BaseFont:
123: BEGIN
124: Remove;
125: END;
126:
127: BR: BEGIN
1.3 cvs 128: Create '\12';
1.1 cvs 129: Remove;
130: END;
1.5 cvs 131:
1.1 cvs 132: Italic_text:
133: BEGIN
134: END;
135: Bold_text:
136: BEGIN
137: END;
138: Teletype_text:
139: BEGIN
140: END;
141: Underlined_text:
142: BEGIN
143: END;
144: Struck_text:
145: BEGIN
146: END;
147: Big_text:
148: BEGIN
149: END;
150: Small_text:
151: BEGIN
152: END;
153: Subscript:
154: BEGIN
155: END;
156: Superscript:
157: BEGIN
158: END;
159:
160: Emphasis:
161: BEGIN
162: END;
163: Strong:
164: BEGIN
165: END;
166: Def:
167: BEGIN
168: END;
169: Code:
170: BEGIN
171: END;
172: Sample:
173: BEGIN
174: END;
175: Keyboard:
176: BEGIN
177: END;
178: Variable:
179: BEGIN
180: END;
181: Cite:
182: BEGIN
1.5 cvs 183: Create DoubleQuote;
184: Create DoubleQuote After;
1.1 cvs 185: END;
186:
187: Font_: BEGIN
188: END;
189:
190: Applet: BEGIN
1.5 cvs 191: Create Attributes;
192: Remove;
193: Create '\12' After;
1.1 cvs 194: END;
195:
196: Parameter: BEGIN
197: Remove;
198: END;
199:
200: #ifdef COUGAR
1.5 cvs 201: Object: BEGIN
202: Create Attributes;
203: Remove;
1.3 cvs 204: Create '\12' After;
1.1 cvs 205: END;
206: #endif
207: Paragraph: BEGIN
1.5 cvs 208: Create '\12';
209: Create '\12' After;
1.1 cvs 210: END;
211:
212: Pseudo_paragraph: BEGIN
1.7 cvs 213: If NOT within Paragraph AND NOT within Pseudo_paragraph
214: Create '\12\12' After;
1.1 cvs 215: END;
216:
217: TEXT_UNIT: BEGIN
218: IF Within Text_Area
219: Remove;
220: IF Within Text_Input
221: Remove;
1.8 cvs 222: IF Within HEAD and not Within TITLE
1.7 cvs 223: Remove;
224: IF Within STYLE
225: Remove;
1.1 cvs 226: END;
227:
228: Definition_List: BEGIN
1.3 cvs 229: Create '\12';
1.5 cvs 230: Indent +3;
231: Indent -3 After;
1.1 cvs 232: END;
233:
234: Term: BEGIN
1.5 cvs 235: Create '\12' After;
1.1 cvs 236: END;
237:
238: Definition: BEGIN
239: Indent +5;
240: Indent -5 After;
241: END;
242:
243: Unnumbered_List: BEGIN
1.7 cvs 244: Create '\12';
245: Indent +3;
1.5 cvs 246: Indent -3 After;
1.1 cvs 247: END;
248:
249: Numbered_List: BEGIN
1.7 cvs 250: Create '\12';
251: Indent +3;
1.5 cvs 252: Indent -3 After;
1.1 cvs 253: END;
254:
255: Address: BEGIN
1.5 cvs 256: Create Attributes;
1.3 cvs 257: Create '\12' After;
1.1 cvs 258: END;
259:
260: Menu: BEGIN
1.5 cvs 261: Create '\12';
1.7 cvs 262: Indent +3;
263: Indent -3 After;
1.1 cvs 264: END;
265:
266: Directory: BEGIN
1.5 cvs 267: Create '\12';
1.7 cvs 268: Indent +3;
269: Indent -3 After;
1.1 cvs 270: END;
271:
272: List_Item: BEGIN
273: Create Attributes;
274: Indent +3;
1.7 cvs 275: Indent -3 after;
1.1 cvs 276: END;
277:
278: Preformatted: BEGIN
279: NoLineBreak;
1.5 cvs 280: Create Attributes;
1.3 cvs 281: Create '\12' After;
1.1 cvs 282: END;
283:
284: Horizontal_Rule: BEGIN
1.8 cvs 285: If NOT within Paragraph AND NOT within Pseudo_paragraph
1.7 cvs 286: Create '\12';
1.5 cvs 287: Create '-----------------------------\12';
288: Remove;
1.1 cvs 289: END;
290:
291: Form: BEGIN
1.6 cvs 292: Create '\12';
293: Create '\12' After;
1.1 cvs 294: END;
295:
296: Option_Menu: BEGIN
297: END;
298:
299: Option: BEGIN
1.9 ! cvs 300: If NOT Selected
1.6 cvs 301: Remove;
1.1 cvs 302: END;
303:
304: Toggle_Menu: BEGIN
1.6 cvs 305: Remove;
1.1 cvs 306: END;
307:
308: Toggle_Item: BEGIN
1.6 cvs 309: Remove;
1.1 cvs 310: END;
311:
312: Radio_Menu: BEGIN
1.6 cvs 313: Remove;
1.1 cvs 314: END;
315:
316: Radio_Item: BEGIN
1.6 cvs 317: Remove;
1.1 cvs 318: END;
319:
320: Text_Input_Line: BEGIN
1.6 cvs 321: Remove;
1.1 cvs 322: END;
323:
324: Command_Line: BEGIN
1.6 cvs 325: Remove;
1.1 cvs 326: END;
327:
328: Text_Area: BEGIN
1.6 cvs 329: Remove;
1.1 cvs 330: END;
331:
332: Checkbox_Input: BEGIN
333: Remove;
334: END;
335:
336: Radio_Input: BEGIN
337: Remove;
338: END;
339:
340: Text_Input: BEGIN
341: Remove;
342: END;
343:
344: Hidden_Input: BEGIN
345: Remove;
346: END;
347:
348: Password_Input: BEGIN
349: Remove;
350: END;
351:
352: File_Input: BEGIN
353: Remove;
354: END;
355:
356: Reset_Input: BEGIN
357: Remove;
358: END;
359:
360: Submit_Input: BEGIN
1.5 cvs 361: Remove;
1.1 cvs 362: END;
363:
364: Block_Quote: BEGIN
1.3 cvs 365: Create '\12';
366: Indent +5;
367: Indent -5 After;
368: Create '\12' After;
1.1 cvs 369: END;
370:
371: PICTURE_UNIT: BEGIN
372: #ifdef COUGAR
373: if Immediately within Object
374: Remove;
375: if NOT Immediately within Object BEGIN
1.5 cvs 376: Create Attributes;
377: END;
1.1 cvs 378: #else
379: Create Attributes;
380: #endif
1.8 cvs 381: if NOT ALT
382: Create '[Image]';
1.1 cvs 383: END;
384:
1.8 cvs 385:
1.1 cvs 386: Anchor: BEGIN
1.8 cvs 387: if HREF_ AND NOT InternalLink
388: BEGIN
389: Create In TmpFile '[';
390: Create In TmpFile OUT_AnchorCounter;
391: Create In TmpFile '] ';
392: Create Attributes;
393: Create IN TmpFile '\12' After;
1.5 cvs 394: #ifdef ANCHOR_PREFIX
1.8 cvs 395: Create '[' ;
396: Create OUT_AnchorCounter;
397: Create ']';
1.5 cvs 398: #else
1.8 cvs 399: Create '[' After;
400: Create OUT_AnchorCounter After;
401: Create ']' After;
1.5 cvs 402: #endif
1.8 cvs 403: END;
1.1 cvs 404: END;
405:
406: MAP:
407: BEGIN
1.3 cvs 408: Remove;
1.1 cvs 409: END;
410:
411: AREA:
412: BEGIN
413: Remove;
414: END;
415:
416: { ---- Tables ---- }
417:
418: Table:
419: BEGIN
1.5 cvs 420: Create '\12';
421: Indent +3;
1.1 cvs 422: Create Attributes;
1.5 cvs 423: Indent -3 After;
424: Create '\12' After;
1.1 cvs 425: END;
426:
427: CAPTION:
428: BEGIN
1.5 cvs 429: Indent -3;
430: Indent +3 After;
431: Create '\12' after;
1.1 cvs 432: END;
433:
434: Table_head:
435: Remove;
436:
437: #ifdef COUGAR
438: thead:
439: BEGIN
1.5 cvs 440: Create '<thead';
441: Create Attributes;
442: Create '>\12';
443: Create '</thead>\12' after;
1.1 cvs 444: END;
445:
446: tfoot:
447: BEGIN
1.5 cvs 448: Create '<tfoot';
449: Create Attributes;
450: Create '>\12';
451: Create '</tfoot>\12' after;
1.1 cvs 452: END;
453: tbody:
454: BEGIN
455: END;
456: #endif
457:
458: Table_body:
459: Get tfoot;
460:
461: Table_row:
462: BEGIN
463: END;
464:
465: Data_cell:
466: BEGIN
1.3 cvs 467: Create '\12' After;
1.1 cvs 468: END;
469:
470: Heading_cell:
471: BEGIN
1.5 cvs 472: Create '\12' After;
1.1 cvs 473: END;
474:
475: Table_foot:
476: BEGIN
477: Remove;
478: END;
479:
480: Division: BEGIN
1.7 cvs 481: Create '\12';
1.1 cvs 482: END;
483:
484: Center: BEGIN
1.7 cvs 485: Create '\12';
486:
1.1 cvs 487: END;
488:
489: Invalid_element:
490: BEGIN
1.5 cvs 491: if Error_type = BadPosition
492: Remove;
493: if not Error_type = BadPosition
494: BEGIN
495: NoTranslation;
496: Create Content;
497: Remove;
498: Create Attributes;
499: Create '>';
500: END;
1.1 cvs 501: END;
502:
503: Comment\240: BEGIN
1.4 cvs 504: Remove;
1.1 cvs 505: END;
506:
507: Comment_line: BEGIN
1.4 cvs 508: Remove;
1.1 cvs 509: END;
510:
511: ATTRIBUTES
512:
513: http_equiv: BEGIN
1.7 cvs 514: Remove;
1.1 cvs 515: END;
516:
517: meta_name: BEGIN
1.7 cvs 518: Remove;
1.1 cvs 519: END;
520:
521: meta_content: BEGIN
1.7 cvs 522: Remove;
1.1 cvs 523: END;
524:
525: REL: BEGIN
1.7 cvs 526: Remove;
1.1 cvs 527: END;
528:
529: REV: BEGIN
1.7 cvs 530: Remove;
1.1 cvs 531: END;
532:
533: HREF_ :
534: BEGIN
1.8 cvs 535: If NOT Within LINK AND NOT InternalLink
1.6 cvs 536: Create IN TmpFile HREF_;
1.1 cvs 537: END;
538:
539: background_ :
540: BEGIN
541: END;
542:
543: BackgroundColor :
544: BEGIN
545: END;
546:
547: TextColor :
548: BEGIN
549: END;
550:
551: LinkColor :
552: BEGIN
553: END;
554:
555: VisitedLinkColor :
556: BEGIN
557: END;
558:
559: ActiveLinkColor :
560: BEGIN
561: END;
562:
563: BaseFontSize:
564: BEGIN
565: END;
566:
567: Font_size :
1.5 cvs 568: BEGIN
1.1 cvs 569: END;
570:
571: color :
572: BEGIN
573: END;
574:
575: Clear = Left_:
576: BEGIN
577: END;
578:
1.7 cvs 579: Clear = Right_:
1.1 cvs 580: BEGIN
581: END;
582: Clear = All_:
583: BEGIN
584: END;
585: Clear = None:
586: BEGIN
587: END;
588:
589: Align = left_:
590: BEGIN
591: END;
592: Align = center_:
593: BEGIN
594: END;
595: Align = right_:
596: BEGIN
597: END;
598:
599: NoShade:
1.5 cvs 600: BEGIN
1.1 cvs 601: END;
602:
603: Size_: BEGIN
604: END;
605:
606: Width__: BEGIN
607: END;
608:
609: codebase: BEGIN
610: END;
611:
612: code: BEGIN
613: END;
614:
615: applet_name: BEGIN
616: END;
617:
618: Param_name: BEGIN
619: END;
620:
621: Param_value: BEGIN
622: END;
623: #ifdef COUGAR
624: classid: BEGIN
625: END;
626:
627: data: BEGIN
628: END;
629:
630: Object_type: BEGIN
631: END;
632:
633: codetype: BEGIN
634: END;
635: #endif
636: Title : BEGIN
637: NoTranslation;
638: END;
639:
640: Class: BEGIN
1.7 cvs 641: Remove;
1.1 cvs 642: END;
643:
644: Style\240: BEGIN
645: END;
646:
647: COMPACT: BEGIN
648: END;
649:
650: IntItemStyle = disc:
651: Create '* ';
652: IntItemStyle = square :
653: Create '+ ';
654: IntItemStyle = circle :
655: Create 'o ';
656: IntItemStyle = Arabic_ :
657: Create (Value(ItemCounter, Arabic) '. ');
658: IntItemStyle = LowerAlpha :
659: Create (Value(ItemCounter, Lowercase) '. ');
660: IntItemStyle = UpperAlpha :
661: Create (Value(ItemCounter, Uppercase) '. ');
662: IntItemStyle = LowerRoman :
663: Create (Value(ItemCounter, LRoman) '. ');
664: IntItemStyle = UpperRoman :
665: Create (Value(ItemCounter, URoman) '. ');
666:
667: Start: BEGIN
668: END;
669:
670: ItemValue: BEGIN
671: END;
672:
673: WidthElement: BEGIN
674: END;
675:
676: Script_URL: BEGIN
677: END;
678:
679: METHOD=Post_:
1.5 cvs 680: BEGIN
681: END;
1.1 cvs 682:
683: METHOD=Get_:
1.5 cvs 684: BEGIN
685: END;
1.1 cvs 686:
687: ENCTYPE: BEGIN
688: END;
689:
690: NAME: BEGIN
691: END;
692:
693: Multiple:
1.5 cvs 694: BEGIN
695: END;
1.1 cvs 696:
697: MenuSize: BEGIN
698: END;
699:
700: Selected:
701: Create ' selected';
702:
703: Value_: BEGIN
704: END;
705:
706: Rows: BEGIN
707: END;
708:
709: Columns: BEGIN
710: END;
711:
712: Checked = Yes_:
713: Create ' checked';
714:
715: Area_Size: BEGIN
716: END;
717:
718: MaxLength: BEGIN
719: END;
720:
721: SRC: BEGIN
1.3 cvs 722: Remove;
1.1 cvs 723: END;
724:
725: ALT: BEGIN
1.3 cvs 726: Create '[';
1.1 cvs 727: Create ALT;
1.3 cvs 728: Create ']' After;
1.1 cvs 729: END;
730:
731: Alignment = Top_:
1.5 cvs 732: BEGIN
733: END;
1.1 cvs 734: Alignment = Middle_:
1.5 cvs 735: BEGIN
736: END;
1.1 cvs 737: Alignment = Bottom_:
1.5 cvs 738: BEGIN
739: END;
1.1 cvs 740: Alignment = Left_:
1.5 cvs 741: BEGIN
742: END;
1.1 cvs 743: Alignment = Right_:
1.5 cvs 744: BEGIN
745: END;
1.1 cvs 746:
747: Height_: BEGIN
748: END;
749:
750: Width_: BEGIN
751: END;
752:
753: Img_border: BEGIN
754: END;
755:
756: hspace: BEGIN
757: END;
758:
759: vspace: BEGIN
760: END;
761:
762: ISMAP:
1.5 cvs 763: BEGIN
764: END;
1.1 cvs 765:
766: USEMAP: BEGIN
767: END;
768:
769: nohref:
1.5 cvs 770: BEGIN
771: END;
1.1 cvs 772:
773: shape = rectangle:
1.5 cvs 774: BEGIN
775: END;
1.1 cvs 776: shape = circle:
1.5 cvs 777: BEGIN
778: END;
1.1 cvs 779: shape = polygon:
1.5 cvs 780: BEGIN
781: END;
1.1 cvs 782:
783: coords: BEGIN
784: END;
785:
786: Border: BEGIN
787: END;
788:
789: Table_align = Align_left:
1.5 cvs 790: BEGIN
791: END;
1.1 cvs 792: Table_align = Center_:
1.5 cvs 793: BEGIN
794: END;
1.1 cvs 795: Table_align = Align_right:
1.5 cvs 796: BEGIN
797: END;
1.1 cvs 798: cellspacing: BEGIN
799: END;
800:
1.5 cvs 801: cellpadding:
802: BEGIN
1.1 cvs 803: END;
804:
805: Position = Position_top:
1.5 cvs 806: BEGIN
807: END;
1.1 cvs 808: Position = Position_bottom:
1.5 cvs 809: BEGIN
810: END;
1.1 cvs 811:
812: Row_align = Row_left:
1.5 cvs 813: BEGIN
814: END;
1.1 cvs 815: Row_align = Row_center:
1.5 cvs 816: BEGIN
817: END;
1.1 cvs 818: Row_align = Row_right:
1.5 cvs 819: BEGIN
820: END;
1.1 cvs 821: Row_valign = Row_top:
1.5 cvs 822: BEGIN
823: END;
1.1 cvs 824: Row_valign = Row_middle:
1.5 cvs 825: BEGIN
826: END;
1.1 cvs 827: Row_valign = Row_bottom:
1.5 cvs 828: BEGIN
829: END;
1.1 cvs 830:
831: colspan: BEGIN
832: END;
833:
834: rowspan: BEGIN
835: END;
836:
837: Cell_align = Cell_left:
1.5 cvs 838: BEGIN
839: END;
1.1 cvs 840: Cell_align = Cell_center:
1.5 cvs 841: BEGIN
842: END;
1.1 cvs 843: Cell_align = Cell_right:
1.5 cvs 844: BEGIN
845: END;
1.1 cvs 846:
847: Cell_valign = Cell_top:
1.5 cvs 848: BEGIN
849: END;
1.1 cvs 850: Cell_valign = Cell_middle:
1.5 cvs 851: BEGIN
852: END;
1.1 cvs 853: Cell_valign = Cell_bottom:
1.5 cvs 854: BEGIN
855: END;
1.1 cvs 856:
857: Cell_width: BEGIN
858: END;
859:
860: Cell_height: BEGIN
861: END;
862:
863: Word_wrap = No_wrap:
1.5 cvs 864: BEGIN
865: END;
1.1 cvs 866:
867: Invalid_attribute:
1.5 cvs 868: BEGIN
869: END;
870:
871: TextTRANSLATE
872: BEGIN
873: '\240' -> ' '; { }
874: '\212' -> '\12'; { &CTLrc; }
875: END;
1.1 cvs 876:
877: GraphTRANSLATE
878: BEGIN
879: 'c' -> 'circle';
880: 'Q' -> 'circle';
881: 'R' -> 'rect';
882: 'C' -> 'rect';
883: ' ' -> 'rect';
884: 'P' -> 'rect';
885: 'p' -> 'polygon';
886: 'B' -> 'polygon';
887: END;
888:
889: END
1.3 cvs 890: