MProcs 9.1.2__tar.gz → 10.11__tar.gz

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 (242) hide show
  1. {mprocs-9.1.2 → mprocs-10.11}/MANIFEST.in +1 -0
  2. {mprocs-9.1.2/src/MProcs.egg-info → mprocs-10.11}/PKG-INFO +49 -5
  3. {mprocs-9.1.2 → mprocs-10.11}/README.md +48 -4
  4. {mprocs-9.1.2 → mprocs-10.11}/pyproject.toml +3 -3
  5. mprocs-10.11/src/MProcs/__init__.py +10 -0
  6. mprocs-10.11/src/MProcs/modules/flu0/__init__.py +9 -0
  7. mprocs-10.11/src/MProcs/modules/flu0/scripts/data_loader.py +149 -0
  8. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/ghostwrite.py +6 -0
  9. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/gwf.py +56 -17
  10. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/lpro.py +64 -7
  11. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/lpro_s.py +64 -7
  12. {mprocs-9.1.2/src/MProcs → mprocs-10.11/src/MProcs/modules/flu0}/scripts/session.py +2 -0
  13. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/theme.py +6 -2
  14. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/tui.py +102 -3
  15. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/version_checker.py +2 -2
  16. mprocs-10.11/src/MProcs/modules/hmptunnel/__init__.py +7 -0
  17. mprocs-10.11/src/MProcs/modules/hmptunnel/scripts/data_loader.py +159 -0
  18. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/gwf.py +56 -17
  19. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/lpro.py +65 -8
  20. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/lpro_s.py +65 -8
  21. {mprocs-9.1.2/src/MProcs/modules/flu0 → mprocs-10.11/src/MProcs/modules/hmptunnel}/scripts/session.py +1 -0
  22. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/theme.py +4 -1
  23. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/tui.py +102 -3
  24. mprocs-10.11/src/MProcs/modules/polyhistor/__init__.py +15 -0
  25. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/app.py +36 -1
  26. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data_loader.py +117 -0
  27. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/technica.py +8 -2
  28. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/theme.py +1 -1
  29. mprocs-10.11/src/MProcs/scripts/data/diction.json +1 -0
  30. mprocs-10.11/src/MProcs/scripts/data/diction_former.json +1 -0
  31. mprocs-10.11/src/MProcs/scripts/data_loader.py +177 -0
  32. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/gwf.py +97 -29
  33. mprocs-10.11/src/MProcs/scripts/inline_args.py +110 -0
  34. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/lpro.py +91 -19
  35. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/lpro_s.py +91 -22
  36. {mprocs-9.1.2/src/MProcs/modules/hmptunnel → mprocs-10.11/src/MProcs}/scripts/session.py +1 -0
  37. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/tui.py +260 -3
  38. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/version_checker.py +9 -4
  39. {mprocs-9.1.2 → mprocs-10.11/src/MProcs.egg-info}/PKG-INFO +49 -5
  40. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs.egg-info/SOURCES.txt +6 -1
  41. mprocs-10.11/tools/README.md +14 -0
  42. mprocs-10.11/tools/build_medical_diction.py +128 -0
  43. mprocs-10.11/tools/medical_wordlist.txt +34045 -0
  44. mprocs-9.1.2/src/MProcs/__init__.py +0 -4
  45. mprocs-9.1.2/src/MProcs/modules/flu0/__init__.py +0 -1
  46. mprocs-9.1.2/src/MProcs/modules/flu0/scripts/data_loader.py +0 -50
  47. mprocs-9.1.2/src/MProcs/modules/hmptunnel/__init__.py +0 -1
  48. mprocs-9.1.2/src/MProcs/modules/hmptunnel/scripts/data_loader.py +0 -50
  49. mprocs-9.1.2/src/MProcs/modules/polyhistor/__init__.py +0 -8
  50. mprocs-9.1.2/src/MProcs/scripts/data/diction.json +0 -1
  51. mprocs-9.1.2/src/MProcs/scripts/data_loader.py +0 -35
  52. {mprocs-9.1.2 → mprocs-10.11}/LICENSE +0 -0
  53. {mprocs-9.1.2 → mprocs-10.11}/setup.cfg +0 -0
  54. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/__main__.py +0 -0
  55. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/__init__.py +0 -0
  56. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/LICENSE +0 -0
  57. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/__init__.py +0 -0
  58. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/agent.py +0 -0
  59. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/ai_image.py +0 -0
  60. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/acadlist.json +0 -0
  61. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/ahb.json +0 -0
  62. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/bible1.json +0 -0
  63. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/biology1.json +0 -0
  64. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/chemistry1.json +0 -0
  65. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/chi_chars.json +0 -0
  66. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/degrees1.json +0 -0
  67. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/dhammapada1.json +0 -0
  68. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/diction.json +0 -0
  69. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/fcci.json +0 -0
  70. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/hospitals.json +0 -0
  71. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/jamo.json +0 -0
  72. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/katakana.json +0 -0
  73. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/koran1.json +0 -0
  74. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/legal_terms1.json +0 -0
  75. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/lexicon.json +0 -0
  76. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/medicals1.json +0 -0
  77. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/mims.json +0 -0
  78. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/proverbs.json +0 -0
  79. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/psychology1.json +0 -0
  80. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/science1.json +0 -0
  81. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/strains.json +0 -0
  82. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/acadlist.json +0 -0
  83. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/ahb.json +0 -0
  84. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/bible1.json +0 -0
  85. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/biology1.json +0 -0
  86. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/chemistry1.json +0 -0
  87. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/chi_chars.json +0 -0
  88. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/degrees1.json +0 -0
  89. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/dhammapada1.json +0 -0
  90. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/diction.json +0 -0
  91. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/fcci.json +0 -0
  92. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/hospitals.json +0 -0
  93. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/jamo.json +0 -0
  94. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/katakana.json +0 -0
  95. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/koran1.json +0 -0
  96. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/legal_terms1.json +0 -0
  97. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/medicals1.json +0 -0
  98. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/mims.json +0 -0
  99. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/proverbs.json +0 -0
  100. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/psychology1.json +0 -0
  101. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/science1.json +0 -0
  102. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/strains.json +0 -0
  103. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/tracks.json +0 -0
  104. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/themed/verses1.json +0 -0
  105. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/tracks.json +0 -0
  106. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/data/verses1.json +0 -0
  107. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/deepseek_ai.py +0 -0
  108. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/drills.py +0 -0
  109. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/keys.py +0 -0
  110. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/lexicon.py +0 -0
  111. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/main.py +0 -0
  112. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/ops.py +0 -0
  113. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/program.py +0 -0
  114. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/scmpy.py +0 -0
  115. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/flu0/scripts/wrappers.py +0 -0
  116. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/LICENSE +0 -0
  117. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/__init__.py +0 -0
  118. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/agent.py +0 -0
  119. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/ai_image.py +0 -0
  120. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/acadlist.json +0 -0
  121. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/ahb.json +0 -0
  122. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/bible1.json +0 -0
  123. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/biology1.json +0 -0
  124. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/chemistry1.json +0 -0
  125. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/chi_chars.json +0 -0
  126. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/degrees1.json +0 -0
  127. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/dhammapada1.json +0 -0
  128. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/diction.json +0 -0
  129. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/fcci.json +0 -0
  130. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/hospitals.json +0 -0
  131. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/jamo.json +0 -0
  132. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/katakana.json +0 -0
  133. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/koran1.json +0 -0
  134. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/legal_terms1.json +0 -0
  135. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/medicals1.json +0 -0
  136. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/mims.json +0 -0
  137. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/proverbs.json +0 -0
  138. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/psychology1.json +0 -0
  139. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/science1.json +0 -0
  140. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/strains.json +0 -0
  141. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/acadlist.json +0 -0
  142. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/ahb.json +0 -0
  143. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/bible1.json +0 -0
  144. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/biology1.json +0 -0
  145. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/chemistry1.json +0 -0
  146. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/chi_chars.json +0 -0
  147. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/degrees1.json +0 -0
  148. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/dhammapada1.json +0 -0
  149. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/diction.json +0 -0
  150. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/fcci.json +0 -0
  151. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/hospitals.json +0 -0
  152. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/jamo.json +0 -0
  153. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/katakana.json +0 -0
  154. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/koran1.json +0 -0
  155. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/legal_terms1.json +0 -0
  156. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/medicals1.json +0 -0
  157. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/mims.json +0 -0
  158. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/proverbs.json +0 -0
  159. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/psychology1.json +0 -0
  160. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/science1.json +0 -0
  161. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/strains.json +0 -0
  162. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/tracks.json +0 -0
  163. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/themed/verses1.json +0 -0
  164. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/tracks.json +0 -0
  165. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/data/verses1.json +0 -0
  166. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/deepseek_ai.py +0 -0
  167. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/keys.py +0 -0
  168. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/main.py +0 -0
  169. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/scmpy.py +0 -0
  170. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/version_checker.py +0 -0
  171. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/hmptunnel/scripts/wrappers.py +0 -0
  172. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/LICENSE +0 -0
  173. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/__main__.py +0 -0
  174. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/agent.py +0 -0
  175. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/__init__.py +0 -0
  176. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/almanac.py +0 -0
  177. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/domains.py +0 -0
  178. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/domains_applied.py +0 -0
  179. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/encyclopedia.py +0 -0
  180. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/lexicon.py +0 -0
  181. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/people.py +0 -0
  182. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/sources.py +0 -0
  183. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/content/timeline.py +0 -0
  184. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/acadlist.json +0 -0
  185. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/ahb.json +0 -0
  186. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/bible1.json +0 -0
  187. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/biology1.json +0 -0
  188. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/chemistry1.json +0 -0
  189. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/chi_chars.json +0 -0
  190. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/degrees1.json +0 -0
  191. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/dhammapada1.json +0 -0
  192. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/diction.json +0 -0
  193. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/diction_raw.json +0 -0
  194. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/fcci.json +0 -0
  195. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/hospitals.json +0 -0
  196. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/jamo.json +0 -0
  197. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/katakana.json +0 -0
  198. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/koran1.json +0 -0
  199. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/legal_terms1.json +0 -0
  200. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/manifest.json +0 -0
  201. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/medicals1.json +0 -0
  202. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/mims.json +0 -0
  203. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/proverbs.json +0 -0
  204. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/psychology1.json +0 -0
  205. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/science1.json +0 -0
  206. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/data/verses1.json +0 -0
  207. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/knowledge.py +0 -0
  208. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/modules/polyhistor/py.typed +0 -0
  209. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/__init__.py +0 -0
  210. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/ai_image.py +0 -0
  211. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/acadlist.json +0 -0
  212. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/ahb.json +0 -0
  213. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/bible1.json +0 -0
  214. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/biology1.json +0 -0
  215. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/chemistry1.json +0 -0
  216. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/chi_chars.json +0 -0
  217. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/degrees1.json +0 -0
  218. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/dhammapada1.json +0 -0
  219. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/fcci.json +0 -0
  220. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/hospitals.json +0 -0
  221. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/jamo.json +0 -0
  222. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/katakana.json +0 -0
  223. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/koran1.json +0 -0
  224. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/legal_terms1.json +0 -0
  225. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/medicals1.json +0 -0
  226. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/mims.json +0 -0
  227. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/proverbs.json +0 -0
  228. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/psychology1.json +0 -0
  229. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/science1.json +0 -0
  230. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/strains.json +0 -0
  231. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/tracks.json +0 -0
  232. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/data/verses1.json +0 -0
  233. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/deepseek_ai.py +0 -0
  234. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/keys.py +0 -0
  235. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/main.py +0 -0
  236. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/native.py +0 -0
  237. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/scmpy.py +0 -0
  238. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs/scripts/wrappers.py +0 -0
  239. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs.egg-info/dependency_links.txt +0 -0
  240. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs.egg-info/entry_points.txt +0 -0
  241. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs.egg-info/requires.txt +0 -0
  242. {mprocs-9.1.2 → mprocs-10.11}/src/MProcs.egg-info/top_level.txt +0 -0
