Issue 17503 - Patch to enable rtf filter handle local language files
Summary: Patch to enable rtf filter handle local language files
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC2
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 13:38 UTC by tono
Modified: 2013-08-07 14:41 UTC (History)
3 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Enables localized rtf handling (7.24 KB, patch)
2003-07-28 13:39 UTC, tono
no flags Details | Diff
EXamples generated by Wordpad in Windows 98 local versions (3.81 KB, application/octet-stream)
2003-08-06 13:11 UTC, tono
no flags Details
Additional patch for 680 codeline (7.53 KB, patch)
2005-01-30 15:27 UTC, tono
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description tono 2003-07-28 13:38:33 UTC
The patch will resolve the following two issues.

1. In rich text format, the face name of a font specification in encoded with 
the codepage of the font itself. Current rtf filter does not hadle it well.

2. The style names are not localized in rtf files. It should be translated to 
the localized style names.
Comment 1 tono 2003-07-28 13:39:27 UTC
Created attachment 8068 [details]
Enables localized rtf handling
Comment 2 h.ilter 2003-08-05 13:12:49 UTC
HI->AMA: Please check the attachment.
Comment 3 tono 2003-08-06 13:11:15 UTC
Created attachment 8270 [details]
EXamples generated by Wordpad in Windows 98 local versions
Comment 4 andreas.martens 2003-08-06 16:14:55 UTC
Please have a look.
Comment 5 caolanm 2003-08-06 17:49:33 UTC
I haven't applied or looked at the example rtf's yet.

But on a brief look at the patch I'm not so sure about the use of
SetEncoding in svxrtf.cxx, that would set the fontencoding 'currently
in use' when each fontdefinition's F_CHARSET is parsed inside the
fonttable definition, not when that font gets used which is where that
information is useful. Or am I missing something, the encoding of the
fontnames themselves ?

I like the standard names lookup, similiar to the winword one, that's
good stuff, I'd like to put that right in for 2.0.

Looking at the whole SetScriptAttr method itself I'm a little
concerned at the code before its patched and its assumptions about LOW
and HIGH chars. I think I'll have to look through the examples to get
a feel for what it should be doing. I wonder if the whole if else
should just be the else branch on its own.
Comment 6 caolanm 2003-08-06 17:52:47 UTC
Woops, didn't actually read the top of the issue which explains what
the charset business was all about, at least my guess as to fontnames
being in their own encoding was correct. That's familiar from what
we've seen in the winword filter, so a green light on that one, good
stuff.
Comment 7 caolanm 2003-08-13 16:55:38 UTC
Integrated to 2.0 in limerickfilterteam08. Interestingly wordpad can
open the .rtf files, but word 2003 cannot it seems.
Comment 8 caolanm 2003-08-15 17:31:56 UTC
reopen to reassign
Comment 9 caolanm 2003-08-15 17:32:30 UTC
cmc->mru: localized fontnames working in limerickfilterteam08
Comment 10 maho.nakata 2003-08-25 16:48:33 UTC
Hi, all
Is it possible to change the target milestone to 1.1.1?
We Japanese team have been applying his patch and provide
as `japanese build' for user's convinence.
We regard his patch quite important.

Regards,
 maho
Comment 11 maho.nakata 2003-08-25 17:15:42 UTC
Opps sorry, I changed target milestone without discussion.
Backouted.
Comment 12 caolanm 2003-08-26 09:25:30 UTC
You could write a new bug for 1.1.1 to support the native charset for
fontnames alone. This patch does a few more things than just that and
for 1.1.1 you want to keep things as massively simple as possible.
Comment 13 caolanm 2003-08-26 10:02:40 UTC
I'm as bad, I didn't mean to set the target of this either :-)
Comment 14 michael.ruess 2003-08-28 13:36:08 UTC
Checked fix in CWS filterteam08.
Comment 15 michael.ruess 2003-08-28 13:36:37 UTC
Verified. Fix will be available for OO 2.0.
Comment 16 michael.ruess 2004-04-27 13:03:57 UTC
Closed. Fixed in current snapshot.
Comment 17 tono 2005-01-30 15:26:14 UTC
The fix in only partially included in current 680 codeline. Especially the 
standard name lookup is omitted. Are there any reason?

And recently I found out the fix for issue 35653 interfares decoding of 
Japanese languege RTF.

As my patch in issue #20264 is included in current codeline, sw now generates 
local encoded RTF. Therefore unless these problems are fixed, sw even cannot 
read Japanese RTF generated by itself.

I will post an additional patch right next.



Comment 18 tono 2005-01-30 15:27:29 UTC
Created attachment 22010 [details]
Additional patch for 680 codeline
Comment 19 michael.ruess 2005-02-01 14:14:18 UTC
Please do not open such issues, if ther's ONE problem with ONE certain Language.
The issue itself is fixed. So please file a new issue with the required
information. That is a VERY MUCH better issue handling!
Thanks for your patience.
Comment 20 michael.ruess 2005-02-01 14:14:55 UTC
Closed.