unicodeducet.pas 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. { Unicode DUCET unit.
  2. Copyright (c) 2013 by Inoussa OUEDRAOGO
  3. The source code is distributed under the Library GNU
  4. General Public License with the following modification:
  5. - object files and libraries linked into an application may be
  6. distributed without source code.
  7. If you didn't receive a copy of the file COPYING, contact:
  8. Free Software Foundation
  9. 675 Mass Ave
  10. Cambridge, MA 02139
  11. USA
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. }
  16. unit unicodeducet;
  17. {$ifndef VER2_4}
  18. {$mode objfpc}
  19. {$H+}
  20. {$PACKENUM 1}
  21. {$SCOPEDENUMS ON}
  22. {$modeswitch advancedrecords}
  23. interface
  24. {$endif VER2_4}
  25. implementation
  26. {$ifndef VER2_4}
  27. uses
  28. unicodedata;
  29. {$INCLUDE ucadata.inc}
  30. {$IFDEF ENDIAN_LITTLE}
  31. {$INCLUDE ucadata_le.inc}
  32. {$ENDIF ENDIAN_LITTLE}
  33. {$IFDEF ENDIAN_BIG}
  34. {$INCLUDE ucadata_be.inc}
  35. {$ENDIF ENDIAN_BIG}
  36. const
  37. UCA_DataBookRecord : TUCA_DataBook = (
  38. Base : nil;
  39. Version : VERSION_STRING;
  40. CollationName : 'DUCET';//'Default Unicode Collation Element Table (DUCET)';
  41. VariableWeight : TUCA_VariableKind(VARIABLE_WEIGHT);
  42. Backwards : (BACKWARDS_0,BACKWARDS_1,BACKWARDS_2,BACKWARDS_3);
  43. BMP_Table1 : @UCA_TABLE_1[0];
  44. BMP_Table2 : @UCA_TABLE_2[0];
  45. OBMP_Table1 : @UCAO_TABLE_1[0];
  46. OBMP_Table2 : @UCAO_TABLE_2[0];
  47. PropCount : PROP_COUNT;
  48. Props : PUCA_PropItemRec(@UCA_PROPS[0]);
  49. VariableLowLimit : VARIABLE_LOW_LIMIT;
  50. VariableHighLimit : VARIABLE_HIGH_LIMIT;
  51. );
  52. initialization
  53. RegisterCollation(@UCA_DataBookRecord);
  54. {$endif VER2_4}
  55. end.