Accents not working in the MSWord template?

0 votes
asked Dec 4, 2013 in Bug by rmric (2,140 points)

Hi,

The Word template works great, kudos.

Though I'm experiencing a minor problem with accents in PlantUML Template v23.dotm and Word 2010 (french version).

The problem is that any accentuated text loose its accents. i.e. éàçîµ£€ become eaci???, and so on.

It looks like an issue with charset, only pure ASCII seems supported.

Rem: the standalone PlantUML on the same Windows machine is rendering unicode text fine.

PlantUML 7986, graphviz 2.34.0, JRE 1.7.0_40, Win7

1 Answer

0 votes
answered Dec 5, 2013 by plantuml (298,400 points)

Thanks for the feedback.
Could you try with this version:
https://dl.dropboxusercontent.com/u/13064071/PlantUML_Template_v24.dotm

Thanks,
 

commented Dec 6, 2013 by rmric (2,140 points)
The accents now show up in the new template version, it's beautiful, thanks.

There's a side-effect though with this new version. When I type "[A] -d- [B]", the dash before the 'd' gets rewritten by Word as a special dash with unicode E28093, yielding a PlantUML syntax error. The same kind of issue happens with ":" (when converting from v23), which makes Word insert an unbreakable space right before. I guess it has to do with automatic replacement in the PlantUML style (note: spell and grammar checking are disabled in the style).
commented Dec 6, 2013 by plantuml (298,400 points)
Hum, the issue with -d- cannot be reproduced in our configs.

Here is what you can do:
You will send us the temporary file (that contains unbreakable space and special dash unicode E28093) so that we patch PlantUML and accept this kind of character.

Here what you have to do (within Word)

1) Alt-F11 : this will display the VBA editor
2) Click on module PlantUML : to show the VBA code of the macro
3) search for the line: Result = ShellAndWait(JavaCommand, 0, vbMinimizedFocus, AbandonWait)
4) add the following line just after the line:
MsgBox "I am having a break"

Now, when you run the macro, Word will show a popup. While this popup is displayed, you can go to the directory that contains your .docx file.

You will find a file named "*._extr0001.txt".
Could you zip this file and send it to us ( plantuml@gmail.com ) so that wa can test it?

Thanks,
...