initial commit
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
# Unembedded Japanese CID fixture
|
||||
|
||||
`unembedded-japanese.pdf` is authored locally by `../generate_fonts.py`, using
|
||||
ReportLab's predefined Japanese CID fonts. The two pages select
|
||||
`UniJIS-UCS2-H` and `UniJIS-UCS2-V` for HeiseiMin-W3 and HeiseiKakuGo-W5.
|
||||
No font program is embedded. The second page uses the PDF vertical writing
|
||||
mode, including native punctuation positioning, rather than individually
|
||||
positioning horizontal glyphs. The text is synthetic and contains no third-party
|
||||
document content. Font names identify requests; installed substitutes can differ.
|
||||
|
||||
The manifest records the input hash, authored text and page dimensions.
|
||||
Generation requires ReportLab and pypdf. The generator checks both encoding
|
||||
names and absence of FontFile/FontFile2/FontFile3 in the CID font descriptors.
|
||||
Successful raster output alone does not establish character accuracy or full
|
||||
CMap coverage; compare with Poppler and inspect both pages.
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"generator": "generate_fonts.py (ReportLab UnicodeCIDFont, invariant PDF)",
|
||||
"documents": [
|
||||
{
|
||||
"file": "unembedded-japanese.pdf",
|
||||
"sha256": "9e74ac0c7d81a8c1d373cb28943a1943f8f68c0abd325e8e1012956bb71db057",
|
||||
"pages": 2,
|
||||
"sizePt": [
|
||||
600,
|
||||
760
|
||||
],
|
||||
"fontProgramsEmbedded": false,
|
||||
"encodings": [
|
||||
"/UniJIS-UCS2-H",
|
||||
"/UniJIS-UCS2-V"
|
||||
],
|
||||
"faces": [
|
||||
"HeiseiMin-W3",
|
||||
"HeiseiKakuGo-W5"
|
||||
],
|
||||
"expectedText": [
|
||||
"日本語の文書を表示します。",
|
||||
"漢字とひらがな、カタカナ。",
|
||||
"「縦書き」の句読点を確認。"
|
||||
],
|
||||
"writingModes": [
|
||||
"horizontal",
|
||||
"vertical"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
+233
@@ -0,0 +1,233 @@
|
||||
%PDF-1.3
|
||||
%“Œ‹ž ReportLab Generated PDF document (opensource)
|
||||
1 0 obj
|
||||
<<
|
||||
/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 5 0 R /F5 7 0 R /F6 8 0 R
|
||||
>>
|
||||
endobj
|
||||
2 0 obj
|
||||
<<
|
||||
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
3 0 obj
|
||||
<<
|
||||
/BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
4 0 obj
|
||||
<<
|
||||
/BaseFont /HeiseiMin-W3 /DescendantFonts [ <<
|
||||
/BaseFont /HeiseiMin-W3 /CIDSystemInfo <<
|
||||
/Ordering (Japan1) /Registry (Adobe) /Supplement 2
|
||||
>> /DW 1000 /FontDescriptor <<
|
||||
/Ascent 723 /CapHeight 709 /Descent -241 /Flags 6 /FontBBox [ -123 -257 1001 910 ] /FontName /HeiseiMin-W3
|
||||
/ItalicAngle 0 /StemV 69 /Type /FontDescriptor /XHeight 450
|
||||
>> /Subtype /CIDFontType0 /Type /Font
|
||||
/W [ 1 [ 250 333 408 500 ] 5 [ 500 833 778 180 333 ] 10 [ 333 500 564 250 333 250 278 500 ] 18 26 500 27
|
||||
28 278 29 31 564 32 [ 444 921 722 667 ] 36 [ 667 722 611 556 722 ] 41
|
||||
[ 722 333 389 722 611 889 722 ] 48 [ 722 556 722 667 556 611 722 ] 55 [ 722 944 722 ] 58 [ 722 611 333 500 333 469 500 333 444 500
|
||||
444 500 444 333 500 ] 73 [ 500 278 ] 75
|
||||
[ 278 500 278 778 500 ] 80 82 500 83 [ 333 389 278 500 ] 87 [ 500 722 500 ] 90 [ 500 444 480 200 480 333 ]
|
||||
97 [ 278 ] 99 [ 200 ] 101 [ 333 500 ] 103 [ 500 167 ] 107 [ 500 ]
|
||||
109 [ 500 333 ] 111 [ 333 556 ] 113 [ 556 500 ] 117 [ 250 ] 119 [ 350 333 444 ]
|
||||
123 [ 500 ] 126 [ 444 333 ] 128 137 333 138 [ 1000 889 276 611 722 889 310 667 278 ] 147
|
||||
[ 278 500 722 500 564 760 564 760 ] 157 158 300 159 [ 500 300 750 ] 162 163 750 164
|
||||
169 722 170 [ 667 611 ] 172 174 611 175 178 333
|
||||
179 185 722 187 191 722 192 [ 556 444 ] 194 203
|
||||
444 204 207 278 208 214 500 216 222 500
|
||||
223 [ 556 722 611 500 389 980 444 ] 231 [ 500 ] 323 [ 500 ] 325 [ 500 ] 327 389
|
||||
500 ]
|
||||
>> ] /Encoding /UniJIS-UCS2-H /Name /F3 /Subtype /Type0 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
5 0 obj
|
||||
<<
|
||||
/BaseFont /HeiseiKakuGo-W5 /DescendantFonts [ <<
|
||||
/BaseFont /HeiseiKakuGo-W5 /CIDSystemInfo <<
|
||||
/Ordering (Japan1) /Registry (Adobe) /Supplement 2
|
||||
>> /DW 1000 /FontDescriptor <<
|
||||
/Ascent 752 /CapHeight 737 /Descent -221 /Flags 4 /FontBBox [ -92 -250 1010 922 ] /FontName /HeiseKakuGo-W5
|
||||
/ItalicAngle 0 /StemH 0 /StemV 114 /Type /FontDescriptor /XHeight 553
|
||||
>> /Subtype /CIDFontType0 /Type /Font
|
||||
/W [ 1 [ 277 305 500 668 668 906 727 305 445 445
|
||||
508 668 305 379 305 539 ] 17 26 668 27 [ 305 305 668 668 668 566 871 727 637 652
|
||||
699 574 555 676 687 242 492 664 582 789
|
||||
707 734 582 734 605 605 641 668 727 945
|
||||
609 609 574 445 668 445 668 668 590 555
|
||||
609 547 602 574 391 609 582 234 277 539
|
||||
234 895 582 605 602 602 387 508 441 582
|
||||
562 781 531 570 555 449 246 449 668 ] 231 632 500 ]
|
||||
>> ] /Encoding /UniJIS-UCS2-H /Name /F4 /Subtype /Type0 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
6 0 obj
|
||||
<<
|
||||
/Contents 13 0 R /MediaBox [ 0 0 600 760 ] /Parent 12 0 R /Resources <<
|
||||
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
||||
>> /Rotate 0 /Trans <<
|
||||
|
||||
>>
|
||||
/Type /Page
|
||||
>>
|
||||
endobj
|
||||
7 0 obj
|
||||
<<
|
||||
/BaseFont /HeiseiMin-W3 /DescendantFonts [ <<
|
||||
/BaseFont /HeiseiMin-W3 /CIDSystemInfo <<
|
||||
/Ordering (Japan1) /Registry (Adobe) /Supplement 2
|
||||
>> /DW 1000 /FontDescriptor <<
|
||||
/Ascent 723 /CapHeight 709 /Descent -241 /Flags 6 /FontBBox [ -123 -257 1001 910 ] /FontName /HeiseiMin-W3
|
||||
/ItalicAngle 0 /StemV 69 /Type /FontDescriptor /XHeight 450
|
||||
>> /Subtype /CIDFontType0 /Type /Font
|
||||
/W [ 1 [ 250 333 408 500 ] 5 [ 500 833 778 180 333 ] 10 [ 333 500 564 250 333 250 278 500 ] 18 26 500 27
|
||||
28 278 29 31 564 32 [ 444 921 722 667 ] 36 [ 667 722 611 556 722 ] 41
|
||||
[ 722 333 389 722 611 889 722 ] 48 [ 722 556 722 667 556 611 722 ] 55 [ 722 944 722 ] 58 [ 722 611 333 500 333 469 500 333 444 500
|
||||
444 500 444 333 500 ] 73 [ 500 278 ] 75
|
||||
[ 278 500 278 778 500 ] 80 82 500 83 [ 333 389 278 500 ] 87 [ 500 722 500 ] 90 [ 500 444 480 200 480 333 ]
|
||||
97 [ 278 ] 99 [ 200 ] 101 [ 333 500 ] 103 [ 500 167 ] 107 [ 500 ]
|
||||
109 [ 500 333 ] 111 [ 333 556 ] 113 [ 556 500 ] 117 [ 250 ] 119 [ 350 333 444 ]
|
||||
123 [ 500 ] 126 [ 444 333 ] 128 137 333 138 [ 1000 889 276 611 722 889 310 667 278 ] 147
|
||||
[ 278 500 722 500 564 760 564 760 ] 157 158 300 159 [ 500 300 750 ] 162 163 750 164
|
||||
169 722 170 [ 667 611 ] 172 174 611 175 178 333
|
||||
179 185 722 187 191 722 192 [ 556 444 ] 194 203
|
||||
444 204 207 278 208 214 500 216 222 500
|
||||
223 [ 556 722 611 500 389 980 444 ] 231 [ 500 ] 323 [ 500 ] 325 [ 500 ] 327 389
|
||||
500 ]
|
||||
>> ] /Encoding /UniJIS-UCS2-V /Name /F5 /Subtype /Type0 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
8 0 obj
|
||||
<<
|
||||
/BaseFont /HeiseiKakuGo-W5 /DescendantFonts [ <<
|
||||
/BaseFont /HeiseiKakuGo-W5 /CIDSystemInfo <<
|
||||
/Ordering (Japan1) /Registry (Adobe) /Supplement 2
|
||||
>> /DW 1000 /FontDescriptor <<
|
||||
/Ascent 752 /CapHeight 737 /Descent -221 /Flags 4 /FontBBox [ -92 -250 1010 922 ] /FontName /HeiseKakuGo-W5
|
||||
/ItalicAngle 0 /StemH 0 /StemV 114 /Type /FontDescriptor /XHeight 553
|
||||
>> /Subtype /CIDFontType0 /Type /Font
|
||||
/W [ 1 [ 277 305 500 668 668 906 727 305 445 445
|
||||
508 668 305 379 305 539 ] 17 26 668 27 [ 305 305 668 668 668 566 871 727 637 652
|
||||
699 574 555 676 687 242 492 664 582 789
|
||||
707 734 582 734 605 605 641 668 727 945
|
||||
609 609 574 445 668 445 668 668 590 555
|
||||
609 547 602 574 391 609 582 234 277 539
|
||||
234 895 582 605 602 602 387 508 441 582
|
||||
562 781 531 570 555 449 246 449 668 ] 231 632 500 ]
|
||||
>> ] /Encoding /UniJIS-UCS2-V /Name /F6 /Subtype /Type0 /Type /Font
|
||||
>>
|
||||
endobj
|
||||
9 0 obj
|
||||
<<
|
||||
/Contents 14 0 R /MediaBox [ 0 0 600 760 ] /Parent 12 0 R /Resources <<
|
||||
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
||||
>> /Rotate 0 /Trans <<
|
||||
|
||||
>>
|
||||
/Type /Page
|
||||
>>
|
||||
endobj
|
||||
10 0 obj
|
||||
<<
|
||||
/PageMode /UseNone /Pages 12 0 R /Type /Catalog
|
||||
>>
|
||||
endobj
|
||||
11 0 obj
|
||||
<<
|
||||
/Author (DocView synthetic test corpus) /CreationDate (D:20000101000000+00'00') /Creator (anonymous) /Keywords () /ModDate (D:20000101000000+00'00') /Producer (ReportLab PDF Library - \(opensource\))
|
||||
/Subject (unspecified) /Title (DocView unembedded Japanese CID H/V fixture) /Trapped /False
|
||||
>>
|
||||
endobj
|
||||
12 0 obj
|
||||
<<
|
||||
/Count 2 /Kids [ 6 0 R 9 0 R ] /Type /Pages
|
||||
>>
|
||||
endobj
|
||||
13 0 obj
|
||||
<<
|
||||
/Length 1124
|
||||
>>
|
||||
stream
|
||||
1 0 0 1 0 0 cm BT /F1 12 Tf 14.4 TL ET
|
||||
BT /F2 16 Tf 19.2 TL ET
|
||||
BT 1 0 0 1 36 722 Tm (Unembedded Japanese CID fonts) Tj T* ET
|
||||
BT /F1 11 Tf 13.2 TL ET
|
||||
BT 1 0 0 1 36 700 Tm (UniJIS-UCS2-H: horizontal writing mode) Tj T* ET
|
||||
BT /F1 10 Tf 12 TL ET
|
||||
BT 1 0 0 1 36 648 Tm (HeiseiMin-W3) Tj T* ET
|
||||
BT /F3 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 36 610 Tm /F3 20 Tf 24 TL (e\345g,\212\2360ne\207f\3700\222\210hy:0W0~0Y0\002) Tj T* ET
|
||||
BT 1 0 0 1 36 568 Tm /F3 20 Tf 24 TL (o"[W0h0r0\2110L0j0\0010\2530\2770\2530\3120\002) Tj T* ET
|
||||
BT 1 0 0 1 36 526 Tm /F3 20 Tf 24 TL (0\014~&f\3700M0\0150nS\345\212\255p\2710\222x\272\212\2150\002) Tj T* ET
|
||||
BT /F1 10 Tf 12 TL ET
|
||||
BT 1 0 0 1 36 388 Tm (HeiseiKakuGo-W5) Tj T* ET
|
||||
BT /F4 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 36 350 Tm /F4 20 Tf 24 TL (e\345g,\212\2360ne\207f\3700\222\210hy:0W0~0Y0\002) Tj T* ET
|
||||
BT 1 0 0 1 36 308 Tm /F4 20 Tf 24 TL (o"[W0h0r0\2110L0j0\0010\2530\2770\2530\3120\002) Tj T* ET
|
||||
BT 1 0 0 1 36 266 Tm /F4 20 Tf 24 TL (0\014~&f\3700M0\0150nS\345\212\255p\2710\222x\272\212\2150\002) Tj T* ET
|
||||
BT /F1 9 Tf 10.8 TL ET
|
||||
BT 1 0 0 1 36 28 Tm (Synthetic fixture / page 1 / no font program embedded) Tj T* ET
|
||||
|
||||
endstream
|
||||
endobj
|
||||
14 0 obj
|
||||
<<
|
||||
/Length 1224
|
||||
>>
|
||||
stream
|
||||
1 0 0 1 0 0 cm BT /F1 12 Tf 14.4 TL ET
|
||||
BT /F2 16 Tf 19.2 TL ET
|
||||
BT 1 0 0 1 36 722 Tm (Unembedded Japanese CID fonts) Tj T* ET
|
||||
BT /F1 11 Tf 13.2 TL ET
|
||||
BT 1 0 0 1 36 700 Tm (UniJIS-UCS2-V: native vertical writing mode) Tj T* ET
|
||||
BT /F1 10 Tf 12 TL ET
|
||||
BT 1 0 0 1 330 660 Tm (HeiseiMin-W3) Tj T* ET
|
||||
BT /F5 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 520 620 Tm /F5 20 Tf 24 TL (e\345g,\212\2360ne\207f\3700\222\210hy:0W0~0Y0\002) Tj T* ET
|
||||
BT /F5 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 458 620 Tm /F5 20 Tf 24 TL (o"[W0h0r0\2110L0j0\0010\2530\2770\2530\3120\002) Tj T* ET
|
||||
BT /F5 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 396 620 Tm /F5 20 Tf 24 TL (0\014~&f\3700M0\0150nS\345\212\255p\2710\222x\272\212\2150\002) Tj T* ET
|
||||
BT /F1 10 Tf 12 TL ET
|
||||
BT 1 0 0 1 50 660 Tm (HeiseiKakuGo-W5) Tj T* ET
|
||||
BT /F6 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 240 620 Tm /F6 20 Tf 24 TL (e\345g,\212\2360ne\207f\3700\222\210hy:0W0~0Y0\002) Tj T* ET
|
||||
BT /F6 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 178 620 Tm /F6 20 Tf 24 TL (o"[W0h0r0\2110L0j0\0010\2530\2770\2530\3120\002) Tj T* ET
|
||||
BT /F6 20 Tf 24 TL ET
|
||||
BT 1 0 0 1 116 620 Tm /F6 20 Tf 24 TL (0\014~&f\3700M0\0150nS\345\212\255p\2710\222x\272\212\2150\002) Tj T* ET
|
||||
BT /F1 9 Tf 10.8 TL ET
|
||||
BT 1 0 0 1 36 28 Tm (Synthetic fixture / page 2 / no font program embedded) Tj T* ET
|
||||
|
||||
endstream
|
||||
endobj
|
||||
xref
|
||||
0 15
|
||||
0000000000 65535 f
|
||||
0000000061 00000 n
|
||||
0000000142 00000 n
|
||||
0000000249 00000 n
|
||||
0000000361 00000 n
|
||||
0000001864 00000 n
|
||||
0000002754 00000 n
|
||||
0000002949 00000 n
|
||||
0000004452 00000 n
|
||||
0000005342 00000 n
|
||||
0000005537 00000 n
|
||||
0000005607 00000 n
|
||||
0000005924 00000 n
|
||||
0000005990 00000 n
|
||||
0000007166 00000 n
|
||||
trailer
|
||||
<<
|
||||
/ID
|
||||
[<538e4832305af263a0a7344d39731b90><538e4832305af263a0a7344d39731b90>]
|
||||
% ReportLab generated PDF document -- digest (opensource)
|
||||
|
||||
/Info 11 0 R
|
||||
/Root 10 0 R
|
||||
/Size 15
|
||||
>>
|
||||
startxref
|
||||
8442
|
||||
%%EOF
|
||||
Reference in New Issue
Block a user