Legend:
- Unmodified
- Added
- Removed
-
šablona/funkce/src/cz/frantovo/xmlWebGenerator/Funkce.java
r32 r36 14 14 * Knihovna funkcí volaných z XSLT. 15 15 * 16 * TODO: 16 * TODO: 17 17 * - rozdělit na více modulů (jmenných prostorů). 18 18 * - CLI konektor … … 46 46 * @return zvýrazněný text nebo null, pokud došlo k chybě. 47 47 * TODO: 48 * - použít (?)místo textu instanci com.icl.saxon.om.NodeInfo http://saxon.sourceforge.net/saxon6.5.3/extensibility.html48 * - vracet místo textu instanci com.icl.saxon.om.NodeInfo http://saxon.sourceforge.net/saxon6.5.3/extensibility.html 49 49 * - nebo kontrolovat validitu vygenerovaného kódu (v současnosti se spoléháme na bezchybnost pygmentize) 50 50 */ … … 53 53 System.err.println("Není vyplněn atribut „jazyk“ → není jasné, jak se má zvýrazňovat."); 54 54 return null; 55 } else if (isP rikazDostupny(PŘÍKAZ_PYGMENTIZE)) {55 } else if (isPříkazDostupný(PŘÍKAZ_PYGMENTIZE)) { 56 56 Runtime r = Runtime.getRuntime(); 57 57 Process p = r.exec(new String[]{PŘÍKAZ_PYGMENTIZE, "-f", "html", "-l", jazyk}); … … 87 87 */ 88 88 public static String generujCssSyntaxe() throws IOException, InterruptedException { 89 if (isP rikazDostupny(PŘÍKAZ_PYGMENTIZE)) {89 if (isPříkazDostupný(PŘÍKAZ_PYGMENTIZE)) { 90 90 Runtime r = Runtime.getRuntime(); 91 91 Process p = r.exec(new String[]{PŘÍKAZ_PYGMENTIZE, "-S", "default", "-f", "html"}); … … 103 103 */ 104 104 public static String vytvořDiagram(String zadání, boolean vodorovně) throws IOException, InterruptedException { 105 if (isP rikazDostupny(PŘÍKAZ_DOT)) {105 if (isPříkazDostupný(PŘÍKAZ_DOT)) { 106 106 počítadloDiagramů++; 107 107 String soubor = "diagram-" + počítadloDiagramů; … … 173 173 * @return true pokud příkaz v systému existuje 174 174 */ 175 private static boolean isP rikazDostupny(String příkaz) {175 private static boolean isPříkazDostupný(String příkaz) { 176 176 try { 177 177 Runtime r = Runtime.getRuntime();