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 · 4 comments
Open

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

nunamia opened this issue Feb 23, 2024 · 4 comments

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缩放倍数/字体 计算误差

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant