mkfontscale(1) fails to produce entries for iso8859-7 because of of wrong unicode mappings for iso8859-7 codepage
Submitted by Eugene Doudine
Assigned to Xorg Project Team
Description
Created attachment 121708 test code
mkfontscale fails to produce iso8859-7 entries for commonly used fonts that support greek (like ms core fonts, dejavu, gnu freefont and probably others).
Produced fonts.scale contains all other codepages that are supported by font, including suneu-greek, but not iso8859-7.
This bug is caused by bug in libfontenc that contains errors in it's unicode mapping for the iso8859-7 (greek) encoding:
- iso code 0xff is wrongly mapped to 0x3cf, must be unmapped
- 0xa1 is wrongly mapped to 0x2bd, must be mapped to 0x2018
- 0xa2 is wrongly mapped to 0x2bc, must be mapped to 0x2019
The first one is (along with 0xD2) is unassigned in the codepage.
Mappings 0xa1->0x2bd, 0xa2->0x2bd were correct for version 0.1 of the mapping spec, nut version 1.0 (Unicode 3.0) updated them to 0x2018 and 0x2019 accordingly.
Please see ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-7.TXT for reference.
Code to reproduce problem with fontenc library is attached
mkfontscale(1) requires all the iso8859-7 characters to be supported by font, so fonts that do not contain these wrong mapping are skipped while producing fonts.scale
Attachment 121708, "test code":
test_8859-7_map.c
Version: git