@@ -5,6 +5,7 @@ recursive-include src/MProcs/modules *.json
5
5
  recursive-include src/MProcs/modules *.txt
6
6
  recursive-include src/MProcs/modules *.md
7
7
  recursive-include src/MProcs/modules LICENSE
8
+ recursive-include tools *.py *.txt *.md
8
9
  include src/MProcs/modules/polyhistor/py.typed
9
10
  global-exclude __pycache__
10
11
  global-exclude *.pyc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MProcs
3
- Version: 9.1.2
3
+ Version: 10.11
4
4
  Summary: MProcs // Terminal Suite - MProcs, POLYHISTOR, FLU0 and JADE//WIRE in one launcher
5
5
  Author-email: tderk <usvu.tech@gmail.com>
6
6
  License: MIT
@@ -19,7 +19,7 @@ Dynamic: license-file
19
19
 
20
20
  Derived from NeonBunny. A Life program by tderk, originally LPro.py and Destiny [2024].
21
21
 
22
- ## MProcs // Terminal Suite (12.0 / app 9.1.2)
22
+ ## MProcs // Terminal Suite (14 / app 10.11)
23
23
 
24
24
  MProcs is now a single, self-contained launcher for every terminal in the
25
25
  suite. Nothing is looked up on PyPI, nothing is downloaded at startup, and the
