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

An EMF image does not render in DOC #746

Open
manuelfuenmayor opened this issue Jul 18, 2022 · 10 comments
Open

An EMF image does not render in DOC #746

manuelfuenmayor opened this issue Jul 18, 2022 · 10 comments
Assignees
Labels

Comments

@manuelfuenmayor
Copy link

From https://github.com/metanorma/iso-19144-2/pull/9

An EMF image file is not rendering in DOC output though there are many
others of the same type that do render.

image file: 008.zip

Markup:

[[scls_8-8]]
=== LC_VegetationElement

==== LC_VegetationElement subtypes

The LC_VegetationElement metalanguage object is a subtype of LC_Element.
It has one subtype: LC_GrowthForm and has a relationship
_growthFormCharacteristics_ to a component LC_LandCoverElementCharacteristic.
This is represented in <<figure_7>>.

[[figure_7]]
.Subtypes of LC_VegetationElement
image::008.emf["",665,374]

DOC output:
issue7-1

HTML output:
issue7-2

@ronaldtse
Copy link
Contributor

I was able to open this in Adobe Illustrator but nonetheless it looks defective.

Screenshot 2022-07-19 at 1 40 53 PM

I think this may be an issue with https://github.com/metanorma/libemf2svg . Can you post the issue there?

CC: @maxirmx

@ronaldtse
Copy link
Contributor

Actually, emf2svg was able to convert it properly. Here it is.
x

Maybe there is some error in Metanorma that prevented it from working?

@ronaldtse
Copy link
Contributor

ronaldtse commented Jul 19, 2022

Or maybe this is a DOC compatibility issue with this particular EMF? But I was able to insert it directly to Word.

Screenshot 2022-07-19 at 1 47 45 PM

@ronaldtse
Copy link
Contributor

ronaldtse commented Jul 19, 2022

@manuelfuenmayor the EMF image shows properly in my generated Word document:

==== LC_VegetationElement subtypes

The LC_VegetationElement metalanguage object is a subtype of LC_Element.
It has one subtype: LC_GrowthForm and has a relationship
_growthFormCharacteristics_ to a component LC_LandCoverElementCharacteristic.
This is represented in <<figure_7>>.

[[figure_7]]
.Subtypes of LC_VegetationElement
image::008.emf["",665,374]

Screenshot 2022-07-19 at 10 04 06 PM

Can you upgrade Metanorma and see if it fixes the problem for you?

@manuelfuenmayor
Copy link
Author

@ronaldtse, no. I get the same result. I've updated my gems and tried compiling just the image along (with little content) and with other flavors (like OGC), and nothing.
@anermina can you try to generate this image in DOC output, please?

@maxirmx
Copy link

maxirmx commented Jul 19, 2022

I was able to open this in Adobe Illustrator but nonetheless it looks defective.

Screenshot 2022-07-19 at 1 40 53 PM

I think this may be an issue with https://github.com/metanorma/libemf2svg . Can you post the issue there?

CC: @maxirmx

@ronaldtse
If you mean missing lines, these are actually lines that are scaled down to zero width by the applciation you use.
I am not sure if it can be fixed in https://github.com/metanorma/libemf2svg but in any case it is not related to this issue (IMHO)

@maxirmx
Copy link

maxirmx commented Jul 19, 2022

@manuelfuenmayor
Can you attach the broken DOC file please ? If it is already attached, I am sorry. Pls point me to it.

@manuelfuenmayor
Copy link
Author

@maxirmx
Sure, here you are: document.zip

@anermina
Copy link

@anermina can you try to generate this image in DOC output, please?

Just to confirm that I am also not able to generate this image when using Windows OS.

@ronaldtse
Copy link
Contributor

@maxirmx

in any case it is not related to this issue (IMHO)

Indeed -- emf2svg was able to convert the image on my Apple M1 without issue. Thanks!

Perhaps this is only a Windows issue.

@CAMOBAP could you have a look whether you can:

  1. See the 008.emf on Windows
  2. Run the command emf2svg 008.emf x.svg on Windows and see how x.svg looks like?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

5 participants