| Export to DOC Microsoft Word Issue [message #881456] |
Mon, 04 June 2012 11:36  |
Missing name Missing name Messages: 58 Registered: October 2011 |
Member |
|
|
Hi,
I previously had a problem with Cyrillic letters (they have not been pretty displayed ) to be shown in PDF when I export it from system.
So I changed fontsConfig.xml and fontsConfig_pdf.xml
I changed mapping:
<mapping name="serif" font-family="Arial Unicode MS" /> to Arial Unicode MS
and also encoding (this is for Cyrillic letters)
<encoding font-family="Arial Unicode MS" encoding="Cp1251" />
and also some composite font
<font font-family="Arial Unicode MS" catalog="Western" />
I changed this in this both files and now pdf is displayed correctly.
But now I have problem to export it to doc Microsoft Word:
when i export it in word non English letters are shown as little squares.
Font selected in word is Lucida Sans Typewriter.If I manually select text and then change font to Arial Unicode MS text is displayed OK.
So which file do I have to change for correct Word document?
Is it only fontsConfig_linux.xml???
I tried to put Arial Unicode Ms instead on Lucida Sans Typewriter on evry place (bolded one) but then I am getting format error corrupted document, and file is not opened!!!
<?xml version="1.0" encoding="UTF-8"?>
<font>
<font-aliases>
<mapping name="serif" font-family="Arial Unicode MS" />
<mapping name="sans serif" font-family="Lucida Sans" />
<mapping name="monospace" font-family="Arial Unicode MS" />
<mapping name="cursive" font-family="Arial Unicode MS" />
<mapping name="fantasy" font-family="Arial Unicode MS" />
</font-aliases>
<composite-font name="all-fonts" default="Arial Unicode MS">
<font font-family="Arial Unicode MS" catalog="Western" />
<font font-family="ZYSong18030" catalog="Chinese" />
<font font-family="Baekmuk Batang" catalog="Korean" />
<font font-family="Kochi Mincho" catalog="Japanese" />
</composite-font>
</font>
What do I have to change for correct word document?
Thanks
[Updated on: Mon, 04 June 2012 16:00] Report message to a moderator
|
|
|
|
|
|
|
|
| Re: Export to DOC Microsoft Word Issue [message #884650 is a reply to message #883112] |
Mon, 11 June 2012 10:58   |
Missing name Missing name Messages: 58 Registered: October 2011 |
Member |
|
|
Unfortunately I can't test it in 3.7.2 because this IBM application does not support BIRT reports in this format.
Some guy wrote for his similar problem:
"Fixed.
Word can shift to the proper font if the user defined font can not display some
characters of a string. So we need not use the font-config. We just need to
handle the generic font mapping to make sure it is consonant with HTML and pdf
output."
But my does not shift to proper font? I saw that for all problem patches did not work.
Some othe guy wrote:
"Fixed. In word tag sz only applies for Asian and Latin fonts in a run. Add a
tag sz-cs to support complex script fonts in a run. "
Where to add this tags if this i solution?
Jason I think solution is to find where does BIRT or my application sets this Lucida font for default word export. I found it only in fontsConfig_linux. There must be some other place also what do you think? thanks
[Updated on: Mon, 11 June 2012 11:01] Report message to a moderator
|
|
|
| Re: Export to DOC Microsoft Word Issue [message #884732 is a reply to message #884650] |
Mon, 11 June 2012 13:31  |
Jason Weathersby Messages: 9167 Registered: July 2009 |
Senior Member |

|
|
I believe the sz-cs is in the word xml format. You may want to open a
bugzilla entry to see if any of the devs have a possible work around.
Jason
On 6/11/2012 10:58 AM, Missing name Mising name wrote:
> Unfortunately I can't test it in 3.7.2 because this IBM application does
> not support BIRT reports in this format.
>
> Some guy wrote for his similar problem:
> "Fixed.
>
> Word can shift to the proper font if the user defined font can not
> display some
> characters of a string. So we need not use the font-config. We just need to
> handle the generic font mapping to make sure it is consonant with HTML
> and pdf
> output."
>
> But my does not shift to proper font? I saw that for all problem patches
> did not work.
>
> Some othe guy wrote:
> "Fixed. In word tag sz only applies for Asian and Latin fonts in a run.
> Add a
> tag sz-cs to support complex script fonts in a run. "
>
> Where to add this tags if this i solution?
>
Jason Weathersby
BIRT Exchange
|
|
|
Powered by
FUDForum. Page generated in 0.01681 seconds