Changeset 1233 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
2000-06-23T15:21:39+12:00 (24 years ago)
Author:
sjboddie
Message:

Created converter classes for simple 8 bit encodings that use a
simple textual map file. Instances of these classes are used to handle
the Windows 1256 (Arabic) encoding.

File:
1 edited

Legend:

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

    r1194 r1233  
    2828/*
    2929   $Log$
     30   Revision 1.27  2000/06/23 03:21:39  sjboddie
     31   Created converter classes for simple 8 bit encodings that use a
     32   simple textual map file. Instances of these classes are used to handle
     33   the Windows 1256 (Arabic) encoding.
     34
    3035   Revision 1.26  2000/05/29 03:30:03  sjboddie
    3136   fixed a bug preventing GB encoded text from being displayed correctly
     
    230235  recpt.add_converter ("g", &gbinconvert, &gboutconvert);
    231236
     237  text_t armapfile = filename_cat (gsdlhome, "unicode", "MAPPINGS");
     238  armapfile = filename_cat (armapfile, "WINDOWS", "1256.TXT");
     239  simplemapinconvertclass arinconvert;
     240  arinconvert.setmapfile (armapfile);
     241  simplemapoutconvertclass aroutconvert;
     242  aroutconvert.setmapfile (armapfile);
     243  recpt.add_converter ("a", &arinconvert, &aroutconvert); 
     244
     245
    232246  // the list of actions. Note: these actions will become invalid
    233247  // at the end of this function.
Note: See TracChangeset for help on using the changeset viewer.