@@ -55,6 +55,9 @@ that terminal's **original curses TUI**:
55
55
 
56
56
  ### Colours, boxes and resizing
57
57
 
58
+ - On startup the launcher plays a four-second colourful Matrix-rain intro with
59
+ the MProcs wordmark before the menu appears. Press any key to skip it, or set
60
+ `MPROCS_NO_SPLASH=1` to disable it.
58
61
  - POLYHISTOR uses the MProcs 256-colour ANSI renderer (`38;5;n`, bold, dim,
59
62
  underline, reverse) and is sized to the live content width.
60
63
  - FLU0 and JADE//WIRE run their original TUI directly, so their colours,
@@ -151,7 +154,7 @@ Fix applied vs. original PyPI sdist: moved `dependencies = ["requests","ddgs"]`
151
154
  ```bash
152
155
  # from this directory (/home/kredt/BDCS/MProcs)
153
156
  pip install --upgrade build twine
154
- python -m build # creates dist/mprocs-9.1.2.tar.gz + .whl
157
+ python -m build # creates dist/mprocs-10.11.tar.gz + .whl
155
158
  # or
156
159
  pip wheel . --no-deps
157
160
  pip install dist/mprocs-*.whl # test install
@@ -287,7 +290,7 @@ Display full article from source header? (enter header/title/id or n): agent-tra
287
290
  terminal summary.
288
291
  - `MProcs --list`, `MProcs --version` and `MProcs --help` are available without
289
292
  starting the TUI.
290
- - `pyproject.toml` application version `9.1.2` (suite version `12.0`); package data includes every terminal data
293
+ - `pyproject.toml` application version `10.11` (suite version `14`); package data includes every terminal data
291
294
  directory.
292
295
 
293
296
  **Layout:** `src/MProcs/modules/{polyhistor,flu0,hmptunnel}`.
@@ -343,8 +346,49 @@ PASSED.
343
346
  between blank lines.
344
347
  - **Wording:** removed previous integration labels from the UI, package description and
345
348
  documentation.
346
- - **Versions:** MProcs `12.0`; application package `9.1.2`.
349
+ - **Versions:** MProcs `14`; application package `10.11`.
347
350
 
348
351
  **Verified:** 256-colour POLYHISTOR output and spacing, FLU0/JADE//WIRE boards
349
352
  with rails/frame, both GWFs, nested Esc/Ctrl-G navigation, update screen and
350
353
  SOP, `MProcs --user`, responsive resize, and `twine check`.
354
+
355
+ ---
356
+ ## Update — Medical diction + switchable lexicons + inline arguments
357
+
358
+ - **Default diction:** `src/MProcs/scripts/data/diction.json` is now a
359
+ 39,032-entry medical vocabulary (same size as the former English list).
360
+ It combines the PubMed word-frequency corpus with vocabulary mined from
361
+ `medicals1`, `mims`, `biology1`, `chemistry1`, `psychology1` and `science1`.
362
+ The former list is preserved as `diction_former.json`.
363
+ - **Diction switch:** `data_loader.switch_diction(source)` changes the live
364
+ `diction` list in place. Available sources for MProcs are `medical`
365
+ (default), `former`, `polyhistor`, `flu0` (themed), `flu0-raw`,
366
+ `hmptunnel` (themed) and `hmptunnel-raw`. It is also re-exported as
367
+ `MProcs.switch_diction`.
368
+ From the terminal: `diction former`, `diction polyhistor`, etc. With no
369
+ argument it lists the sources and prompts.
370
+ - **Other terminals:** POLYHISTOR, FLU0 and JADE//WIRE each expose the same
371
+ runtime `diction` switch and inline-value handling. Their own vocabularies
372
+ remain their defaults; the medical list is never made their default.
373
+ POLYHISTOR uses `diction switch <source>` (or `diction <source>`); FLU0 and
374
+ JADE//WIRE use the same `diction <source>` command as MProcs.
375
+ - **Inline arguments:** commands that ask for a value accept it on the same
376
+ line, following the existing `user AAPL` pattern. Examples:
377
+ `medicals 5`, `MIMS 2`, `search blood pressure`, `cd /tmp`,
378
+ `nano chars korean`, `tag foo`, `diction flu0`. The command's first prompt
379
+ consumes the inline value; any remaining prompts continue interactively.
380
+ - **FLU0 diction = ghostwrite wordlist:** selecting `flu0` as the diction
381
+ loads FLU0's actual ghostwrite wordlist into the switchable pool used by
382
+ **ghostwrite and IGW only**: `modules/flu0/scripts/data/lexicon.json`
383
+ (first word of each entry, multi-word entries skipped). FLU0's main
384
+ `diction` list — used by nano, tag, GWF and the rest — stays unchanged.
385
+ In MProcs, POLYHISTOR and JADE//WIRE the same `flu0` source loads that
386
+ wordlist into the live diction.
387
+ - **`flu0` command:** MProcs, POLYHISTOR and JADE//WIRE now have a `flu0`
388
+ function/command that runs the same `nano` burst as the host terminal but
389
+ samples FLU0's nano wordlist (`modules/flu0/scripts/data/themed/diction.json`).
390
+ FLU0 itself accepts `flu0` as an alias for its own `nano`.
391
+ - **`+` / `+N`:** all terminals accept `+` for continuous ghostwrite and
392
+ `+N` for N instant ghostwrite lines, matching FLU0's IGW shorthand.
393
+ - **Rebuild:** `python3 tools/build_medical_diction.py --write`
394
+ (source list: `tools/medical_wordlist.txt`).
@@ -2,7 +2,7 @@
2
2
 
3
3
  Derived from NeonBunny. A Life program by tderk, originally LPro.py and Destiny [2024].
4
4
 
5
- ## MProcs // Terminal Suite (12.0 / app 9.1.2)
5
+ ## MProcs // Terminal Suite (14 / app 10.11)
6
6
 
7
7
  MProcs is now a single, self-contained launcher for every terminal in the
8
8
  suite. Nothing is looked up on PyPI, nothing is downloaded at startup, and the
@@ -38,6 +38,9 @@ that terminal's **original curses TUI**:
38
38
 
39
39
  ### Colours, boxes and resizing
40
40
 
41
+ - On startup the launcher plays a four-second colourful Matrix-rain intro with
42
+ the MProcs wordmark before the menu appears. Press any key to skip it, or set
43
+ `MPROCS_NO_SPLASH=1` to disable it.
41
44
  - POLYHISTOR uses the MProcs 256-colour ANSI renderer (`38;5;n`, bold, dim,
42
45
  underline, reverse) and is sized to the live content width.
43
46
  - FLU0 and JADE//WIRE run their original TUI directly, so their colours,
@@ -134,7 +137,7 @@ Fix applied vs. original PyPI sdist: moved `dependencies = ["requests","ddgs"]`
134
137
  ```bash
