rosettex 1.0.0__tar.gz → 1.0.2__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 (202) hide show
  1. {rosettex-1.0.0 → rosettex-1.0.2}/.antigravity-plugin/plugin.json +1 -1
  2. {rosettex-1.0.0 → rosettex-1.0.2}/.claude-plugin/marketplace.json +1 -1
  3. {rosettex-1.0.0 → rosettex-1.0.2}/.claude-plugin/plugin.json +1 -1
  4. {rosettex-1.0.0 → rosettex-1.0.2}/.github/workflows/ci.yml +6 -0
  5. {rosettex-1.0.0 → rosettex-1.0.2}/.github/workflows/release.yml +6 -0
  6. {rosettex-1.0.0 → rosettex-1.0.2}/.gitignore +2 -2
  7. {rosettex-1.0.0 → rosettex-1.0.2}/.mcp.json +1 -1
  8. {rosettex-1.0.0 → rosettex-1.0.2}/CHANGELOG.md +10 -0
  9. rosettex-1.0.2/PKG-INFO +226 -0
  10. rosettex-1.0.2/README.md +198 -0
  11. {rosettex-1.0.0 → rosettex-1.0.2}/gemini-extension.json +2 -2
  12. {rosettex-1.0.0 → rosettex-1.0.2}/mcp.json +1 -1
  13. {rosettex-1.0.0 → rosettex-1.0.2}/mcp_config.json +1 -1
  14. {rosettex-1.0.0 → rosettex-1.0.2}/plugin.json +1 -1
  15. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/hermes/mcp.json +1 -1
  16. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/hermes/plugin.json +1 -1
  17. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/hermes/skills/rosettex/SKILL.md +1 -1
  18. rosettex-1.0.2/pyproject.toml +47 -0
  19. {rosettex-1.0.0 → rosettex-1.0.2}/scripts/ci_smoke.py +28 -1
  20. {rosettex-1.0.0 → rosettex-1.0.2}/server.json +3 -3
  21. {rosettex-1.0.0 → rosettex-1.0.2}/skills/rosettex/SKILL.md +1 -1
  22. rosettex-1.0.2/src/rosettex/__init__.py +1 -0
  23. rosettex-1.0.2/src/rosettex/build/bisect.py +26 -0
  24. rosettex-1.0.2/src/rosettex/build/diagnose.py +787 -0
  25. rosettex-1.0.2/src/rosettex/build/driver.py +265 -0
  26. rosettex-1.0.2/src/rosettex/build/guard.lua +295 -0
  27. rosettex-1.0.2/src/rosettex/build/guard.py +196 -0
  28. rosettex-1.0.2/src/rosettex/build/pipeline.py +947 -0
  29. rosettex-1.0.2/src/rosettex/build/preamble.py +780 -0
  30. rosettex-1.0.2/src/rosettex/build/repair_state.py +35 -0
  31. rosettex-1.0.2/src/rosettex/build/shim.py +305 -0
  32. rosettex-1.0.2/src/rosettex/build/texbin.py +51 -0
  33. rosettex-1.0.2/src/rosettex/data/scripts/__init__.py +0 -0
  34. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/skill/rosettex/SKILL.md +1 -1
  35. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/mcp.py +2 -1
  36. {rosettex-1.0.0 → rosettex-1.0.2}/uv.lock +1 -1
  37. rosettex-1.0.0/PKG-INFO +0 -197
  38. rosettex-1.0.0/README.md +0 -184
  39. rosettex-1.0.0/pyproject.toml +0 -28
  40. rosettex-1.0.0/src/rosettex/__init__.py +0 -1
  41. {rosettex-1.0.0 → rosettex-1.0.2}/.agents/plugins/marketplace.json +0 -0
  42. {rosettex-1.0.0 → rosettex-1.0.2}/.python-version +0 -0
  43. {rosettex-1.0.0 → rosettex-1.0.2}/LICENSE +0 -0
  44. {rosettex-1.0.0 → rosettex-1.0.2}/assets/demo-pdf-vi.png +0 -0
  45. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/hermes/LICENSE +0 -0
  46. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/hermes/README.md +0 -0
  47. {rosettex-1.0.0 → rosettex-1.0.2}/plugins/mcp.dev.json +0 -0
  48. {rosettex-1.0.0 → rosettex-1.0.2}/scripts/pseudo_translate.py +0 -0
  49. {rosettex-1.0.0 → rosettex-1.0.2}/scripts/roundtrip_gate.py +0 -0
  50. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/__main__.py +0 -0
  51. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/arxiv.py +0 -0
  52. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/assemble.py +0 -0
  53. {rosettex-1.0.0/src/rosettex/data → rosettex-1.0.2/src/rosettex/build}/__init__.py +0 -0
  54. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/checks.py +0 -0
  55. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/cli.py +0 -0
  56. {rosettex-1.0.0/src/rosettex/data/fonts → rosettex-1.0.2/src/rosettex/data}/__init__.py +0 -0
  57. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/commands.json +0 -0
  58. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifBengali-OFL.txt +0 -0
  59. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifDevanagari-OFL.txt +0 -0
  60. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifEthiopic-OFL.txt +0 -0
  61. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifGujarati-OFL.txt +0 -0
  62. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifJP-OFL.txt +0 -0
  63. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifKR-OFL.txt +0 -0
  64. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifKannada-OFL.txt +0 -0
  65. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifMyanmar-OFL.txt +0 -0
  66. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifSC-OFL.txt +0 -0
  67. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifTC-OFL.txt +0 -0
  68. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifTamil-OFL.txt +0 -0
  69. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifTelugu-OFL.txt +0 -0
  70. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/NotoSerifThai-OFL.txt +0 -0
  71. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/LICENSES/Vazirmatn-OFL.txt +0 -0
  72. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/MANIFEST.json +0 -0
  73. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifBengali-Regular.ttf +0 -0
  74. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifDevanagari-Regular.ttf +0 -0
  75. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifEthiopic-Regular.ttf +0 -0
  76. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  77. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifJP-Regular.otf +0 -0
  78. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifKR-Regular.otf +0 -0
  79. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifKannada-Regular.ttf +0 -0
  80. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifMyanmar-Regular.ttf +0 -0
  81. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifSC-Regular.otf +0 -0
  82. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifTC-Regular.otf +0 -0
  83. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifTamil-Regular.ttf +0 -0
  84. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifTelugu-Regular.ttf +0 -0
  85. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/NotoSerifThai-Regular.ttf +0 -0
  86. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/Vazirmatn-Regular.ttf +0 -0
  87. {rosettex-1.0.0/src/rosettex/data/scripts → rosettex-1.0.2/src/rosettex/data/fonts}/__init__.py +0 -0
  88. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/fonts/coverage.json +0 -0
  89. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/instructions.md +0 -0
  90. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/am.json +0 -0
  91. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ar.json +0 -0
  92. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/as.json +0 -0
  93. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/be.json +0 -0
  94. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/bg.json +0 -0
  95. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/bn.json +0 -0
  96. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ckb.json +0 -0
  97. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/cs.json +0 -0
  98. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/de.json +0 -0
  99. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/en.json +0 -0
  100. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/es.json +0 -0
  101. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/fa.json +0 -0
  102. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/fr.json +0 -0
  103. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/gu.json +0 -0
  104. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/hi.json +0 -0
  105. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/id.json +0 -0
  106. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/it.json +0 -0
  107. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ja.json +0 -0
  108. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/kk.json +0 -0
  109. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/kn.json +0 -0
  110. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ko.json +0 -0
  111. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ky.json +0 -0
  112. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/mai.json +0 -0
  113. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/mk.json +0 -0
  114. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/mn.json +0 -0
  115. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/mr.json +0 -0
  116. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ms.json +0 -0
  117. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/my.json +0 -0
  118. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ne.json +0 -0
  119. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/nl.json +0 -0
  120. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/pl.json +0 -0
  121. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ps.json +0 -0
  122. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/pt.json +0 -0
  123. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ro.json +0 -0
  124. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ru.json +0 -0
  125. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sa.json +0 -0
  126. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sd.json +0 -0
  127. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sr-Cyrl.json +0 -0
  128. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sr-Latn.json +0 -0
  129. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sr.json +0 -0
  130. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/sv.json +0 -0
  131. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ta.json +0 -0
  132. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/te.json +0 -0
  133. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/tg.json +0 -0
  134. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/th.json +0 -0
  135. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ti.json +0 -0
  136. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/tr.json +0 -0
  137. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ug.json +0 -0
  138. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/uk.json +0 -0
  139. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/ur.json +0 -0
  140. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/vi.json +0 -0
  141. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-CN.json +0 -0
  142. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-HK.json +0 -0
  143. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-Hans.json +0 -0
  144. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-Hant.json +0 -0
  145. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-MO.json +0 -0
  146. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-SG.json +0 -0
  147. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh-TW.json +0 -0
  148. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/langs/zh.json +0 -0
  149. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/build.json +0 -0
  150. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/check.json +0 -0
  151. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/doctor.json +0 -0
  152. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/envelope.json +0 -0
  153. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/fetch.json +0 -0
  154. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/fix.json +0 -0
  155. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/guide.json +0 -0
  156. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/install-skill.json +0 -0
  157. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/prepare.json +0 -0
  158. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/review.json +0 -0
  159. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/setup.json +0 -0
  160. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/schemas/status.json +0 -0
  161. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/arabic.json +0 -0
  162. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/bengali.json +0 -0
  163. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/cyrillic.json +0 -0
  164. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/devanagari.json +0 -0
  165. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/ethiopic.json +0 -0
  166. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/gujarati.json +0 -0
  167. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/han.json +0 -0
  168. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/hangul.json +0 -0
  169. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/kana.json +0 -0
  170. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/kannada.json +0 -0
  171. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/latin.json +0 -0
  172. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/myanmar.json +0 -0
  173. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/tamil.json +0 -0
  174. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/telugu.json +0 -0
  175. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/data/scripts/thai.json +0 -0
  176. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/escape.py +0 -0
  177. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/jsonio.py +0 -0
  178. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/langdata.py +0 -0
  179. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/numbers.py +0 -0
  180. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/__init__.py +0 -0
  181. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/classify.py +0 -0
  182. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/extract.py +0 -0
  183. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/merge.py +0 -0
  184. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/overlay.py +0 -0
  185. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/pipeline.py +0 -0
  186. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/reconcile.py +0 -0
  187. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/rxfit.lua +0 -0
  188. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/schema.py +0 -0
  189. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/snippets.py +0 -0
  190. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/stream.py +0 -0
  191. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/pdf/strip.py +0 -0
  192. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/postcheck.py +0 -0
  193. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/protocol/skill_head.md +0 -0
  194. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/segment.py +0 -0
  195. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/skill.py +0 -0
  196. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/source.py +0 -0
  197. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/terms.py +0 -0
  198. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/texparse.py +0 -0
  199. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/textio.py +0 -0
  200. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/toolchain.py +0 -0
  201. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/unpack.py +0 -0
  202. {rosettex-1.0.0 → rosettex-1.0.2}/src/rosettex/workspace.py +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rosettex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
