ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.87k stars 1.09k forks source link

Some symbols are rendered as " in emf file #1726

Open afumu opened 2 years ago

afumu commented 2 years ago

Do you want to request a feature or report a bug?

What is the current behavior? this is my visio file. 测试visio.docx image

this is the result. image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

Did this work in previous versions of DocumentServer?

DocumentServer version:

Operating System:

Browser version:

ShockwaveNN commented 2 years ago

Hi, please specify DocumentServer version

I've opened your file in latest stable v7.0.1 and it's rendering like this: image

Not chinese, but wit text

afumu commented 2 years ago

Sorry, my mistake, this is my original file 测试visio.docx

afumu commented 2 years ago

I am using the official latest docker documentation service

ShockwaveNN commented 2 years ago

Seem fine on v7.0.1

image

Please make sure this is same version of our product

afumu commented 2 years ago

Ok ! Thanks for you reply.

ShockwaveNN commented 2 years ago

I think I've reproduced your problem if you run DocumentServer without any additional fonts installed

Seems installation require some additional fonts to render this file correctly, but I cannot say which exactly right now

afumu commented 2 years ago

OK, I'll try to install Chinese fonts first, thanks for your reply.

ShockwaveNN commented 2 years ago

I think if you open source file with Visio you can check which exactly font is used, but I have no access to Visio right now, so I cannot check it myself and MS Word cannot give me such information without Visio

afumu commented 2 years ago

I installed the font corresponding to the visio file, and Chinese is indeed rendered. image

But I upload other documents, the font has changed, the style is wrong image

I am using the Microsoft elegant black font.

image When I didn't configure any fonts, the document was normal. Why does this happen?

ShockwaveNN commented 2 years ago

I think before you installed font required for Visio file - some other font was better suited to render file with Table of content

But after you installed visio font - it was used instead

I think you need to figure out which exact font is needed in TOC file (you can send it here, for this file I can definitely check it) and install it also

afumu commented 2 years ago

I have solved my problem, but I found another problem, the visio file is not rendered if it contains punctuation inside. This is my doc testvisio1025.docx

image

image

TatianaKirillova commented 2 years ago

Hello, @zouchangfu Thanks for your request! I can confirm that the problem exists. I created ticket 56725 in our private tracker with your proposal.