135
138
  # from this directory (/home/kredt/BDCS/MProcs)
136
139
  pip install --upgrade build twine
137
- python -m build # creates dist/mprocs-9.1.2.tar.gz + .whl
140
+ python -m build # creates dist/mprocs-10.11.tar.gz + .whl
138
141
  # or
139
142
  pip wheel . --no-deps
140
143
  pip install dist/mprocs-*.whl # test install
@@ -270,7 +273,7 @@ Display full article from source header? (enter header/title/id or n): agent-tra
270
273
  terminal summary.
271
274
  - `MProcs --list`, `MProcs --version` and `MProcs --help` are available without
272
275
  starting the TUI.
273
- - `pyproject.toml` application version `9.1.2` (suite version `12.0`); package data includes every terminal data
276
+ - `pyproject.toml` application version `10.11` (suite version `14`); package data includes every terminal data
274
277
  directory.
275
278
 
276
279
  **Layout:** `src/MProcs/modules/{polyhistor,flu0,hmptunnel}`.
@@ -326,8 +329,49 @@ PASSED.
326
329
  between blank lines.
327
330
  - **Wording:** removed previous integration labels from the UI, package description and
328
331
  documentation.
329
- - **Versions:** MProcs `12.0`; application package `9.1.2`.
332
+ - **Versions:** MProcs `14`; application package `10.11`.
330
333
 
331
334
  **Verified:** 256-colour POLYHISTOR output and spacing, FLU0/JADE//WIRE boards
332
335
  with rails/frame, both GWFs, nested Esc/Ctrl-G navigation, update screen and
333
336
  SOP, `MProcs --user`, responsive resize, and `twine check`.
337
+
338
+ ---
339
+ ## Update — Medical diction + switchable lexicons + inline arguments
340
+
341
+ - **Default diction:** `src/MProcs/scripts/data/diction.json` is now a
342
+ 39,032-entry medical vocabulary (same size as the former English list).
343
+ It combines the PubMed word-frequency corpus with vocabulary mined from
344
+ `medicals1`, `mims`, `biology1`, `chemistry1`, `psychology1` and `science1`.
345
+ The former list is preserved as `diction_former.json`.
346
+ - **Diction switch:** `data_loader.switch_diction(source)` changes the live
347
+ `diction` list in place. Available sources for MProcs are `medical`
348
+ (default), `former`, `polyhistor`, `flu0` (themed), `flu0-raw`,
349
+ `hmptunnel` (themed) and `hmptunnel-raw`. It is also re-exported as
350
+ `MProcs.switch_diction`.
351
+ From the terminal: `diction former`, `diction polyhistor`, etc. With no
352
+ argument it lists the sources and prompts.
353
+ - **Other terminals:** POLYHISTOR, FLU0 and JADE//WIRE each expose the same
354
+ runtime `diction` switch and inline-value handling. Their own vocabularies
355
+ remain their defaults; the medical list is never made their default.
356
+ POLYHISTOR uses `diction switch <source>` (or `diction <source>`); FLU0 and
357
+ JADE//WIRE use the same `diction <source>` command as MProcs.
358
+ - **Inline arguments:** commands that ask for a value accept it on the same
359
+ line, following the existing `user AAPL` pattern. Examples:
360
+ `medicals 5`, `MIMS 2`, `search blood pressure`, `cd /tmp`,
361
+ `nano chars korean`, `tag foo`, `diction flu0`. The command's first prompt
362
+ consumes the inline value; any remaining prompts continue interactively.
363
+ - **FLU0 diction = ghostwrite wordlist:** selecting `flu0` as the diction
364
+ loads FLU0's actual ghostwrite wordlist into the switchable pool used by
365
+ **ghostwrite and IGW only**: `modules/flu0/scripts/data/lexicon.json`
366
+ (first word of each entry, multi-word entries skipped). FLU0's main
367
+ `diction` list — used by nano, tag, GWF and the rest — stays unchanged.
368
+ In MProcs, POLYHISTOR and JADE//WIRE the same `flu0` source loads that
369
+ wordlist into the live diction.
370
+ - **`flu0` command:** MProcs, POLYHISTOR and JADE//WIRE now have a `flu0`
371
+ function/command that runs the same `nano` burst as the host terminal but
372
+ samples FLU0's nano wordlist (`modules/flu0/scripts/data/themed/diction.json`).
373
+ FLU0 itself accepts `flu0` as an alias for its own `nano`.
374
+ - **`+` / `+N`:** all terminals accept `+` for continuous ghostwrite and
375
+ `+N` for N instant ghostwrite lines, matching FLU0's IGW shorthand.
376
+ - **Rebuild:** `python3 tools/build_medical_diction.py --write`
377
+ (source list: `tools/medical_wordlist.txt`).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "MProcs"
7
- version = "9.1.2"
7
+ version = "10.11"
8
8
  description = "MProcs // Terminal Suite - MProcs, POLYHISTOR, FLU0 and JADE//WIRE in one launcher"
