NLdoc.Conversion.Reader.Docx.AST.Fonts.SpecialFont (NLdoc.Conversion.Reader.Docx v1.5.5)
View SourceThis module provides a basis for implementing UTF-8 conversions of special fonts like Symbol, Wingdings and Webdings.
Usage
Create a module for your font, use this module and provide a symbols map
mapping codepoints in your font to UTF-8 codepoints.
For example:
defmodule NLdoc.Conversion.Reader.Docx.AST.Fonts.Symbol do
use NLdoc.Conversion.Reader.Docx.AST.Fonts.SpecialFont,
symbols: %{
0x20 => 0xA0,
0x21 => 0x21,
# etc ...
}
endAcknowledgements
Many thanks to Pandoc author John MacFarlane (jgm) for helping us map the Wingdings and Webdings fonts and helping us figure out how to perform the conversion to UTF-8.