ipe5toxml: Update
[shuber-gentoo-overlay.git] / media-gfx / pdftoipe / files / missingpage.patch
1 diff -rup pdftoipe-20130124-src/xmloutputdev.cpp pdftoipe-20130124-src-patched/xmloutputdev.cpp
2 --- pdftoipe-20130124-src/xmloutputdev.cpp 2013-01-24 01:32:29.000000000 -0600
3 +++ pdftoipe-20130124-src-patched/xmloutputdev.cpp 2013-08-15 12:49:49.188415695 -0500
4 @@ -116,6 +116,11 @@ void XmlOutputDev::setTextHandling(GBool
5
6 void XmlOutputDev::startPage(int pageNum, GfxState *state)
7 {
8 + startPage(pageNum, state, NULL); // for poppler <= 0.22
9 +}
10 +
11 +void XmlOutputDev::startPage(int pageNum, GfxState *state, XRef *xrefA)
12 +{
13 writePSFmt("<!-- Page: %d %d -->\n", pageNum, seqPage);
14 fprintf(stderr, "Converting page %d (numbered %d)\n",
15 seqPage, pageNum);
16 @@ -433,53 +438,53 @@ static const UnicodeToLatex unicode2late
17 // --------------------------------------------------------------------
18 { 0x391, "$\\Alpha$" },
19 { 0x392, "$\\Beta$" },
20 - { 0x393, "$\\Gamma" },
21 - { 0x394, "$\\Delta" },
22 - { 0x395, "$\\Epsilon" },
23 - { 0x396, "$\\Zeta" },
24 - { 0x397, "$\\Eta" },
25 - { 0x398, "$\\Theta" },
26 - { 0x399, "$\\Iota" },
27 - { 0x39a, "$\\Kappa" },
28 - { 0x39b, "$\\Lambda" },
29 - { 0x39c, "$\\Mu" },
30 - { 0x39e, "$\\Nu" },
31 - { 0x39e, "$\\Xi" },
32 - { 0x39f, "$\\Omicron" },
33 - { 0x3a0, "$\\Pi" },
34 - { 0x3a1, "$\\Rho" },
35 - { 0x3a3, "$\\Sigma" }, // sometimes \\sum would be better
36 - { 0x3a4, "$\\Tau" },
37 - { 0x3a5, "$\\Upsilon" },
38 - { 0x3a6, "$\\Phi" },
39 - { 0x3a7, "$\\Chi" },
40 - { 0x3a8, "$\\Psi" },
41 - { 0x3a9, "$\\Omega" },
42 + { 0x393, "$\\Gamma$" },
43 + { 0x394, "$\\Delta$" },
44 + { 0x395, "$\\Epsilon$" },
45 + { 0x396, "$\\Zeta$" },
46 + { 0x397, "$\\Eta$" },
47 + { 0x398, "$\\Theta$" },
48 + { 0x399, "$\\Iota$" },
49 + { 0x39a, "$\\Kappa$" },
50 + { 0x39b, "$\\Lambda$" },
51 + { 0x39c, "$\\Mu$" },
52 + { 0x39e, "$\\Nu$" },
53 + { 0x39e, "$\\Xi$" },
54 + { 0x39f, "$\\Omicron$" },
55 + { 0x3a0, "$\\Pi$" },
56 + { 0x3a1, "$\\Rho$" },
57 + { 0x3a3, "$\\Sigma$" }, // sometimes \\sum would be better
58 + { 0x3a4, "$\\Tau$" },
59 + { 0x3a5, "$\\Upsilon$" },
60 + { 0x3a6, "$\\Phi$" },
61 + { 0x3a7, "$\\Chi$" },
62 + { 0x3a8, "$\\Psi$" },
63 + { 0x3a9, "$\\Omega$" },
64 // --------------------------------------------------------------------
65 { 0x3b1, "$\\alpha$" },
66 { 0x3b2, "$\\beta$" },
67 - { 0x3b3, "$\\gamma" },
68 - { 0x3b4, "$\\delta" },
69 - { 0x3b5, "$\\varepsilon" },
70 - { 0x3b6, "$\\zeta" },
71 - { 0x3b7, "$\\eta" },
72 - { 0x3b8, "$\\theta" },
73 - { 0x3b9, "$\\iota" },
74 - { 0x3ba, "$\\kappa" },
75 - { 0x3bb, "$\\lambda" },
76 - { 0x3bc, "$\\mu" },
77 - { 0x3be, "$\\nu" },
78 - { 0x3be, "$\\xi" },
79 - { 0x3bf, "$\\omicron" },
80 - { 0x3c0, "$\\pi" },
81 - { 0x3c1, "$\\rho" },
82 - { 0x3c3, "$\\sigma" },
83 - { 0x3c4, "$\\tau" },
84 - { 0x3c5, "$\\upsilon" },
85 - { 0x3c6, "$\\phi" },
86 - { 0x3c7, "$\\chi" },
87 - { 0x3c8, "$\\psi" },
88 - { 0x3c9, "$\\omega" },
89 + { 0x3b3, "$\\gamma$" },
90 + { 0x3b4, "$\\delta$" },
91 + { 0x3b5, "$\\varepsilon$" },
92 + { 0x3b6, "$\\zeta$" },
93 + { 0x3b7, "$\\eta$" },
94 + { 0x3b8, "$\\theta$" },
95 + { 0x3b9, "$\\iota$" },
96 + { 0x3ba, "$\\kappa$" },
97 + { 0x3bb, "$\\lambda$" },
98 + { 0x3bc, "$\\mu$" },
99 + { 0x3be, "$\\nu$" },
100 + { 0x3be, "$\\xi$" },
101 + { 0x3bf, "$\\omicron$" },
102 + { 0x3c0, "$\\pi$" },
103 + { 0x3c1, "$\\rho$" },
104 + { 0x3c3, "$\\sigma$" },
105 + { 0x3c4, "$\\tau$" },
106 + { 0x3c5, "$\\upsilon$" },
107 + { 0x3c6, "$\\phi$" },
108 + { 0x3c7, "$\\chi$" },
109 + { 0x3c8, "$\\psi$" },
110 + { 0x3c9, "$\\omega$" },
111 // --------------------------------------------------------------------
112 { 0x2013, "-" },
113 { 0x2019, "'" },
114 diff -rup pdftoipe-20130124-src/xmloutputdev.h pdftoipe-20130124-src-patched/xmloutputdev.h
115 --- pdftoipe-20130124-src/xmloutputdev.h 2013-01-24 01:32:29.000000000 -0600
116 +++ pdftoipe-20130124-src-patched/xmloutputdev.h 2013-08-15 12:50:16.365122073 -0500
117 @@ -51,7 +51,8 @@ public:
118 //----- initialization and control
119
120 // Start a page.
121 - virtual void startPage(int pageNum, GfxState *state);
122 + virtual void startPage(int pageNum, GfxState *state); // poppler <=0.22
123 + virtual void startPage(int pageNum, GfxState *state, XRef *xrefA);
124
125 // End a page.
126 virtual void endPage();