9
9
  requires-python = ">=3.8"
10
10
  readme = "README.md"
@@ -22,8 +22,8 @@ lpro-s = "MProcs.scripts.lpro_s:main"
22
22
  gwf = "MProcs.scripts.gwf:run"
23
23
 
24
24
  [tool.mprocs]
25
- version = "12.0"
26
- app-version = "9.1.2"
25
+ version = "14"
26
+ app-version = "10.11"
27
27
 
28
28
  [project.optional-dependencies]
29
29
  dev = ["pytest", "black", "flake8"]
@@ -0,0 +1,10 @@
1
+ """MProcs terminal suite."""
2
+
3
+ __version__ = "14"
4
+ __app_version__ = "10.11"
5
+
6
+
7
+ def switch_diction(source=None):
8
+ """Switch MProcs' active diction (medical, former, polyhistor, flu0, hmptunnel)."""
9
+ from .scripts.data_loader import switch_diction as _switch_diction
10
+ return _switch_diction(source)
@@ -0,0 +1,9 @@
1
+ """FLU0 terminal."""
2
+
3
+ __version__ = "0.3.0"
4
+
5
+
6
+ def switch_diction(source=None):
7
+ """Switch FLU0's live diction without changing its themed default."""
8
+ from .scripts import data_loader
9
+ return data_loader.switch_diction(source)
@@ -0,0 +1,149 @@
1
+ import json
2
+ import os
3
+
4
+ try:
5
+ from . import theme
6
+ except ImportError:
7
+ from . import theme
8
+
9
+ _script_dir = os.path.dirname(os.path.abspath(__file__))
10
+ _data_dir = os.path.join(_script_dir, 'data')
11
+ _themed_dir = os.path.join(_data_dir, 'themed')
12
+ _module_dir = os.path.dirname(_script_dir)
13
+ _modules_dir = os.path.dirname(_module_dir)
14
+ _mprocs_dir = os.path.dirname(_modules_dir)
15
+ _scripts_data = os.path.join(_mprocs_dir, 'scripts', 'data')
16
+
17
+ # FLU0 keeps its themed vocabulary as the default. The other sources are
18
+ # runtime switches only; the default is never changed to the medical set.
19
+ DICTION_SOURCES = {
20
+ 'flu0': os.path.join(_data_dir, 'lexicon.json'),
21
+ 'flu0-raw': os.path.join(_data_dir, 'diction.json'),
22
+ 'former': os.path.join(_data_dir, 'diction.json'),
23
+ 'medical': os.path.join(_scripts_data, 'diction.json'),
24
+ 'polyhistor': os.path.join(_modules_dir, 'polyhistor', 'data', 'diction.json'),
25
+ 'hmptunnel': os.path.join(_modules_dir, 'hmptunnel', 'scripts', 'data', 'themed', 'diction.json'),
26
+ 'hmptunnel-raw': os.path.join(_modules_dir, 'hmptunnel', 'scripts', 'data', 'diction.json'),
27
+ }
28
+
29
+ _DICTION_ALIASES = {
30
+ 'flu0': 'flu0', 'flu0net': 'flu0', 'default': 'flu0',
31
+ 'flu0-raw': 'flu0-raw', 'flu0raw': 'flu0-raw',
32
+ 'former': 'former', 'old': 'former', 'original': 'former',
33
+ 'english': 'former', 'words': 'former', 'raw': 'former',
34
+ 'medical': 'medical', 'med': 'medical', 'medicine': 'medical',
35
+ 'polyhistor': 'polyhistor', 'poly': 'polyhistor', 'knowledge': 'polyhistor',
36
+ 'hmptunnel': 'hmptunnel', 'hmp': 'hmptunnel', 'jade': 'hmptunnel',
37
+ 'wire': 'hmptunnel',
38
+ 'hmptunnel-raw': 'hmptunnel-raw', 'hmptunnelraw': 'hmptunnel-raw',
39
+ }
40
+
41
+ _active_diction = 'flu0'
42
+
43
+
44
+ def _read_diction(path, skip_spaces=False):
45
+ with open(path, encoding='utf-8') as f:
46
+ raw = json.load(f)
47
+ if not isinstance(raw, list):
48
+ raise ValueError('diction source is not a list: %s' % path)
49
+ words = []
50
+ for entry in raw:
51
+ if isinstance(entry, (list, tuple)) and entry:
52
+ entry = entry[0]
53
+ elif isinstance(entry, dict):
54
+ entry = entry.get('word') or entry.get('term') or entry.get('name')
55
+ word = str(entry).strip() if entry is not None else ''
56
+ if word and (not skip_spaces or ' ' not in word):
57
+ words.append(word)
58
+ if not words:
59
+ raise ValueError('diction source is empty: %s' % path)
60
+ return words
61
+
62
+
63
+ def available_dictions():
64
+ return {name: path for name, path in DICTION_SOURCES.items() if os.path.isfile(path)}
65
+
66
+
67
+ def current_diction():
68
+ return _active_diction
69
+
70
+
71
+ def switch_diction(source=None):
72
+ """Switch the wordlist used by FLU0 ghostwrite and IGW.
73
+
74
+ The main ``diction`` list (nano, tag, GWF, ...) is never changed.
75
+ """
76
+ global _active_diction
77
+
78
+ sources = available_dictions()
79
+ if source is None:
80
+ print('Available diction sources:')
81
+ for name in sources:
82
+ print(' %s' % name)
83
+ source = input('diction source: ').strip()
84
+
85
+ source = str(source).strip()
86
+ if not source:
87
+ raise ValueError('no diction source supplied')
88
+
89
+ expanded = os.path.expanduser(source)
90
+ if os.path.isfile(expanded):
91
+ name = os.path.splitext(os.path.basename(expanded))[0]
92
+ path = expanded
93
+ else:
94
+ name = _DICTION_ALIASES.get(source.lower(), source.lower())
95
+ if name not in sources:
96
+ raise ValueError('unknown diction source %r; choose from: %s' % (source, ', '.join(sources)))
97
+ path = sources[name]
98
+
99
+ words = _read_diction(path, skip_spaces=(name == 'flu0'))
100
+ ghostwrite_diction[:] = words
101
+ _active_diction = name
102
+ return {'name': name, 'count': len(words), 'path': path}
103
+
104
+
105
+ def _load(name):
106
+ if os.environ.get('FLU0_RAW_DATA'):
107
+ path = os.path.join(_data_dir, f'{name}.json')
108
+ with open(path, encoding='utf-8') as f:
109
+ return json.load(f)
110
+ themed_path = os.path.join(_themed_dir, f'{name}.json')
111
+ if os.path.isfile(themed_path):
112
+ with open(themed_path, encoding='utf-8') as f:
113
+ return json.load(f)
114
+ path = os.path.join(_data_dir, f'{name}.json')
115
+ with open(path, encoding='utf-8') as f:
116
+ data = json.load(f)
117
+ return theme.transform_dataset(name, data)
118
+
119
+
120
+ katakana = _load('katakana')
121
+ jamo = _load('jamo')
122
+ chi_chars = _load('chi_chars')
123
+ proverbs = _load('proverbs')
124
+ diction = _load('diction')
125
+
126
+ # FLU0 ghostwrite/IGW have their own switchable pool. The terminal diction
127
+ # above stays exactly as loaded (themed by default, or raw with FLU0_RAW_DATA).
128
+ _ghostwrite_path = os.path.join(_data_dir, 'lexicon.json')
129
+ if not os.path.isfile(_ghostwrite_path):
130
+ _ghostwrite_path = os.path.join(_data_dir, 'diction.json')
131
+ ghostwrite_diction = _read_diction(_ghostwrite_path, skip_spaces=True)
132
+ acadlist = _load('acadlist')
133
+ dhammapada1 = _load('dhammapada1')
134
+ medicals1 = _load('medicals1')
135
+ mims = _load('mims')
136
+ science1 = _load('science1')
137
+ psychology1 = _load('psychology1')
138
+ biology1 = _load('biology1')
139
+ chemistry1 = _load('chemistry1')
140
+ legal_terms1 = _load('legal_terms1')
141
+ degrees1 = _load('degrees1')
142
+ verses1 = _load('verses1')
143
+ bible1 = _load('bible1')
144
+ koran1 = _load('koran1')
145
+ fcci = _load('fcci')
146
+ hospitals = _load('hospitals')
147
+ tracks = _load('tracks')
148
+ strains = _load('strains')
149
+ ahb = _load('ahb')
@@ -326,6 +326,12 @@ _WORDS = None
326
326
 
