Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ packaging/debian/DEBIAN/* text eol=lf
*.dll filter=lfs diff=lfs merge=lfs -text

# Preserve upstream-distributed vendor runtime contents verbatim.
office_addin/public/vendor/mathlive.min.mjs -whitespace
office_addin/public/vendor/mathlive.LICENSE.txt -whitespace
src/assets/mathlive/vendor/mathlive.min.mjs -whitespace
src/assets/mathlive/vendor/mathlive.LICENSE.txt -whitespace
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ office_plugin/**/bin/
office_plugin/**/obj/
office_plugin/**/obj-handler/
office_plugin/**/*.user.props
office_plugin/**/*.pfx
office_plugin/installer/vsto-signing.cer
office_plugin/installer/devcert.cer
office_plugin/tests/**/artifacts/
!LaTeXSnipper-linux.spec
!LaTeXSnipper-macos.spec
Expand All @@ -39,14 +37,12 @@ office_plugin/release/InstallerAssets/
# Embedded runtime (do not version)
tools/deps/python311/
tools/deps/python311-*/
tools/deps/translation_env/
tools/deps/pandoc/

# Local runtime components (do not version)
python311/
/python311/
python-*.exe
crash_log.txt
src/assets/MathJax-4.1.2/

# Logs
*.log
Expand Down Expand Up @@ -76,9 +72,4 @@ WECHAT_ARTICLE.md
RELEASE_NOTES*.md
release_v*.md
release*.md
packaging/msix/image/

# IDE / editor config
.opencode/
opencode.json

10 changes: 5 additions & 5 deletions office_plugin/hosts/PowerPointAddIn/PowerPointAddInText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ private static string GetEnglish(string key)
"InsertFormulaTip" => "Open the formula editor.",
"ScreenshotOcrTip" => "Wait for the next capture; click again to cancel.",
"LoadSelectedTip" => "Load the selected formula into the editor.",
"DeleteSelectedTip" => "Delete the selected managed formula.",
"ToOleTip" => "Convert the selected PNG formula to OLE.",
"ToPngTip" => "Convert the selected OLE formula to PNG.",
"DeleteSelectedTip" => "Delete the selected managed formulas.",
"ToOleTip" => "Convert the selected PNG formulas to OLE.",
"ToPngTip" => "Convert the selected OLE formulas to PNG.",
"FormatSelectedTip" => "Reset selected formulas to the default font, color, and natural size.",
"FormatAllTip" => "Restore formulas with modified dimensions to their natural size.",
"ShowTaskPaneTip" => "Show the status pane.",
Expand Down Expand Up @@ -71,7 +71,7 @@ private static string GetEnglish(string key)
"NoConversionNeededStatus" => "The selected formulas already use the target format.",
"FormattedStatus" => "Formatted {count} formulas.",
"FormattedWithSkippedStatus" => "Formatted {count} formulas; skipped {skipped} missing formulas.",
"NoFormattingNeededStatus" => "The selected formula already uses the default style.",
"NoFormattingNeededStatus" => "No formulas need formatting.",
"BatchConvertingStatus" => "Converting formulas: {processed}/{total}.",
"BatchFormattingStatus" => "Formatting formulas: {processed}/{total}.",
"OcrWaitingStatus" => "Waiting for screenshot OCR.",
Expand Down Expand Up @@ -148,7 +148,7 @@ private static string GetChinese(string key)
"NoConversionNeededStatus" => "所选公式已经是目标格式。",
"FormattedStatus" => "已格式化 {count} 个公式。",
"FormattedWithSkippedStatus" => "已格式化 {count} 个公式,跳过 {skipped} 个已不存在的公式。",
"NoFormattingNeededStatus" => "所选公式已经是默认样式。",
"NoFormattingNeededStatus" => "没有需要格式化的公式。",
"BatchConvertingStatus" => "正在转换公式:{processed}/{total}。",
"BatchFormattingStatus" => "正在格式化公式:{processed}/{total}。",
"OcrWaitingStatus" => "正在等待截图识别。",
Expand Down
2 changes: 1 addition & 1 deletion office_plugin/hosts/WordAddIn/EditorAssets/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2 data-i18n="numberingTitle">带编号公式默认布局</h2>
<section class="panel accent-panel">
<div>
<h2 data-i18n="formulaDefaultsTitle">公式默认属性</h2>
<p class="hint" data-i18n="formulaDefaultsHint">这些设置仅影响新插入的公式。</p>
<p class="hint" data-i18n="formulaDefaultsHint">这些设置应用于新插入公式和格式化命令。</p>
</div>
<div class="numbering-grid">
<label>
Expand Down
4 changes: 2 additions & 2 deletions office_plugin/hosts/WordAddIn/EditorAssets/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TEXT = {
hideSectionBoundary: "隐藏节分隔符",
separatorLabel: "层级分隔符",
formulaDefaultsTitle: "公式默认属性",
formulaDefaultsHint: "这些设置仅影响新插入的公式。",
formulaDefaultsHint: "这些设置应用于新插入公式和格式化命令。",
colorLabel: "字体颜色",
resetToBlack: "恢复黑色",
resetToWhite: "恢复白色",
Expand Down Expand Up @@ -66,7 +66,7 @@ const TEXT = {
hideSectionBoundary: "Hide section boundaries",
separatorLabel: "Level separator",
formulaDefaultsTitle: "Default Formula Properties",
formulaDefaultsHint: "These settings apply only to newly inserted formulas.",
formulaDefaultsHint: "These settings apply to new formulas and formatting commands.",
colorLabel: "Font color",
resetToBlack: "Reset to black",
resetToWhite: "Reset to white",
Expand Down
4 changes: 2 additions & 2 deletions office_plugin/release/OfficePluginSetup-2.4.0.exe
Git LFS file not shown
2 changes: 1 addition & 1 deletion office_plugin/release/OfficePluginSetup-2.4.0.exe.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
df536a2a52010019cb3c13f0f038efe7c7acbac71c2f1c8097af62ae3b267100 OfficePluginSetup-2.4.0.exe
ea0efb9eab391b6035d69c32d6704715199153fef0773ab856c6b8422ef8d7fa OfficePluginSetup-2.4.0.exe
4 changes: 1 addition & 3 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"**/__pycache__",
"build",
"python311",
"apps",
"tools/deps/python311",
"tools/deps/translation_env"
"tools/deps/python311"
],
"reportUnusedImport": "warning",
"reportUnusedVariable": "warning",
Expand Down
6 changes: 0 additions & 6 deletions test/test_office_plugin_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@ def test_office_docs_describe_the_released_plugin() -> None:
assert "Office 2016 is not officially supported" in plugin_readme
assert "Office 2024 / 2021 / 2019" in plugin_readme
assert "OLE formulas use local MathJax layout" in plugin_readme
assert "localhost:8765" not in plugin_readme
assert "office_addin" not in plugin_readme
assert "sideload" not in plugin_readme
assert "retired" not in plugin_readme
assert "target architecture" not in plugin_readme
assert "active Office product architecture" not in plugin_readme
Loading