Repository navigation
feat: 打印/导出时只保留题目配图,不包含拍照原图 / exclude photo imports from print & export, keep question figures only - #46
Open
1288893 wants to merge 1 commit into
Open
feat: 打印/导出时只保留题目配图,不包含拍照原图 / exclude photo imports from print & export, keep question figures only#461288893 wants to merge 1 commit into
1288893 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述 / Problem
打印预览和导出 Word 时,会把用户拍照导入的原始照片(
originalImageUrl)一并输出,导致打印内容冗余、浪费纸张。学生整理错题本时,只需要题目自带的配图,不需要原始拍照。
When printing or exporting to Word, the app includes the original photo imported
by the user (
originalImageUrl), which is redundant and wastes paper/space.Students only need the clean typeset question with its embedded diagram — not the raw photo.
改动说明 / Changes
打印预览 / Print Preview (
/print-preview)figureImage/figureSvg(题目自带配图)originalImageUrlwhen no structured figure existsfigureImage/figureSvg(question-embedded figures)Word 导出 / Word Export (
.docx)includeFigures选项(默认开启),用于嵌入题目配图includeImages(拍照原图)默认改为关闭includeFiguresoption (default: true) to embed question figuresincludeImages(original photo) now defaults to false国际化 / i18n
zh.ts和en.ts新增includeFigures相关文案zh.tsanden.tswith new keys forincludeFigures测试 / Tests
printable-question、from-error-item、to-docx的单元测试printable-question,from-error-item,to-docx