0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * language governing permissions and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1067N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 1185N/A * Portions Copyright 2011 Jens Elkner. 1020N/A // TODO move this into an include file when bug #16053 is fixed 1185N/A // Q&D methods to asure well-formed documents 1185N/A^(
".\\\"")|(\
'\\\")|("...\\\"") { yybegin(COMMENT);openSpan('c
');} 1185N/A{EOL} { yybegin(YYINITIAL); cleanup(); closeDiv(); yyline++;} 1185N/A{EOL} { yybegin(YYINITIAL); closeSpan(); out.write("<br/>"); yyline++;} 1185N/A^\.(B|U|BI|BX|UL|LG|NL|SB|BR|RB) { yybegin(BOLD); openSpan('b
'); } 1185N/A^\.(I|SM|IB|IR|RI|IX) { yybegin(BOLD); openSpan('s
'); } 1185N/A^\.(CW) { yybegin(BOLD); openSpan('k
'); } 1185N/A^\.(DS|LD|ID|BD|CD|RD) { openSpan('k
'); } 1185N/A{EOL} { yybegin(YYINITIAL); closeSpan(); out.write(' '); yyline++;} 1185N/A"\\fC"|"\\f(CW" { openSpan('k
'); } 1185N/A^\.(PP|LP|P|TP|IP|HP|PD|SP|br|mk|ce) { 1185N/A^\.(RS)[^\n]* { cleanup(); openDiv("rs"); openPara(); } 1185N/A^\.(RE)[^\n]* { cleanup(); closeDiv(); } 0N/A^\.so {out.write(".so ");} 1185N/A^\.(EQ|in|sp|ne|rt|pn|ds|de|if|ig|el|ft|hy|ie|ll|ps|rm|ta|ti|na|ad|te|hw|nh|pl)[^\n]*\n { } 0N/A^\.(NH|DT|EE)[^\n]* {} 1185N/A^".nf" {closePara(); out.write("<pre>"); } 1185N/A^".fi" {cleanup(); out.write("</pre>"); } 1185N/A\\\*\(Tm { out.write("<sup>TM</sup> "); } 1185N/A\\\*\R { out.write("® "); } 0N/A\\\((l|r)q { out.write('"'); } 0N/A\\\(mi { out.write('-'); }