Lines Matching refs:p

349                 for p in re.split(r',(?![^()]*\))', match.group(3)):
350 p = p.strip()
353 print(p, file=sys.stderr)
355 if p == '...':
362 match2 = re.match(r'(.*)<\[(.*)\]>(.*)', p)
451 def line_markup_convert(p): argument
452 s = p
491 if (verbose > 3) and (s != p):
492 print('%s-> line_markup_convert ->\n%s' % (p, s), file=sys.stderr)
604 def parser_verbose(p): argument
606 print(p[0], file=sys.stderr)
608 def p_input(p): argument
611 if len(p) == 3:
612 p[0] = p[1] + '\n' + p[2]
614 p[0] = p[1]
615 parser_verbose(p)
620 def p_paragraph(p): argument
622 p[0] = '<para>\n' + p[1] + '</para>'
623 parser_verbose(p)
625 def p_paragraph_content(p): argument
628 if len(p) == 3:
629 p[0] = p[1] + p[2]
631 p[0] = p[1]
632 parser_verbose(p)
634 def p_paragraph_line(p): argument
640 p[0] = p[1]
642 def p_empty(p): argument
644 p[0] = ''
646 def p_maybe_eof_or_blankline(p): argument
651 p[0] = ''
653 def p_maybe_lines(p): argument
656 if len(p) == 3:
657 p[0] = p[1] + p[2]
659 p[0] = p[1]
660 parser_verbose(p)
662 def p_maybe_blankline(p): argument
665 p[0] = ''
667 def p_courierblock(p): argument
669 p[0] = '<literallayout class="monospaced">' + p[1] + '</literallayout>'
670 parser_verbose(p)
672 def p_courier(p): argument
675 if len(p) == 3:
676 p[0] = p[1] + p[2]
678 p[0] = p[1]
679 parser_verbose(p)
681 def p_bullet(p): argument
684 if len(p) == 3:
687 if p[2].startswith('<para>'):
688 p[0] = '<listitem><para>' + p[1] + p[2][len('<para>'):] + '</listitem>'
690 p[0] = '<listitem><para>' + p[1] + '</para>' + p[2] + '</listitem>'
692 p[0] = '<listitem><para>' + p[1] + '</para>' + p[3] + '</listitem>'
693 parser_verbose(p)
695 def p_bullets(p): argument
698 if len(p) == 3:
699 p[0] = p[1] + '\n' + p[2]
701 p[0] = p[1]
702 parser_verbose(p)
704 def p_bulletlist(p): argument
706 p[0] = '<itemizedlist>' + p[2] + '</itemizedlist>'
707 parser_verbose(p)
709 def p_row(p): argument
712 if len(p) == 3:
713 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[2] + '</entry></row>'
715 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[3] + '</entry></row>'
716 parser_verbose(p)
718 def p_rows(p): argument
721 if len(p) == 3:
722 p[0] = p[1] + '\n' + p[2]
724 p[0] = p[1]
725 parser_verbose(p)
727 def p_table(p): argument
729 p[0] = '<informaltable><tgroup cols="2"><tbody>' + p[2] + '</tbody></tgroup></informaltable>'
730 parser_verbose(p)
732 def p_texinfocmd(p): argument
738 p[0] = p[1]
740 def p_unknown_texinfocmd(p): argument
742 print("unknown texinfo command '%s'" % p[1].strip(), file=sys.stderr)
743 p[0] = p[1]
744 parser_verbose(p)
746 def p_nottex(p): argument
748 p[0] = p[2]
750 def p_tex(p): argument
753 p[0] = ''
755 def p_comment(p): argument
758 p[0] = ''
760 def p_mct_columns(p): argument
763 if len(p) == 4:
764 p[0] = '<entry>' + p[1] + '</entry>' + p[3]
766 p[0] = '<entry>' + p[1] + '</entry>'
767 parser_verbose(p)
769 def p_mct_row(p): argument
771 p[0] = '<row>' + p[2] + '</row>'
772 parser_verbose(p)
774 def p_mct_rows(p): argument
777 if len(p) == 3:
778 p[0] = p[1] + '\n' + p[2]
780 p[0] = p[1]
781 parser_verbose(p)
783 def p_mct_header(p): argument
785 p[0] = '<row>' + p[2] + '</row>'
786 parser_verbose(p)
788 def p_multitable(p): argument
791 colfrac = p[1].replace('@multitable @columnfractions', '').split()
793 header = '<thead>' + p[2] + '</thead>\n'
794 body = '<tbody>' + p[3] + '</tbody>\n'
795p[0] = '<informaltable><tgroup cols="' + str(len(colfrac)) + '">' + colspec + header + body + '</t…
796 parser_verbose(p)