@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +10 -582
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
  5. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
  6. package/package.json +1 -1
  7. package/tool.json +1 -1
  8. package/python/bin/2to3 +0 -7
  9. package/python/bin/2to3-3.12 +0 -7
  10. package/python/bin/idle3 +0 -7
  11. package/python/bin/idle3.12 +0 -7
  12. package/python/bin/pip +0 -8
  13. package/python/bin/pip3 +0 -8
  14. package/python/bin/pip3.12 +0 -8
  15. package/python/bin/pydoc3 +0 -7
  16. package/python/bin/pydoc3.12 +0 -7
  17. package/python/bin/python +0 -0
  18. package/python/bin/python3 +0 -0
  19. package/python/bin/python3-config +0 -76
  20. package/python/bin/python3.12-config +0 -76
  21. package/python/include/python3.12/Python.h +0 -109
  22. package/python/include/python3.12/abstract.h +0 -899
  23. package/python/include/python3.12/bltinmodule.h +0 -14
  24. package/python/include/python3.12/boolobject.h +0 -42
  25. package/python/include/python3.12/bytearrayobject.h +0 -44
  26. package/python/include/python3.12/bytesobject.h +0 -69
  27. package/python/include/python3.12/ceval.h +0 -168
  28. package/python/include/python3.12/codecs.h +0 -248
  29. package/python/include/python3.12/compile.h +0 -22
  30. package/python/include/python3.12/complexobject.h +0 -30
  31. package/python/include/python3.12/cpython/abstract.h +0 -206
  32. package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
  33. package/python/include/python3.12/cpython/bytesobject.h +0 -133
  34. package/python/include/python3.12/cpython/cellobject.h +0 -44
  35. package/python/include/python3.12/cpython/ceval.h +0 -35
  36. package/python/include/python3.12/cpython/classobject.h +0 -71
  37. package/python/include/python3.12/cpython/code.h +0 -389
  38. package/python/include/python3.12/cpython/compile.h +0 -69
  39. package/python/include/python3.12/cpython/complexobject.h +0 -44
  40. package/python/include/python3.12/cpython/context.h +0 -78
  41. package/python/include/python3.12/cpython/descrobject.h +0 -64
  42. package/python/include/python3.12/cpython/dictobject.h +0 -118
  43. package/python/include/python3.12/cpython/fileobject.h +0 -19
  44. package/python/include/python3.12/cpython/fileutils.h +0 -8
  45. package/python/include/python3.12/cpython/floatobject.h +0 -27
  46. package/python/include/python3.12/cpython/frameobject.h +0 -29
  47. package/python/include/python3.12/cpython/funcobject.h +0 -190
  48. package/python/include/python3.12/cpython/genobject.h +0 -89
  49. package/python/include/python3.12/cpython/import.h +0 -46
  50. package/python/include/python3.12/cpython/initconfig.h +0 -256
  51. package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
  52. package/python/include/python3.12/cpython/listobject.h +0 -47
  53. package/python/include/python3.12/cpython/longintrepr.h +0 -133
  54. package/python/include/python3.12/cpython/longobject.h +0 -100
  55. package/python/include/python3.12/cpython/memoryobject.h +0 -52
  56. package/python/include/python3.12/cpython/methodobject.h +0 -66
  57. package/python/include/python3.12/cpython/modsupport.h +0 -109
  58. package/python/include/python3.12/cpython/object.h +0 -575
  59. package/python/include/python3.12/cpython/objimpl.h +0 -95
  60. package/python/include/python3.12/cpython/odictobject.h +0 -43
  61. package/python/include/python3.12/cpython/picklebufobject.h +0 -31
  62. package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
  63. package/python/include/python3.12/cpython/pyctype.h +0 -39
  64. package/python/include/python3.12/cpython/pydebug.h +0 -38
  65. package/python/include/python3.12/cpython/pyerrors.h +0 -178
  66. package/python/include/python3.12/cpython/pyfpe.h +0 -15
  67. package/python/include/python3.12/cpython/pyframe.h +0 -35
  68. package/python/include/python3.12/cpython/pylifecycle.h +0 -111
  69. package/python/include/python3.12/cpython/pymem.h +0 -98
  70. package/python/include/python3.12/cpython/pystate.h +0 -456
  71. package/python/include/python3.12/cpython/pythonrun.h +0 -121
  72. package/python/include/python3.12/cpython/pythread.h +0 -42
  73. package/python/include/python3.12/cpython/pytime.h +0 -331
  74. package/python/include/python3.12/cpython/setobject.h +0 -72
  75. package/python/include/python3.12/cpython/sysmodule.h +0 -16
  76. package/python/include/python3.12/cpython/traceback.h +0 -16
  77. package/python/include/python3.12/cpython/tupleobject.h +0 -39
  78. package/python/include/python3.12/cpython/unicodeobject.h +0 -976
  79. package/python/include/python3.12/cpython/warnings.h +0 -20
  80. package/python/include/python3.12/cpython/weakrefobject.h +0 -56
  81. package/python/include/python3.12/datetime.h +0 -267
  82. package/python/include/python3.12/descrobject.h +0 -100
  83. package/python/include/python3.12/dictobject.h +0 -97
  84. package/python/include/python3.12/dynamic_annotations.h +0 -499
  85. package/python/include/python3.12/enumobject.h +0 -17
  86. package/python/include/python3.12/errcode.h +0 -38
  87. package/python/include/python3.12/exports.h +0 -36
  88. package/python/include/python3.12/fileobject.h +0 -49
  89. package/python/include/python3.12/fileutils.h +0 -26
  90. package/python/include/python3.12/floatobject.h +0 -54
  91. package/python/include/python3.12/frameobject.h +0 -20
  92. package/python/include/python3.12/genericaliasobject.h +0 -14
  93. package/python/include/python3.12/import.h +0 -98
  94. package/python/include/python3.12/internal/pycore_abstract.h +0 -25
  95. package/python/include/python3.12/internal/pycore_asdl.h +0 -112
  96. package/python/include/python3.12/internal/pycore_ast.h +0 -922
  97. package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
  98. package/python/include/python3.12/internal/pycore_atexit.h +0 -57
  99. package/python/include/python3.12/internal/pycore_atomic.h +0 -557
  100. package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  101. package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
  102. package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  103. package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  104. package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
  105. package/python/include/python3.12/internal/pycore_call.h +0 -133
  106. package/python/include/python3.12/internal/pycore_ceval.h +0 -164
  107. package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
  108. package/python/include/python3.12/internal/pycore_code.h +0 -496
  109. package/python/include/python3.12/internal/pycore_compile.h +0 -118
  110. package/python/include/python3.12/internal/pycore_condvar.h +0 -99
  111. package/python/include/python3.12/internal/pycore_context.h +0 -71
  112. package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
  113. package/python/include/python3.12/internal/pycore_dict.h +0 -199
  114. package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
  115. package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
  116. package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  117. package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
  118. package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
  119. package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
  120. package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  121. package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
  122. package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
  123. package/python/include/python3.12/internal/pycore_format.h +0 -27
  124. package/python/include/python3.12/internal/pycore_frame.h +0 -283
  125. package/python/include/python3.12/internal/pycore_function.h +0 -26
  126. package/python/include/python3.12/internal/pycore_gc.h +0 -211
  127. package/python/include/python3.12/internal/pycore_genobject.h +0 -49
  128. package/python/include/python3.12/internal/pycore_getopt.h +0 -22
  129. package/python/include/python3.12/internal/pycore_gil.h +0 -50
  130. package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
  131. package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  132. package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
  133. package/python/include/python3.12/internal/pycore_hamt.h +0 -134
  134. package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
  135. package/python/include/python3.12/internal/pycore_import.h +0 -183
  136. package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
  137. package/python/include/python3.12/internal/pycore_instruments.h +0 -106
  138. package/python/include/python3.12/internal/pycore_interp.h +0 -275
  139. package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
  140. package/python/include/python3.12/internal/pycore_list.h +0 -83
  141. package/python/include/python3.12/internal/pycore_long.h +0 -258
  142. package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
  143. package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
  144. package/python/include/python3.12/internal/pycore_namespace.h +0 -20
  145. package/python/include/python3.12/internal/pycore_object.h +0 -455
  146. package/python/include/python3.12/internal/pycore_object_state.h +0 -42
  147. package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
  148. package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  149. package/python/include/python3.12/internal/pycore_opcode.h +0 -587
  150. package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  151. package/python/include/python3.12/internal/pycore_parser.h +0 -66
  152. package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
  153. package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
  154. package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
  155. package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
  156. package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  157. package/python/include/python3.12/internal/pycore_pymath.h +0 -205
  158. package/python/include/python3.12/internal/pycore_pymem.h +0 -98
  159. package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
  160. package/python/include/python3.12/internal/pycore_pystate.h +0 -180
  161. package/python/include/python3.12/internal/pycore_pythread.h +0 -81
  162. package/python/include/python3.12/internal/pycore_range.h +0 -21
  163. package/python/include/python3.12/internal/pycore_runtime.h +0 -235
  164. package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
  165. package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  166. package/python/include/python3.12/internal/pycore_signal.h +0 -98
  167. package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
  168. package/python/include/python3.12/internal/pycore_strhex.h +0 -36
  169. package/python/include/python3.12/internal/pycore_structseq.h +0 -39
  170. package/python/include/python3.12/internal/pycore_symtable.h +0 -160
  171. package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
  172. package/python/include/python3.12/internal/pycore_time.h +0 -25
  173. package/python/include/python3.12/internal/pycore_token.h +0 -108
  174. package/python/include/python3.12/internal/pycore_traceback.h +0 -101
  175. package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  176. package/python/include/python3.12/internal/pycore_tuple.h +0 -79
  177. package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
  178. package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
  179. package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
  180. package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  181. package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  182. package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
  183. package/python/include/python3.12/internal/pycore_warnings.h +0 -29
  184. package/python/include/python3.12/interpreteridobject.h +0 -17
  185. package/python/include/python3.12/intrcheck.h +0 -30
  186. package/python/include/python3.12/iterobject.h +0 -27
  187. package/python/include/python3.12/listobject.h +0 -52
  188. package/python/include/python3.12/longobject.h +0 -108
  189. package/python/include/python3.12/marshal.h +0 -31
  190. package/python/include/python3.12/memoryobject.h +0 -34
  191. package/python/include/python3.12/methodobject.h +0 -132
  192. package/python/include/python3.12/modsupport.h +0 -168
  193. package/python/include/python3.12/moduleobject.h +0 -119
  194. package/python/include/python3.12/object.h +0 -993
  195. package/python/include/python3.12/objimpl.h +0 -234
  196. package/python/include/python3.12/opcode.h +0 -271
  197. package/python/include/python3.12/osdefs.h +0 -51
  198. package/python/include/python3.12/osmodule.h +0 -17
  199. package/python/include/python3.12/patchlevel.h +0 -35
  200. package/python/include/python3.12/py_curses.h +0 -99
  201. package/python/include/python3.12/pybuffer.h +0 -145
  202. package/python/include/python3.12/pycapsule.h +0 -59
  203. package/python/include/python3.12/pyconfig.h +0 -1943
  204. package/python/include/python3.12/pydtrace.h +0 -59
  205. package/python/include/python3.12/pyerrors.h +0 -337
  206. package/python/include/python3.12/pyexpat.h +0 -70
  207. package/python/include/python3.12/pyframe.h +0 -26
  208. package/python/include/python3.12/pyhash.h +0 -146
  209. package/python/include/python3.12/pylifecycle.h +0 -78
  210. package/python/include/python3.12/pymacconfig.h +0 -99
  211. package/python/include/python3.12/pymacro.h +0 -172
  212. package/python/include/python3.12/pymath.h +0 -62
  213. package/python/include/python3.12/pymem.h +0 -104
  214. package/python/include/python3.12/pyport.h +0 -782
  215. package/python/include/python3.12/pystate.h +0 -132
  216. package/python/include/python3.12/pystats.h +0 -110
  217. package/python/include/python3.12/pystrcmp.h +0 -23
  218. package/python/include/python3.12/pystrtod.h +0 -46
  219. package/python/include/python3.12/pythonrun.h +0 -49
  220. package/python/include/python3.12/pythread.h +0 -135
  221. package/python/include/python3.12/pytypedefs.h +0 -30
  222. package/python/include/python3.12/rangeobject.h +0 -27
  223. package/python/include/python3.12/setobject.h +0 -49
  224. package/python/include/python3.12/sliceobject.h +0 -65
  225. package/python/include/python3.12/structmember.h +0 -56
  226. package/python/include/python3.12/structseq.h +0 -49
  227. package/python/include/python3.12/sysmodule.h +0 -54
  228. package/python/include/python3.12/traceback.h +0 -26
  229. package/python/include/python3.12/tracemalloc.h +0 -77
  230. package/python/include/python3.12/tupleobject.h +0 -46
  231. package/python/include/python3.12/typeslots.h +0 -88
  232. package/python/include/python3.12/unicodeobject.h +0 -1020
  233. package/python/include/python3.12/warnings.h +0 -45
  234. package/python/include/python3.12/weakrefobject.h +0 -42
  235. package/python/lib/itcl4.3.8/itcl.tcl +0 -151
  236. package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
  237. package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
  238. package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
  239. package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
  240. package/python/lib/itcl4.3.8/libitclstub.a +0 -0
  241. package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
  242. package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
  243. package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
  244. package/python/lib/libpython3.12.dylib +0 -0
  245. package/python/lib/libtcl9.0.dylib +0 -0
  246. package/python/lib/libtcl9tk9.0.dylib +0 -0
  247. package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
  248. package/python/lib/pkgconfig/python-3.12.pc +0 -13
  249. package/python/lib/pkgconfig/python3-embed.pc +0 -13
  250. package/python/lib/pkgconfig/python3.pc +0 -13
  251. package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
  252. package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
  253. package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  254. package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
  255. package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  256. package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
  257. package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  258. package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  259. package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  260. package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  261. package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
  262. package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
  263. package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
  264. package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
  265. package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
  266. package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  267. package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  268. package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  269. package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  270. package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  271. package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  272. package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  273. package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  274. package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  275. package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  276. package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  277. package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  278. package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
  279. package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  280. package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  281. package/python/lib/python3.12/idlelib/News3.txt +0 -1390
  282. package/python/lib/python3.12/idlelib/README.txt +0 -290
  283. package/python/lib/python3.12/idlelib/TODO.txt +0 -210
  284. package/python/lib/python3.12/idlelib/__init__.py +0 -10
  285. package/python/lib/python3.12/idlelib/__main__.py +0 -7
  286. package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
  287. package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  288. package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
  289. package/python/lib/python3.12/idlelib/browser.py +0 -260
  290. package/python/lib/python3.12/idlelib/calltip.py +0 -205
  291. package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
  292. package/python/lib/python3.12/idlelib/codecontext.py +0 -270
  293. package/python/lib/python3.12/idlelib/colorizer.py +0 -384
  294. package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
  295. package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
  296. package/python/lib/python3.12/idlelib/config-keys.def +0 -309
  297. package/python/lib/python3.12/idlelib/config-main.def +0 -93
  298. package/python/lib/python3.12/idlelib/config.py +0 -917
  299. package/python/lib/python3.12/idlelib/config_key.py +0 -354
  300. package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
  301. package/python/lib/python3.12/idlelib/debugger.py +0 -602
  302. package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
  303. package/python/lib/python3.12/idlelib/debugobj.py +0 -146
  304. package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
  305. package/python/lib/python3.12/idlelib/delegator.py +0 -34
  306. package/python/lib/python3.12/idlelib/dynoption.py +0 -57
  307. package/python/lib/python3.12/idlelib/editor.py +0 -1767
  308. package/python/lib/python3.12/idlelib/extend.txt +0 -83
  309. package/python/lib/python3.12/idlelib/filelist.py +0 -132
  310. package/python/lib/python3.12/idlelib/format.py +0 -426
  311. package/python/lib/python3.12/idlelib/grep.py +0 -223
  312. package/python/lib/python3.12/idlelib/help.html +0 -805
  313. package/python/lib/python3.12/idlelib/help.py +0 -297
  314. package/python/lib/python3.12/idlelib/help_about.py +0 -211
  315. package/python/lib/python3.12/idlelib/history.py +0 -106
  316. package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
  317. package/python/lib/python3.12/idlelib/idle.bat +0 -4
  318. package/python/lib/python3.12/idlelib/idle.py +0 -14
  319. package/python/lib/python3.12/idlelib/idle.pyw +0 -17
  320. package/python/lib/python3.12/idlelib/iomenu.py +0 -441
  321. package/python/lib/python3.12/idlelib/macosx.py +0 -278
  322. package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
  323. package/python/lib/python3.12/idlelib/multicall.py +0 -451
  324. package/python/lib/python3.12/idlelib/outwin.py +0 -188
  325. package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
  326. package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
  327. package/python/lib/python3.12/idlelib/percolator.py +0 -120
  328. package/python/lib/python3.12/idlelib/pyparse.py +0 -589
  329. package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
  330. package/python/lib/python3.12/idlelib/query.py +0 -392
  331. package/python/lib/python3.12/idlelib/redirector.py +0 -173
  332. package/python/lib/python3.12/idlelib/replace.py +0 -300
  333. package/python/lib/python3.12/idlelib/rpc.py +0 -635
  334. package/python/lib/python3.12/idlelib/run.py +0 -646
  335. package/python/lib/python3.12/idlelib/runscript.py +0 -213
  336. package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
  337. package/python/lib/python3.12/idlelib/search.py +0 -165
  338. package/python/lib/python3.12/idlelib/searchbase.py +0 -210
  339. package/python/lib/python3.12/idlelib/searchengine.py +0 -235
  340. package/python/lib/python3.12/idlelib/sidebar.py +0 -544
  341. package/python/lib/python3.12/idlelib/squeezer.py +0 -345
  342. package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
  343. package/python/lib/python3.12/idlelib/statusbar.py +0 -52
  344. package/python/lib/python3.12/idlelib/textview.py +0 -193
  345. package/python/lib/python3.12/idlelib/tooltip.py +0 -190
  346. package/python/lib/python3.12/idlelib/tree.py +0 -509
  347. package/python/lib/python3.12/idlelib/undo.py +0 -367
  348. package/python/lib/python3.12/idlelib/util.py +0 -37
  349. package/python/lib/python3.12/idlelib/window.py +0 -98
  350. package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
  351. package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
  352. package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
  353. package/python/lib/python3.12/tkinter/__init__.py +0 -4682
  354. package/python/lib/python3.12/tkinter/__main__.py +0 -7
  355. package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
  356. package/python/lib/python3.12/tkinter/commondialog.py +0 -53
  357. package/python/lib/python3.12/tkinter/constants.py +0 -110
  358. package/python/lib/python3.12/tkinter/dialog.py +0 -49
  359. package/python/lib/python3.12/tkinter/dnd.py +0 -324
  360. package/python/lib/python3.12/tkinter/filedialog.py +0 -492
  361. package/python/lib/python3.12/tkinter/font.py +0 -239
  362. package/python/lib/python3.12/tkinter/messagebox.py +0 -146
  363. package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
  364. package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
  365. package/python/lib/python3.12/tkinter/tix.py +0 -1948
  366. package/python/lib/python3.12/tkinter/ttk.py +0 -1640
  367. package/python/lib/python3.12/turtle.py +0 -4207
  368. package/python/lib/python3.12/turtledemo/__init__.py +0 -14
  369. package/python/lib/python3.12/turtledemo/__main__.py +0 -404
  370. package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
  371. package/python/lib/python3.12/turtledemo/chaos.py +0 -59
  372. package/python/lib/python3.12/turtledemo/clock.py +0 -138
  373. package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
  374. package/python/lib/python3.12/turtledemo/forest.py +0 -108
  375. package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  376. package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  377. package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  378. package/python/lib/python3.12/turtledemo/nim.py +0 -226
  379. package/python/lib/python3.12/turtledemo/paint.py +0 -54
  380. package/python/lib/python3.12/turtledemo/peace.py +0 -61
  381. package/python/lib/python3.12/turtledemo/penrose.py +0 -175
  382. package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  383. package/python/lib/python3.12/turtledemo/rosette.py +0 -65
  384. package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
  385. package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  386. package/python/lib/python3.12/turtledemo/tree.py +0 -62
  387. package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
  388. package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
  389. package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
  390. package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
  391. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
  392. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
  393. package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
  394. package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
  395. package/python/lib/tcl9.0/auto.tcl +0 -710
  396. package/python/lib/tcl9.0/clock.tcl +0 -2110
  397. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
  398. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
  399. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
  400. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  401. package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
  402. package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
  403. package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
  404. package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
  405. package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
  406. package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
  407. package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
  408. package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
  409. package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
  410. package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
  411. package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
  412. package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
  413. package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
  414. package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
  415. package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
  416. package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
  417. package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
  418. package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
  419. package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
  420. package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
  421. package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
  422. package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
  423. package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
  424. package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
  425. package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
  426. package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
  427. package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
  428. package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
  429. package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
  430. package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
  431. package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
  432. package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
  433. package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
  434. package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
  435. package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
  436. package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
  437. package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
  438. package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
  439. package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
  440. package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
  441. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
  442. package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
  443. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
  444. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
  445. package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
  446. package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
  447. package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
  448. package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
  449. package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
  450. package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
  451. package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
  452. package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
  453. package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
  454. package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
  455. package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
  456. package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
  457. package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
  458. package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
  459. package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
  460. package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
  461. package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
  462. package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
  463. package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
  464. package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
  465. package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
  466. package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
  467. package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
  468. package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
  469. package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
  470. package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
  471. package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
  472. package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
  473. package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
  474. package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
  475. package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
  476. package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
  477. package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
  478. package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
  479. package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
  480. package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
  481. package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
  482. package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
  483. package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
  484. package/python/lib/tcl9.0/foreachline.tcl +0 -25
  485. package/python/lib/tcl9.0/history.tcl +0 -335
  486. package/python/lib/tcl9.0/icu.tcl +0 -145
  487. package/python/lib/tcl9.0/init.tcl +0 -772
  488. package/python/lib/tcl9.0/install.tcl +0 -274
  489. package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
  490. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
  491. package/python/lib/tcl9.0/package.tcl +0 -776
  492. package/python/lib/tcl9.0/parray.tcl +0 -28
  493. package/python/lib/tcl9.0/readfile.tcl +0 -23
  494. package/python/lib/tcl9.0/safe.tcl +0 -1459
  495. package/python/lib/tcl9.0/tclAppInit.c +0 -183
  496. package/python/lib/tcl9.0/tclIndex +0 -112
  497. package/python/lib/tcl9.0/tm.tcl +0 -378
  498. package/python/lib/tcl9.0/word.tcl +0 -155
  499. package/python/lib/tcl9.0/writefile.tcl +0 -37
  500. package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
  501. package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
  502. package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
  503. package/python/lib/thread3.0.6/ttrace.tcl +0 -943
  504. package/python/lib/tk9.0/bgerror.tcl +0 -282
  505. package/python/lib/tk9.0/button.tcl +0 -782
  506. package/python/lib/tk9.0/choosedir.tcl +0 -310
  507. package/python/lib/tk9.0/clrpick.tcl +0 -696
  508. package/python/lib/tk9.0/comdlg.tcl +0 -322
  509. package/python/lib/tk9.0/console.tcl +0 -1148
  510. package/python/lib/tk9.0/dialog.tcl +0 -175
  511. package/python/lib/tk9.0/entry.tcl +0 -721
  512. package/python/lib/tk9.0/focus.tcl +0 -178
  513. package/python/lib/tk9.0/fontchooser.tcl +0 -512
  514. package/python/lib/tk9.0/iconbadges.tcl +0 -253
  515. package/python/lib/tk9.0/iconlist.tcl +0 -705
  516. package/python/lib/tk9.0/icons.tcl +0 -54
  517. package/python/lib/tk9.0/images/README +0 -7
  518. package/python/lib/tk9.0/images/logo.eps +0 -2091
  519. package/python/lib/tk9.0/images/logo100.gif +0 -0
  520. package/python/lib/tk9.0/images/logo64.gif +0 -0
  521. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  522. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  523. package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
  524. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  525. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  526. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  527. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  528. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  529. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  530. package/python/lib/tk9.0/listbox.tcl +0 -522
  531. package/python/lib/tk9.0/megawidget.tcl +0 -297
  532. package/python/lib/tk9.0/menu.tcl +0 -1376
  533. package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
  534. package/python/lib/tk9.0/msgbox.tcl +0 -454
  535. package/python/lib/tk9.0/optMenu.tcl +0 -43
  536. package/python/lib/tk9.0/palette.tcl +0 -283
  537. package/python/lib/tk9.0/panedwindow.tcl +0 -194
  538. package/python/lib/tk9.0/pkgIndex.tcl +0 -3
  539. package/python/lib/tk9.0/print.tcl +0 -1460
  540. package/python/lib/tk9.0/safetk.tcl +0 -262
  541. package/python/lib/tk9.0/scale.tcl +0 -299
  542. package/python/lib/tk9.0/scaling.tcl +0 -232
  543. package/python/lib/tk9.0/scrlbar.tcl +0 -506
  544. package/python/lib/tk9.0/spinbox.tcl +0 -590
  545. package/python/lib/tk9.0/systray.tcl +0 -483
  546. package/python/lib/tk9.0/tclIndex +0 -252
  547. package/python/lib/tk9.0/tearoff.tcl +0 -155
  548. package/python/lib/tk9.0/text.tcl +0 -1295
  549. package/python/lib/tk9.0/tk.tcl +0 -853
  550. package/python/lib/tk9.0/tkAppInit.c +0 -200
  551. package/python/lib/tk9.0/tkfbox.tcl +0 -1251
  552. package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
  553. package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
  554. package/python/lib/tk9.0/ttk/button.tcl +0 -83
  555. package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
  556. package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
  557. package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
  558. package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
  559. package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
  560. package/python/lib/tk9.0/ttk/entry.tcl +0 -678
  561. package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
  562. package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
  563. package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
  564. package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
  565. package/python/lib/tk9.0/ttk/progress.tcl +0 -55
  566. package/python/lib/tk9.0/ttk/scale.tcl +0 -94
  567. package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
  568. package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
  569. package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
  570. package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
  571. package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
  572. package/python/lib/tk9.0/ttk/utils.tcl +0 -317
  573. package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
  574. package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
  575. package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
  576. package/python/lib/tk9.0/xmfbox.tcl +0 -982
  577. package/python/share/man/man1/python.1 +0 -630
  578. package/python/share/man/man1/python3.1 +0 -630
  579. package/python/share/man/man1/python3.12.1 +0 -630
  580. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
  581. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
  582. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
  583. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,1349 +0,0 @@