5
5
  "author": {
6
6
  "name": "20235106-huynk",
@@ -9,7 +9,7 @@
9
9
  "name": "rosettex",
10
10
  "source": "./",
11
11
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
12
- "version": "1.0.0"
12
+ "version": "1.0.2"
13
13
  }
14
14
  ]
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rosettex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
5
5
  "author": {
6
6
  "name": "20235106-huynk",
@@ -53,6 +53,12 @@ jobs:
53
53
  python-version: ${{ matrix.python }}
54
54
  - run: uv sync
55
55
  - run: uv run ruff check .
56
+ # The built wheel (not the source tree) must import every module.
57
+ - name: Wheel imports every module
58
+ shell: bash
59
+ run: |
60
+ uv build --wheel -o .ci/dist
61
+ uv run --isolated --no-project --with .ci/dist/*.whl python -c "import pkgutil, importlib, rosettex; [importlib.import_module(m.name) for m in pkgutil.walk_packages(rosettex.__path__, 'rosettex.') if not m.name.endswith('__main__')]; print('wheel ok')"
56
62
  - uses: actions/download-artifact@v4
57
63
  with:
58
64
  name: fixtures
@@ -19,6 +19,12 @@ jobs:
19
19
  run: test "v$(uv run python -c 'import rosettex; print(rosettex.__version__)')" = "$GITHUB_REF_NAME"
20
20
  - run: uv run python -m rosettex.skill --check
21
21
  - run: uv build
22
+ # The wheel must contain every subpackage and start: import all modules and run the CLI from the built wheel.
23
+ - name: Wheel smoke
24
+ run: |
25
+ uv venv /tmp/whl && uv pip install --python /tmp/whl dist/*.whl
26
+ /tmp/whl/bin/python -c "import pkgutil, importlib, rosettex; [importlib.import_module(m.name) for m in pkgutil.walk_packages(rosettex.__path__, 'rosettex.') if not m.name.endswith('__main__')]; print('wheel ok')"
27
+ /tmp/whl/bin/rosettex guide > /dev/null
22
28
  - uses: actions/upload-artifact@v4
23
29
  with:
24
30
  name: dist
@@ -3,8 +3,8 @@ __pycache__/
3
3
  .venv/
4
4
  .ruff_cache/
5
5
  *.egg-info/
6
- dist/
7
- build/
6
+ /dist/
7
+ /build/
8
8
  .ci/
9
9
 
10
10
  # Development-only content: never published
@@ -5,7 +5,7 @@
5
5
  "command": "uvx",
6
6
  "args": [
7
7
  "--from",
8
- "git+https://github.com/20235106-huynk/rosettex@v1.0.0",
8
+ "git+https://github.com/20235106-huynk/rosettex@v1.0.2",
9
9
  "rosettex-mcp"
10
10
  ]
11
11
  }
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2 — 2026-11-28
4
+ - Fix: the MCP tools without positional arguments (`guide`, `doctor`, `setup`) failed with
5
+ "unrecognized arguments: --". CI now calls them through the MCP server.
6
+
7
+ ## 1.0.1 — 2026-11-28
8
+ - Fix: the 1.0.0 package missed the `rosettex.build` subpackage (the MCP server and CLI failed to start). Releases now
9
+ check that the built wheel imports every module.
10
+ - Plugin manifests for every harness at the repo root (Claude Code, Codex, Copilot/Cursor/VS Code, Antigravity, Gemini
11
+ CLI, Hermes), MCP tool annotations, MCP protocol 2025-11-25.
12
+
3
13
  ## 1.0.0 — 2026-11-27
4
14
  Complete redesign (replaces the 0.x MinerU-based tool): input is the paper's TeX source or a born-digital PDF.
5
15
  - TeX route: fetch from a folder, archive or arXiv, segment the source into question sheets, check translations
@@ -0,0 +1,226 @@
1
+ Metadata-Version: 2.5
2
+ Name: rosettex
3
+ Version: 1.0.2
4
+ Summary: Translate scientific papers (TeX source or born-digital PDF) into another language with the original layout, for AI agent harnesses
5
+ Project-URL: Homepage, https://github.com/20235106-huynk/rosettex
6
+ Project-URL: Source, https://github.com/20235106-huynk/rosettex
7
+ Project-URL: Issues, https://github.com/20235106-huynk/rosettex/issues
8
+ Project-URL: Changelog, https://github.com/20235106-huynk/rosettex/blob/main/CHANGELOG.md
9
+ Author: Nguyễn Kim Huy
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: agents,latex,mcp,pdf,scientific-papers,translation
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Topic :: Text Processing :: Markup :: LaTeX
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: pylatexenc==2.10
25
+ Requires-Dist: pypdf<8,>=7.2
26
+ Requires-Dist: pypdfium2<6,>=5.15
27
+ Description-Content-Type: text/markdown
28
+
29
+ <!-- mcp-name: io.github.20235106-huynk/rosettex -->
30
+ <div align="center">
31
+
32
+ # rosettex 📜✨
33
+
34
+ **Translate scientific papers into 19+ languages — and keep the paper's own layout.**
35
+
36
+ [![PyPI](https://img.shields.io/pypi/v/rosettex?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/rosettex/)
37
+ [![CI](https://img.shields.io/github/actions/workflow/status/20235106-huynk/rosettex/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/20235106-huynk/rosettex/actions/workflows/ci.yml)
38
+ [![Python](https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://pypi.org/project/rosettex/)
39
+ [![Agents](https://img.shields.io/badge/agents-Claude%20Code%20%7C%20Codex%20%7C%20Copilot%20%7C%20Gemini%20%7C%20Antigravity%20%7C%20MCP-8e44ad?style=flat-square)](#-connect-your-agent)
40
+ [![License: MIT](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](https://github.com/20235106-huynk/rosettex/blob/main/LICENSE)
41
+
42
+ [Quick Install](#-quick-install-let-your-agent-do-it) • [Features](#-key-features) • [How It Works](#-how-it-works) • [Connect Your Agent](#-connect-your-agent) • [Languages](#-languages) • [Manual Install](#-manual-install)
43
+
44
+ <img src="https://raw.githubusercontent.com/20235106-huynk/rosettex/main/assets/demo-pdf-vi.png" alt="Page 1 of a paper in English (left) and the same page translated into Vietnamese by rosettex (right)" width="900">
45
+
46
+ <sub>A born-digital PDF (left) and rosettex's Vietnamese output (right): same page, same figure, same fonts for names and
47
+ formulas. Paper: Berestov et al., CEUR-WS Vol-3550 (CC BY 4.0).</sub>
48
+
49
+ </div>
50
+
51
+ ---
52
+
53
+ `rosettex` lets an **AI coding agent** translate a whole scientific paper — from its **TeX source** or from a
54
+ **born-digital PDF** — and returns a PDF with the paper's own layout.
55
+
56
+ **rosettex does not translate by itself — your agent is the translator.** rosettex does the engineering around it: it
57
+ splits the paper into question sheets with protected placeholders, checks every answer against strict rules, and
58
+ typesets the result so formulas, figures, citations and links stay real, selectable and clickable. It ships as a CLI, an
59
+ MCP server and an Agent Skill, packaged as a plugin for the major agent harnesses.
60
+
61
+ ## 🌟 Key Features
62
+
63
+ | Feature | Description |
64
+ |---|---|
65
+ | 🤖 **Built for agents** | Every command speaks `--json` and returns the next command to run (`next_argv`); an agent can drive the whole loop and resume after any interruption. |
66
+ | 📐 **Original layout** | From TeX source the paper is rebuilt with its own class and packages; from a PDF the original pages are kept and only the text in the translated boxes is replaced. |
67
+ | 🧮 **Formulas stay formulas** | Math, citations and links become placeholders (`⟦m1⟧`, `⟦l2⟧`) the translation must keep; on PDFs they are copied as vector snippets of the original, and a formula the agent copies verbatim is protected automatically. |
68
+ | 🛡️ **Strict checks** | `rosettex check` catches lost placeholders, changed numbers, glossary violations, untranslated text and over-long answers before anything is built. |
69
+ | 🔁 **Repair loop** | When text does not fit, `build` answers `needs_repair` with the segments to shorten and by how much; nothing is silently cut. |
70
+ | 🌐 **Many scripts** | Latin, Cyrillic, CJK, Arabic/Persian/Urdu, Devanagari, Bengali, Tamil, Thai, Myanmar, Ethiopic … with bundled fonts (Noto, Vazirmatn) and copy/search-friendly output. |
71
+ | 🔌 **One plugin, many harnesses** | Claude Code, Codex, GitHub Copilot, VS Code, Cursor, Antigravity, Gemini CLI, Hermes, Devin and more install it from this repository; any MCP client or Agent Skills host can use it too. |
72
+ | 💻 **Linux, macOS, Windows** | CI builds translated PDFs (Vietnamese, Arabic, Japanese) on all three. |
73
+
74
+ ## 🔀 Two Routes
75
+
76
+ | | From TeX source | From a born-digital PDF |
77
+ |---|---|---|
78
+ | **Input** | folder, archive, arXiv ID or link | a PDF with a text layer (journals, arXiv PDF-only, Word exports) |
79
+ | **Output** | the paper recompiled with LuaLaTeX in the target language | the original pages with translated text in the same boxes |
80
+ | **Best for** | any paper with source; changes of writing direction (e.g. English → Arabic) | papers without source |
81
+
82
+ ## 🔄 How It Works
83
+
84
+ ```mermaid
85
+ flowchart LR
86
+ A[📄 TeX source<br/>or PDF] --> B[🧩 rosettex prepare<br/>sheets + placeholders]
87
+ B --> C[🤖 Your agent<br/>translates]
88
+ C --> D[🛡️ rosettex check<br/>placeholders · numbers · terms]
89
+ D --> E[🏗️ rosettex build<br/>LuaLaTeX]
90
+ E -->|needs_repair| C
91
+ E --> F[📑 Translated PDF]
92
+ ```
93
+
94
+ ```bash
95
+ rosettex fetch 2108.07760 -o work # folder, archive, arXiv ID/link, or a local .pdf
96
+ rosettex prepare work --lang vi # question sheets in work/read/, glossary in work/terms.md
97
+ # … the agent appends "sNNNN <translation>" lines to work/out/NN.txt …
98
+ rosettex check work # repeat until ok
99
+ rosettex build work --out paper.vi.pdf # may ask for shorter text (needs_repair), then build again
100
+ ```
101
+
102
+ ## 🚀 Quick Install: Let Your Agent Do It
103
+
104
+ > [!TIP]
105
+ > Copy the prompt below and send it to your coding agent. It installs everything into your home folder and asks before
106
+ > any download.
107
+
108
+ ```text
109
+ Install rosettex (https://github.com/20235106-huynk/rosettex) and connect it to yourself: install uv if it is
110
+ missing, then `uv tool install rosettex`, `rosettex setup` (follow its next_argv), `rosettex doctor`, and the rosettex
111
+ plugin for your harness from the README (or `rosettex install-skill`). No sudo; ask me before any download or installer.
112
+ ```
113
+
114
+ Then just ask, for example: *"Translate arXiv 1512.03385 into Simplified Chinese and save it as ~/papers/resnet.zh.pdf."*
115
+ The agent fetches the paper, picks the field and key terms, translates sheet by sheet, runs `check` until it passes,
116
+ builds the PDF, shortens any text `build` reports as too long, and tells you where the PDF is.
117
+
118
+ ## 🔌 Connect Your Agent
119
+
120
+ This repository is a plugin at its root: one skill (`skills/rosettex`) and one MCP server that `uvx` starts from the
121
+ tagged release (the manual snippets below start it from PyPI), so [uv](https://docs.astral.sh/uv/) must be on PATH. The first run of `setup` installs TeX (the agent
122
+ asks you first).
123
+
124
+ ### Install as a plugin
125
+
126
+ | Harness | Command |
127
+ |---|---|
128
+ | **Claude Code** | `/plugin marketplace add 20235106-huynk/rosettex`, then `/plugin install rosettex@rosettex` |
129
+ | **Claude Desktop / claude.ai** | Customize › Plugins › Add marketplace `20235106-huynk/rosettex` |
130
+ | **Codex CLI / ChatGPT desktop** | `codex plugin marketplace add 20235106-huynk/rosettex`, then install `rosettex` from `/plugins` (or the app's Plugins directory) |
131
+ | **GitHub Copilot CLI** | `copilot plugin install 20235106-huynk/rosettex` |
132
+ | **VS Code (Copilot)** | *Chat: Install Plugin from Source* with the repository URL, or add `20235106-huynk/rosettex` to `chat.plugins.marketplaces` |
133
+ | **Antigravity** | `agy plugin install https://github.com/20235106-huynk/rosettex` |
134
+ | **Gemini CLI** | `gemini extensions install https://github.com/20235106-huynk/rosettex` |
135
+ | **Hermes** | `hermes plugins install 20235106-huynk/rosettex/plugins/hermes`, then `hermes plugins enable rosettex` |
136
+ | **Devin** (Desktop, CLI, cloud) | `devin plugins install 20235106-huynk/rosettex`; cloud: Customize › Add plugin › From repository |
137
+ | **Factory Droid** | `droid plugin marketplace add 20235106-huynk/rosettex`, then `droid plugin install rosettex@rosettex` |
138
+ | **Auggie** | `auggie plugin marketplace add 20235106-huynk/rosettex` |
139
+ | **Junie CLI** | `/extensions marketplace add 20235106-huynk/rosettex`, then `/extensions install rosettex` |
140
+ | **Qwen Code** | `qwen extensions install 20235106-huynk/rosettex` |
141
+ | **goose** | `goose plugin install https://github.com/20235106-huynk/rosettex.git` |
142
+ | **Kiro IDE** | Powers › Add Custom Power › Import power from a repository URL |
143
+
144
+ ### Skill + MCP server (every other harness)
145
+
146
+ 1. Install the skill: `rosettex install-skill` (writes `~/.agents/skills`, `~/.claude/skills`, `~/.gemini/config/skills`,
147
+ and the Cline, Kiro, Qoder, Trae and CodeBuddy skill folders when they exist), or `npx skills add 20235106-huynk/rosettex`.
148
+ 2. Add the MCP server. Most harnesses (Cursor, Cline, Kiro, Qoder, Kimi Code, Pi, CodeBuddy, Warp, Junie, Auggie, Tabnine,
149
+ Trae, JetBrains AI Assistant) take the standard block in their MCP settings:
150
+
151
+ ```json
152
+ { "mcpServers": { "rosettex": { "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } } }
153
+ ```
154
+
155
+ <details>
156
+ <summary><b>Harnesses with their own MCP syntax</b></summary>
157
+
158
+ | Harness | Where | Entry |
159
+ |---|---|---|
160
+ | OpenCode | `opencode.json` | `"mcp": { "servers": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } } }` |
161
+ | Kilo | `kilo.jsonc` | `"mcp": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } }` |
162
+ | Crush | `crush.json` | `"mcp": { "rosettex": { "type": "stdio", "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } }` |
163
+ | goose | `config.yaml` | `extensions: { rosettex: { name: rosettex, type: stdio, enabled: true, cmd: uvx, args: [--from, rosettex, rosettex-mcp], envs: {}, timeout: 300 } }` |
164
+ | Mistral Vibe | `config.toml` | `[[mcp_servers]]` with `name = "rosettex"`, `transport = "stdio"`, `command = "uvx"`, `args = [...]` |
165
+ | Amp | CLI | `amp mcp add rosettex -- uvx --from rosettex rosettex-mcp` |
166
+ | Zed | `settings.json` | `"context_servers": { "rosettex": { "command": "uvx", "args": [...] } }` |
167
+ | Zencoder | VS Code `settings.json` | `"zencoder.mcpServers"` with the standard block |
168
+ | Visual Studio | `%USERPROFILE%\.mcp.json` | `"servers": { "rosettex": { "command": "uvx", "args": [...] } }` |
169
+ | GitHub Copilot cloud agent | repository Settings › Copilot › MCP servers | `"type": "local"`, `"tools": ["*"]`, and install uv in `copilot-setup-steps.yml` |
170
+
171
+ Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run this stdio server;
172
+ use the skill and the CLI there. Without any integration, tell the agent: *"Run `rosettex guide` and follow it."*
173
+ </details>
174
+
175
+ ## 🛠️ Manual Install
176
+
177
+ <details>
178
+ <summary><b>Commands, requirements and environment variables</b></summary>
179
+
180
+ ### Requirements
181
+ - Python ≥ 3.11 and [uv](https://docs.astral.sh/uv/).
182
+ - LuaLaTeX: `rosettex setup` installs a private TinyTeX into `~/.rosettex` (asks first; retries flaky CTAN mirrors), or
183
+ `rosettex setup --tex system` uses an existing TeX Live.
184
+
185
+ ```bash
186
+ uv tool install rosettex
187
+ rosettex setup # or: rosettex setup --tex system
188
+ rosettex doctor
189
+ rosettex install-skill
190
+ ```
191
+
192
+ ### Environment variables
193
+ - `ROSETTEX_HOME`: where rosettex keeps its TeX toolchain and state (default `~/.rosettex`).
194
+
195
+ ### Update and uninstall
196
+ ```bash
197
+ uv tool upgrade rosettex && rosettex install-skill --force
198
+ rosettex install-skill --remove && uv tool uninstall rosettex # then delete the folder ~/.rosettex
199
+ ```
200
+ </details>
201
+
202
+ ## 🌍 Languages
203
+
204
+ Language data covers about 50 target languages (`src/rosettex/data/langs/`). Tested end to end:
205
+
206
+ | Script | Languages |
207
+ |---|---|
208
+ | **Latin** | Vietnamese, French |
209
+ | **Cyrillic** | Russian |
210
+ | **Han / Kana / Hangul** | Chinese (Simplified, Traditional), Japanese, Korean |
211
+ | **Arabic** (RTL) | Arabic, Persian, Urdu |
212
+ | **Indic** | Hindi, Bengali, Gujarati, Kannada, Tamil, Telugu |
213
+ | **Southeast Asian** | Thai, Myanmar |
214
+ | **Ethiopic** | Amharic |
215
+
216
+ ## ⚠️ Limits
217
+
218
+ - The PDF route needs a born-digital PDF with a text layer (no OCR) and keeps the writing direction: a left-to-right
219
+ paper cannot become right-to-left there — use the TeX source for that.
220
+ - Table contents are not translated; scanned PDFs, vertical writing and PDF forms are not supported.
221
+ - Very tight layouts may need shorter translations (`needs_repair`) or a slightly smaller font.
222
+
223
+ ## 📄 License
224
+
225
+ MIT — see [`LICENSE`](https://github.com/20235106-huynk/rosettex/blob/main/LICENSE). Bundled fonts are under the SIL Open
226
+ Font License 1.1 (`src/rosettex/data/fonts/LICENSES/`). Release notes: [`CHANGELOG.md`](https://github.com/20235106-huynk/rosettex/blob/main/CHANGELOG.md).
@@ -0,0 +1,198 @@
1
+ <!-- mcp-name: io.github.20235106-huynk/rosettex -->
2
+ <div align="center">
3
+
4
+ # rosettex 📜✨
5
+
6
+ **Translate scientific papers into 19+ languages — and keep the paper's own layout.**
7
+
8
+ [![PyPI](https://img.shields.io/pypi/v/rosettex?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/rosettex/)
9
+ [![CI](https://img.shields.io/github/actions/workflow/status/20235106-huynk/rosettex/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/20235106-huynk/rosettex/actions/workflows/ci.yml)
10
+ [![Python](https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://pypi.org/project/rosettex/)
11
+ [![Agents](https://img.shields.io/badge/agents-Claude%20Code%20%7C%20Codex%20%7C%20Copilot%20%7C%20Gemini%20%7C%20Antigravity%20%7C%20MCP-8e44ad?style=flat-square)](#-connect-your-agent)
12
+ [![License: MIT](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](https://github.com/20235106-huynk/rosettex/blob/main/LICENSE)
13
+
14
+ [Quick Install](#-quick-install-let-your-agent-do-it) • [Features](#-key-features) • [How It Works](#-how-it-works) • [Connect Your Agent](#-connect-your-agent) • [Languages](#-languages) • [Manual Install](#-manual-install)
15
+
16
+ <img src="https://raw.githubusercontent.com/20235106-huynk/rosettex/main/assets/demo-pdf-vi.png" alt="Page 1 of a paper in English (left) and the same page translated into Vietnamese by rosettex (right)" width="900">
17
+
18
+ <sub>A born-digital PDF (left) and rosettex's Vietnamese output (right): same page, same figure, same fonts for names and
19
+ formulas. Paper: Berestov et al., CEUR-WS Vol-3550 (CC BY 4.0).</sub>
20
+
21
+ </div>
22
+
23
+ ---
24
+
25
+ `rosettex` lets an **AI coding agent** translate a whole scientific paper — from its **TeX source** or from a
26
+ **born-digital PDF** — and returns a PDF with the paper's own layout.
27
+
28
+ **rosettex does not translate by itself — your agent is the translator.** rosettex does the engineering around it: it
29
+ splits the paper into question sheets with protected placeholders, checks every answer against strict rules, and
30
+ typesets the result so formulas, figures, citations and links stay real, selectable and clickable. It ships as a CLI, an
31
+ MCP server and an Agent Skill, packaged as a plugin for the major agent harnesses.
32
+
33
+ ## 🌟 Key Features
34
+
35
+ | Feature | Description |
36
+ |---|---|
37
+ | 🤖 **Built for agents** | Every command speaks `--json` and returns the next command to run (`next_argv`); an agent can drive the whole loop and resume after any interruption. |
38
+ | 📐 **Original layout** | From TeX source the paper is rebuilt with its own class and packages; from a PDF the original pages are kept and only the text in the translated boxes is replaced. |
39
+ | 🧮 **Formulas stay formulas** | Math, citations and links become placeholders (`⟦m1⟧`, `⟦l2⟧`) the translation must keep; on PDFs they are copied as vector snippets of the original, and a formula the agent copies verbatim is protected automatically. |
40
+ | 🛡️ **Strict checks** | `rosettex check` catches lost placeholders, changed numbers, glossary violations, untranslated text and over-long answers before anything is built. |
41
+ | 🔁 **Repair loop** | When text does not fit, `build` answers `needs_repair` with the segments to shorten and by how much; nothing is silently cut. |
42
+ | 🌐 **Many scripts** | Latin, Cyrillic, CJK, Arabic/Persian/Urdu, Devanagari, Bengali, Tamil, Thai, Myanmar, Ethiopic … with bundled fonts (Noto, Vazirmatn) and copy/search-friendly output. |
43
+ | 🔌 **One plugin, many harnesses** | Claude Code, Codex, GitHub Copilot, VS Code, Cursor, Antigravity, Gemini CLI, Hermes, Devin and more install it from this repository; any MCP client or Agent Skills host can use it too. |
44
+ | 💻 **Linux, macOS, Windows** | CI builds translated PDFs (Vietnamese, Arabic, Japanese) on all three. |
45
+
46
+ ## 🔀 Two Routes
47
+
48
+ | | From TeX source | From a born-digital PDF |
49
+ |---|---|---|
50
+ | **Input** | folder, archive, arXiv ID or link | a PDF with a text layer (journals, arXiv PDF-only, Word exports) |
51
+ | **Output** | the paper recompiled with LuaLaTeX in the target language | the original pages with translated text in the same boxes |
52
+ | **Best for** | any paper with source; changes of writing direction (e.g. English → Arabic) | papers without source |
53
+
54
+ ## 🔄 How It Works
55
+
56
+ ```mermaid
57
+ flowchart LR
58
+ A[📄 TeX source<br/>or PDF] --> B[🧩 rosettex prepare<br/>sheets + placeholders]
59
+ B --> C[🤖 Your agent<br/>translates]
60
+ C --> D[🛡️ rosettex check<br/>placeholders · numbers · terms]
61
+ D --> E[🏗️ rosettex build<br/>LuaLaTeX]
62
+ E -->|needs_repair| C
63
+ E --> F[📑 Translated PDF]
64
+ ```
65
+
66
+ ```bash
67
+ rosettex fetch 2108.07760 -o work # folder, archive, arXiv ID/link, or a local .pdf
68
+ rosettex prepare work --lang vi # question sheets in work/read/, glossary in work/terms.md
69
+ # … the agent appends "sNNNN <translation>" lines to work/out/NN.txt …
70
+ rosettex check work # repeat until ok
71
+ rosettex build work --out paper.vi.pdf # may ask for shorter text (needs_repair), then build again
72
+ ```
73
+
74
+ ## 🚀 Quick Install: Let Your Agent Do It
75
+
76
+ > [!TIP]
77
+ > Copy the prompt below and send it to your coding agent. It installs everything into your home folder and asks before
78
+ > any download.
79
+
80
+ ```text
81
+ Install rosettex (https://github.com/20235106-huynk/rosettex) and connect it to yourself: install uv if it is
82
+ missing, then `uv tool install rosettex`, `rosettex setup` (follow its next_argv), `rosettex doctor`, and the rosettex
83
+ plugin for your harness from the README (or `rosettex install-skill`). No sudo; ask me before any download or installer.
84
+ ```
85
+
86
+ Then just ask, for example: *"Translate arXiv 1512.03385 into Simplified Chinese and save it as ~/papers/resnet.zh.pdf."*
87
+ The agent fetches the paper, picks the field and key terms, translates sheet by sheet, runs `check` until it passes,
88
+ builds the PDF, shortens any text `build` reports as too long, and tells you where the PDF is.
89
+
90
+ ## 🔌 Connect Your Agent
91
+
92
+ This repository is a plugin at its root: one skill (`skills/rosettex`) and one MCP server that `uvx` starts from the
93
+ tagged release (the manual snippets below start it from PyPI), so [uv](https://docs.astral.sh/uv/) must be on PATH. The first run of `setup` installs TeX (the agent
94
+ asks you first).
95
+
96
+ ### Install as a plugin
97
+
98
+ | Harness | Command |
99
+ |---|---|
100
+ | **Claude Code** | `/plugin marketplace add 20235106-huynk/rosettex`, then `/plugin install rosettex@rosettex` |
101
+ | **Claude Desktop / claude.ai** | Customize › Plugins › Add marketplace `20235106-huynk/rosettex` |
102
+ | **Codex CLI / ChatGPT desktop** | `codex plugin marketplace add 20235106-huynk/rosettex`, then install `rosettex` from `/plugins` (or the app's Plugins directory) |
103
+ | **GitHub Copilot CLI** | `copilot plugin install 20235106-huynk/rosettex` |
104
+ | **VS Code (Copilot)** | *Chat: Install Plugin from Source* with the repository URL, or add `20235106-huynk/rosettex` to `chat.plugins.marketplaces` |
105
+ | **Antigravity** | `agy plugin install https://github.com/20235106-huynk/rosettex` |
106
+ | **Gemini CLI** | `gemini extensions install https://github.com/20235106-huynk/rosettex` |
107
+ | **Hermes** | `hermes plugins install 20235106-huynk/rosettex/plugins/hermes`, then `hermes plugins enable rosettex` |
108
+ | **Devin** (Desktop, CLI, cloud) | `devin plugins install 20235106-huynk/rosettex`; cloud: Customize › Add plugin › From repository |
109
+ | **Factory Droid** | `droid plugin marketplace add 20235106-huynk/rosettex`, then `droid plugin install rosettex@rosettex` |
110
+ | **Auggie** | `auggie plugin marketplace add 20235106-huynk/rosettex` |
111
+ | **Junie CLI** | `/extensions marketplace add 20235106-huynk/rosettex`, then `/extensions install rosettex` |
112
+ | **Qwen Code** | `qwen extensions install 20235106-huynk/rosettex` |
113
+ | **goose** | `goose plugin install https://github.com/20235106-huynk/rosettex.git` |
114
+ | **Kiro IDE** | Powers › Add Custom Power › Import power from a repository URL |
115
+
116
+ ### Skill + MCP server (every other harness)
117
+
118
+ 1. Install the skill: `rosettex install-skill` (writes `~/.agents/skills`, `~/.claude/skills`, `~/.gemini/config/skills`,
119
+ and the Cline, Kiro, Qoder, Trae and CodeBuddy skill folders when they exist), or `npx skills add 20235106-huynk/rosettex`.
120
+ 2. Add the MCP server. Most harnesses (Cursor, Cline, Kiro, Qoder, Kimi Code, Pi, CodeBuddy, Warp, Junie, Auggie, Tabnine,
121
+ Trae, JetBrains AI Assistant) take the standard block in their MCP settings:
122
+
123
+ ```json
124
+ { "mcpServers": { "rosettex": { "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } } }
125
+ ```
126
+
127
+ <details>
128
+ <summary><b>Harnesses with their own MCP syntax</b></summary>
129
+
130
+ | Harness | Where | Entry |
131
+ |---|---|---|
132
+ | OpenCode | `opencode.json` | `"mcp": { "servers": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } } }` |
133
+ | Kilo | `kilo.jsonc` | `"mcp": { "rosettex": { "type": "local", "command": ["uvx", "--from", "rosettex", "rosettex-mcp"] } }` |
134
+ | Crush | `crush.json` | `"mcp": { "rosettex": { "type": "stdio", "command": "uvx", "args": ["--from", "rosettex", "rosettex-mcp"] } }` |
135
+ | goose | `config.yaml` | `extensions: { rosettex: { name: rosettex, type: stdio, enabled: true, cmd: uvx, args: [--from, rosettex, rosettex-mcp], envs: {}, timeout: 300 } }` |
136
+ | Mistral Vibe | `config.toml` | `[[mcp_servers]]` with `name = "rosettex"`, `transport = "stdio"`, `command = "uvx"`, `args = [...]` |
137
+ | Amp | CLI | `amp mcp add rosettex -- uvx --from rosettex rosettex-mcp` |
138
+ | Zed | `settings.json` | `"context_servers": { "rosettex": { "command": "uvx", "args": [...] } }` |
139
+ | Zencoder | VS Code `settings.json` | `"zencoder.mcpServers"` with the standard block |
140
+ | Visual Studio | `%USERPROFILE%\.mcp.json` | `"servers": { "rosettex": { "command": "uvx", "args": [...] } }` |
141
+ | GitHub Copilot cloud agent | repository Settings › Copilot › MCP servers | `"type": "local"`, `"tools": ["*"]`, and install uv in `copilot-setup-steps.yml` |
142
+
143
+ Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run this stdio server;
144
+ use the skill and the CLI there. Without any integration, tell the agent: *"Run `rosettex guide` and follow it."*
145
+ </details>
146
+
147
+ ## 🛠️ Manual Install
148
+
149
+ <details>
150
+ <summary><b>Commands, requirements and environment variables</b></summary>
151
+
152
+ ### Requirements
153
+ - Python ≥ 3.11 and [uv](https://docs.astral.sh/uv/).
154
+ - LuaLaTeX: `rosettex setup` installs a private TinyTeX into `~/.rosettex` (asks first; retries flaky CTAN mirrors), or
155
+ `rosettex setup --tex system` uses an existing TeX Live.
156
+
157
+ ```bash
158
+ uv tool install rosettex
159
+ rosettex setup # or: rosettex setup --tex system
160
+ rosettex doctor
161
+ rosettex install-skill
162
+ ```
163
+
164
+ ### Environment variables
165
+ - `ROSETTEX_HOME`: where rosettex keeps its TeX toolchain and state (default `~/.rosettex`).
166
+
167
+ ### Update and uninstall
168
+ ```bash
169
+ uv tool upgrade rosettex && rosettex install-skill --force
170
+ rosettex install-skill --remove && uv tool uninstall rosettex # then delete the folder ~/.rosettex
171
+ ```
172
+ </details>
173
+
174
+ ## 🌍 Languages
175
+
176
+ Language data covers about 50 target languages (`src/rosettex/data/langs/`). Tested end to end:
177
+
178
+ | Script | Languages |
179
+ |---|---|
180
+ | **Latin** | Vietnamese, French |
181
+ | **Cyrillic** | Russian |
182
+ | **Han / Kana / Hangul** | Chinese (Simplified, Traditional), Japanese, Korean |
183
+ | **Arabic** (RTL) | Arabic, Persian, Urdu |
184
+ | **Indic** | Hindi, Bengali, Gujarati, Kannada, Tamil, Telugu |
185
+ | **Southeast Asian** | Thai, Myanmar |
186
+ | **Ethiopic** | Amharic |
187
+
188
+ ## ⚠️ Limits
189
+
190
+ - The PDF route needs a born-digital PDF with a text layer (no OCR) and keeps the writing direction: a left-to-right
191
+ paper cannot become right-to-left there — use the TeX source for that.
192
+ - Table contents are not translated; scanned PDFs, vertical writing and PDF forms are not supported.
193
+ - Very tight layouts may need shorter translations (`needs_repair`) or a slightly smaller font.
194
+
195
+ ## 📄 License
196
+
197
+ MIT — see [`LICENSE`](https://github.com/20235106-huynk/rosettex/blob/main/LICENSE). Bundled fonts are under the SIL Open
198
+ Font License 1.1 (`src/rosettex/data/fonts/LICENSES/`). Release notes: [`CHANGELOG.md`](https://github.com/20235106-huynk/rosettex/blob/main/CHANGELOG.md).
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "rosettex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
5
5
  "mcpServers": {
6
6
  "rosettex": {
7
7
  "command": "uvx",
8
8
  "args": [
9
9
  "--from",
10
- "git+https://github.com/20235106-huynk/rosettex@v1.0.0",
10
+ "git+https://github.com/20235106-huynk/rosettex@v1.0.2",
11
11
  "rosettex-mcp"
12
12
  ]
13
13
  }
@@ -6,7 +6,7 @@
6
6
  "command": "uvx",
7
7
  "args": [
8
8
  "--from",
9
- "git+https://github.com/20235106-huynk/rosettex@v1.0.0",
9
+ "git+https://github.com/20235106-huynk/rosettex@v1.0.2",
10
10
  "rosettex-mcp"
11
11
  ]
12
12
  }
@@ -4,7 +4,7 @@
4
4
  "command": "uvx",
5
5
  "args": [
6
6
  "--from",
7
- "git+https://github.com/20235106-huynk/rosettex@v1.0.0",
7
+ "git+https://github.com/20235106-huynk/rosettex@v1.0.2",
8
8
  "rosettex-mcp"
9
9
  ]
10
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "rosettex",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
6
6
  "author": {
7
7
  "name": "20235106-huynk",
@@ -6,7 +6,7 @@
6
6
  "command": "uvx",
7
7
  "args": [
8
8
  "--from",
9
- "git+https://github.com/20235106-huynk/rosettex@v1.0.0",
9
+ "git+https://github.com/20235106-huynk/rosettex@v1.0.2",
10
10
  "rosettex-mcp"
11
11
  ]
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "rosettex",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "description": "Translate a scientific paper from its TeX source (folder, archive, arXiv ID) or a born-digital PDF into another language and rebuild the PDF with the paper's own layout. You translate; rosettex prepares, checks and typesets.",
6
6
  "author": {
7
7
  "name": "20235106-huynk",
@@ -3,7 +3,7 @@ name: rosettex
3
3
  description: Translate a scientific paper from its LaTeX source (a folder, an archive, or an arXiv ID/link) or a born-digital PDF into another language and build the translated PDF with the paper's own layout. Use when the user asks to translate a paper/article. You translate; the rosettex CLI prepares, checks and typesets.
4
4
  license: MIT
5
5
  metadata:
6
- rosettex-version: "1.0.0"
6
+ rosettex-version: "1.0.2"
7
7
  ---
8
8
 
9
9
  # rosettex — translate a scientific paper