Lines Matching refs:r

22     protected $r;  variable in renderer_plugin_latexit_test
39 $this->r = new renderer_plugin_latexit();
41 $this->r->document_start();
50 $this->r->doc = '';
57 $this->assertTrue($this->r->canRender('latex'));
58 $this->assertFalse($this->r->canRender('xhtml'));
59 $this->assertFalse($this->r->canRender('affsd'));
66 $this->assertEquals('latex', $this->r->getFormat());
73 $this->assertFalse($this->r->isSingleton());
80 $this->r->document_start();
83 $this->assertEquals($string, $this->r->doc);
91 $this->r->header("header", 1, 5);
93 $this->assertEquals($string, $this->r->doc);
96 $this->r->header("Nadpis", 2, 245);
98 $this->assertEquals($string, $this->r->doc);
101 $this->r->header("Článek 5", 3, 575);
103 $this->assertEquals($string, $this->r->doc);
106 $this->r->header("sdfsdfsdk sdf ", 4, 7525);
108 $this->assertEquals($string, $this->r->doc);
111 $this->r->header("Nadpis", 5, 4525);
113 $this->assertEquals($string, $this->r->doc);
116 $this->r->header("Nadpis", 6, 4525);
118 $this->assertEquals($string, $this->r->doc);
125 $this->r->cdata("text");
127 $this->assertEquals($string, $this->r->doc);
131 $this->r->cdata('\{}&%$#_~^<>');
133 $this->assertEquals($string, $this->r->doc);
140 $this->r->p_open();
141 $this->assertEquals("\n\n", $this->r->doc);
148 $this->r->linebreak();
149 $this->assertEquals("\\\\", $this->r->doc);
156 $this->r->hr();
158 $this->assertEquals($string, $this->r->doc);
165 $this->r->strong_open();
166 $this->assertEquals("\\textbf{", $this->r->doc);
173 $this->r->emphasis_open();
174 $this->assertEquals("\\emph{", $this->r->doc);
181 $this->r->underline_open();
182 $this->assertEquals("\\underline{", $this->r->doc);
189 $this->r->monospace_open();
190 $this->assertEquals("\\texttt{", $this->r->doc);
197 $this->r->subscript_open();
198 $this->assertEquals("\\textsubscript{", $this->r->doc);
205 $this->r->superscript_open();
206 $this->assertEquals("\\textsuperscript{", $this->r->doc);
213 $this->r->deleted_open();
214 $this->assertEquals("\\sout{", $this->r->doc);
221 $this->r->footnote_open();
222 $this->assertEquals("\\footnote{", $this->r->doc);
229 $this->r->strong_close();
230 $this->assertEquals("}", $this->r->doc);
237 $this->r->emphasis_close();
238 $this->assertEquals("}", $this->r->doc);
245 $this->r->underline_close();
246 $this->assertEquals("}", $this->r->doc);
253 $this->r->monospace_close();
254 $this->assertEquals("}", $this->r->doc);
261 $this->r->subscript_close();
262 $this->assertEquals("}", $this->r->doc);
269 $this->r->superscript_close();
270 $this->assertEquals("}", $this->r->doc);
277 $this->r->deleted_close();
278 $this->assertEquals("}", $this->r->doc);
285 $this->r->footnote_close();
286 $this->assertEquals("}", $this->r->doc);
293 $this->r->listu_open();
294 $this->assertEquals("\n\\begin{itemize}\n", $this->r->doc);
301 $this->r->listo_open();
302 $this->assertEquals("\n\\begin{enumerate}\n", $this->r->doc);
309 $this->r->listu_close();
310 $this->assertEquals("\\end{itemize}\n", $this->r->doc);
317 $this->r->listo_close();
318 $this->assertEquals("\\end{enumerate}\n", $this->r->doc);
326 $this->r->listitem_open(1);
327 $this->assertEquals(" \\item", $this->r->doc);
330 $this->r->listitem_open(2);
331 $this->assertEquals(" \\item", $this->r->doc);
338 $this->r->listcontent_close();
339 $this->assertEquals("\n", $this->r->doc);
347 $this->r->unformatted("text");
349 $this->assertEquals($string, $this->r->doc);
352 $this->r->unformatted('\{}&%$#_~^<>');
354 $this->assertEquals($string, $this->r->doc);
361 $this->r->php("echo \"test\";");
363 $this->assertEquals($string, $this->r->doc);
370 $this->r->phpblock("echo \"test\";");
372 $this->assertEquals($string, $this->r->doc);
379 $this->r->html("<html><b>Hello World!</b></html>");
381 $this->assertEquals($string, $this->r->doc);
388 $this->r->htmlblock("<html><b>Hello World!</b></html>");
390 $this->assertEquals($string, $this->r->doc);
397 $this->r->preformatted(" no format a a ");
399 $this->assertEquals($string, $this->r->doc);
406 $this->r->quote_open();
407 $this->assertEquals("\n\\begin{quote}\n", $this->r->doc);
414 $this->r->quote_close();
415 $this->assertEquals("\n\\end{quote}\n", $this->r->doc);
422 $this->r->file("std::cout \"Hello world!\";", "C++");
424 $this->assertEquals($string, $this->r->doc);
427 $this->r->file("std::cout \"Hello world!\";", "C++", "script.cpp");
429 $this->assertEquals($string, $this->r->doc);
436 $this->r->code("std::cout \"Hello world!\";", "C++");
438 $this->assertEquals($string, $this->r->doc);
441 $this->r->code("std::cout \"Hello world!\";", "C++", "script.cpp");
443 $this->assertEquals($string, $this->r->doc);
451 $this->r->acronym("text");
453 $this->assertEquals($string, $this->r->doc);
456 $this->r->acronym('\{}&%$#_~^<>');
458 $this->assertEquals($string, $this->r->doc);
466 $this->r->smiley("text");
468 $this->assertEquals($string, $this->r->doc);
471 $this->r->smiley('\{}&%$#_~^<>');
473 $this->assertEquals($string, $this->r->doc);
476 $this->r->smiley(':-)');
478 $this->assertEquals($string, $this->r->doc);
481 $this->r->smiley('FIXME');
483 $this->assertEquals($string, $this->r->doc);
491 $this->r->entity("->");
495 $this->assertEquals($string, $this->r->doc);
498 $this->r->entity("<-");
502 $this->assertEquals($string, $this->r->doc);
505 $this->r->entity("<->");
509 $this->assertEquals($string, $this->r->doc);
512 $this->r->entity("=>");
516 $this->assertEquals($string, $this->r->doc);
519 $this->r->entity("<=");
523 $this->assertEquals($string, $this->r->doc);
526 $this->r->entity("<=>");
530 $this->assertEquals($string, $this->r->doc);
533 $this->r->entity("(c)");
537 $this->assertEquals($string, $this->r->doc);
540 $this->r->entity("(tm)");
544 $this->assertEquals($string, $this->r->doc);
547 $this->r->entity("(r)");
551 $this->assertEquals($string, $this->r->doc);
554 $this->r->entity('\{}&%$#_~^<>');
558 $this->assertEquals($string, $this->r->doc);
567 $this->r->multiplyentity('\{}&%$', '#_~^<>');
571 $this->assertEquals($string, $this->r->doc);
578 $this->r->singlequoteopening();
579 $this->assertEquals('`', $this->r->doc);
586 $this->r->singlequoteclosing();
587 $this->assertEquals('\'', $this->r->doc);
594 $this->r->apostrophe();
595 $this->assertEquals('\'', $this->r->doc);
602 $this->r->doublequoteopening();
603 $this->assertEquals(',,', $this->r->doc);
610 $this->r->doublequoteclosing();
611 $this->assertEquals('"', $this->r->doc);
620 $this->r->internallink("NotExistingCamelCase", "NotExistingCamelCase");
621 $this->assertEquals('NotExistingCamelCase', $this->r->doc);
628 $this->r->locallink("section", "Odkaz");
629 $this->assertEquals("Odkaz (\\autoref{sec:section})", $this->r->doc);
632 $this->r->locallink("section");
633 $this->assertEquals("section (\\autoref{sec:section})", $this->r->doc);
640 $this->r->externallink("http://url.com", "Odkaz");
641 $this->assertEquals("\\href{http://url.com}{Odkaz}", $this->r->doc);
644 $this->r->externallink("http://url.com");
645 $this->assertEquals("\\url{http://url.com}", $this->r->doc);
653 $this->r->interwikilink("doku>Interwiki", NULL, "doku", "Interwiki");
654 …uals("\\href{http://www.google.com/search?q=Interwiki\&amp;btnI=lucky}{Interwiki}", $this->r->doc);
661 $this->r->filelink("file:///P:/Manuals/UserManual.pdf", "text");
662 $this->assertEquals("\\href{file:///P:/Manuals/UserManual.pdf}{text}", $this->r->doc);
665 $this->r->filelink("file:///P:/Manuals/UserManual.pdf");
666 $this->assertEquals("\\url{file:///P:/Manuals/UserManual.pdf}", $this->r->doc);
673 $this->r->windowssharelink("\\server\share", "text");
674 $this->assertEquals("\\href{\\\\server\\\\share}{text}", $this->r->doc);
677 $this->r->windowssharelink("\\server\share");
678 $this->assertEquals("\\url{\\\\server\\\\share}", $this->r->doc);
685 $this->r->emaillink("email@domain.com", "Email");
686 $this->assertEquals("\\href{mailto:email@domain.com}{Email}", $this->r->doc);
689 $this->r->emaillink("email@domain.com");
690 $this->assertEquals("\\href{mailto:email@domain.com}{email@domain.com}", $this->r->doc);
699 $this->r->internalmedia("pic:picture.png", "aaa", "left");
701 $this->assertEquals($string, $this->r->doc);
704 $this->r->internalmedia("pic:picture.png", "aaa", "center");
706 $this->assertEquals($string, $this->r->doc);
709 $this->r->internalmedia("pic:picture.png", "aaa", "right");
711 $this->assertEquals($string, $this->r->doc);
715 $this->r->internalmedia("picture.png", "aaa", "left");
717 $this->assertEquals($string, $this->r->doc);
720 $this->r->internalmedia("picture.png", "aaa", "center");
722 $this->assertEquals($string, $this->r->doc);
725 $this->r->internalmedia("picture.png", "aaa", "right");
727 $this->assertEquals($string, $this->r->doc);
736 $this->r->externalmedia("http://url.com/picture.png", "aaa", "left");
738 $this->assertEquals($string, $this->r->doc);
741 $this->r->externalmedia("http://url.com/picture.png", "aaa", "center");
743 $this->assertEquals($string, $this->r->doc);
746 $this->r->externalmedia("http://url.com/picture.png", "aaa", "right");
748 $this->assertEquals($string, $this->r->doc);
755 $this->r->table_open(5);
757 $this->assertEquals($string, $this->r->doc);
760 $this->r->table_open(3);
762 $this->assertEquals($string, $this->r->doc);
769 $this->r->table_close();
771 $this->assertEquals($string, $this->r->doc);
778 $this->r->tablerow_close();
780 $this->assertEquals($string, $this->r->doc);
787 $this->r->tableheader_open(1, "r", 1);
789 $this->assertEquals($string, $this->r->doc);
792 $this->r->tableheader_open(1, NULL, 1);
794 $this->assertEquals($string, $this->r->doc);
797 $this->r->tableheader_open(2, NULL, 1);
799 $this->assertEquals($string, $this->r->doc);
802 $this->r->tableheader_open(1, NULL, 2);
804 $this->assertEquals($string, $this->r->doc);
809 $this->r->tableheader_open(2, NULL, 2);
811 $this->assertEquals($string, $this->r->doc);
818 $this->r->tableheader_open();
820 $this->r->tableheader_close();
821 $this->assertEquals("} & ", $this->r->doc);
824 $this->r->tableheader_open(2);
826 $this->r->tableheader_close();
827 $this->assertEquals("}} & ", $this->r->doc);
831 $this->r->tableheader_open(1, "r");
833 $this->r->tableheader_close();
834 $this->assertEquals("}} & ", $this->r->doc);
838 $this->r->tableheader_open(1, "l", 2);
840 $this->r->tableheader_close();
841 $this->assertEquals("}} & ", $this->r->doc);
845 $this->r->tableheader_open(2, "l", 2);
847 $this->r->tableheader_close();
848 $this->assertEquals("}}} & ", $this->r->doc);
857 $this->r->tablecell_open(1, "r", 1);
859 $this->assertEquals($string, $this->r->doc);
862 $this->r->tablecell_open(1, NULL, 1);
864 $this->assertEquals($string, $this->r->doc);
867 $this->r->tablecell_open(2, NULL, 1);
869 $this->assertEquals($string, $this->r->doc);
872 $this->r->tablecell_open(1, NULL, 2);
874 $this->assertEquals($string, $this->r->doc);
878 $this->r->tablecell_open(2, NULL, 2);
880 $this->assertEquals($string, $this->r->doc);
887 $this->r->tablecell_open();
889 $this->r->tablecell_close();
890 $this->assertEquals(" & ", $this->r->doc);
893 $this->r->tablecell_open(2);
895 $this->r->tablecell_close();
896 $this->assertEquals("} & ", $this->r->doc);
900 $this->r->tablecell_open(1, "r");
902 $this->r->tablecell_close();
903 $this->assertEquals("} & ", $this->r->doc);
907 $this->r->tablecell_open(1, "l", 2);
909 $this->r->tablecell_close();
910 $this->assertEquals("} & ", $this->r->doc);
914 $this->r->tablecell_open(2, "l", 2);
916 $this->r->tablecell_close();
917 $this->assertEquals("}} & ", $this->r->doc);
926 $this->r->_mathMode("$\lnot$");
927 $this->assertEquals("$\\lnot$", $this->r->doc);
930 $this->r->_mathMode("$-> <- <-> => <= <=> ... −$");
932 $this->assertEquals($string, $this->r->doc);