327
327
  def _words():
328
328
  global _WORDS
329
+ try:
330
+ from . import data_loader
331
+ if data_loader.ghostwrite_diction:
332
+ return data_loader.ghostwrite_diction
333
+ except Exception:
334
+ pass
329
335
  if _WORDS is None:
330
336
  _WORDS = [e[0] for e in lexicon.entries() if " " not in e[0]] or ["signal"]
331
337
  return _WORDS
@@ -31,15 +31,23 @@ _BLIP_COLORS = [_CYAN, _YELLOW, _MAGENTA, _RED, _WHITE]
31
31
 
32
32
  def _load_words():
33
33
  try:
34
- here = os.path.dirname(os.path.abspath(__file__))
35
- themed = os.path.join(here, 'data', 'themed', 'diction.json')
36
- path = themed if os.path.isfile(themed) else os.path.join(here, 'data', 'diction.json')
37
- with open(path) as f:
38
- words = json.load(f)
39
- words = [str(w).strip() for w in words if str(w).strip()]
40
- return words
34
+ # Use the live data_loader list so ``diction`` switches are reflected
35
+ # in FLU0 GWF without a restart.
36
+ try:
37
+ from . import data_loader
38
+ except ImportError:
39
+ import data_loader
40
+ return data_loader.diction
41
41
  except Exception:
