public void InvalidStyle() { string source = Path.Combine (Test.PathOfTest (), "test-invalid.xml"); StyleReader reader = new StyleReader (new Uri (source)); Type etype = Type.GetType ("Scielo.PDF2Text.StyleReader"); Assert.IsInstanceOfType (etype, reader, "IS"); }
public Normalizer(string source, string format) { // Construimos un StyleReader para obtener las regexp. StyleReader style = new StyleReader (format); rules = style.GetRules (); EncodeText (source); }
public Normalizer(RawDocument document, string format) { // Construimos un StyleReader para obtener las regexp. StyleReader style = new StyleReader (format); this.format = format; rules = style.GetRules (); // Si el estilo tiene mas de una columna se rompe y se convierte a una // sola columna. if (style.GetNumColumns () > 1) document.BreakColumns (); EncodeText (document.GetText ()); }
public void ValidStyle() { StyleReader reader = new StyleReader ("atm"); Type etype = Type.GetType ("Scielo.PDF2Text.StyleReader"); Assert.IsInstanceOfType (etype, reader, "VS"); }