about summary refs log tree commit diff stats
path: root/trunk/forceascii.hs
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/forceascii.hs')
-rw-r--r--trunk/forceascii.hs17
1 files changed, 0 insertions, 17 deletions
diff --git a/trunk/forceascii.hs b/trunk/forceascii.hs deleted file mode 100644 index b5f1645..0000000 --- a/trunk/forceascii.hs +++ /dev/null
@@ -1,17 +0,0 @@
1-- Preprocessor for hapax.lua writer
2-- because for some damn reason, UTF-8 confuses things
3
4import Text.Pandoc.JSON
5import Data.Char (isAscii)
6
7main :: IO ()
8main = toJSONFilter unFancy
9
10unFancy :: Inline -> Inline
11unFancy (Str s) = Str $ map makeAscii s
12unFancy x = x
13
14makeAscii :: Char -> Char
15makeAscii c
16 | isAscii c = c
17 | otherwise = ' '