From 67281c4f469716c7f2341676f2ad656d8c544ea3 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 11 Mar 2019 17:24:00 +0100 Subject: =?UTF-8?q?Redesign=20document=20representation=20=F0=9F=A7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 09740fb1..f2c9b5eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ //! # Example //! This is an example of compiling a really simple document into _PDF_. //! ``` -//! use typeset::{parsing::ParseTree, doc::Generate, write::WritePdf}; +//! use typeset::{parsing::ParseTree, engine::Typeset, write::WritePdf}; //! //! // Create an output file. //! # /* @@ -15,7 +15,7 @@ //! //! // Parse the source and then generate the document. //! let src = "Hello World from Typeset‼"; -//! let doc = src.parse_tree().unwrap().generate().unwrap(); +//! let doc = src.parse_tree().unwrap().typeset().unwrap(); //! //! // Write the document into file as PDF. //! file.write_pdf(&doc).unwrap(); @@ -23,9 +23,10 @@ mod pdf; mod utility; -pub mod font; pub mod parsing; pub mod doc; +pub mod engine; +pub mod font; /// Writing of documents into supported formats. pub mod write { -- cgit v1.2.3