Ignore:
Timestamp:
2001-01-16T11:48:04+13:00 (23 years ago)
Author:
sjboddie
Message:

Added support for Cyrillic languages (windows codepage 1251) - yet to be
tested by anyone who understands any such language though ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/librarymain.cpp

    r1649 r1838  
    123123
    124124  // arabic
    125   text_t armapfile = filename_cat (gsdlhome, "unicode", "MAPPINGS");
    126   armapfile = filename_cat (armapfile, "WINDOWS", "1256.TXT");
     125  text_t mapfile = filename_cat (gsdlhome, "unicode", "MAPPINGS");
     126  mapfile = filename_cat (mapfile, "WINDOWS", "1256.TXT");
    127127  simplemapinconvertclass arinconvert;
    128   arinconvert.setmapfile (armapfile);
     128  arinconvert.setmapfile (mapfile);
    129129  simplemapoutconvertclass aroutconvert;
    130   aroutconvert.setmapfile (armapfile);
     130  aroutconvert.setmapfile (mapfile);
    131131  recpt.add_converter ("a", &arinconvert, &aroutconvert); 
     132
     133  // cyrillic
     134  mapfile = filename_cat (gsdlhome, "unicode", "MAPPINGS");
     135  mapfile = filename_cat (mapfile, "WINDOWS", "1251.TXT");
     136  simplemapinconvertclass cyinconvert;
     137  cyinconvert.setmapfile (mapfile);
     138  simplemapoutconvertclass cyoutconvert;
     139  cyoutconvert.setmapfile (mapfile);
     140  recpt.add_converter ("c", &cyinconvert, &cyoutconvert); 
    132141 
    133142  // hindi
Note: See TracChangeset for help on using the changeset viewer.