From 21d74289ce343b83715d8f8f63b8ad31f0c7b237 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 21 Nov 2011 15:26:11 -0800 Subject: Removed Text.Pandoc.S5 -- no longer needed. --- src/Text/Pandoc/S5.hs | 69 --------------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 src/Text/Pandoc/S5.hs (limited to 'src/Text/Pandoc/S5.hs') diff --git a/src/Text/Pandoc/S5.hs b/src/Text/Pandoc/S5.hs deleted file mode 100644 index b17b052c5..000000000 --- a/src/Text/Pandoc/S5.hs +++ /dev/null @@ -1,69 +0,0 @@ -{- -Copyright (C) 2006-2010 John MacFarlane - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --} - -{- | - Module : Text.Pandoc.S5 - Copyright : Copyright (C) 2006-2010 John MacFarlane - License : GNU GPL, version 2 or above - - Maintainer : John MacFarlane - Stability : alpha - Portability : portable - -Definitions for creation of S5 powerpoint-like HTML. -(See .) --} -module Text.Pandoc.S5 ( s5HeaderIncludes) where -import Text.Pandoc.Shared ( readDataFile ) -import System.FilePath ( () ) -import Data.ByteString.UTF8 ( toString, fromString ) -import Data.ByteString.Base64 ( encode ) - -s5HeaderIncludes :: Maybe FilePath -> IO String -s5HeaderIncludes datadir = do - c <- s5CSS datadir - j <- s5Javascript datadir - return $ c ++ j - -s5Javascript :: Maybe FilePath -> IO String -s5Javascript datadir = do - js <- readDataFile datadir $ "s5" "default" "slides.min.js" - return $ "\n" - -inCDATA :: String -> String -inCDATA s = "/**/\n" - -base64 :: String -> String -base64 = toString . encode . fromString - -s5CSS :: Maybe FilePath -> IO String -s5CSS datadir = do - s5CoreCSS <- readDataFile datadir $ "s5" "default" "s5-core.css" - s5FramingCSS <- readDataFile datadir $ "s5" "default" "framing.css" - s5PrettyCSS <- readDataFile datadir $ "s5" "default" "pretty.css" - s5OperaCSS <- readDataFile datadir $ "s5" "default" "opera.css" - s5OutlineCSS <- readDataFile datadir $ "s5" "default" "outline.css" - s5PrintCSS <- readDataFile datadir $ "s5" "default" "print.css" - return $ "\n" ++ - "\n" ++ - "\n" ++ - "\n" -- cgit v1.2.3