ttnameid.h 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  1. /***************************************************************************/
  2. /* */
  3. /* ttnameid.h */
  4. /* */
  5. /* TrueType name ID definitions (specification only). */
  6. /* */
  7. /* Copyright 1996-2002, 2003, 2004, 2006, 2007 by */
  8. /* David Turner, Robert Wilhelm, and Werner Lemberg. */
  9. /* */
  10. /* This file is part of the FreeType project, and may only be used, */
  11. /* modified, and distributed under the terms of the FreeType project */
  12. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  13. /* this file you indicate that you have read the license and */
  14. /* understand and accept it fully. */
  15. /* */
  16. /***************************************************************************/
  17. #ifndef __TTNAMEID_H__
  18. #define __TTNAMEID_H__
  19. #include <ft2build.h>
  20. FT_BEGIN_HEADER
  21. /*************************************************************************/
  22. /* */
  23. /* Possible values for the `platform' identifier code in the name */
  24. /* records of the TTF `name' table. */
  25. /* */
  26. /*************************************************************************/
  27. /***********************************************************************
  28. *
  29. * @enum:
  30. * TT_PLATFORM_XXX
  31. *
  32. * @description:
  33. * A list of valid values for the `platform_id' identifier code in
  34. * @FT_CharMapRec and @FT_SfntName structures.
  35. *
  36. * @values:
  37. * TT_PLATFORM_APPLE_UNICODE ::
  38. * Used by Apple to indicate a Unicode character map and/or name entry.
  39. * See @TT_APPLE_ID_XXX for corresponding `encoding_id' values. Note
  40. * that name entries in this format are coded as big-endian UCS-2
  41. * character codes _only_.
  42. *
  43. * TT_PLATFORM_MACINTOSH ::
  44. * Used by Apple to indicate a MacOS-specific charmap and/or name entry.
  45. * See @TT_MAC_ID_XXX for corresponding `encoding_id' values. Note that
  46. * most TrueType fonts contain an Apple roman charmap to be usable on
  47. * MacOS systems (even if they contain a Microsoft charmap as well).
  48. *
  49. * TT_PLATFORM_ISO ::
  50. * This value was used to specify Unicode charmaps. It is however
  51. * now deprecated. See @TT_ISO_ID_XXX for a list of corresponding
  52. * `encoding_id' values.
  53. *
  54. * TT_PLATFORM_MICROSOFT ::
  55. * Used by Microsoft to indicate Windows-specific charmaps. See
  56. * @TT_MS_ID_XXX for a list of corresponding `encoding_id' values.
  57. * Note that most fonts contain a Unicode charmap using
  58. * (TT_PLATFORM_MICROSOFT, @TT_MS_ID_UNICODE_CS).
  59. *
  60. * TT_PLATFORM_CUSTOM ::
  61. * Used to indicate application-specific charmaps.
  62. *
  63. * TT_PLATFORM_ADOBE ::
  64. * This value isn't part of any font format specification, but is used
  65. * by FreeType to report Adobe-specific charmaps in an @FT_CharMapRec
  66. * structure. See @TT_ADOBE_ID_XXX.
  67. */
  68. #define TT_PLATFORM_APPLE_UNICODE 0
  69. #define TT_PLATFORM_MACINTOSH 1
  70. #define TT_PLATFORM_ISO 2 /* deprecated */
  71. #define TT_PLATFORM_MICROSOFT 3
  72. #define TT_PLATFORM_CUSTOM 4
  73. #define TT_PLATFORM_ADOBE 7 /* artificial */
  74. /***********************************************************************
  75. *
  76. * @enum:
  77. * TT_APPLE_ID_XXX
  78. *
  79. * @description:
  80. * A list of valid values for the `encoding_id' for
  81. * @TT_PLATFORM_APPLE_UNICODE charmaps and name entries.
  82. *
  83. * @values:
  84. * TT_APPLE_ID_DEFAULT ::
  85. * Unicode version 1.0.
  86. *
  87. * TT_APPLE_ID_UNICODE_1_1 ::
  88. * Unicode 1.1; specifies Hangul characters starting at U+34xx.
  89. *
  90. * TT_APPLE_ID_ISO_10646 ::
  91. * Deprecated (identical to preceding).
  92. *
  93. * TT_APPLE_ID_UNICODE_2_0 ::
  94. * Unicode 2.0 and beyond (UTF-16 BMP only).
  95. *
  96. * TT_APPLE_ID_UNICODE_32 ::
  97. * Unicode 3.1 and beyond, using UTF-32.
  98. */
  99. #define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */
  100. #define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */
  101. #define TT_APPLE_ID_ISO_10646 2 /* deprecated */
  102. #define TT_APPLE_ID_UNICODE_2_0 3 /* or later */
  103. #define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */
  104. /***********************************************************************
  105. *
  106. * @enum:
  107. * TT_MAC_ID_XXX
  108. *
  109. * @description:
  110. * A list of valid values for the `encoding_id' for
  111. * @TT_PLATFORM_MACINTOSH charmaps and name entries.
  112. *
  113. * @values:
  114. * TT_MAC_ID_ROMAN ::
  115. * TT_MAC_ID_JAPANESE ::
  116. * TT_MAC_ID_TRADITIONAL_CHINESE ::
  117. * TT_MAC_ID_KOREAN ::
  118. * TT_MAC_ID_ARABIC ::
  119. * TT_MAC_ID_HEBREW ::
  120. * TT_MAC_ID_GREEK ::
  121. * TT_MAC_ID_RUSSIAN ::
  122. * TT_MAC_ID_RSYMBOL ::
  123. * TT_MAC_ID_DEVANAGARI ::
  124. * TT_MAC_ID_GURMUKHI ::
  125. * TT_MAC_ID_GUJARATI ::
  126. * TT_MAC_ID_ORIYA ::
  127. * TT_MAC_ID_BENGALI ::
  128. * TT_MAC_ID_TAMIL ::
  129. * TT_MAC_ID_TELUGU ::
  130. * TT_MAC_ID_KANNADA ::
  131. * TT_MAC_ID_MALAYALAM ::
  132. * TT_MAC_ID_SINHALESE ::
  133. * TT_MAC_ID_BURMESE ::
  134. * TT_MAC_ID_KHMER ::
  135. * TT_MAC_ID_THAI ::
  136. * TT_MAC_ID_LAOTIAN ::
  137. * TT_MAC_ID_GEORGIAN ::
  138. * TT_MAC_ID_ARMENIAN ::
  139. * TT_MAC_ID_MALDIVIAN ::
  140. * TT_MAC_ID_SIMPLIFIED_CHINESE ::
  141. * TT_MAC_ID_TIBETAN ::
  142. * TT_MAC_ID_MONGOLIAN ::
  143. * TT_MAC_ID_GEEZ ::
  144. * TT_MAC_ID_SLAVIC ::
  145. * TT_MAC_ID_VIETNAMESE ::
  146. * TT_MAC_ID_SINDHI ::
  147. * TT_MAC_ID_UNINTERP ::
  148. */
  149. #define TT_MAC_ID_ROMAN 0
  150. #define TT_MAC_ID_JAPANESE 1
  151. #define TT_MAC_ID_TRADITIONAL_CHINESE 2
  152. #define TT_MAC_ID_KOREAN 3
  153. #define TT_MAC_ID_ARABIC 4
  154. #define TT_MAC_ID_HEBREW 5
  155. #define TT_MAC_ID_GREEK 6
  156. #define TT_MAC_ID_RUSSIAN 7
  157. #define TT_MAC_ID_RSYMBOL 8
  158. #define TT_MAC_ID_DEVANAGARI 9
  159. #define TT_MAC_ID_GURMUKHI 10
  160. #define TT_MAC_ID_GUJARATI 11
  161. #define TT_MAC_ID_ORIYA 12
  162. #define TT_MAC_ID_BENGALI 13
  163. #define TT_MAC_ID_TAMIL 14
  164. #define TT_MAC_ID_TELUGU 15
  165. #define TT_MAC_ID_KANNADA 16
  166. #define TT_MAC_ID_MALAYALAM 17
  167. #define TT_MAC_ID_SINHALESE 18
  168. #define TT_MAC_ID_BURMESE 19
  169. #define TT_MAC_ID_KHMER 20
  170. #define TT_MAC_ID_THAI 21
  171. #define TT_MAC_ID_LAOTIAN 22
  172. #define TT_MAC_ID_GEORGIAN 23
  173. #define TT_MAC_ID_ARMENIAN 24
  174. #define TT_MAC_ID_MALDIVIAN 25
  175. #define TT_MAC_ID_SIMPLIFIED_CHINESE 25
  176. #define TT_MAC_ID_TIBETAN 26
  177. #define TT_MAC_ID_MONGOLIAN 27
  178. #define TT_MAC_ID_GEEZ 28
  179. #define TT_MAC_ID_SLAVIC 29
  180. #define TT_MAC_ID_VIETNAMESE 30
  181. #define TT_MAC_ID_SINDHI 31
  182. #define TT_MAC_ID_UNINTERP 32
  183. /***********************************************************************
  184. *
  185. * @enum:
  186. * TT_ISO_ID_XXX
  187. *
  188. * @description:
  189. * A list of valid values for the `encoding_id' for
  190. * @TT_PLATFORM_ISO charmaps and name entries.
  191. *
  192. * Their use is now deprecated.
  193. *
  194. * @values:
  195. * TT_ISO_ID_7BIT_ASCII ::
  196. * ASCII.
  197. * TT_ISO_ID_10646 ::
  198. * ISO/10646.
  199. * TT_ISO_ID_8859_1 ::
  200. * Also known as Latin-1.
  201. */
  202. #define TT_ISO_ID_7BIT_ASCII 0
  203. #define TT_ISO_ID_10646 1
  204. #define TT_ISO_ID_8859_1 2
  205. /***********************************************************************
  206. *
  207. * @enum:
  208. * TT_MS_ID_XXX
  209. *
  210. * @description:
  211. * A list of valid values for the `encoding_id' for
  212. * @TT_PLATFORM_MICROSOFT charmaps and name entries.
  213. *
  214. * @values:
  215. * TT_MS_ID_SYMBOL_CS ::
  216. * Corresponds to Microsoft symbol encoding. See
  217. * @FT_ENCODING_MS_SYMBOL.
  218. *
  219. * TT_MS_ID_UNICODE_CS ::
  220. * Corresponds to a Microsoft WGL4 charmap, matching Unicode. See
  221. * @FT_ENCODING_UNICODE.
  222. *
  223. * TT_MS_ID_SJIS ::
  224. * Corresponds to SJIS Japanese encoding. See @FT_ENCODING_SJIS.
  225. *
  226. * TT_MS_ID_GB2312 ::
  227. * Corresponds to Simplified Chinese as used in Mainland China. See
  228. * @FT_ENCODING_GB2312.
  229. *
  230. * TT_MS_ID_BIG_5 ::
  231. * Corresponds to Traditional Chinese as used in Taiwan and Hong Kong.
  232. * See @FT_ENCODING_BIG5.
  233. *
  234. * TT_MS_ID_WANSUNG ::
  235. * Corresponds to Korean Wansung encoding. See @FT_ENCODING_WANSUNG.
  236. *
  237. * TT_MS_ID_JOHAB ::
  238. * Corresponds to Johab encoding. See @FT_ENCODING_JOHAB.
  239. *
  240. * TT_MS_ID_UCS_4 ::
  241. * Corresponds to UCS-4 or UTF-32 charmaps. This has been added to
  242. * the OpenType specification version 1.4 (mid-2001.)
  243. */
  244. #define TT_MS_ID_SYMBOL_CS 0
  245. #define TT_MS_ID_UNICODE_CS 1
  246. #define TT_MS_ID_SJIS 2
  247. #define TT_MS_ID_GB2312 3
  248. #define TT_MS_ID_BIG_5 4
  249. #define TT_MS_ID_WANSUNG 5
  250. #define TT_MS_ID_JOHAB 6
  251. #define TT_MS_ID_UCS_4 10
  252. /***********************************************************************
  253. *
  254. * @enum:
  255. * TT_ADOBE_ID_XXX
  256. *
  257. * @description:
  258. * A list of valid values for the `encoding_id' for
  259. * @TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension!
  260. *
  261. * @values:
  262. * TT_ADOBE_ID_STANDARD ::
  263. * Adobe standard encoding.
  264. * TT_ADOBE_ID_EXPERT ::
  265. * Adobe expert encoding.
  266. * TT_ADOBE_ID_CUSTOM ::
  267. * Adobe custom encoding.
  268. */
  269. #define TT_ADOBE_ID_STANDARD 0
  270. #define TT_ADOBE_ID_EXPERT 1
  271. #define TT_ADOBE_ID_CUSTOM 2
  272. #define TT_ADOBE_ID_LATIN_1 3
  273. /*************************************************************************/
  274. /* */
  275. /* Possible values of the language identifier field in the name records */
  276. /* of the TTF `name' table if the `platform' identifier code is */
  277. /* TT_PLATFORM_MACINTOSH. */
  278. /* */
  279. /* The canonical source for the Apple assigned Language ID's is at */
  280. /* */
  281. /* http://fonts.apple.com/TTRefMan/RM06/Chap6name.html */
  282. /* */
  283. #define TT_MAC_LANGID_ENGLISH 0
  284. #define TT_MAC_LANGID_FRENCH 1
  285. #define TT_MAC_LANGID_GERMAN 2
  286. #define TT_MAC_LANGID_ITALIAN 3
  287. #define TT_MAC_LANGID_DUTCH 4
  288. #define TT_MAC_LANGID_SWEDISH 5
  289. #define TT_MAC_LANGID_SPANISH 6
  290. #define TT_MAC_LANGID_DANISH 7
  291. #define TT_MAC_LANGID_PORTUGUESE 8
  292. #define TT_MAC_LANGID_NORWEGIAN 9
  293. #define TT_MAC_LANGID_HEBREW 10
  294. #define TT_MAC_LANGID_JAPANESE 11
  295. #define TT_MAC_LANGID_ARABIC 12
  296. #define TT_MAC_LANGID_FINNISH 13
  297. #define TT_MAC_LANGID_GREEK 14
  298. #define TT_MAC_LANGID_ICELANDIC 15
  299. #define TT_MAC_LANGID_MALTESE 16
  300. #define TT_MAC_LANGID_TURKISH 17
  301. #define TT_MAC_LANGID_CROATIAN 18
  302. #define TT_MAC_LANGID_CHINESE_TRADITIONAL 19
  303. #define TT_MAC_LANGID_URDU 20
  304. #define TT_MAC_LANGID_HINDI 21
  305. #define TT_MAC_LANGID_THAI 22
  306. #define TT_MAC_LANGID_KOREAN 23
  307. #define TT_MAC_LANGID_LITHUANIAN 24
  308. #define TT_MAC_LANGID_POLISH 25
  309. #define TT_MAC_LANGID_HUNGARIAN 26
  310. #define TT_MAC_LANGID_ESTONIAN 27
  311. #define TT_MAC_LANGID_LETTISH 28
  312. #define TT_MAC_LANGID_SAAMISK 29
  313. #define TT_MAC_LANGID_FAEROESE 30
  314. #define TT_MAC_LANGID_FARSI 31
  315. #define TT_MAC_LANGID_RUSSIAN 32
  316. #define TT_MAC_LANGID_CHINESE_SIMPLIFIED 33
  317. #define TT_MAC_LANGID_FLEMISH 34
  318. #define TT_MAC_LANGID_IRISH 35
  319. #define TT_MAC_LANGID_ALBANIAN 36
  320. #define TT_MAC_LANGID_ROMANIAN 37
  321. #define TT_MAC_LANGID_CZECH 38
  322. #define TT_MAC_LANGID_SLOVAK 39
  323. #define TT_MAC_LANGID_SLOVENIAN 40
  324. #define TT_MAC_LANGID_YIDDISH 41
  325. #define TT_MAC_LANGID_SERBIAN 42
  326. #define TT_MAC_LANGID_MACEDONIAN 43
  327. #define TT_MAC_LANGID_BULGARIAN 44
  328. #define TT_MAC_LANGID_UKRAINIAN 45
  329. #define TT_MAC_LANGID_BYELORUSSIAN 46
  330. #define TT_MAC_LANGID_UZBEK 47
  331. #define TT_MAC_LANGID_KAZAKH 48
  332. #define TT_MAC_LANGID_AZERBAIJANI 49
  333. #define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT 49
  334. #define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT 50
  335. #define TT_MAC_LANGID_ARMENIAN 51
  336. #define TT_MAC_LANGID_GEORGIAN 52
  337. #define TT_MAC_LANGID_MOLDAVIAN 53
  338. #define TT_MAC_LANGID_KIRGHIZ 54
  339. #define TT_MAC_LANGID_TAJIKI 55
  340. #define TT_MAC_LANGID_TURKMEN 56
  341. #define TT_MAC_LANGID_MONGOLIAN 57
  342. #define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT 57
  343. #define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT 58
  344. #define TT_MAC_LANGID_PASHTO 59
  345. #define TT_MAC_LANGID_KURDISH 60
  346. #define TT_MAC_LANGID_KASHMIRI 61
  347. #define TT_MAC_LANGID_SINDHI 62
  348. #define TT_MAC_LANGID_TIBETAN 63
  349. #define TT_MAC_LANGID_NEPALI 64
  350. #define TT_MAC_LANGID_SANSKRIT 65
  351. #define TT_MAC_LANGID_MARATHI 66
  352. #define TT_MAC_LANGID_BENGALI 67
  353. #define TT_MAC_LANGID_ASSAMESE 68
  354. #define TT_MAC_LANGID_GUJARATI 69
  355. #define TT_MAC_LANGID_PUNJABI 70
  356. #define TT_MAC_LANGID_ORIYA 71
  357. #define TT_MAC_LANGID_MALAYALAM 72
  358. #define TT_MAC_LANGID_KANNADA 73
  359. #define TT_MAC_LANGID_TAMIL 74
  360. #define TT_MAC_LANGID_TELUGU 75
  361. #define TT_MAC_LANGID_SINHALESE 76
  362. #define TT_MAC_LANGID_BURMESE 77
  363. #define TT_MAC_LANGID_KHMER 78
  364. #define TT_MAC_LANGID_LAO 79
  365. #define TT_MAC_LANGID_VIETNAMESE 80
  366. #define TT_MAC_LANGID_INDONESIAN 81
  367. #define TT_MAC_LANGID_TAGALOG 82
  368. #define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT 83
  369. #define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT 84
  370. #define TT_MAC_LANGID_AMHARIC 85
  371. #define TT_MAC_LANGID_TIGRINYA 86
  372. #define TT_MAC_LANGID_GALLA 87
  373. #define TT_MAC_LANGID_SOMALI 88
  374. #define TT_MAC_LANGID_SWAHILI 89
  375. #define TT_MAC_LANGID_RUANDA 90
  376. #define TT_MAC_LANGID_RUNDI 91
  377. #define TT_MAC_LANGID_CHEWA 92
  378. #define TT_MAC_LANGID_MALAGASY 93
  379. #define TT_MAC_LANGID_ESPERANTO 94
  380. #define TT_MAC_LANGID_WELSH 128
  381. #define TT_MAC_LANGID_BASQUE 129
  382. #define TT_MAC_LANGID_CATALAN 130
  383. #define TT_MAC_LANGID_LATIN 131
  384. #define TT_MAC_LANGID_QUECHUA 132
  385. #define TT_MAC_LANGID_GUARANI 133
  386. #define TT_MAC_LANGID_AYMARA 134
  387. #define TT_MAC_LANGID_TATAR 135
  388. #define TT_MAC_LANGID_UIGHUR 136
  389. #define TT_MAC_LANGID_DZONGKHA 137
  390. #define TT_MAC_LANGID_JAVANESE 138
  391. #define TT_MAC_LANGID_SUNDANESE 139
  392. #if 0 /* these seem to be errors that have been dropped */
  393. #define TT_MAC_LANGID_SCOTTISH_GAELIC 140
  394. #define TT_MAC_LANGID_IRISH_GAELIC 141
  395. #endif
  396. /* The following codes are new as of 2000-03-10 */
  397. #define TT_MAC_LANGID_GALICIAN 140
  398. #define TT_MAC_LANGID_AFRIKAANS 141
  399. #define TT_MAC_LANGID_BRETON 142
  400. #define TT_MAC_LANGID_INUKTITUT 143
  401. #define TT_MAC_LANGID_SCOTTISH_GAELIC 144
  402. #define TT_MAC_LANGID_MANX_GAELIC 145
  403. #define TT_MAC_LANGID_IRISH_GAELIC 146
  404. #define TT_MAC_LANGID_TONGAN 147
  405. #define TT_MAC_LANGID_GREEK_POLYTONIC 148
  406. #define TT_MAC_LANGID_GREELANDIC 149
  407. #define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150
  408. /*************************************************************************/
  409. /* */
  410. /* Possible values of the language identifier field in the name records */
  411. /* of the TTF `name' table if the `platform' identifier code is */
  412. /* TT_PLATFORM_MICROSOFT. */
  413. /* */
  414. /* The canonical source for the MS assigned LCID's (seems to) be at */
  415. /* */
  416. /* http://www.microsoft.com/globaldev/reference/lcid-all.mspx */
  417. /* */
  418. /* It used to be at various places, among them */
  419. /* */
  420. /* http://www.microsoft.com/typography/OTSPEC/lcid-cp.txt */
  421. /* http://www.microsoft.com/globaldev/reference/loclanghome.asp */
  422. /* http://support.microsoft.com/support/kb/articles/Q224/8/04.ASP */
  423. /* http://msdn.microsoft.com/library/en-us/passport25/ */
  424. /* NET_Passport_VBScript_Documentation/Single_Sign_In/ */
  425. /* Advanced_Single_Sign_In/Localization_and_LCIDs.asp */
  426. /* */
  427. /* Hopefully, it seems now that the Globaldev site prevails... */
  428. /* (updated by Antoine, 2004-02-17) */
  429. #define TT_MS_LANGID_ARABIC_GENERAL 0x0001
  430. #define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401
  431. #define TT_MS_LANGID_ARABIC_IRAQ 0x0801
  432. #define TT_MS_LANGID_ARABIC_EGYPT 0x0c01
  433. #define TT_MS_LANGID_ARABIC_LIBYA 0x1001
  434. #define TT_MS_LANGID_ARABIC_ALGERIA 0x1401
  435. #define TT_MS_LANGID_ARABIC_MOROCCO 0x1801
  436. #define TT_MS_LANGID_ARABIC_TUNISIA 0x1c01
  437. #define TT_MS_LANGID_ARABIC_OMAN 0x2001
  438. #define TT_MS_LANGID_ARABIC_YEMEN 0x2401
  439. #define TT_MS_LANGID_ARABIC_SYRIA 0x2801
  440. #define TT_MS_LANGID_ARABIC_JORDAN 0x2c01
  441. #define TT_MS_LANGID_ARABIC_LEBANON 0x3001
  442. #define TT_MS_LANGID_ARABIC_KUWAIT 0x3401
  443. #define TT_MS_LANGID_ARABIC_UAE 0x3801
  444. #define TT_MS_LANGID_ARABIC_BAHRAIN 0x3c01
  445. #define TT_MS_LANGID_ARABIC_QATAR 0x4001
  446. #define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402
  447. #define TT_MS_LANGID_CATALAN_SPAIN 0x0403
  448. #define TT_MS_LANGID_CHINESE_GENERAL 0x0004
  449. #define TT_MS_LANGID_CHINESE_TAIWAN 0x0404
  450. #define TT_MS_LANGID_CHINESE_PRC 0x0804
  451. #define TT_MS_LANGID_CHINESE_HONG_KONG 0x0c04
  452. #define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004
  453. #if 1 /* this looks like the correct value */
  454. #define TT_MS_LANGID_CHINESE_MACAU 0x1404
  455. #else /* but beware, Microsoft may change its mind...
  456. the most recent Word reference has the following: */
  457. #define TT_MS_LANGID_CHINESE_MACAU TT_MS_LANGID_CHINESE_HONG_KONG
  458. #endif
  459. #if 0 /* used only with .NET `cultures'; commented out */
  460. #define TT_MS_LANGID_CHINESE_TRADITIONAL 0x7C04
  461. #endif
  462. #define TT_MS_LANGID_CZECH_CZECH_REPUBLIC 0x0405
  463. #define TT_MS_LANGID_DANISH_DENMARK 0x0406
  464. #define TT_MS_LANGID_GERMAN_GERMANY 0x0407
  465. #define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807
  466. #define TT_MS_LANGID_GERMAN_AUSTRIA 0x0c07
  467. #define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007
  468. #define TT_MS_LANGID_GERMAN_LIECHTENSTEI 0x1407
  469. #define TT_MS_LANGID_GREEK_GREECE 0x0408
  470. /* don't ask what this one means... It is commented out currently. */
  471. #if 0
  472. #define TT_MS_LANGID_GREEK_GREECE2 0x2008
  473. #endif
  474. #define TT_MS_LANGID_ENGLISH_GENERAL 0x0009
  475. #define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409
  476. #define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809
  477. #define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0c09
  478. #define TT_MS_LANGID_ENGLISH_CANADA 0x1009
  479. #define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409
  480. #define TT_MS_LANGID_ENGLISH_IRELAND 0x1809
  481. #define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1c09
  482. #define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009
  483. #define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409
  484. #define TT_MS_LANGID_ENGLISH_BELIZE 0x2809
  485. #define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2c09
  486. #define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009
  487. #define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409
  488. #define TT_MS_LANGID_ENGLISH_INDONESIA 0x3809
  489. #define TT_MS_LANGID_ENGLISH_HONG_KONG 0x3c09
  490. #define TT_MS_LANGID_ENGLISH_INDIA 0x4009
  491. #define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409
  492. #define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809
  493. #define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040a
  494. #define TT_MS_LANGID_SPANISH_MEXICO 0x080a
  495. #define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT 0x0c0a
  496. #define TT_MS_LANGID_SPANISH_GUATEMALA 0x100a
  497. #define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140a
  498. #define TT_MS_LANGID_SPANISH_PANAMA 0x180a
  499. #define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1c0a
  500. #define TT_MS_LANGID_SPANISH_VENEZUELA 0x200a
  501. #define TT_MS_LANGID_SPANISH_COLOMBIA 0x240a
  502. #define TT_MS_LANGID_SPANISH_PERU 0x280a
  503. #define TT_MS_LANGID_SPANISH_ARGENTINA 0x2c0a
  504. #define TT_MS_LANGID_SPANISH_ECUADOR 0x300a
  505. #define TT_MS_LANGID_SPANISH_CHILE 0x340a
  506. #define TT_MS_LANGID_SPANISH_URUGUAY 0x380a
  507. #define TT_MS_LANGID_SPANISH_PARAGUAY 0x3c0a
  508. #define TT_MS_LANGID_SPANISH_BOLIVIA 0x400a
  509. #define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440a
  510. #define TT_MS_LANGID_SPANISH_HONDURAS 0x480a
  511. #define TT_MS_LANGID_SPANISH_NICARAGUA 0x4c0a
  512. #define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500a
  513. #define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540a
  514. /* The following ID blatantly violate MS specs by using a */
  515. /* sublanguage > 0x1F. */
  516. #define TT_MS_LANGID_SPANISH_LATIN_AMERICA 0xE40aU
  517. #define TT_MS_LANGID_FINNISH_FINLAND 0x040b
  518. #define TT_MS_LANGID_FRENCH_FRANCE 0x040c
  519. #define TT_MS_LANGID_FRENCH_BELGIUM 0x080c
  520. #define TT_MS_LANGID_FRENCH_CANADA 0x0c0c
  521. #define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100c
  522. #define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140c
  523. #define TT_MS_LANGID_FRENCH_MONACO 0x180c
  524. #define TT_MS_LANGID_FRENCH_WEST_INDIES 0x1c0c
  525. #define TT_MS_LANGID_FRENCH_REUNION 0x200c
  526. #define TT_MS_LANGID_FRENCH_CONGO 0x240c
  527. /* which was formerly: */
  528. #define TT_MS_LANGID_FRENCH_ZAIRE TT_MS_LANGID_FRENCH_CONGO
  529. #define TT_MS_LANGID_FRENCH_SENEGAL 0x280c
  530. #define TT_MS_LANGID_FRENCH_CAMEROON 0x2c0c
  531. #define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE 0x300c
  532. #define TT_MS_LANGID_FRENCH_MALI 0x340c
  533. #define TT_MS_LANGID_FRENCH_MOROCCO 0x380c
  534. #define TT_MS_LANGID_FRENCH_HAITI 0x3c0c
  535. /* and another violation of the spec (see 0xE40aU) */
  536. #define TT_MS_LANGID_FRENCH_NORTH_AFRICA 0xE40cU
  537. #define TT_MS_LANGID_HEBREW_ISRAEL 0x040d
  538. #define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040e
  539. #define TT_MS_LANGID_ICELANDIC_ICELAND 0x040f
  540. #define TT_MS_LANGID_ITALIAN_ITALY 0x0410
  541. #define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810
  542. #define TT_MS_LANGID_JAPANESE_JAPAN 0x0411
  543. #define TT_MS_LANGID_KOREAN_EXTENDED_WANSUNG_KOREA 0x0412
  544. #define TT_MS_LANGID_KOREAN_JOHAB_KOREA 0x0812
  545. #define TT_MS_LANGID_DUTCH_NETHERLANDS 0x0413
  546. #define TT_MS_LANGID_DUTCH_BELGIUM 0x0813
  547. #define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL 0x0414
  548. #define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK 0x0814
  549. #define TT_MS_LANGID_POLISH_POLAND 0x0415
  550. #define TT_MS_LANGID_PORTUGUESE_BRAZIL 0x0416
  551. #define TT_MS_LANGID_PORTUGUESE_PORTUGAL 0x0816
  552. #define TT_MS_LANGID_RHAETO_ROMANIC_SWITZERLAND 0x0417
  553. #define TT_MS_LANGID_ROMANIAN_ROMANIA 0x0418
  554. #define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA 0x0818
  555. #define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419
  556. #define TT_MS_LANGID_RUSSIAN_MOLDAVIA 0x0819
  557. #define TT_MS_LANGID_CROATIAN_CROATIA 0x041a
  558. #define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081a
  559. #define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0c1a
  560. #if 0 /* this used to be this value, but it looks like we were wrong */
  561. #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x101a
  562. #else /* current sources say */
  563. #define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101a
  564. #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141a
  565. /* and XPsp2 Platform SDK added (2004-07-26) */
  566. /* Names are shortened to be significant within 40 chars. */
  567. #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181a
  568. #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x181a
  569. #endif
  570. #define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041b
  571. #define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041c
  572. #define TT_MS_LANGID_SWEDISH_SWEDEN 0x041d
  573. #define TT_MS_LANGID_SWEDISH_FINLAND 0x081d
  574. #define TT_MS_LANGID_THAI_THAILAND 0x041e
  575. #define TT_MS_LANGID_TURKISH_TURKEY 0x041f
  576. #define TT_MS_LANGID_URDU_PAKISTAN 0x0420
  577. #define TT_MS_LANGID_URDU_INDIA 0x0820
  578. #define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421
  579. #define TT_MS_LANGID_UKRAINIAN_UKRAINE 0x0422
  580. #define TT_MS_LANGID_BELARUSIAN_BELARUS 0x0423
  581. #define TT_MS_LANGID_SLOVENE_SLOVENIA 0x0424
  582. #define TT_MS_LANGID_ESTONIAN_ESTONIA 0x0425
  583. #define TT_MS_LANGID_LATVIAN_LATVIA 0x0426
  584. #define TT_MS_LANGID_LITHUANIAN_LITHUANIA 0x0427
  585. #define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA 0x0827
  586. #define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428
  587. #define TT_MS_LANGID_FARSI_IRAN 0x0429
  588. #define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042a
  589. #define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042b
  590. #define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042c
  591. #define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082c
  592. #define TT_MS_LANGID_BASQUE_SPAIN 0x042d
  593. #define TT_MS_LANGID_SORBIAN_GERMANY 0x042e
  594. #define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042f
  595. #define TT_MS_LANGID_SUTU_SOUTH_AFRICA 0x0430
  596. #define TT_MS_LANGID_TSONGA_SOUTH_AFRICA 0x0431
  597. #define TT_MS_LANGID_TSWANA_SOUTH_AFRICA 0x0432
  598. #define TT_MS_LANGID_VENDA_SOUTH_AFRICA 0x0433
  599. #define TT_MS_LANGID_XHOSA_SOUTH_AFRICA 0x0434
  600. #define TT_MS_LANGID_ZULU_SOUTH_AFRICA 0x0435
  601. #define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA 0x0436
  602. #define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437
  603. #define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438
  604. #define TT_MS_LANGID_HINDI_INDIA 0x0439
  605. #define TT_MS_LANGID_MALTESE_MALTA 0x043a
  606. /* Added by XPsp2 Platform SDK (2004-07-26) */
  607. #define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043b
  608. #define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083b
  609. #define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3b
  610. #define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103b
  611. #define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143b
  612. #define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183b
  613. #define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3b
  614. #define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203b
  615. #define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243b
  616. /* ... and we also keep our old identifier... */
  617. #define TT_MS_LANGID_SAAMI_LAPONIA 0x043b
  618. #if 0 /* this seems to be a previous inversion */
  619. #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
  620. #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
  621. #else
  622. #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
  623. #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
  624. #endif
  625. #define TT_MS_LANGID_YIDDISH_GERMANY 0x043d
  626. #define TT_MS_LANGID_MALAY_MALAYSIA 0x043e
  627. #define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083e
  628. #define TT_MS_LANGID_KAZAK_KAZAKSTAN 0x043f
  629. #define TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN /* Cyrillic*/ 0x0440
  630. /* alias declared in Windows 2000 */
  631. #define TT_MS_LANGID_KIRGHIZ_KIRGHIZ_REPUBLIC \
  632. TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN
  633. #define TT_MS_LANGID_SWAHILI_KENYA 0x0441
  634. #define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442
  635. #define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443
  636. #define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC 0x0843
  637. #define TT_MS_LANGID_TATAR_TATARSTAN 0x0444
  638. #define TT_MS_LANGID_BENGALI_INDIA 0x0445
  639. #define TT_MS_LANGID_BENGALI_BANGLADESH 0x0845
  640. #define TT_MS_LANGID_PUNJABI_INDIA 0x0446
  641. #define TT_MS_LANGID_PUNJABI_ARABIC_PAKISTAN 0x0846
  642. #define TT_MS_LANGID_GUJARATI_INDIA 0x0447
  643. #define TT_MS_LANGID_ORIYA_INDIA 0x0448
  644. #define TT_MS_LANGID_TAMIL_INDIA 0x0449
  645. #define TT_MS_LANGID_TELUGU_INDIA 0x044a
  646. #define TT_MS_LANGID_KANNADA_INDIA 0x044b
  647. #define TT_MS_LANGID_MALAYALAM_INDIA 0x044c
  648. #define TT_MS_LANGID_ASSAMESE_INDIA 0x044d
  649. #define TT_MS_LANGID_MARATHI_INDIA 0x044e
  650. #define TT_MS_LANGID_SANSKRIT_INDIA 0x044f
  651. #define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450
  652. #define TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN 0x0850
  653. #define TT_MS_LANGID_TIBETAN_CHINA 0x0451
  654. /* Don't use the next constant! It has */
  655. /* (1) the wrong spelling (Dzonghka) */
  656. /* (2) Microsoft doesn't officially define it -- */
  657. /* at least it is not in the List of Local */
  658. /* ID Values. */
  659. /* (3) Dzongkha is not the same language as */
  660. /* Tibetan, so merging it is wrong anyway. */
  661. /* */
  662. /* TT_MS_LANGID_TIBETAN_BHUTAN is correct, BTW. */
  663. #define TT_MS_LANGID_DZONGHKA_BHUTAN 0x0851
  664. #if 0
  665. /* the following used to be defined */
  666. #define TT_MS_LANGID_TIBETAN_BHUTAN 0x0451
  667. /* ... but it was changed; */
  668. #else
  669. /* So we will continue to #define it, but with the correct value */
  670. #define TT_MS_LANGID_TIBETAN_BHUTAN TT_MS_LANGID_DZONGHKA_BHUTAN
  671. #endif
  672. #define TT_MS_LANGID_WELSH_WALES 0x0452
  673. #define TT_MS_LANGID_KHMER_CAMBODIA 0x0453
  674. #define TT_MS_LANGID_LAO_LAOS 0x0454
  675. #define TT_MS_LANGID_BURMESE_MYANMAR 0x0455
  676. #define TT_MS_LANGID_GALICIAN_SPAIN 0x0456
  677. #define TT_MS_LANGID_KONKANI_INDIA 0x0457
  678. #define TT_MS_LANGID_MANIPURI_INDIA /* Bengali */ 0x0458
  679. #define TT_MS_LANGID_SINDHI_INDIA /* Arabic */ 0x0459
  680. #define TT_MS_LANGID_SINDHI_PAKISTAN 0x0859
  681. /* Missing a LCID for Sindhi in Devanagari script */
  682. #define TT_MS_LANGID_SYRIAC_SYRIA 0x045a
  683. #define TT_MS_LANGID_SINHALESE_SRI_LANKA 0x045b
  684. #define TT_MS_LANGID_CHEROKEE_UNITED_STATES 0x045c
  685. #define TT_MS_LANGID_INUKTITUT_CANADA 0x045d
  686. #define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045e
  687. #define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */ 0x045f
  688. #define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN 0x085f
  689. /* Missing a LCID for Tifinagh script */
  690. #define TT_MS_LANGID_KASHMIRI_PAKISTAN /* Arabic */ 0x0460
  691. /* Spelled this way by XPsp2 Platform SDK (2004-07-26) */
  692. /* script is yet unclear... might be Arabic, Nagari or Sharada */
  693. #define TT_MS_LANGID_KASHMIRI_SASIA 0x0860
  694. /* ... and aliased (by MS) for compatibility reasons. */
  695. #define TT_MS_LANGID_KASHMIRI_INDIA TT_MS_LANGID_KASHMIRI_SASIA
  696. #define TT_MS_LANGID_NEPALI_NEPAL 0x0461
  697. #define TT_MS_LANGID_NEPALI_INDIA 0x0861
  698. #define TT_MS_LANGID_FRISIAN_NETHERLANDS 0x0462
  699. #define TT_MS_LANGID_PASHTO_AFGHANISTAN 0x0463
  700. #define TT_MS_LANGID_FILIPINO_PHILIPPINES 0x0464
  701. #define TT_MS_LANGID_DHIVEHI_MALDIVES 0x0465
  702. /* alias declared in Windows 2000 */
  703. #define TT_MS_LANGID_DIVEHI_MALDIVES TT_MS_LANGID_DHIVEHI_MALDIVES
  704. #define TT_MS_LANGID_EDO_NIGERIA 0x0466
  705. #define TT_MS_LANGID_FULFULDE_NIGERIA 0x0467
  706. #define TT_MS_LANGID_HAUSA_NIGERIA 0x0468
  707. #define TT_MS_LANGID_IBIBIO_NIGERIA 0x0469
  708. #define TT_MS_LANGID_YORUBA_NIGERIA 0x046a
  709. #define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046b
  710. #define TT_MS_LANGID_QUECHUA_ECUADOR 0x086b
  711. #define TT_MS_LANGID_QUECHUA_PERU 0x0c6b
  712. #define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA 0x046c
  713. /* Also spelled by XPsp2 Platform SDK (2004-07-26) */
  714. #define TT_MS_LANGID_SOTHO_SOUTHERN_SOUTH_AFRICA \
  715. TT_MS_LANGID_SEPEDI_SOUTH_AFRICA
  716. /* language codes 0x046d, 0x046e and 0x046f are (still) unknown. */
  717. #define TT_MS_LANGID_IGBO_NIGERIA 0x0470
  718. #define TT_MS_LANGID_KANURI_NIGERIA 0x0471
  719. #define TT_MS_LANGID_OROMO_ETHIOPIA 0x0472
  720. #define TT_MS_LANGID_TIGRIGNA_ETHIOPIA 0x0473
  721. #define TT_MS_LANGID_TIGRIGNA_ERYTHREA 0x0873
  722. /* also spelled in the `Passport SDK' list as: */
  723. #define TT_MS_LANGID_TIGRIGNA_ERYTREA TT_MS_LANGID_TIGRIGNA_ERYTHREA
  724. #define TT_MS_LANGID_GUARANI_PARAGUAY 0x0474
  725. #define TT_MS_LANGID_HAWAIIAN_UNITED_STATES 0x0475
  726. #define TT_MS_LANGID_LATIN 0x0476
  727. #define TT_MS_LANGID_SOMALI_SOMALIA 0x0477
  728. /* Note: Yi does not have a (proper) ISO 639-2 code, since it is mostly */
  729. /* not written (but OTOH the peculiar writing system is worth */
  730. /* studying). */
  731. #define TT_MS_LANGID_YI_CHINA 0x0478
  732. #define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES 0x0479
  733. /* language codes from 0x047a to 0x047f are (still) unknown. */
  734. #define TT_MS_LANGID_UIGHUR_CHINA 0x0480
  735. #define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481
  736. #if 0 /* not deemed useful for fonts */
  737. #define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE 0x04ff
  738. #endif
  739. /*************************************************************************/
  740. /* */
  741. /* Possible values of the `name' identifier field in the name records of */
  742. /* the TTF `name' table. These values are platform independent. */
  743. /* */
  744. #define TT_NAME_ID_COPYRIGHT 0
  745. #define TT_NAME_ID_FONT_FAMILY 1
  746. #define TT_NAME_ID_FONT_SUBFAMILY 2
  747. #define TT_NAME_ID_UNIQUE_ID 3
  748. #define TT_NAME_ID_FULL_NAME 4
  749. #define TT_NAME_ID_VERSION_STRING 5
  750. #define TT_NAME_ID_PS_NAME 6
  751. #define TT_NAME_ID_TRADEMARK 7
  752. /* the following values are from the OpenType spec */
  753. #define TT_NAME_ID_MANUFACTURER 8
  754. #define TT_NAME_ID_DESIGNER 9
  755. #define TT_NAME_ID_DESCRIPTION 10
  756. #define TT_NAME_ID_VENDOR_URL 11
  757. #define TT_NAME_ID_DESIGNER_URL 12
  758. #define TT_NAME_ID_LICENSE 13
  759. #define TT_NAME_ID_LICENSE_URL 14
  760. /* number 15 is reserved */
  761. #define TT_NAME_ID_PREFERRED_FAMILY 16
  762. #define TT_NAME_ID_PREFERRED_SUBFAMILY 17
  763. #define TT_NAME_ID_MAC_FULL_NAME 18
  764. /* The following code is new as of 2000-01-21 */
  765. #define TT_NAME_ID_SAMPLE_TEXT 19
  766. /* This is new in OpenType 1.3 */
  767. #define TT_NAME_ID_CID_FINDFONT_NAME 20
  768. /*************************************************************************/
  769. /* */
  770. /* Bit mask values for the Unicode Ranges from the TTF `OS2 ' table. */
  771. /* */
  772. /* Updated 02-Jul-2000. */
  773. /* */
  774. /* General Scripts Area */
  775. /* Bit 0 Basic Latin */
  776. #define TT_UCR_BASIC_LATIN (1L << 0) /* U+0020-U+007E */
  777. /* Bit 1 C1 Controls and Latin-1 Supplement */
  778. #define TT_UCR_LATIN1_SUPPLEMENT (1L << 1) /* U+0080-U+00FF */
  779. /* Bit 2 Latin Extended-A */
  780. #define TT_UCR_LATIN_EXTENDED_A (1L << 2) /* U+0100-U+017F */
  781. /* Bit 3 Latin Extended-B */
  782. #define TT_UCR_LATIN_EXTENDED_B (1L << 3) /* U+0180-U+024F */
  783. /* Bit 4 IPA Extensions */
  784. #define TT_UCR_IPA_EXTENSIONS (1L << 4) /* U+0250-U+02AF */
  785. /* Bit 5 Spacing Modifier Letters */
  786. #define TT_UCR_SPACING_MODIFIER (1L << 5) /* U+02B0-U+02FF */
  787. /* Bit 6 Combining Diacritical Marks */
  788. #define TT_UCR_COMBINING_DIACRITICS (1L << 6) /* U+0300-U+036F */
  789. /* Bit 7 Greek and Coptic */
  790. #define TT_UCR_GREEK (1L << 7) /* U+0370-U+03FF */
  791. /* Bit 8 is reserved (was: Greek Symbols and Coptic) */
  792. /* Bit 9 Cyrillic + */
  793. /* Cyrillic Supplementary */
  794. #define TT_UCR_CYRILLIC (1L << 9) /* U+0400-U+04FF */
  795. /* U+0500-U+052F */
  796. /* Bit 10 Armenian */
  797. #define TT_UCR_ARMENIAN (1L << 10) /* U+0530-U+058F */
  798. /* Bit 11 Hebrew */
  799. #define TT_UCR_HEBREW (1L << 11) /* U+0590-U+05FF */
  800. /* Bit 12 is reserved (was: Hebrew Extended) */
  801. /* Bit 13 Arabic */
  802. #define TT_UCR_ARABIC (1L << 13) /* U+0600-U+06FF */
  803. /* Bit 14 is reserved (was: Arabic Extended) */
  804. /* Bit 15 Devanagari */
  805. #define TT_UCR_DEVANAGARI (1L << 15) /* U+0900-U+097F */
  806. /* Bit 16 Bengali */
  807. #define TT_UCR_BENGALI (1L << 16) /* U+0980-U+09FF */
  808. /* Bit 17 Gurmukhi */
  809. #define TT_UCR_GURMUKHI (1L << 17) /* U+0A00-U+0A7F */
  810. /* Bit 18 Gujarati */
  811. #define TT_UCR_GUJARATI (1L << 18) /* U+0A80-U+0AFF */
  812. /* Bit 19 Oriya */
  813. #define TT_UCR_ORIYA (1L << 19) /* U+0B00-U+0B7F */
  814. /* Bit 20 Tamil */
  815. #define TT_UCR_TAMIL (1L << 20) /* U+0B80-U+0BFF */
  816. /* Bit 21 Telugu */
  817. #define TT_UCR_TELUGU (1L << 21) /* U+0C00-U+0C7F */
  818. /* Bit 22 Kannada */
  819. #define TT_UCR_KANNADA (1L << 22) /* U+0C80-U+0CFF */
  820. /* Bit 23 Malayalam */
  821. #define TT_UCR_MALAYALAM (1L << 23) /* U+0D00-U+0D7F */
  822. /* Bit 24 Thai */
  823. #define TT_UCR_THAI (1L << 24) /* U+0E00-U+0E7F */
  824. /* Bit 25 Lao */
  825. #define TT_UCR_LAO (1L << 25) /* U+0E80-U+0EFF */
  826. /* Bit 26 Georgian */
  827. #define TT_UCR_GEORGIAN (1L << 26) /* U+10A0-U+10FF */
  828. /* Bit 27 is reserved (was Georgian Extended) */
  829. /* Bit 28 Hangul Jamo */
  830. #define TT_UCR_HANGUL_JAMO (1L << 28) /* U+1100-U+11FF */
  831. /* Bit 29 Latin Extended Additional */
  832. #define TT_UCR_LATIN_EXTENDED_ADDITIONAL (1L << 29) /* U+1E00-U+1EFF */
  833. /* Bit 30 Greek Extended */
  834. #define TT_UCR_GREEK_EXTENDED (1L << 30) /* U+1F00-U+1FFF */
  835. /* Symbols Area */
  836. /* Bit 31 General Punctuation */
  837. #define TT_UCR_GENERAL_PUNCTUATION (1L << 31) /* U+2000-U+206F */
  838. /* Bit 32 Superscripts And Subscripts */
  839. #define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS (1L << 0) /* U+2070-U+209F */
  840. /* Bit 33 Currency Symbols */
  841. #define TT_UCR_CURRENCY_SYMBOLS (1L << 1) /* U+20A0-U+20CF */
  842. /* Bit 34 Combining Diacritical Marks For Symbols */
  843. #define TT_UCR_COMBINING_DIACRITICS_SYMB (1L << 2) /* U+20D0-U+20FF */
  844. /* Bit 35 Letterlike Symbols */
  845. #define TT_UCR_LETTERLIKE_SYMBOLS (1L << 3) /* U+2100-U+214F */
  846. /* Bit 36 Number Forms */
  847. #define TT_UCR_NUMBER_FORMS (1L << 4) /* U+2150-U+218F */
  848. /* Bit 37 Arrows + */
  849. /* Supplemental Arrows-A + */
  850. /* Supplemental Arrows-B */
  851. #define TT_UCR_ARROWS (1L << 5) /* U+2190-U+21FF */
  852. /* U+27F0-U+27FF */
  853. /* U+2900-U+297F */
  854. /* Bit 38 Mathematical Operators + */
  855. /* Supplemental Mathematical Operators + */
  856. /* Miscellaneous Mathematical Symbols-A + */
  857. /* Miscellaneous Mathematical Symbols-B */
  858. #define TT_UCR_MATHEMATICAL_OPERATORS (1L << 6) /* U+2200-U+22FF */
  859. /* U+2A00-U+2AFF */
  860. /* U+27C0-U+27EF */
  861. /* U+2980-U+29FF */
  862. /* Bit 39 Miscellaneous Technical */
  863. #define TT_UCR_MISCELLANEOUS_TECHNICAL (1L << 7) /* U+2300-U+23FF */
  864. /* Bit 40 Control Pictures */
  865. #define TT_UCR_CONTROL_PICTURES (1L << 8) /* U+2400-U+243F */
  866. /* Bit 41 Optical Character Recognition */
  867. #define TT_UCR_OCR (1L << 9) /* U+2440-U+245F */
  868. /* Bit 42 Enclosed Alphanumerics */
  869. #define TT_UCR_ENCLOSED_ALPHANUMERICS (1L << 10) /* U+2460-U+24FF */
  870. /* Bit 43 Box Drawing */
  871. #define TT_UCR_BOX_DRAWING (1L << 11) /* U+2500-U+257F */
  872. /* Bit 44 Block Elements */
  873. #define TT_UCR_BLOCK_ELEMENTS (1L << 12) /* U+2580-U+259F */
  874. /* Bit 45 Geometric Shapes */
  875. #define TT_UCR_GEOMETRIC_SHAPES (1L << 13) /* U+25A0-U+25FF */
  876. /* Bit 46 Miscellaneous Symbols */
  877. #define TT_UCR_MISCELLANEOUS_SYMBOLS (1L << 14) /* U+2600-U+26FF */
  878. /* Bit 47 Dingbats */
  879. #define TT_UCR_DINGBATS (1L << 15) /* U+2700-U+27BF */
  880. /* CJK Phonetics and Symbols Area */
  881. /* Bit 48 CJK Symbols and Punctuation */
  882. #define TT_UCR_CJK_SYMBOLS (1L << 16) /* U+3000-U+303F */
  883. /* Bit 49 Hiragana */
  884. #define TT_UCR_HIRAGANA (1L << 17) /* U+3040-U+309F */
  885. /* Bit 50 Katakana + */
  886. /* Katakana Phonetic Extensions */
  887. #define TT_UCR_KATAKANA (1L << 18) /* U+30A0-U+30FF */
  888. /* U+31F0-U+31FF */
  889. /* Bit 51 Bopomofo + */
  890. /* Bopomofo Extended */
  891. #define TT_UCR_BOPOMOFO (1L << 19) /* U+3100-U+312F */
  892. /* U+31A0-U+31BF */
  893. /* Bit 52 Hangul Compatibility Jamo */
  894. #define TT_UCR_HANGUL_COMPATIBILITY_JAMO (1L << 20) /* U+3130-U+318F */
  895. /* Bit 53 Kanbun */
  896. #define TT_UCR_CJK_MISC (1L << 21) /* U+3190-U+319F */
  897. #define TT_UCR_KANBUN TT_UCR_CJK_MISC
  898. /* Bit 54 Enclosed CJK Letters and Months */
  899. #define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS (1L << 22) /* U+3200-U+32FF */
  900. /* Bit 55 CJK Compatibility */
  901. #define TT_UCR_CJK_COMPATIBILITY (1L << 23) /* U+3300-U+33FF */
  902. /* Hangul Syllables Area */
  903. /* Bit 56 Hangul */
  904. #define TT_UCR_HANGUL (1L << 24) /* U+AC00-U+D7A3 */
  905. /* Surrogates Area */
  906. /* Bit 57 High Surrogates + */
  907. /* High Private Use Surrogates + */
  908. /* Low Surrogates */
  909. #define TT_UCR_SURROGATES (1L << 25) /* U+D800-U+DB7F */
  910. /* U+DB80-U+DBFF */
  911. /* U+DC00-U+DFFF */
  912. /* According to OpenType specs v.1.3+, setting bit 57 implies that there */
  913. /* is at least one codepoint beyond the Basic Multilingual Plane that is */
  914. /* supported by this font. So it really means: >= U+10000 */
  915. /* Bit 58 is reserved for Unicode SubRanges */
  916. /* CJK Ideographs Area */
  917. /* Bit 59 CJK Unified Ideographs + */
  918. /* CJK Radicals Supplement + */
  919. /* Kangxi Radicals + */
  920. /* Ideographic Description Characters + */
  921. /* CJK Unified Ideographs Extension A */
  922. /* CJK Unified Ideographs Extension A + */
  923. /* CJK Unified Ideographs Extension B + */
  924. /* Kanbun */
  925. #define TT_UCR_CJK_UNIFIED_IDEOGRAPHS (1L << 27) /* U+4E00-U+9FFF */
  926. /* U+2E80-U+2EFF */
  927. /* U+2F00-U+2FDF */
  928. /* U+2FF0-U+2FFF */
  929. /* U+3400-U+4DB5 */
  930. /*U+20000-U+2A6DF*/
  931. /* U+3190-U+319F */
  932. /* Private Use Area */
  933. /* Bit 60 Private Use */
  934. #define TT_UCR_PRIVATE_USE (1L << 28) /* U+E000-U+F8FF */
  935. /* Compatibility Area and Specials */
  936. /* Bit 61 CJK Compatibility Ideographs + */
  937. /* CJK Compatibility Ideographs Supplement */
  938. #define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS (1L << 29) /* U+F900-U+FAFF */
  939. /*U+2F800-U+2FA1F*/
  940. /* Bit 62 Alphabetic Presentation Forms */
  941. #define TT_UCR_ALPHABETIC_PRESENTATION_FORMS (1L << 30) /* U+FB00-U+FB4F */
  942. /* Bit 63 Arabic Presentation Forms-A */
  943. #define TT_UCR_ARABIC_PRESENTATIONS_A (1L << 31) /* U+FB50-U+FDFF */
  944. /* Bit 64 Combining Half Marks */
  945. #define TT_UCR_COMBINING_HALF_MARKS (1L << 0) /* U+FE20-U+FE2F */
  946. /* Bit 65 CJK Compatibility Forms */
  947. #define TT_UCR_CJK_COMPATIBILITY_FORMS (1L << 1) /* U+FE30-U+FE4F */
  948. /* Bit 66 Small Form Variants */
  949. #define TT_UCR_SMALL_FORM_VARIANTS (1L << 2) /* U+FE50-U+FE6F */
  950. /* Bit 67 Arabic Presentation Forms-B */
  951. #define TT_UCR_ARABIC_PRESENTATIONS_B (1L << 3) /* U+FE70-U+FEFE */
  952. /* Bit 68 Halfwidth and Fullwidth Forms */
  953. #define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS (1L << 4) /* U+FF00-U+FFEF */
  954. /* Bit 69 Specials */
  955. #define TT_UCR_SPECIALS (1L << 5) /* U+FFF0-U+FFFD */
  956. /* Bit 70 Tibetan */
  957. #define TT_UCR_TIBETAN (1L << 6) /* U+0F00-U+0FFF */
  958. /* Bit 71 Syriac */
  959. #define TT_UCR_SYRIAC (1L << 7) /* U+0700-U+074F */
  960. /* Bit 72 Thaana */
  961. #define TT_UCR_THAANA (1L << 8) /* U+0780-U+07BF */
  962. /* Bit 73 Sinhala */
  963. #define TT_UCR_SINHALA (1L << 9) /* U+0D80-U+0DFF */
  964. /* Bit 74 Myanmar */
  965. #define TT_UCR_MYANMAR (1L << 10) /* U+1000-U+109F */
  966. /* Bit 75 Ethiopic */
  967. #define TT_UCR_ETHIOPIC (1L << 11) /* U+1200-U+137F */
  968. /* Bit 76 Cherokee */
  969. #define TT_UCR_CHEROKEE (1L << 12) /* U+13A0-U+13FF */
  970. /* Bit 77 Unified Canadian Aboriginal Syllabics */
  971. #define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS (1L << 13) /* U+1400-U+167F */
  972. /* Bit 78 Ogham */
  973. #define TT_UCR_OGHAM (1L << 14) /* U+1680-U+169F */
  974. /* Bit 79 Runic */
  975. #define TT_UCR_RUNIC (1L << 15) /* U+16A0-U+16FF */
  976. /* Bit 80 Khmer */
  977. #define TT_UCR_KHMER (1L << 16) /* U+1780-U+17FF */
  978. /* Bit 81 Mongolian */
  979. #define TT_UCR_MONGOLIAN (1L << 17) /* U+1800-U+18AF */
  980. /* Bit 82 Braille Patterns */
  981. #define TT_UCR_BRAILLE (1L << 18) /* U+2800-U+28FF */
  982. /* Bit 83 Yi Syllables + */
  983. /* Yi Radicals */
  984. #define TT_UCR_YI (1L << 19) /* U+A000-U+A48F */
  985. /* U+A490-U+A4CF */
  986. /* Bit 84 Tagalog + */
  987. /* Hanunoo + */
  988. /* Buhid + */
  989. /* Tagbanwa */
  990. #define TT_UCR_PHILIPPINE (1L << 20) /* U+1700-U+171F */
  991. /* U+1720-U+173F */
  992. /* U+1740-U+175F */
  993. /* U+1760-U+177F */
  994. /* Bit 85 Old Italic */
  995. #define TT_UCR_OLD_ITALIC (1L << 21) /*U+10300-U+1032F*/
  996. /* Bit 86 Gothic */
  997. #define TT_UCR_GOTHIC (1L << 22) /*U+10330-U+1034F*/
  998. /* Bit 87 Deseret */
  999. #define TT_UCR_DESERET (1L << 23) /*U+10400-U+1044F*/
  1000. /* Bit 88 Byzantine Musical Symbols + */
  1001. /* Musical Symbols */
  1002. #define TT_UCR_MUSICAL_SYMBOLS (1L << 24) /*U+1D000-U+1D0FF*/
  1003. /*U+1D100-U+1D1FF*/
  1004. /* Bit 89 Mathematical Alphanumeric Symbols */
  1005. #define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS (1L << 25) /*U+1D400-U+1D7FF*/
  1006. /* Bit 90 Private Use (plane 15) + */
  1007. /* Private Use (plane 16) */
  1008. #define TT_UCR_PRIVATE_USE_SUPPLEMENTARY (1L << 26) /*U+F0000-U+FFFFD*/
  1009. /*U+100000-U+10FFFD*/
  1010. /* Bit 91 Variation Selectors */
  1011. #define TT_UCR_VARIATION_SELECTORS (1L << 27) /* U+FE00-U+FE0F */
  1012. /* Bit 92 Tags */
  1013. #define TT_UCR_TAGS (1L << 28) /*U+E0000-U+E007F*/
  1014. /*************************************************************************/
  1015. /* */
  1016. /* Some compilers have a very limited length of identifiers. */
  1017. /* */
  1018. #if defined( __TURBOC__ ) && __TURBOC__ < 0x0410 || defined( __PACIFIC__ )
  1019. #define HAVE_LIMIT_ON_IDENTS
  1020. #endif
  1021. #ifndef HAVE_LIMIT_ON_IDENTS
  1022. /*************************************************************************/
  1023. /* */
  1024. /* Here some alias #defines in order to be clearer. */
  1025. /* */
  1026. /* These are not always #defined to stay within the 31 character limit */
  1027. /* which some compilers have. */
  1028. /* */
  1029. /* Credits go to Dave Hoo <[email protected]> for pointing out that modern */
  1030. /* Borland compilers (read: from BC++ 3.1 on) can increase this limit. */
  1031. /* If you get a warning with such a compiler, use the -i40 switch. */
  1032. /* */
  1033. #define TT_UCR_ARABIC_PRESENTATION_FORMS_A \
  1034. TT_UCR_ARABIC_PRESENTATIONS_A
  1035. #define TT_UCR_ARABIC_PRESENTATION_FORMS_B \
  1036. TT_UCR_ARABIC_PRESENTATIONS_B
  1037. #define TT_UCR_COMBINING_DIACRITICAL_MARKS \
  1038. TT_UCR_COMBINING_DIACRITICS
  1039. #define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \
  1040. TT_UCR_COMBINING_DIACRITICS_SYMB
  1041. #endif /* !HAVE_LIMIT_ON_IDENTS */
  1042. FT_END_HEADER
  1043. #endif /* __TTNAMEID_H__ */
  1044. /* END */