1
- # msgcat.tcl --
2
- #
3
- # This file defines various procedures which implement a
4
- # message catalog facility for Tcl programs. It should be
5
- # loaded with the command "package require msgcat".
6
- #
7
- # Copyright © 2010-2018 Harald Oehlmann.
8
- # Copyright © 1998-2000 Ajuba Solutions.
9
- # Copyright © 1998 Mark Harrison.
10
- #
11
- # See the file "license.terms" for information on usage and redistribution
12
- # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13
-
14
- # We use oo::define::self, which is new in Tcl 9.0
15
- package require Tcl 9.0-
16
- # When the version number changes, be sure to update the pkgIndex.tcl file,
17
- # and the installation directory in the Makefiles.
18
- package provide msgcat 1.7.1
19
-
20
- namespace eval msgcat {
21
- namespace export mc mcn mcexists mcload mclocale mcmax\
22
- mcmset mcpreferences mcset\
23
- mcunknown mcflset mcflmset mcloadedlocales mcforgetpackage\
24
- mcpackagenamespaceget mcpackageconfig mcpackagelocale mcutil
25
-
26
- # Records the list of locales to search
27
- variable Loclist {}
28
-
29
- # List of currently loaded locales
30
- variable LoadedLocales {}
31
-
32
- # Records the locale of the currently sourced message catalogue file
33
- variable FileLocale
34
-
35
- # Configuration values per Package (e.g. client namespace).
36
- # The dict key is of the form "<option> <namespace>" and the value is the
37
- # configuration option. A non-existing key is an unset option.
38
- variable PackageConfig [dict create mcfolder {} loadcmd {} changecmd {}\
39
- unknowncmd {} loadedlocales {} loclist {}]
40
-
41
- # Records the mapping between source strings and translated strings. The
42
- # dict key is of the form "<namespace> <locale> <src>", where locale and
43
- # namespace should be themselves dict values and the value is
44
- # the translated string.
45
- variable Msgs [dict create]
46
- }
47
-
48
- # create ensemble namespace for mcutil command
49
- namespace eval msgcat::mcutil {
50
- namespace export getsystemlocale getpreferences
51
- namespace ensemble create -prefix 0
52
-
53
- # Map of language codes used in Windows registry to those of ISO-639
54
- if {[info sharedlibextension] eq ".dll"} {
55
- variable WinRegToISO639 [dict create {*}{
56
- 01 ar 0401 ar_SA 0801 ar_IQ 0c01 ar_EG 1001 ar_LY 1401 ar_DZ
57
- 1801 ar_MA 1c01 ar_TN 2001 ar_OM 2401 ar_YE 2801 ar_SY
58
- 2c01 ar_JO 3001 ar_LB 3401 ar_KW 3801 ar_AE 3c01 ar_BH
59
- 4001 ar_QA
60
- 02 bg 0402 bg_BG
61
- 03 ca 0403 ca_ES
62
- 04 zh 0404 zh_TW 0804 zh_CN 0c04 zh_HK 1004 zh_SG 1404 zh_MO
63
- 05 cs 0405 cs_CZ
64
- 06 da 0406 da_DK
65
- 07 de 0407 de_DE 0807 de_CH 0c07 de_AT 1007 de_LU 1407 de_LI
66
- 08 el 0408 el_GR
67
- 09 en 0409 en_US 0809 en_GB 0c09 en_AU 1009 en_CA 1409 en_NZ
68
- 1809 en_IE 1c09 en_ZA 2009 en_JM 2409 en_GD 2809 en_BZ
69
- 2c09 en_TT 3009 en_ZW 3409 en_PH
70
- 0a es 040a es_ES 080a es_MX 0c0a es_ES@modern 100a es_GT 140a es_CR
71
- 180a es_PA 1c0a es_DO 200a es_VE 240a es_CO 280a es_PE
72
- 2c0a es_AR 300a es_EC 340a es_CL 380a es_UY 3c0a es_PY
73
- 400a es_BO 440a es_SV 480a es_HN 4c0a es_NI 500a es_PR
74
- 0b fi 040b fi_FI
75
- 0c fr 040c fr_FR 080c fr_BE 0c0c fr_CA 100c fr_CH 140c fr_LU
76
- 180c fr_MC
77
- 0d he 040d he_IL
78
- 0e hu 040e hu_HU
79
- 0f is 040f is_IS
80
- 10 it 0410 it_IT 0810 it_CH
81
- 11 ja 0411 ja_JP
82
- 12 ko 0412 ko_KR
83
- 13 nl 0413 nl_NL 0813 nl_BE
84
- 14 no 0414 no_NO 0814 nn_NO
85
- 15 pl 0415 pl_PL
86
- 16 pt 0416 pt_BR 0816 pt_PT
87
- 17 rm 0417 rm_CH
88
- 18 ro 0418 ro_RO 0818 ro_MO
89
- 19 ru 0819 ru_MO
90
- 1a hr 041a hr_HR 081a sr_YU 0c1a sr_YU@cyrillic
91
- 1b sk 041b sk_SK
92
- 1c sq 041c sq_AL
93
- 1d sv 041d sv_SE 081d sv_FI
94
- 1e th 041e th_TH
95
- 1f tr 041f tr_TR
96
- 20 ur 0420 ur_PK 0820 ur_IN
97
- 21 id 0421 id_ID
98
- 22 uk 0422 uk_UA
99
- 23 be 0423 be_BY
100
- 24 sl 0424 sl_SI
101
- 25 et 0425 et_EE
102
- 26 lv 0426 lv_LV
103
- 27 lt 0427 lt_LT
104
- 28 tg 0428 tg_TJ
105
- 29 fa 0429 fa_IR
106
- 2a vi 042a vi_VN
107
- 2b hy 042b hy_AM
108
- 2c az 042c az_AZ@latin 082c az_AZ@cyrillic
109
- 2d eu
110
- 2e wen 042e wen_DE
111
- 2f mk 042f mk_MK
112
- 30 bnt 0430 bnt_TZ
113
- 31 ts 0431 ts_ZA
114
- 32 tn
115
- 33 ven 0433 ven_ZA
116
- 34 xh 0434 xh_ZA
117
- 35 zu 0435 zu_ZA
118
- 36 af 0436 af_ZA
119
- 37 ka 0437 ka_GE
120
- 38 fo 0438 fo_FO
121
- 39 hi 0439 hi_IN
122
- 3a mt 043a mt_MT
123
- 3b se 043b se_NO
124
- 043c gd_UK 083c ga_IE
125
- 3d yi 043d yi_IL
126
- 3e ms 043e ms_MY 083e ms_BN
127
- 3f kk 043f kk_KZ
128
- 40 ky 0440 ky_KG
129
- 41 sw 0441 sw_KE
130
- 42 tk 0442 tk_TM
131
- 43 uz 0443 uz_UZ@latin 0843 uz_UZ@cyrillic
132
- 44 tt 0444 tt_RU
133
- 45 bn 0445 bn_IN
134
- 46 pa 0446 pa_IN
135
- 47 gu 0447 gu_IN
136
- 48 or 0448 or_IN
137
- 49 ta
138
- 4a te 044a te_IN
139
- 4b kn 044b kn_IN
140
- 4c ml 044c ml_IN
141
- 4d as 044d as_IN
142
- 4e mr 044e mr_IN
143
- 4f sa 044f sa_IN
144
- 50 mn
145
- 51 bo 0451 bo_CN
146
- 52 cy 0452 cy_GB
147
- 53 km 0453 km_KH
148
- 54 lo 0454 lo_LA
149
- 55 my 0455 my_MM
150
- 56 gl 0456 gl_ES
151
- 57 kok 0457 kok_IN
152
- 58 mni 0458 mni_IN
153
- 59 sd
154
- 5a syr 045a syr_TR
155
- 5b si 045b si_LK
156
- 5c chr 045c chr_US
157
- 5d iu 045d iu_CA
158
- 5e am 045e am_ET
159
- 5f ber 045f ber_MA
160
- 60 ks 0460 ks_PK 0860 ks_IN
161
- 61 ne 0461 ne_NP 0861 ne_IN
162
- 62 fy 0462 fy_NL
163
- 63 ps
164
- 64 tl 0464 tl_PH
165
- 65 div 0465 div_MV
166
- 66 bin 0466 bin_NG
167
- 67 ful 0467 ful_NG
168
- 68 ha 0468 ha_NG
169
- 69 nic 0469 nic_NG
170
- 6a yo 046a yo_NG
171
- 70 ibo 0470 ibo_NG
172
- 71 kau 0471 kau_NG
173
- 72 om 0472 om_ET
174
- 73 ti 0473 ti_ET
175
- 74 gn 0474 gn_PY
176
- 75 cpe 0475 cpe_US
177
- 76 la 0476 la_VA
178
- 77 so 0477 so_SO
179
- 78 sit 0478 sit_CN
180
- 79 pap 0479 pap_AN
181
- }]
182
- }
183
- }
184
-
185
- # msgcat::mc --
186
- #
187
- # Find the translation for the given string based on the current
188
- # locale setting. Check the local namespace first, then look in each
189
- # parent namespace until the source is found. If additional args are
190
- # specified, use the format command to work them into the translated
191
- # string.
192
- # If no catalog item is found, mcunknown is called in the caller frame
193
- # and its result is returned.
194
- #
195
- # Arguments:
196
- # src The string to translate.
197
- # args Args to pass to the format command
198
- #
199
- # Results:
200
- # Returns the translated string. Propagates errors thrown by the
201
- # format command.
202
-
203
- proc msgcat::mc {args} {
204
- tailcall mcn [PackageNamespaceGet] {*}$args
205
- }
206
-
207
- # msgcat::mcn --
208
- #
209
- # Find the translation for the given string based on the current
210
- # locale setting. Check the passed namespace first, then look in each
211
- # parent namespace until the source is found. If additional args are
212
- # specified, use the format command to work them into the translated
213
- # string.
214
- #
215
- # If no catalog item is found, mcunknown is called in the caller frame
216
- # and its result is returned.
217
- #
218
- # Arguments:
219
- # ns Package namespace of the translation
220
- # src The string to translate.
221
- # args Args to pass to the format command
222
- #
223
- # Results:
224
- # Returns the translated string. Propagates errors thrown by the
225
- # format command.
226
-
227
- proc msgcat::mcn {ns src args} {
228
-
229
- # Check for the src in each namespace starting from the local and
230
- # ending in the global.
231
-
232
- variable Msgs
233
- variable Loclist
234
-
235
- set loclist [PackagePreferences $ns]
236
-
237
- set nscur $ns
238
- while {$nscur != ""} {
239
- foreach loc $loclist {
240
- if {[dict exists $Msgs $nscur $loc $src]} {
241
- return [DefaultUnknown "" [dict get $Msgs $nscur $loc $src]\
242
- {*}$args]
243
- }
244
- }
245
- set nscur [namespace parent $nscur]
246
- }
247
- # call package local or default unknown command
248
- set args [linsert $args 0 [lindex $loclist 0] $src]
249
- switch -exact -- [Invoke unknowncmd $args $ns result 1] {
250
- 0 { tailcall mcunknown {*}$args }
251
- 1 { return [DefaultUnknown {*}$args] }
252
- default { return $result }
253
- }
254
- }
255
-
256
- # msgcat::mcexists --
257
- #
258
- # Check if a catalog item is set or if mc would invoke mcunknown.
259
- #
260
- # Arguments:
261
- # -exactnamespace Only check the exact namespace and no
262
- # parent namespaces
263
- # -exactlocale Only check the exact locale and not all members
264
- # of the preferences list
265
- # src Message catalog key
266
- #
267
- # Results:
268
- # true if an adequate catalog key was found
269
-
270
- proc msgcat::mcexists {args} {
271
-
272
- variable Msgs
273
- variable Loclist
274
- variable PackageConfig
275
-
276
- while {[llength $args] != 1} {
277
- set args [lassign $args option]
278
- switch -glob -- $option {
279
- -exactnamespace - -exactlocale { set $option 1 }
280
- -namespace {
281
- if {[llength $args] < 2} {
282
- return -code error\
283
- "Argument missing for switch \"-namespace\""
284
- }
285
- set args [lassign $args ns]
286
- }
287
- -* { return -code error "unknown option \"$option\"" }
288
- default {
289
- return -code error "wrong # args: should be\
290
- \"[lindex [info level 0] 0] ?-exactnamespace?\
291
- ?-exactlocale? ?-namespace ns? src\""
292
- }
293
- }
294
- }
295
- set src [lindex $args 0]
296
-
297
- if {![info exists ns]} { set ns [PackageNamespaceGet] }
298
-
299
- set loclist [PackagePreferences $ns]
300
- if {[info exists -exactlocale]} { set loclist [lrange $loclist 0 0] }
301
-
302
- while {$ns ne ""} {
303
- foreach loc $loclist {
304
- if {[dict exists $Msgs $ns $loc $src]} {
305
- return 1
306
- }
307
- }
308
- if {[info exists -exactnamespace]} {return 0}
309
- set ns [namespace parent $ns]
310
- }
311
- return 0
312
- }
313
-
314
- # msgcat::mclocale --
315
- #
316
- # Query or set the current locale.
317
- #
318
- # Arguments:
319
- # newLocale (Optional) The new locale string. Locale strings
320
- # should be composed of one or more sublocale parts
321
- # separated by underscores (e.g. en_US).
322
- #
323
- # Results:
324
- # Returns the normalized set locale.
325
-
326
- proc msgcat::mclocale {args} {
327
- variable Loclist
328
- variable LoadedLocales
329
- set len [llength $args]
330
-
331
- if {$len > 1} {
332
- return -code error "wrong # args: should be\
333
- \"[lindex [info level 0] 0] ?newLocale?\""
334
- }
335
-
336
- if {$len == 1} {
337
- set newLocale [string tolower [lindex $args 0]]
338
- if {$newLocale ne [file tail $newLocale]} {
339
- return -code error "invalid newLocale value \"$newLocale\":\
340
- could be path to unsafe code."
341
- }
342
- mcpreferences {*}[mcutil getpreferences $newLocale]
343
- }
344
- return [lindex $Loclist 0]
345
- }
346
-
347
- # msgcat::mcutil::getpreferences --
348
- #
349
- # Get list of locales from a locale.
350
- # The first element is always the lowercase locale.
351
- # Other elements have one component separated by "_" less.
352
- # Multiple "_" are seen as one separator: de__ch_spec de__ch de {}
353
- #
354
- # This method is part of the ensemble mcutil
355
- #
356
- # Arguments:
357
- # Locale.
358
- #
359
- # Results:
360
- # Locale list
361
-
362
- proc msgcat::mcutil::getpreferences {locale} {
363
- set locale [string tolower $locale]
364
- set result [list {}]
365
- set el {}
366
- foreach e [split $locale _] {
367
- if {$el eq {}} {
368
- set el ${e}
369
- } else {
370
- set el ${el}_${e}
371
- }
372
- if {[string index $el end] != {_}} {
373
- set result [linsert $result 0 $el]
374
- }
375
- }
376
- return $result
377
- }
378
-
379
- # msgcat::mcpreferences --
380
- #
381
- # Fetch the list of locales used to look up strings, ordered from
382
- # most preferred to least preferred.
383
- #
384
- # Arguments:
385
- # New location list
386
- #
387
- # Results:
388
- # Returns an ordered list of the locales preferred by the user.
389
-
390
- proc msgcat::mcpreferences {args} {
391
- variable Loclist
392
-
393
- if {[llength $args] > 0} {
394
- # args is the new loclist
395
- if {![ListEqualString $args $Loclist]} {
396
- set Loclist $args
397
-
398
- # locale not loaded jet
399
- LoadAll $Loclist
400
- # Invoke callback
401
- Invoke changecmd $Loclist
402
- }
403
- }
404
- return $Loclist
405
- }
406
-
407
- # msgcat::ListStringEqual --
408
- #
409
- # Compare two strings for equal string contents
410
- #
411
- # Arguments:
412
- # list1 first list
413
- # list2 second list
414
- #
415
- # Results:
416
- # 1 if lists of strings are identical, 0 otherwise
417
-
418
- proc msgcat::ListEqualString {list1 list2} {
419
- if {[llength $list1] != [llength $list2]} {
420
- return 0
421
- }
422
- foreach item1 $list1 item2 $list2 {
423
- if {$item1 ne $item2} {
424
- return 0
425
- }
426
- }
427
- return 1
428
- }
429
-
430
- # msgcat::mcloadedlocales --
431
- #
432
- # Get or change the list of currently loaded default locales
433
- #
434
- # The following subcommands are available:
435
- # loaded
436
- # Get the current list of loaded locales
437
- # clear
438
- # Remove all loaded locales not present in mcpreferences.
439
- #
440
- # Arguments:
441
- # subcommand One of loaded or clear
442
- #
443
- # Results:
444
- # Empty string, if not stated differently for the subcommand
445
-
446
- proc msgcat::mcloadedlocales {subcommand} {
447
- variable Loclist
448
- variable LoadedLocales
449
- variable Msgs
450
- variable PackageConfig
451
- switch -exact -- $subcommand {
452
- clear {
453
- # Remove all locales not contained in Loclist
454
- # skip any packages with package locale
455
- set LoadedLocales $Loclist
456
- foreach ns [dict keys $Msgs] {
457
- if {![dict exists $PackageConfig loclist $ns]} {
458
- foreach locale [dict keys [dict get $Msgs $ns]] {
459
- if {$locale ni $Loclist} {
460
- dict unset Msgs $ns $locale
461
- }
462
- }
463
- }
464
- }
465
- }
466
- loaded { return $LoadedLocales }
467
- default {
468
- return -code error "unknown subcommand \"$subcommand\": must be\
469
- clear, or loaded"
470
- }
471
- }
472
- return
473
- }
474
-
475
- # msgcat::mcpackagelocale --
476
- #
477
- # Get or change the package locale of the calling package.
478
- #
479
- # The following subcommands are available:
480
- # set
481
- # Set a package locale.
482
- # This may load message catalog files and may clear message catalog
483
- # items, if the former locale was the default locale.
484
- # Returns the normalized set locale.
485
- # The default locale is taken, if locale is not given.
486
- # get
487
- # Get the locale valid for this package.
488
- # isset
489
- # Returns true, if a package locale is set
490
- # unset
491
- # Unset the package locale and activate the default locale.
492
- # This loads message catalog file which where missing in the package
493
- # locale.
494
- # preferences
495
- # Return locale preference list valid for the package.
496
- # loaded
497
- # Return loaded locale list valid for the current package.
498
- # clear
499
- # If the current package has a package locale, remove all package
500
- # locales not containes in package mcpreferences.
501
- # It is an error to call this without a package locale set.
502
- #
503
- # The subcommands get, preferences and loaded return the corresponding
504
- # default data, if no package locale is set.
505
- #
506
- # Arguments:
507
- # subcommand see list above
508
- # locale package locale (only set subcommand)
509
- #
510
- # Results:
511
- # Empty string, if not stated differently for the subcommand
512
-
513
- proc msgcat::mcpackagelocale {subcommand args} {
514
- # todo: implement using an ensemble
515
- variable Loclist
516
- variable LoadedLocales
517
- variable Msgs
518
- variable PackageConfig
519
- # Check option
520
- # check if required item is exactly provided
521
- if { [llength $args] > 0
522
- && $subcommand in {"get" "isset" "unset" "loaded" "clear"} } {
523
- return -code error "wrong # args: should be\
524
- \"[lrange [info level 0] 0 1]\""
525
- }
526
- set ns [PackageNamespaceGet]
527
-
528
- switch -exact -- $subcommand {
529
- get { return [lindex [PackagePreferences $ns] 0] }
530
- loaded { return [PackageLocales $ns] }
531
- present {
532
- if {[llength $args] != 1} {
533
- return -code error "wrong # args: should be\
534
- \"[lrange [info level 0] 0 1] locale\""
535
- }
536
- return [expr {[string tolower [lindex $args 0]]
537
- in [PackageLocales $ns]} ]
538
- }
539
- isset { return [dict exists $PackageConfig loclist $ns] }
540
- set - preferences {
541
- # set a package locale or add a package locale
542
- set fSet [expr {$subcommand eq "set"}]
543
-
544
- # Check parameter
545
- if {$fSet && 1 < [llength $args] } {
546
- return -code error "wrong # args: should be\
547
- \"[lrange [info level 0] 0 1] ?locale?\""
548
- }
549
-
550
- # > Return preferences if no parameter
551
- if {!$fSet && 0 == [llength $args] } {
552
- return [PackagePreferences $ns]
553
- }
554
-
555
- # Copy the default locale if no package locale set so far
556
- if {![dict exists $PackageConfig loclist $ns]} {
557
- dict set PackageConfig loclist $ns $Loclist
558
- dict set PackageConfig loadedlocales $ns $LoadedLocales
559
- }
560
-
561
- # No argument for set: return current package locale
562
- # The difference to no argument and subcommand "preferences" is,
563
- # that "preferences" does not set the package locale property.
564
- # This case is processed above, so no check for fSet here
565
- if { 0 == [llength $args] } {
566
- return [lindex [dict get $PackageConfig loclist $ns] 0]
567
- }
568
-
569
- # Get new loclist
570
- if {$fSet} {
571
- set loclist [mcutil getpreferences [lindex $args 0]]
572
- } else {
573
- set loclist $args
574
- }
575
-
576
- # Check if not changed to return imediately
577
- if { [ListEqualString $loclist\
578
- [dict get $PackageConfig loclist $ns]] } {
579
- if {$fSet} {
580
- return [lindex $loclist 0]
581
- }
582
- return $loclist
583
- }
584
-
585
- # Change loclist
586
- dict set PackageConfig loclist $ns $loclist
587
-
588
- # load eventual missing locales
589
- set loadedLocales [dict get $PackageConfig loadedlocales $ns]
590
- set loadLocales [ListComplement $loadedLocales $loclist]
591
- dict set PackageConfig loadedlocales $ns\
592
- [concat $loadedLocales $loadLocales]
593
- Load $ns $loadLocales
594
- if {$fSet} {
595
- return [lindex $loclist 0]
596
- }
597
- return $loclist
598
- }
599
- clear { # Remove all locales not contained in Loclist
600
- if {![dict exists $PackageConfig loclist $ns]} {
601
- return -code error "clear only when package locale set"
602
- }
603
- set loclist [dict get $PackageConfig loclist $ns]
604
- dict set PackageConfig loadedlocales $ns $loclist
605
- if {[dict exists $Msgs $ns]} {
606
- foreach locale [dict keys [dict get $Msgs $ns]] {
607
- if {$locale ni $loclist} {
608
- dict unset Msgs $ns $locale
609
- }
610
- }
611
- }
612
- }
613
- unset { # unset package locale and restore default locales
614
-
615
- if { ![dict exists $PackageConfig loclist $ns] } { return }
616
-
617
- # unset package locale
618
- set loadLocales [ListComplement\
619
- [dict get $PackageConfig loadedlocales $ns] $LoadedLocales]
620
- dict unset PackageConfig loadedlocales $ns
621
- dict unset PackageConfig loclist $ns
622
-
623
- # unset keys not in global loaded locales
624
- if {[dict exists $Msgs $ns]} {
625
- foreach locale [dict keys [dict get $Msgs $ns]] {
626
- if {$locale ni $LoadedLocales} {
627
- dict unset Msgs $ns $locale
628
- }
629
- }
630
- }
631
-
632
- # Add missing locales
633
- Load $ns $loadLocales
634
- }
635
- default {
636
- return -code error "unknown subcommand \"$subcommand\": must be\
637
- clear, get, isset, loaded, present, set, or unset"
638
- }
639
- }
640
- return
641
- }
642
-
643
- # msgcat::mcforgetpackage --
644
- #
645
- # Remove any data of the calling package from msgcat
646
- #
647
-
648
- proc msgcat::mcforgetpackage {} {
649
- # todo: this may be implemented using an ensemble
650
- variable PackageConfig
651
- variable Msgs
652
- set ns [PackageNamespaceGet]
653
- # Remove MC items
654
- dict unset Msgs $ns
655
- # Remove config items
656
- foreach key [dict keys $PackageConfig] {
657
- dict unset PackageConfig $key $ns
658
- }
659
- return
660
- }
661
-
662
- # msgcat::mcgetmynamespace --
663
- #
664
- # Return the package namespace of the caller
665
- # This consideres to be called from a class or object.
666
-
667
- proc msgcat::mcpackagenamespaceget {} {
668
- return [PackageNamespaceGet]
669
- }
670
-
671
- # msgcat::mcpackageconfig --
672
- #
673
- # Get or modify the per caller namespace (e.g. packages) config options.
674
- #
675
- # Available subcommands are:
676
- #
677
- # get get the current value or an error if not set.
678
- # isset return true, if the option is set
679
- # set set the value (see also distinct option).
680
- # Returns the number of loaded message files.
681
- # unset Clear option. return "".
682
- #
683
- # Available options are:
684
- #
685
- # mcfolder
686
- # The message catalog folder of the package.
687
- # This is automatically set by mcload.
688
- # If the value is changed using the set subcommand, an eventual
689
- # loadcmd is invoked and all message files of the package locale are
690
- # loaded.
691
- #
692
- # loadcmd
693
- # The command gets executed before a message file would be
694
- # sourced for this module.
695
- # The command is invoked with the expanded locale list to load.
696
- # The command is not invoked if the registering package namespace
697
- # is not present.
698
- # This callback might also be used as an alternative to message
699
- # files.
700
- # If the value is changed using the set subcommand, the callback is
701
- # directly invoked with the current file locale list. No file load is
702
- # executed.
703
- #
704
- # changecmd
705
- # The command is invoked, after an executed locale change.
706
- # Appended argument is expanded mcpreferences.
707
- #
708
- # unknowncmd
709
- # Use a package locale mcunknown procedure instead the global one.
710
- # The appended arguments are identical to mcunknown.
711
- # A default unknown handler is used if set to the empty string.
712
- # This consists in returning the key if no arguments are given.
713
- # With given arguments, format is used to process the arguments.
714
- #
715
- # Arguments:
716
- # subcommand Operation on the package
717
- # option The package option to get or set.
718
- # ?value? Eventual value for the subcommand
719
- #
720
- # Results:
721
- # Depends on the subcommand and option and is described there
722
-
723
- proc msgcat::mcpackageconfig {subcommand option {value ""}} {
724
- variable PackageConfig
725
- # get namespace
726
- set ns [PackageNamespaceGet]
727
-
728
- if {$option ni {"mcfolder" "loadcmd" "changecmd" "unknowncmd"}} {
729
- return -code error "bad option \"$option\": must be mcfolder, loadcmd,\
730
- changecmd, or unknowncmd"
731
- }
732
-
733
- # check if value argument is exactly provided
734
- if {[llength [info level 0]] == 4 } {
735
- # value provided
736
- if {$subcommand in {"get" "isset" "unset"}} {
737
- return -code error "wrong # args: should be\
738
- \"[lrange [info level 0] 0 2] value\""
739
- }
740
- } elseif {$subcommand eq "set"} {
741
- return -code error\
742
- "wrong # args: should be \"[lrange [info level 0] 0 2]\""
743
- }
744
-
745
- # Execute subcommands
746
- switch -exact -- $subcommand {
747
- get { # Operation get return current value
748
- if {![dict exists $PackageConfig $option $ns]} {
749
- return -code error "package option \"$option\" not set"
750
- }
751
- return [dict get $PackageConfig $option $ns]
752
- }
753
- isset { return [dict exists $PackageConfig $option $ns] }
754
- unset { dict unset PackageConfig $option $ns }
755
- set { # Set option
756
-
757
- if {$option eq "mcfolder"} {
758
- set value [file normalize $value]
759
- }
760
- # Check if changed
761
- if { [dict exists $PackageConfig $option $ns]
762
- && $value eq [dict get $PackageConfig $option $ns] } {
763
- return 0
764
- }
765
-
766
- # set new value
767
- dict set PackageConfig $option $ns $value
768
-
769
- # Reload pending message catalogs
770
- switch -exact -- $option {
771
- mcfolder { return [Load $ns [PackageLocales $ns]] }
772
- loadcmd { return [Load $ns [PackageLocales $ns] 1] }
773
- }
774
- return 0
775
- }
776
- default {
777
- return -code error "unknown subcommand \"$subcommand\":\
778
- must be get, isset, set, or unset"
779
- }
780
- }
781
- return
782
- }
783
-
784
- # msgcat::PackagePreferences --
785
- #
786
- # Return eventual present package preferences or the default list if not
787
- # present.
788
- #
789
- # Arguments:
790
- # ns Package namespace
791
- #
792
- # Results:
793
- # locale list
794
-
795
- proc msgcat::PackagePreferences {ns} {
796
- variable PackageConfig
797
- if {[dict exists $PackageConfig loclist $ns]} {
798
- return [dict get $PackageConfig loclist $ns]
799
- }
800
- variable Loclist
801
- return $Loclist
802
- }
803
-
804
- # msgcat::PackageLocales --
805
- #
806
- # Return eventual present package locales or the default list if not
807
- # present.
808
- #
809
- # Arguments:
810
- # ns Package namespace
811
- #
812
- # Results:
813
- # locale list
814
-
815
- proc msgcat::PackageLocales {ns} {
816
- variable PackageConfig
817
- if {[dict exists $PackageConfig loadedlocales $ns]} {
818
- return [dict get $PackageConfig loadedlocales $ns]
819
- }
820
- variable LoadedLocales
821
- return $LoadedLocales
822
- }
823
-
824
- # msgcat::ListComplement --
825
- #
826
- # Build the complement of two lists.
827
- # Return a list with all elements in list2 but not in list1.
828
- # Optionally return the intersection.
829
- #
830
- # Arguments:
831
- # list1 excluded list
832
- # list2 included list
833
- # inlistname If not "", write in this variable the intersection list
834
- #
835
- # Results:
836
- # list with all elements in list2 but not in list1
837
-
838
- proc msgcat::ListComplement {list1 list2 {inlistname ""}} {
839
- if {"" ne $inlistname} {
840
- upvar 1 $inlistname inlist
841
- }
842
- set inlist {}
843
- set outlist {}
844
- foreach item $list2 {
845
- if {$item in $list1} {
846
- lappend inlist $item
847
- } else {
848
- lappend outlist $item
849
- }
850
- }
851
- return $outlist
852
- }
853
-
854
- # msgcat::mcload --
855
- #
856
- # Attempt to load message catalogs for each locale in the
857
- # preference list from the specified directory.
858
- #
859
- # Arguments:
860
- # langdir The directory to search.
861
- #
862
- # Results:
863
- # Returns the number of message catalogs that were loaded.
864
-
865
- proc msgcat::mcload {langdir} {
866
- tailcall mcpackageconfig set mcfolder $langdir
867
- }
868
-
869
- # msgcat::LoadAll --
870
- #
871
- # Load a list of locales for all packages not having a package locale
872
- # list.
873
- #
874
- # Arguments:
875
- # langdir The directory to search.
876
- #
877
- # Results:
878
- # Returns the number of message catalogs that were loaded.
879
-
880
- proc msgcat::LoadAll {locales} {
881
- variable PackageConfig
882
- variable LoadedLocales
883
- if {0 == [llength $locales]} { return {} }
884
- # filter jet unloaded locales
885
- set locales [ListComplement $LoadedLocales $locales]
886
- if {0 == [llength $locales]} { return {} }
887
- lappend LoadedLocales {*}$locales
888
-
889
- set packages [lsort -unique [concat\
890
- [dict keys [dict get $PackageConfig loadcmd]]\
891
- [dict keys [dict get $PackageConfig mcfolder]]]]
892
- foreach ns $packages {
893
- if {! [dict exists $PackageConfig loclist $ns] } {
894
- Load $ns $locales
895
- }
896
- }
897
- return $locales
898
- }
899
-
900
- # msgcat::Load --
901
- #
902
- # Invoke message load callback and load message catalog files.
903
- #
904
- # Arguments:
905
- # ns Namespace (equal package) to load the message catalog.
906
- # locales List of locales to load.
907
- # callbackonly true if only callback should be invoked
908
- #
909
- # Results:
910
- # Returns the number of message catalogs that were loaded.
911
-
912
- proc msgcat::Load {ns locales {callbackonly 0}} {
913
- variable FileLocale
914
- variable PackageConfig
915
- variable LoadedLocals
916
-
917
- if {0 == [llength $locales]} { return 0 }
918
-
919
- # Invoke callback
920
- Invoke loadcmd $locales $ns
921
-
922
- if {$callbackonly || ![dict exists $PackageConfig mcfolder $ns]} {
923
- return 0
924
- }
925
-
926
- # Invoke file load
927
- set langdir [dict get $PackageConfig mcfolder $ns]
928
-
929
- # Save the file locale if we are recursively called
930
- if {[info exists FileLocale]} {
931
- set nestedFileLocale $FileLocale
932
- }
933
- set x 0
934
- foreach p $locales {
935
- if {$p eq {}} {
936
- set p ROOT
937
- }
938
- set langfile [file join $langdir $p.msg]
939
- if {[file exists $langfile]} {
940
- incr x
941
- set FileLocale [string tolower\
942
- [file tail [file rootname $langfile]]]
943
- if {"root" eq $FileLocale} {
944
- set FileLocale ""
945
- }
946
- namespace inscope $ns [list ::source -encoding utf-8 $langfile]
947
- unset FileLocale
948
- }
949
- }
950
- if {[info exists nestedFileLocale]} {
951
- set FileLocale $nestedFileLocale
952
- }
953
- return $x
954
- }
955
-
956
- # msgcat::Invoke --
957
- #
958
- # Invoke a set of registered callbacks.
959
- # The callback is only invoked, if its registered namespace exists.
960
- #
961
- # Arguments:
962
- # index Index into PackageConfig to get callback command
963
- # arglist parameters to the callback invocation
964
- # ns (Optional) package to call.
965
- # If not given or empty, check all registered packages.
966
- # resultname Variable to save the callback result of the last called
967
- # callback to. May be set to "" to discard the result.
968
- # failerror (0) Fail on error if true. Otherwise call bgerror.
969
- #
970
- # Results:
971
- # Possible values:
972
- # - 0: no valid command registered
973
- # - 1: registered command was the empty string
974
- # - 2: registered command called, resultname is set
975
- # - 3: registered command failed
976
- # If multiple commands are called, the maximum of all results is returned.
977
-
978
- proc msgcat::Invoke {index arglist {ns ""} {resultname ""} {failerror 0}} {
979
- variable PackageConfig
980
- variable Config
981
- if {"" ne $resultname} {
982
- upvar 1 $resultname result
983
- }
984
- if {"" eq $ns} {
985
- set packageList [dict keys [dict get $PackageConfig $index]]
986
- } else {
987
- set packageList [list $ns]
988
- }
989
- set ret 0
990
- foreach ns $packageList {
991
- if {[dict exists $PackageConfig $index $ns] && [namespace exists $ns]} {
992
- set cmd [dict get $PackageConfig $index $ns]
993
- if {"" eq $cmd} {
994
- if {$ret == 0} {set ret 1}
995
- } else {
996
- if {$failerror} {
997
- set result [namespace inscope $ns $cmd {*}$arglist]
998
- set ret 2
999
- } elseif {1 == [catch {
1000
- set result [namespace inscope $ns $cmd {*}$arglist]
1001
- if {$ret < 2} {set ret 2}
1002
- } err derr]} {
1003
- after idle [concat [::interp bgerror ""]\
1004
- [list $err $derr]]
1005
- set ret 3
1006
- }
1007
- }
1008
- }
1009
- }
1010
- return $ret
1011
- }
1012
-
1013
- # msgcat::mcset --
1014
- #
1015
- # Set the translation for a given string in a specified locale.
1016
- #
1017
- # Arguments:
1018
- # locale The locale to use.
1019
- # src The source string.
1020
- # dest (Optional) The translated string. If omitted,
1021
- # the source string is used.
1022
- #
1023
- # Results:
1024
- # Returns the new locale.
1025
-
1026
- proc msgcat::mcset {locale src {dest ""}} {
1027
- variable Msgs
1028
- if {[llength [info level 0]] == 3} { ;# dest not specified
1029
- set dest $src
1030
- }
1031
-
1032
- set ns [PackageNamespaceGet]
1033
-
1034
- set locale [string tolower $locale]
1035
-
1036
- dict set Msgs $ns $locale $src $dest
1037
- return $dest
1038
- }
1039
-
1040
- # msgcat::mcflset --
1041
- #
1042
- # Set the translation for a given string in the current file locale.
1043
- #
1044
- # Arguments:
1045
- # src The source string.
1046
- # dest (Optional) The translated string. If omitted,
1047
- # the source string is used.
1048
- #
1049
- # Results:
1050
- # Returns the new locale.
1051
-
1052
- proc msgcat::mcflset {src {dest ""}} {
1053
- variable FileLocale
1054
- variable Msgs
1055
-
1056
- if {![info exists FileLocale]} {
1057
- return -code error "must only be used inside a message catalog loaded\
1058
- with ::msgcat::mcload"
1059
- }
1060
- tailcall mcset $FileLocale $src $dest
1061
- }
1062
-
1063
- # msgcat::mcmset --
1064
- #
1065
- # Set the translation for multiple strings in a specified locale.
1066
- #
1067
- # Arguments:
1068
- # locale The locale to use.
1069
- # pairs One or more src/dest pairs (must be even length)
1070
- #
1071
- # Results:
1072
- # Returns the number of pairs processed
1073
-
1074
- proc msgcat::mcmset {locale pairs} {
1075
- variable Msgs
1076
-
1077
- set length [llength $pairs]
1078
- if {$length % 2} {
1079
- return -code error "bad translation list:\
1080
- should be \"[lindex [info level 0] 0] locale {src dest ...}\""
1081
- }
1082
-
1083
- set locale [string tolower $locale]
1084
- set ns [PackageNamespaceGet]
1085
-
1086
- foreach {src dest} $pairs {
1087
- dict set Msgs $ns $locale $src $dest
1088
- }
1089
-
1090
- return [expr {$length / 2}]
1091
- }
1092
-
1093
- # msgcat::mcflmset --
1094
- #
1095
- # Set the translation for multiple strings in the mc file locale.
1096
- #
1097
- # Arguments:
1098
- # pairs One or more src/dest pairs (must be even length)
1099
- #
1100
- # Results:
1101
- # Returns the number of pairs processed
1102
-
1103
- proc msgcat::mcflmset {pairs} {
1104
- variable FileLocale
1105
- variable Msgs
1106
-
1107
- if {![info exists FileLocale]} {
1108
- return -code error "must only be used inside a message catalog loaded\
1109
- with ::msgcat::mcload"
1110
- }
1111
- tailcall mcmset $FileLocale $pairs
1112
- }
1113
-
1114
- # msgcat::mcunknown --
1115
- #
1116
- # This routine is called by msgcat::mc if a translation cannot
1117
- # be found for a string and no unknowncmd is set for the current
1118
- # package. This routine is intended to be replaced
1119
- # by an application specific routine for error reporting
1120
- # purposes. The default behavior is to return the source string.
1121
- # If additional args are specified, the format command will be used
1122
- # to work them into the translated string.
1123
- #
1124
- # Arguments:
1125
- # locale The current locale.
1126
- # src The string to be translated.
1127
- # args Args to pass to the format command
1128
- #
1129
- # Results:
1130
- # Returns the translated value.
1131
-
1132
- proc msgcat::mcunknown {args} {
1133
- tailcall DefaultUnknown {*}$args
1134
- }
1135
-
1136
- # msgcat::DefaultUnknown --
1137
- #
1138
- # This routine is called by msgcat::mc if a translation cannot
1139
- # be found for a string in the following circumstances:
1140
- # - Default global handler, if mcunknown is not redefined.
1141
- # - Per package handler, if the package sets unknowncmd to the empty
1142
- # string.
1143
- # It returns the source string if the argument list is empty.
1144
- # If additional args are specified, the format command will be used
1145
- # to work them into the translated string.
1146
- #
1147
- # Arguments:
1148
- # locale (unused) The current locale.
1149
- # src The string to be translated.
1150
- # args Args to pass to the format command
1151
- #
1152
- # Results:
1153
- # Returns the translated value.
1154
-
1155
- proc msgcat::DefaultUnknown {locale src args} {
1156
- if {[llength $args]} {
1157
- return [format $src {*}$args]
1158
- } else {
1159
- return $src
1160
- }
1161
- }
1162
-
1163
- # msgcat::mcmax --
1164
- #
1165
- # Calculates the maximum length of the translated strings of the given
1166
- # list.
1167
- #
1168
- # Arguments:
1169
- # args strings to translate.
1170
- #
1171
- # Results:
1172
- # Returns the length of the longest translated string.
1173
-
1174
- proc msgcat::mcmax {args} {
1175
- set max 0
1176
- set ns [PackageNamespaceGet]
1177
- foreach string $args {
1178
- set translated [uplevel 1 [list [namespace origin mcn] $ns $string]]
1179
- set len [string length $translated]
1180
- if {$len>$max} {
1181
- set max $len
1182
- }
1183
- }
1184
- return $max
1185
- }
1186
-
1187
- # Convert the locale values stored in environment variables to a form
1188
- # suitable for passing to [mclocale]
1189
- proc msgcat::mcutil::ConvertLocale {value} {
1190
- # Assume $value is of form: $language[_$territory][.$codeset][@modifier]
1191
- # Convert to form: $language[_$territory][_$modifier]
1192
- #
1193
- # Comment out expanded RE version -- bugs alleged
1194
- # regexp -expanded {
1195
- # ^ # Match all the way to the beginning
1196
- # ([^_.@]*) # Match "lanugage"; ends with _, ., or @
1197
- # (_([^.@]*))? # Match (optional) "territory"; starts with _
1198
- # ([.]([^@]*))? # Match (optional) "codeset"; starts with .
1199
- # (@(.*))? # Match (optional) "modifier"; starts with @
1200
- # $ # Match all the way to the end
1201
- # } $value -> language _ territory _ codeset _ modifier
1202
- if {![regexp {^([^_.@]+)(_([^.@]*))?([.]([^@]*))?(@(.*))?$} $value \
1203
- -> language _ territory _ codeset _ modifier]} {
1204
- return -code error "invalid locale '$value': empty language part"
1205
- }
1206
- set ret $language
1207
- if {[string length $territory]} {
1208
- append ret _$territory
1209
- }
1210
- if {[string length $modifier]} {
1211
- append ret _$modifier
1212
- }
1213
- return $ret
1214
- }
1215
-
1216
- # helper function to find package namespace of stack-frame -2
1217
- # There are 4 possibilities:
1218
- # - called from a proc
1219
- # - called within a class definition script
1220
- # - called from an class defined oo object
1221
- # - called from a classless oo object
1222
- proc ::msgcat::PackageNamespaceGet {} {
1223
- set ns [uplevel 2 { namespace current }]
1224
-
1225
- if {![string match {::oo::*} $ns]} {
1226
- # Not in object environment
1227
- return $ns
1228
- }
1229
- # Ticket 91b3a5bb14: call to self may fail if namespace is stored
1230
- # so catch all this
1231
- try {
1232
- # Check self namespace to determine environment
1233
- switch -exact -- [uplevel 2 { namespace which -command self }] {
1234
- {::oo::define::self} {
1235
- # We are within a class definition
1236
- return [namespace qualifiers [uplevel 2 { self }]]
1237
- }
1238
- {::oo::Helpers::self} {
1239
- # We are within an object
1240
- set Class [info object class [uplevel 2 { self }]]
1241
- # Check for classless defined object
1242
- if {$Class eq {::oo::object}} {
1243
- return [namespace qualifiers [uplevel 2 { self }]]
1244
- }
1245
- # Class defined object
1246
- return [namespace qualifiers $Class]
1247
- }
1248
- }
1249
- } on error {} {
1250
- }
1251
- return $ns
1252
- }
1253
-
1254
- # Initialize the default locale
1255
- proc msgcat::mcutil::getsystemlocale {} {
1256
- global env
1257
-
1258
- #
1259
- # set default locale, try to get from environment
1260
- #
1261
- foreach varName {LC_ALL LC_MESSAGES LANG} {
1262
- if {[info exists env($varName)] && ("" ne $env($varName))} {
1263
- if {![catch { ConvertLocale $env($varName) } locale]} {
1264
- return $locale
1265
- }
1266
- }
1267
- }
1268
- #
1269
- # On Darwin, fallback to current CFLocale identifier if available.
1270
- #
1271
- if {[info exists ::tcl::mac::locale] && $::tcl::mac::locale ne ""} {
1272
- if {![catch { ConvertLocale $::tcl::mac::locale } locale]} {
1273
- return $locale
1274
- }
1275
- }
1276
- #
1277
- # The rest of this routine is special processing for Windows or
1278
- # Cygwin. All other platforms, get out now.
1279
- #
1280
- if {([info sharedlibextension] ne ".dll")
1281
- || [catch {package require registry}]} {
1282
- return C
1283
- }
1284
- #
1285
- # On Windows or Cygwin, try to set locale depending on registry
1286
- # settings, or fall back on locale of "C".
1287
- #
1288
-
1289
- # On Vista and later:
1290
- # HCU/Control Panel/Desktop : PreferredUILanguages is for language packs,
1291
- # HCU/Control Panel/International : localName is the default locale.
1292
- #
1293
- # They contain the local string as RFC5646, composed of:
1294
- # [a-z]{2,3} : language
1295
- # -[a-z]{4} : script (optional, translated by table Latn->latin)
1296
- # -[a-z]{2}|[0-9]{3} : territory (optional, numerical region codes not used)
1297
- # (-.*)* : variant, extension, private use (optional, not used)
1298
- # Those are translated to local strings.
1299
- # Examples: de-CH -> de_ch, sr-Latn-CS -> sr_cs@latin, es-419 -> es
1300
- #
1301
- foreach key {{HKEY_CURRENT_USER\Control Panel\Desktop} {HKEY_CURRENT_USER\Control Panel\International}}\
1302
- value {PreferredUILanguages localeName} {
1303
- if {![catch {registry get $key $value} localeName]
1304
- && [regexp {^([a-z]{2,3})(?:-([a-z]{4}))?(?:-([a-z]{2}))?(?:-.+)?$}\
1305
- [string tolower $localeName] match locale script territory]} {
1306
- if {"" ne $territory} {
1307
- append locale _ $territory
1308
- }
1309
- set modifierDict [dict create latn latin cyrl cyrillic]
1310
- if {[dict exists $modifierDict $script]} {
1311
- append locale @ [dict get $modifierDict $script]
1312
- }
1313
- if {![catch {ConvertLocale $locale} locale]} {
1314
- return $locale
1315
- }
1316
- }
1317
- }
1318
-
1319
- # then check value locale which contains a numerical language ID
1320
- if {[catch {
1321
- set locale [registry get $key "locale"]
1322
- }]} {
1323
- return C
1324
- }
1325
- #
1326
- # Keep trying to match against smaller and smaller suffixes
1327
- # of the registry value, since the latter hexdigits appear
1328
- # to determine general language and earlier hexdigits determine
1329
- # more precise information, such as territory. For example,
1330
- # 0409 - English - United States
1331
- # 0809 - English - United Kingdom
1332
- # Add more translations to the WinRegToISO639 array above.
1333
- #
1334
- variable WinRegToISO639
1335
- set locale [string tolower $locale]
1336
- while {[string length $locale]} {
1337
- if {![catch {
1338
- ConvertLocale [dict get $WinRegToISO639 $locale]
1339
- } localeOut]} {
1340
- return $localeOut
1341
- }
1342
- set locale [string range $locale 1 end]
1343
- }
1344
- #
1345
- # No translation known. Fall back on "C" locale
1346
- #
1347
- return C
1348
- }
1349
- msgcat::mclocale [msgcat::mcutil getsystemlocale]