Skip to content

Commit

Permalink
ENH: accepts ETen-B5 and UniCNS-UTF16 encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed Jun 21, 2024
1 parent e0a92e2 commit 54fbcd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pypdf/_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,15 @@ def build_char_map_from_dict(
"/GBK-EUC-V": "gbk", # TBC
"/GBK2K-H": "gb18030",
"/GBK2K-V": "gb18030",
"/ETen-B5-H": "cp950",
"/ETen-B5-V": "cp950",
"/ETenms-B5-H": "cp950",
"/ETenms-B5-V": "cp950",
"/UniCNS-UTF16-H": "utf-16-be", # TBC
"/UniCNS-UTF16-V": "utf-16-be", # TBC
# UCS2 in code
}


# manually extracted from http://mirrors.ctan.org/fonts/adobe/afm/Adobe-Core35_AFMs-229.tar.gz
_default_fonts_space_width: Dict[str, int] = {
"/Courier": 600,
Expand Down

0 comments on commit 54fbcd7

Please sign in to comment.