Sumlion for WPS — 安装说明 / Install guide
======================================================================

Sumlion 是面向金融专业人士的 AI 助手。安装后，WPS 的「表格」和「文字」
功能区各多一个 Sumlion 标签。

Sumlion is an AI assistant for finance professionals. Once installed, WPS 表格
(Spreadsheets) and WPS 文字 (Writer) each get a Sumlion tab on the ribbon.

仅当前用户安装，不需要管理员权限，不写注册表，不运行任何程序。
Per-user. No administrator rights, nothing written to the registry, nothing
to run.

压缩包里只有一个 jsaddons 文件夹，整个拖进去就行。里面是：
The archive holds one folder, jsaddons — you drag the whole thing in. Inside:
    Sumlion_1.0.0\        表格的加载项 / the 表格 add-in
    SumlionDOCS_1.0.0\    文字的加载项 / the 文字 add-in
    publish.xml           登记文件 / the registration file
    install.bat           合并登记（见下）/ merges the registration (see below)
    uninstall.bat         卸载 / uninstall
    INSTALL.txt           本文件 / this file

图文版：https://sumlion.cn/download/wps/
Illustrated version: https://sumlion.cn/en/download/wps/


----------------------------------------------------------------------
安装步骤 / Steps
----------------------------------------------------------------------

1. 完全退出 WPS（关掉所有窗口），然后按 Win + R，粘贴下面的路径，回车：
   Quit WPS completely (every window), then press Win + R, paste this path,
   press Enter:

       %APPDATA%\kingsoft\wps

   会打开 WPS 的用户目录。
   This opens WPS's per-user folder.

2. 双击打开下载的压缩包，把里面的 jsaddons 文件夹拖到刚打开的窗口里。
   Open the downloaded zip and drag the jsaddons folder inside it into the
   window you just opened.

   一般直接复制完成。如果弹出「替换或跳过文件」：多个同名文件 = 之前装过
   Sumlion，选「替换目标中的文件」；只有 1 个（publish.xml）= 您装有其他
   加载项，选「跳过这些文件」，然后看下面「已有其他加载项？」。
   Normally it just copies. If a "Replace or Skip Files" box appears: many
   same-name files = Sumlion was installed before, choose Replace; exactly one
   (publish.xml) = you have other add-ins, choose Skip and see "Already have
   other add-ins?" below.

3. 启动 WPS，打开一个表格或文字文档。
   Start WPS and open a spreadsheet or a document.

   在 WPS 首页看不到 Sumlion 标签，必须先打开一个文件。
   The Sumlion tab does NOT appear on the WPS start screen — only once a file
   is open.

4. WPS 会问「加载项 Sumlion 首次加载，是否信任？」，点「确定」。
   表格问一次，文字问一次；这是 WPS 对所有第三方加载项的标准询问。
   WPS asks whether to trust the Sumlion add-in on first load. Click OK. It
   asks once for 表格 and once for 文字 — WPS's standard question for any
   third-party add-in.

5. 点击功能区最后一个「Sumlion」标签，再点 Sumlion 按钮打开侧边栏，
   用邮箱登录。
   Click the Sumlion tab (the last one on the ribbon), then the Sumlion button
   to open the pane. Sign in with your email.


----------------------------------------------------------------------
已有其他加载项？ / Already have other add-ins?
----------------------------------------------------------------------

publish.xml 是所有 WPS 加载项共用的登记文件，不能覆盖。两种办法：
publish.xml is shared by every WPS add-in, so it must not be overwritten.
Either:

a) 双击 jsaddons 里的 install.bat（如果您的电脑允许运行 .bat）。
   它只添加 Sumlion 的两行，其他内容原样保留。
   Double-click install.bat inside jsaddons (where .bat is allowed). It adds
   Sumlion's two lines and leaves everything else untouched.

b) 用记事本打开 jsaddons\publish.xml，把下面两行粘贴到 </jsplugins> 之前，
   保存。
   Open jsaddons\publish.xml in Notepad, paste these two lines just before
   </jsplugins>, save.

       <jsplugin name="Sumlion" type="et" url="Sumlion_1.0.0" version="1.0.0" enable="enable_dev" install="null" customDomain=""/>
       <jsplugin name="Sumlion" type="wps" url="SumlionDOCS_1.0.0" version="1.0.0" enable="enable_dev" install="null" customDomain=""/>


----------------------------------------------------------------------
卸载 / Uninstall
----------------------------------------------------------------------

运行 jsaddons 里的 uninstall.bat，然后重启 WPS。
Run uninstall.bat inside jsaddons, then restart WPS.

或手动：完全退出 WPS，删除 jsaddons 里的 Sumlion_1.0.0 和 SumlionDOCS_1.0.0
两个文件夹，再从 publish.xml 里删掉 name="Sumlion" 的两行。
Or by hand: quit WPS, delete Sumlion_1.0.0 and SumlionDOCS_1.0.0 from
jsaddons, then remove the two name="Sumlion" lines from publish.xml.

只会移除 Sumlion，不会影响其他厂商的 WPS 加载项。
Only Sumlion is removed; other vendors' WPS add-ins are untouched.


----------------------------------------------------------------------
没有看到 Sumlion 标签？ / Not seeing the Sumlion tab?
----------------------------------------------------------------------

- 确认打开的是一个文件，而不只是 WPS 首页。
  Make sure a file is open, not just the WPS home screen.
- 确认第 4 步点的是「确定」，而不是关掉了提示。
  Make sure you clicked OK in step 4 rather than dismissing the prompt.
- 打开 %APPDATA%\kingsoft\wps\jsaddons，确认两个 Sumlion 文件夹和 publish.xml
  都在里面（而不是多套了一层 jsaddons）。
  Open %APPDATA%\kingsoft\wps\jsaddons and check the two Sumlion folders and
  publish.xml are directly inside (not nested in a second jsaddons).
- 图文排查：https://sumlion.cn/download/find-wps/
  Illustrated check: https://sumlion.cn/en/download/find-wps/
