Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个项目最大的问题在于数据结构设计 #271

Open
nunamia opened this issue Feb 23, 2024 · 6 comments
Open

这个项目最大的问题在于数据结构设计 #271

nunamia opened this issue Feb 23, 2024 · 6 comments
Labels
enhancement New feature or request postponed no soon implementation

Comments

@nunamia
Copy link

nunamia commented Feb 23, 2024

整体的数据结构设计导致了非改项目发起者去修改问题和维护很困难

make_docx 递归的方式,无论是性能还是可维护性都是非常糟糕的设计...

@nunamia
Copy link
Author

nunamia commented Feb 23, 2024

还有个致命在于引入了ImageBlock ImageSpan, 并且与TextSpan同级的数据结构...
但是整个项目的亮点也很多,比如debug layout的设计, word适配字体样式等各种细节的处理思路

@nunamia
Copy link
Author

nunamia commented Feb 23, 2024

因为这些原因,所以项目也很难维护,有时间和精力的,就进行重构吧~!

@nunamia
Copy link
Author

nunamia commented Feb 26, 2024

21.pdf
bu补充下这个,格式排版就很不合理了,左右栏无法正确识别和布局

@nunamia
Copy link
Author

nunamia commented Feb 26, 2024

原始图:
image

转换word图:
image

这个完全无从下手,根源在2点,1布局,2缩放倍数/字体 计算误差

@LDWLM
Copy link

LDWLM commented Oct 14, 2024

屏幕截图_20241014_194200

有没有一种可能,是你自己的能力问题

@JorjMcKie
Copy link
Collaborator

We know that this is an old issue. At creation time there was no obligation to use English language.
But there now is.
So please, as a courtesy to all our users, use English language for new posts also in this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postponed no soon implementation
Projects
None yet
Development

No branches or pull requests

4 participants
@JorjMcKie @nunamia @LDWLM and others