@@ -0,0 +1,237 @@
2+Copyright (C) 2014 Matthew Pickering <matthewtpickering@gmail.com>
4+This program is free software; you can redistribute it and/or modify
5+it under the terms of the GNU General Public License as published by
6+the Free Software Foundation; either version 2 of the License, or
7+(at your option) any later version.
9+This program is distributed in the hope that it will be useful,
10+but WITHOUT ANY WARRANTY; without even the implied warranty of
11+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+GNU General Public License for more details.
14+You should have received a copy of the GNU General Public License
15+along with this program; if not, write to the Free Software
16+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20+ Module : Text.Pandoc.Readers.Docx.Fonts
21+ Copyright : Copyright (C) 2014 Matthew Pickering
22+ License : GNU GPL, version 2 or above
24+ Maintainer : Matthew Pickering <matthewtpickering@gmail.com>
26+ Portability : portable
28+Utilities to convert between font codepoints and unicode characters.
30+module Text.Pandoc.Readers.Docx.Fonts (getUnicode, Font(..)) where
33+-- | Enumeration of recognised fonts
34+data Font = Symbol -- ^ <http://en.wikipedia.org/wiki/Symbol_(typeface) Adobe Symbol>
36+-- | Given a font and codepoint, returns the corresponding unicode
38+getUnicode :: Font -> Char -> Maybe Char
39+getUnicode Symbol c = lookup c symbol
41+-- Generated from lib/fonts/symbol.txt
42+symbol :: [(Char, Char)]
237+ , ('\254','\63742')]