42
- return []
42
+ try:
43
+ here = os.path.dirname(os.path.abspath(__file__))
44
+ themed = os.path.join(here, 'data', 'themed', 'diction.json')
45
+ path = themed if os.path.isfile(themed) else os.path.join(here, 'data', 'diction.json')
46
+ with open(path) as f:
47
+ words = json.load(f)
48
+ return [str(w).strip() for w in words if str(w).strip()]
49
+ except Exception:
50
+ return []
43
51
 
44
52
 
45
53
  _WORDS = _load_words()
@@ -348,7 +356,7 @@ class GWF:
348
356
  lines.extend(rows[:body_rows])
349
357
  if chrome:
350
358
  lines.append(self._status_line(width))
351
- keys = self._fit(' [g] green [c] blip-color [w] words [n] new [p] pause [+/-] speed ', width)
359
+ keys = self._fit(' [g] green [c] blip-color [w] words [n] new [p] pause [+/-] speed [q/Esc] quit ', width)
352
360
  lines.append(_YELLOW + keys + _RESET)
353
361
  while len(lines) < total:
354
362
  lines.append('')
@@ -391,11 +399,11 @@ class GWF:
391
399
  return True
392
400
 
393
401
  def _on_key(self, key):
402
+ if key == 27 or key == '\x1b':
403
+ self.running = False
404
+ return True
394
405
  if isinstance(key, str):
395
406
  k = key.lower()
396
- if k == '\x1b':
397
- self.running = False
398
- return True
399
407
  if k == 'g':
400
408
  self._green_paused = not self._green_paused
401
409
  return True
@@ -417,16 +425,45 @@ class GWF:
417
425
  if k == '-':
418
426
  self._speed = max(0.05, self._speed / 1.5)
419
427
  return True
428
+ if k == 'q':
429
+ self.running = False
430
+ return True
420
431
  return False
421
432
 
422
- def run_wrapper(self, tui, lpro, lpro_s, session_usr='zeta', active='s', first=True):
433
+ def _read_keys(self):
434
+ """Standalone key loop: Esc or q closes GWF when no host TUI is present."""
435
+ try:
436
+ import select
437
+ import termios
438
+ import tty
439
+ except ImportError:
440
+ return
441
+ if not sys.stdin.isatty():
442
+ return
443
+ fd = sys.stdin.fileno()
444
+ saved = termios.tcgetattr(fd)
445
+ try:
446
+ tty.setcbreak(fd)
447
+ while self.running:
448
+ ready, _, _ = select.select([sys.stdin], [], [], 0.1)
449
+ if not ready:
450
+ continue
451
+ ch = os.read(fd, 1).decode('utf-8', 'ignore')
452
+ if not ch:
453
+ break
454
+ self._on_key(ch)
455
+ finally:
456
+ termios.tcsetattr(fd, termios.TCSADRAIN, saved)
457
+
458
+ def run_wrapper(self, tui, lpro, lpro_s, session_usr='zeta', active='s', first=True,
459
+ return_to_menu=True):
423
460
  self.tui = tui
424
461
  standalone = tui is None
425
462
  try:
426
463
  from . import tui as tui_mod
427
- return_to_menu = tui_mod._ReturnToMenu
464
+ return_to_menu_exc = tui_mod._ReturnToMenu
428
465
  except ImportError:
429
- return_to_menu = None
466
+ return_to_menu_exc = None
430
467
  if standalone:
431
468
  sys.stdout.write('\x1b[?1049h\x1b[?25l')
432
469
  sys.stdout.flush()
@@ -439,6 +476,8 @@ class GWF:
439
476
  thread = threading.Thread(target=self._animate, args=(stop,), daemon=True)
440
477
  thread.start()
441
478
  try:
479
+ if standalone:
480
+ self._read_keys()
442
481
  while self.running:
443
482
  if not standalone and tui.exit_requested:
444
483
  break
@@ -453,8 +492,8 @@ class GWF:
453
492
  sys.stdout.flush()
454
493
  else:
455
494
  tui.set_app_key_handler(None)
456
- if not standalone and return_to_menu is not None:
457
- raise return_to_menu()
495
+ if not standalone and return_to_menu and return_to_menu_exc is not None:
496
+ raise return_to_menu_exc()
458
497
 
459
498
 
460
499
  def run():