baruchel / txt2pdf

Text to PDF converter with Unicode support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENHANCEMENT idea - character translation table support

clach04 opened this issue · comments

Add a flag that loads a table of translations for characters. Could be used to replace #27 and handle any characters.

Idea would be to use json for config, with key either being a string or a integer of the Unicode point, with the value being a string.. E.g.:

{
    "(": "X",
    40: "X",   ##### NOTE this is the same as above, 40 == 0x28 == 0x0028 == "("
}