• R/O
  • SSH

wp2latex: Commit

WP2LaTeX sources.


Commit MetaInfo

Revision8220df40e4173804932145604af43837ce060606 (tree)
Time2022-01-10 18:55:35
AuthorFojtik
CommiterFojtik

Log Message

Added Turkish codepage CP1254.

Change Summary

Incremental Difference

diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/cp1254.enc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/sources.cc/cp_lib/cp1254.enc Mon Jan 10 10:55:35 2022 +0100
@@ -0,0 +1,221 @@
1+;Code page 1254 - Turkish
2+; https://en.wikipedia.org/wiki/Windows-1254
3+ 32 Space ;this is a space
4+ 33 Exclamation Point
5+ 34 Double Quote
6+ 35 Number/Pound
7+ 36 Dollars
8+ 37 Percent
9+ 38 Ampersand
10+ 39 Single Quote
11+ 40 Left Parenthesis
12+ 41 Right Parenthesis
13+ 42 Asterisk
14+ 43 Plus
15+ 44 Comma
16+ 45 Minus
17+ 46 Period
18+ 47 Forward Slash
19+ 48 0
20+ 49 1
21+ 50 2
22+ 51 3
23+ 52 4
24+ 53 5
25+ 54 6
26+ 55 7
27+ 56 8
28+ 57 9
29+ 58 Colon
30+ 59 Semicolon
31+ 60 Less Than
32+ 61 Equals
33+ 62 Greater Than
34+ 63 Question Mark
35+ 64 At
36+ 65 A
37+ 66 B
38+ 67 C
39+ 68 D
40+ 69 E
41+ 70 F
42+ 71 G
43+ 72 H
44+ 73 I
45+ 74 J
46+ 75 K
47+ 76 L
48+ 77 M
49+ 78 N
50+ 79 O
51+ 80 P
52+ 81 Q
53+ 82 R
54+ 83 S
55+ 84 T
56+ 85 U
57+ 86 V
58+ 87 W
59+ 88 X
60+ 89 Y
61+ 90 Z
62+ 91 Left Bracket
63+ 92 Backslash
64+ 93 Right Bracket
65+ 94 Caret
66+ 95 Underscore
67+ 96 Grave
68+ 97 a
69+ 98 b
70+ 99 c
71+ 100 d
72+ 101 e
73+ 102 f
74+ 103 g
75+ 104 h
76+ 105 i
77+ 106 j
78+ 107 k
79+ 108 l
80+ 109 m
81+ 110 n
82+ 111 o
83+ 112 p
84+ 113 q
85+ 114 r
86+ 115 s
87+ 116 t
88+ 117 u
89+ 118 v
90+ 119 w
91+ 120 x
92+ 121 y
93+ 122 z
94+ 123 Left Brace
95+ 124 Broken Vertical Bar
96+ 125 Right Brace
97+ 126 Tilde ;ASCII
98+ 127 DELETE
99+
100+ 130 Base Single Quote ; like 9
101+ 131 Florin/Guilder
102+ 132 Base Double Quote; like 99
103+ 133 period3
104+ 134 Dagger
105+ 135 Double Dagger
106+
107+ 137 Per Thousand
108+ 138 S Caron
109+ 139 anglequoteleftsingle
110+ 140 OE Digraph
111+
112+ 145 Left Single Quote
113+ 146 Right Single Quote
114+ 147 Left Double Quote
115+ 148 Right Double Quote
116+ 149 Bullet
117+ 150 En Dash
118+ 151 Em Dash
119+ 152 Double Acute
120+ 153 Trademark
121+ 154 s Caron
122+ 155 Right Single Guillemet ;anglequoterightsingle
123+ 156 oe Digraph
124+
125+ 159 Y Diaeresis
126+ 160 nobreakspace
127+ 161 Inverted Exclamation Point
128+ 162 Cent
129+ 163 Pound/Sterling
130+ 164 Currency
131+ 165 Yen
132+ 166 Broken Vertical Bar
133+ 167 Section Sign
134+ 168 Diaeresis
135+ 169 Copyright
136+ 170 Feminine Spanish Ordinal
137+ 171 Left Double Guillemet
138+ 172 Not (Slash)
139+ 173 hyphen
140+ 174 Registered Trademark
141+ 175 Macron
142+ 176 Degree
143+ 177 Plus or Minus
144+ 178 Power of 2
145+ 179 Power of 3
146+ 180 Acute
147+ 181 mu
148+ 182 Paragraph Sign
149+ 183 Small Center Dot ;periodcentered
150+ 184 Cedilla
151+ 185 Power of 1
152+ 186 Masculine Spanish Ordinal
153+ 187 Right Double Guillemet
154+ 188 1/4
155+ 189 1/2
156+ 190 3/4
157+ 191 Inverted Question Mark
158+ 192 A Grave
159+ 193 A Acute
160+ 194 A Circumflex
161+ 195 A Tilde
162+ 196 A Diaeresis
163+ 197 A Ring
164+ 198 AE Digraph
165+ 199 C Cedilla
166+ 200 E Grave
167+ 201 E Acute
168+ 202 E Circumflex
169+ 203 E Diaeresis
170+ 204 I Grave
171+ 205 I Acute
172+ 206 I Circumflex
173+ 207 I Diaeresis
174+ 208 G Breve
175+ 209 N Tilde
176+ 210 O Grave
177+ 211 O Acute
178+ 212 O Circumflex
179+ 213 O Tilde
180+ 214 O Diaeresis
181+ 215 Multiply (x)
182+ 216 O Slash
183+ 217 U Grave
184+ 218 U Acute
185+ 219 U Circumflex
186+ 220 U Diaeresis
187+ 221 I Dot Above
188+ 222 S Cedilla
189+ 223 s Sharp
190+ 224 a Grave
191+ 225 a Acute
192+ 226 a Circumflex
193+ 227 a Tilde
194+ 228 a Diaeresis
195+ 229 a Ring
196+ 230 ae Digraph
197+ 231 c Cedilla
198+ 232 e Grave
199+ 233 e Acute
200+ 234 e Circumflex
201+ 235 e Diaeresis
202+ 236 i Grave
203+ 237 i Acute
204+ 238 i Circumflex
205+ 239 i Diaeresis
206+ 240 g Breve
207+ 241 n Tilde
208+ 242 o Grave
209+ 243 o Acute
210+ 244 o Circumflex
211+ 245 o Tilde
212+ 246 o Diaeresis
213+ 247 Division
214+ 248 o Slash
215+ 249 u Grave
216+ 250 u Acute
217+ 251 u Circumflex
218+ 252 u Diaeresis
219+ 253 Dotless i
220+ 254 s Cedilla
221+ 255 y Diaeresis
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/cpbldr.cc
--- a/trunk/sources.cc/cp_lib/cpbldr.cc Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/cp_lib/cpbldr.cc Mon Jan 10 10:55:35 2022 +0100
@@ -11,7 +11,6 @@
1111 #include "../jobs/csext.h"
1212 #endif
1313
14-
1514 #if defined(__DJGPP__) || defined(_WIN32)
1615 #define DIR_DEPARATOR '\\'
1716 #else
@@ -240,11 +239,24 @@
240239 }
241240
242241
243-void ForgeFname(string &str, const char *Fname)
242+void ForgeFname(string &str, const char *Fname, bool Erase=true)
244243 {
244+FILE *F;
245+
245246 str = Directory;
246247 if(str.length()>0) str+=DIR_DEPARATOR;
247248 str += Fname;
249+
250+ if(Erase)
251+ {
252+ F = fopen(str(),"rb");
253+ if(F != NULL)
254+ {
255+ fclose(F);
256+ printf("Old file \"%s\" exists!\n", str());
257+ remove(str());
258+ }
259+ }
248260 }
249261
250262
@@ -473,7 +485,7 @@
473485 {
474486 FILE *F;
475487 codepage internal;
476-codepage cp852, cp1250, cp1251, cp1252, cp1253, cp1255, cp1276, cpkam,
488+codepage cp852, cp1250, cp1251, cp1252, cp1253, cp1254, cp1255, cp1276, cpkam,
477489 cpwp4a, cpwp5, cpwp5_cz, cpwp6,
478490 iso_8859_1, iso_8859_2, iso_8859_3, iso_8859_4,
479491 unicode,koi8cs,koi8r,
@@ -503,7 +515,7 @@
503515
504516 #if !defined(__DJGPP__)
505517 //Sleep(1000);
506- ForgeFname(FileLock,"lock.lck");
518+ ForgeFname(FileLock,"lock.lck",false);
507519 while((Flock=fopen(FileLock(),"rb")) != NULL)
508520 {
509521 fclose(Flock);
@@ -552,6 +564,7 @@
552564 if(!LoadCodePage("cp1251",cp1251,0)) return -5;
553565 if(!LoadCodePage("cp1252",cp1252,0)) return -6;
554566 if(!LoadCodePage("cp1253",cp1253,0)) return -7;
567+ LoadCodePage("cp1254",cp1254,0);
555568 if(!LoadCodePage("cp1255",cp1255,0)) return -8;
556569 if(!LoadCodePage("cp1276",cp1276,0)) return -9;
557570
@@ -575,7 +588,7 @@
575588
576589
577590 ForgeFname(FileName, "trn.new");
578- if((F=fopen(FileName(),"w"))==NULL)
591+ if((F=fopen(FileName(),"wb"))==NULL)
579592 {
580593 printf("Cannot write to the file \"%s\"", FileName());
581594 return -1;
@@ -670,6 +683,9 @@
670683 CreateTranslator(trn,cp1253,internal);
671684 WriteTranslator(cp1253,internal,trn,F);
672685
686+ CreateTranslator(trn,cp1254,internal);
687+ WriteTranslator(cp1254,internal,trn,F);
688+
673689 CreateTranslator(trn,cp1255,internal);
674690 WriteTranslator(cp1255,internal,trn,F);
675691
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/makefile
--- a/trunk/sources.cc/cp_lib/makefile Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/cp_lib/makefile Mon Jan 10 10:55:35 2022 +0100
@@ -72,7 +72,7 @@
7272 CODEPAGES=wp4a.enc wp5.enc wp5_cz.enc wp6.enc
7373 CODEPAGES+=unicode.enc kam.enc koi8cs.enc
7474 CODEPAGES+=is8859_1.enc is8859_2.enc is8859_3.enc is8859_4.enc
75-CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1255.enc
75+CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1254.enc cp1255.enc
7676 CODEPAGES+=mac_roma.enc
7777
7878 OUTPUTS=charactr.cc_ out_dir/macroman.trn out_dir/mtef.trn out_dir/html.trn out_dir/trn.trn out_dir/cpg.trn
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/makefile.gen
--- a/trunk/sources.cc/cp_lib/makefile.gen Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/cp_lib/makefile.gen Mon Jan 10 10:55:35 2022 +0100
@@ -72,7 +72,7 @@
7272 CODEPAGES=wp4a.enc wp5.enc wp5_cz.enc wp6.enc
7373 CODEPAGES+=unicode.enc kam.enc koi8cs.enc
7474 CODEPAGES+=is8859_1.enc is8859_2.enc is8859_3.enc is8859_4.enc
75-CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1255.enc
75+CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1254.enc cp1255.enc
7676 CODEPAGES+=mac_roma.enc
7777
7878 OUTPUTS=charactr.cc_ out_dir/macroman.trn out_dir/mtef.trn out_dir/html.trn out_dir/trn.trn out_dir/cpg.trn
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/makefile.in
--- a/trunk/sources.cc/cp_lib/makefile.in Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/cp_lib/makefile.in Mon Jan 10 10:55:35 2022 +0100
@@ -78,7 +78,7 @@
7878 CODEPAGES=wp4a.enc wp5.enc wp5_cz.enc wp6.enc
7979 CODEPAGES+=unicode.enc kam.enc koi8cs.enc
8080 CODEPAGES+=is8859_1.enc is8859_2.enc is8859_3.enc is8859_4.enc
81-CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1255.enc
81+CODEPAGES+=cp852.enc cp1250.enc cp1251.enc cp1252.enc cp1253.enc cp1254.enc cp1255.enc
8282 CODEPAGES+=mac_roma.enc
8383
8484 OUTPUTS=charactr.cc_ out_dir/macroman.trn out_dir/mtef.trn out_dir/html.trn out_dir/trn.trn out_dir/cpg.trn
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/cp_lib/symbol.enc
--- a/trunk/sources.cc/cp_lib/symbol.enc Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/cp_lib/symbol.enc Mon Jan 10 10:55:35 2022 +0100
@@ -68,11 +68,11 @@
6868 93 Right Bracket
6969 94 Bottom
7070 95 Underscore
71- 96 Overline (Long Mark)
72- 97 alpha
73- 98 beta
74- 99 chi
75- 100 delta
71+ 96 Overline (Long Mark)
72+ 97 alpha
73+ 98 beta
74+ 99 chi
75+ 100 delta
7676 101 epsilon
7777 102 phi
7878 103 gamma
@@ -86,22 +86,22 @@
8686 111 omicron
8787 112 pi
8888 113 theta
89- 114 rho
90- 115 sigma
91- 116 tau
92- 117 upsilon
93- 118 pi (Variant)
94- 119 omega
95- 120 xi
96- 121 psi
97- 122 zeta
89+ 114 rho
90+ 115 sigma
91+ 116 tau
92+ 117 upsilon
93+ 118 pi (Variant)
94+ 119 omega
95+ 120 xi
96+ 121 psi
97+ 122 zeta
9898 123 Left Brace
9999 124 Broken Vertical Bar
100100 125 Right Brace
101101 126 Tilde ;ASCII
102102
103103 161 sigma (Lunate)
104- 162 Prime
104+ 162 Prime
105105 163 Less Than Or Equal
106106 164 Figure Slash (Fraction)
107107 165 Infinity
@@ -195,9 +195,3 @@
195195 252 Right Brace [Top]
196196 253 Right Brace [Middle]
197197 254 Right Brace [Bottom]
198-
199-
200-
201-
202-
203-
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/pass1wmf.cc
--- a/trunk/sources.cc/pass1wmf.cc Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/pass1wmf.cc Mon Jan 10 10:55:35 2022 +0100
@@ -334,6 +334,7 @@
334334 bool CheckWmfRecSz(WORD WSizeRequest);
335335 void ReportCorruptedObj(const char *ObjName);
336336
337+ void parse_Arc(VectorList &VectList);
337338 void parse_CreateBrushIndirect(void);
338339 void parse_CreatePalette(void);
339340 void parse_CreatePenIndirect(void);
@@ -352,6 +353,7 @@
352353 void wmf_ESCAPE(void);
353354 void parse_ExtTextOut(VectorList &VectList);
354355 void parse_Rectangle(VectorList &VectList);
356+ void parse_RoundRect(VectorList &VectList);
355357 void parse_SelectObject(void);
356358 void parse_SetTextAlign(void);
357359 void parse_SetBkColor(void);
@@ -493,6 +495,55 @@
493495 }
494496
495497
498+void TconvertedPass1_WMF::parse_Arc(VectorList &VectList)
499+{
500+#ifdef DEBUG
501+ fprintf(log,"\n#TconvertedPass1_WMF::parse_Arc() ");fflush(log);
502+#endif
503+static const char ObjName[] = "!Arc";
504+SWORD BottomRect, TopRect, RightRect, LeftRect;
505+SWORD XRadial1, XRadial2, YRadial1, YRadial2;
506+
507+ if(!CheckWmfRecSz(8))
508+ {
509+ ReportCorruptedObj(ObjName+1);
510+ strcpy(ObjType,ObjName);
511+ return;
512+ }
513+
514+ Rd_word(wpd, (WORD*)&YRadial2);
515+ Rd_word(wpd, (WORD*)&XRadial2);
516+ Rd_word(wpd, (WORD*)&YRadial1);
517+ Rd_word(wpd, (WORD*)&XRadial1);
518+
519+ Rd_word(wpd, (WORD*)&BottomRect);
520+ Rd_word(wpd, (WORD*)&RightRect);
521+ Rd_word(wpd, (WORD*)&TopRect);
522+ Rd_word(wpd, (WORD*)&LeftRect);
523+
524+ UpdateBBox(bbx, 0, LeftRect, BottomRect, RightRect-LeftRect, TopRect-BottomRect);
525+
526+ float Scale = GetScale2PSU((TMapMode)MapMode);
527+ VectorEllipse *pVecEllipse = new VectorEllipse(Scale*BottomRect, Scale*TopRect, Scale*RightRect, Scale*LeftRect);
528+ pVecEllipse->AttribFromPSS(PSS);
529+ pVecEllipse->BrushStyle = 0;
530+
531+ if(TopRect != BottomRect)
532+ {
533+ float xs = (LeftRect + RightRect) / 2;
534+ float ys = (BottomRect + TopRect) / 2;
535+ Scale = fabs((RightRect-LeftRect) / (float)(TopRect-BottomRect));
536+
537+ pVecEllipse->bAngle = (180/M_PI) * atan2(Scale*(ys-YRadial1), XRadial1-xs);
538+ pVecEllipse->eAngle = (180/M_PI) * atan2(Scale*(ys-YRadial2), XRadial2-xs);
539+ }
540+
541+ VectList.AddObject(pVecEllipse);
542+
543+strcpy(ObjType,ObjName+1);
544+}
545+
546+
496547 void TconvertedPass1_WMF::parse_Ellipse(VectorList &VectList)
497548 {
498549 #ifdef DEBUG
@@ -587,26 +638,20 @@
587638 case OEM_CHARSET:
588639 case DEFAULT_CHARSET: ConvertCpg = NULL;
589640 break;
590- case ANSI_CHARSET: ConvertCpg = GetTranslator("cp1252TOinternal");
591- break;
592- case SYMBOL_CHARSET: ConvertCpg = GetTranslator("symbolTOinternal");
593- break;
641+ case ANSI_CHARSET: ConvertCpg = GetTranslator("cp1252TOinternal"); break;
642+ case SYMBOL_CHARSET: ConvertCpg = GetTranslator("symbolTOinternal"); break;
594643 case EASTEUROPE_CHARSET: ConvertCpg = GetTranslator("cp1250TOinternal"); // see https://stackoverflow.com/questions/22911186/windows-encoding-clarification
595644 break;
596- case RUSSIAN_CHARSET: ConvertCpg = GetTranslator("cp1251TOinternal");
597- break;
598- case MAC_CHARSET: ConvertCpg = GetTranslator("MacRomanTOinternal");
599- break;
600- case GREEK_CHARSET: ConvertCpg = GetTranslator("cp1253TOinternal");
601- break;
602- case HEBREW_CHARSET: ConvertCpg = GetTranslator("cp1255TOinternal");
603- break;
645+ case RUSSIAN_CHARSET: ConvertCpg = GetTranslator("cp1251TOinternal"); break;
646+ case MAC_CHARSET: ConvertCpg = GetTranslator("MacRomanTOinternal"); break;
647+ case GREEK_CHARSET: ConvertCpg = GetTranslator("cp1253TOinternal"); break;
648+ case HEBREW_CHARSET: ConvertCpg = GetTranslator("cp1255TOinternal"); break;
649+ case TURKISH_CHARSET: ConvertCpg = GetTranslator("cp1254TOinternal"); break;
604650 case SHIFTJIS_CHARSET:
605651 case HANGUL_CHARSET:
606652 case JOHAB_CHARSET:
607653 case GB2312_CHARSET:
608- case CHINESEBIG5_CHARSET:
609- case TURKISH_CHARSET:
654+ case CHINESEBIG5_CHARSET:
610655 case VIETNAMESE_CHARSET:
611656 case ARABIC_CHARSET:
612657 case BALTIC_CHARSET:
@@ -825,6 +870,42 @@
825870 }
826871
827872
873+void TconvertedPass1_WMF::parse_RoundRect(VectorList &VectList)
874+{
875+#ifdef DEBUG
876+ fprintf(log,"\n#TconvertedPass1_WMF::parse_RoundRect() ");fflush(log);
877+#endif
878+static const char ObjName[] = "!RoundRect";
879+SWORD BottomRect, TopRect, RightRect, LeftRect;
880+SWORD Height, Width;
881+
882+ if(!CheckWmfRecSz(6))
883+ {
884+ ReportCorruptedObj(ObjName+1);
885+ strcpy(ObjType,ObjName);
886+ return;
887+ }
888+
889+ Rd_word(wpd, (WORD*)&Height);
890+ Rd_word(wpd, (WORD*)&Width);
891+ Rd_word(wpd, (WORD*)&BottomRect);
892+ Rd_word(wpd, (WORD*)&RightRect);
893+ Rd_word(wpd, (WORD*)&TopRect);
894+ Rd_word(wpd, (WORD*)&LeftRect);
895+
896+ UpdateBBox(bbx, 0, LeftRect, BottomRect, RightRect-LeftRect, TopRect-BottomRect);
897+
898+ const float Scale = GetScale2PSU((TMapMode)MapMode);
899+
900+ VectorRectangle *pVectRec = new VectorRectangleArc(Scale*BottomRect, Scale*TopRect, Scale*LeftRect, Scale*RightRect,
901+ Scale*Width/2.0f, Scale*Height/2.0f);
902+ pVectRec->AttribFromPSS(PSS);
903+ VectList.AddObject(pVectRec);
904+
905+ strcpy(ObjType,ObjName+1);
906+}
907+
908+
828909 void TconvertedPass1_WMF::parse_DeleteObject(void)
829910 {
830911 #ifdef DEBUG
@@ -1619,7 +1700,7 @@
16191700
16201701 case 0x0548: strcpy(ObjType,"!ExtFloodFill"); break;
16211702
1622- case 0x061C: strcpy(ObjType,"!RoundRect"); break;
1703+ case 0x061C: parse_RoundRect(VectList); break;
16231704 case 0x061D: strcpy(ObjType,"!PatBlt"); break;
16241705
16251706 case 0x626: wmf_ESCAPE(); break;
@@ -1629,7 +1710,7 @@
16291710 case 0x06FE: strcpy(ObjType,"!CreateBitmap"); break;
16301711 case 0x06FF: strcpy(ObjType,"!CreateRegion"); break; //!!!!<<
16311712
1632- case 0x0817: strcpy(ObjType,"!Arc"); break;
1713+ case 0x0817: parse_Arc(VectList); break;
16331714
16341715 case 0x081A: parse_Pie(VectList); break;
16351716
@@ -2172,26 +2253,22 @@
21722253 case OEM_CHARSET:
21732254 case DEFAULT_CHARSET: ConvertCpg = NULL;
21742255 break;
2175- case ANSI_CHARSET: ConvertCpg = GetTranslator("cp1252TOinternal");
2176- break;
2177- case SYMBOL_CHARSET: ConvertCpg = GetTranslator("symbolTOinternal");
2178- break;
2256+ case ANSI_CHARSET: ConvertCpg = GetTranslator("cp1252TOinternal"); break;
2257+ case SYMBOL_CHARSET: ConvertCpg = GetTranslator("symbolTOinternal"); break;
21792258 case EASTEUROPE_CHARSET: ConvertCpg = GetTranslator("cp1250TOinternal"); // see https://stackoverflow.com/questions/22911186/windows-encoding-clarification
21802259 break;
2181- case RUSSIAN_CHARSET: ConvertCpg = GetTranslator("cp1251TOinternal");
2182- break;
2183- case MAC_CHARSET: ConvertCpg = GetTranslator("MacRomanTOinternal");
2184- break;
2260+ case RUSSIAN_CHARSET: ConvertCpg = GetTranslator("cp1251TOinternal"); break;
2261+ case MAC_CHARSET: ConvertCpg = GetTranslator("MacRomanTOinternal"); break;
21852262 case GREEK_CHARSET: ConvertCpg = GetTranslator("cp1253TOinternal"); // see https://www.compart.com/en/unicode/charsets/windows-1253
21862263 break;
21872264 case HEBREW_CHARSET: ConvertCpg = GetTranslator("cp1255TOinternal"); // see https://www.compart.com/en/unicode/charsets/windows-1255
21882265 break;
2266+ case TURKISH_CHARSET: ConvertCpg = GetTranslator("cp1254TOinternal"); break;
21892267 case SHIFTJIS_CHARSET:
21902268 case HANGUL_CHARSET:
21912269 case JOHAB_CHARSET:
21922270 case GB2312_CHARSET:
21932271 case CHINESEBIG5_CHARSET:
2194- case TURKISH_CHARSET:
21952272 case VIETNAMESE_CHARSET:
21962273 case ARABIC_CHARSET:
21972274 case BALTIC_CHARSET:
diff -r 1a981493ead9 -r 8220df40e417 trunk/sources.cc/wp2latex.h
--- a/trunk/sources.cc/wp2latex.h Thu Jan 06 20:19:52 2022 +0100
+++ b/trunk/sources.cc/wp2latex.h Mon Jan 10 10:55:35 2022 +0100
@@ -18,7 +18,7 @@
1818 #define LineLength 80 /* Split lines after more than LineLength charcters */
1919
2020 #define VersionWP2L "3.pre104"
21-#define VersionDate "6 Jan 2022" /* day (space) month (space) full year */
21+#define VersionDate "10 Jan 2022" /* day (space) month (space) full year */
2222
2323 #ifndef false
2424 #define false 0
Show on old repository browser