WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

RTF problem with ZWNJ and ZWJ followed by Space

 
   Home -> Office -> Conversions RSS
Next:  Conversions: Word 2003 to html  
Author Message
PaulWill

External


Since: Apr 17, 2008
Posts: 3



(Msg. 1) Posted: Thu Apr 17, 2008 6:16 am
Post subject: RTF problem with ZWNJ and ZWJ followed by Space Add to elertz
Archived from groups: microsoft>public>word>conversions (more info?)

When entering text in a Word (2007 / 2003) document, and entering a Unicode
Zero Width Non-Joiner / ZWNJ (0x200C) or a Zero Width Joiner / ZWJ (0x200D)
followed by a space, the space disappears when saving the document to RTF,
and the re-opening it in Word.

Using these character is sometimes necessary in Complex script languages,
such as Persian (which uses the ZWNJ to achive the terminal form of a
character in the middle of a word) and Malayalam (which uses ZWJ in typing
the Chillus prior to Unicode 5.1).

This doesn't happen every time. If the ZWNJ / ZWJ is in it's own RTF
grouping ("{\keywords text}") then the space is retained. If the formatting
of the ZWNJ / ZWJ is the same as the surrounding text, then the space
following the ZWNJ / ZWJ will be lost.

The loss of the space happens apparently because of a bug in the way the RTF
is written. RTF keywords are terminated by means of (1) another \ character
(2) a space. So then the \zwnj and \zwj keywords are written into a string
where there is no space, the RTF is written as follows:
....\'ed\'ed\zwnj\'ed\'ed...
This is fine. However, when there is a space, it is written like this:
....\'ed\'ed\zwnj \'ed\'ed...
This is not fine, because the space after \zwnj simply indicates the end of
the keyword. To indicate the need for a space, we need an additional space in
the RTF string.

I am interested in getting this bug confirmed, and then reporting this to
the Word programming team.

How do I go about that?

Thanks,
--
Paul Willies
Back to top
Login to vote
Bob Buckland ?:-)

External


Since: Aug 23, 2005
Posts: 2874



(Msg. 2) Posted: Thu Apr 17, 2008 6:13 pm
Post subject: Re: RTF problem with ZWNJ and ZWJ followed by Space Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Paul,

This sounds like one that came up once before, but to confirm that it's a problem, what are the steps to reproduce this, using one
of the MS Office supplied multilingual fonts and what languages are enabled with the Office Language Settings Tool.

If you have two scenarios, one where it works the way you're trying to go and one that doesn't please provide both repro steps.
Also do you have a page/blog, etc that you can provide a link to for good/bad example documents?

===================
<<"PaulWill" <pwillies.RemoveThis@jw.org.za.donotspam> wrote in message news:DB45EAC8-6BCB-4ECC-843C-2013FD9A150C@microsoft.com...
When entering text in a Word (2007 / 2003) document, and entering a Unicode
Zero Width Non-Joiner / ZWNJ (0x200C) or a Zero Width Joiner / ZWJ (0x200D)
followed by a space, the space disappears when saving the document to RTF,
and the re-opening it in Word.

Using these character is sometimes necessary in Complex script languages,
such as Persian (which uses the ZWNJ to achive the terminal form of a
character in the middle of a word) and Malayalam (which uses ZWJ in typing
the Chillus prior to Unicode 5.1).

This doesn't happen every time. If the ZWNJ / ZWJ is in it's own RTF
grouping ("{\keywords text}") then the space is retained. If the formatting
of the ZWNJ / ZWJ is the same as the surrounding text, then the space
following the ZWNJ / ZWJ will be lost.

The loss of the space happens apparently because of a bug in the way the RTF
is written. RTF keywords are terminated by means of (1) another \ character
(2) a space. So then the \zwnj and \zwj keywords are written into a string
where there is no space, the RTF is written as follows:
....\'ed\'ed\zwnj\'ed\'ed...
This is fine. However, when there is a space, it is written like this:
....\'ed\'ed\zwnj \'ed\'ed...
This is not fine, because the space after \zwnj simply indicates the end of
the keyword. To indicate the need for a space, we need an additional space in
the RTF string.

I am interested in getting this bug confirmed, and then reporting this to
the Word programming team.

How do I go about that?

Thanks,
--
Paul Willies >>
--

Bob Buckland ?Smile
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*
Back to top
Login to vote
PaulWill

External


Since: Apr 17, 2008
Posts: 3



(Msg. 3) Posted: Thu Apr 17, 2008 10:50 pm
Post subject: Re: RTF problem with ZWNJ and ZWJ followed by Space Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Bob,

I have sample documents, but I don't have a page to put them on. Could I
e-mail them to someone? Alternatively I can get set up a page somewhere for
the purpose. Let me know.

Thanks a mil.

--
Paul Willies


"Bob Buckland ?Smile" wrote:

> Hi Paul,
>
> This sounds like one that came up once before, but to confirm that it's a problem, what are the steps to reproduce this, using one
> of the MS Office supplied multilingual fonts and what languages are enabled with the Office Language Settings Tool.
>
> If you have two scenarios, one where it works the way you're trying to go and one that doesn't please provide both repro steps.
> Also do you have a page/blog, etc that you can provide a link to for good/bad example documents?
>
> ===================
> <<"PaulWill" <pwillies.TakeThisOut@jw.org.za.donotspam> wrote in message news:DB45EAC8-6BCB-4ECC-843C-2013FD9A150C@microsoft.com...
> When entering text in a Word (2007 / 2003) document, and entering a Unicode
> Zero Width Non-Joiner / ZWNJ (0x200C) or a Zero Width Joiner / ZWJ (0x200D)
> followed by a space, the space disappears when saving the document to RTF,
> and the re-opening it in Word.
>
> Using these character is sometimes necessary in Complex script languages,
> such as Persian (which uses the ZWNJ to achive the terminal form of a
> character in the middle of a word) and Malayalam (which uses ZWJ in typing
> the Chillus prior to Unicode 5.1).
>
> This doesn't happen every time. If the ZWNJ / ZWJ is in it's own RTF
> grouping ("{\keywords text}") then the space is retained. If the formatting
> of the ZWNJ / ZWJ is the same as the surrounding text, then the space
> following the ZWNJ / ZWJ will be lost.
>
> The loss of the space happens apparently because of a bug in the way the RTF
> is written. RTF keywords are terminated by means of (1) another \ character
> (2) a space. So then the \zwnj and \zwj keywords are written into a string
> where there is no space, the RTF is written as follows:
> ....\'ed\'ed\zwnj\'ed\'ed...
> This is fine. However, when there is a space, it is written like this:
> ....\'ed\'ed\zwnj \'ed\'ed...
> This is not fine, because the space after \zwnj simply indicates the end of
> the keyword. To indicate the need for a space, we need an additional space in
> the RTF string.
>
> I am interested in getting this bug confirmed, and then reporting this to
> the Word programming team.
>
> How do I go about that?
>
> Thanks,
> --
> Paul Willies >>
> --
>
> Bob Buckland ?Smile
> MS Office System Products MVP
>
> *Courtesy is not expensive and can pay big dividends*
>
>
>
Back to top
Login to vote
PaulWill

External


Since: Apr 17, 2008
Posts: 3



(Msg. 4) Posted: Tue Apr 29, 2008 6:17 am
Post subject: Re: RTF problem with ZWNJ and ZWJ followed by Space Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Bob,

Would like to get this one reported. Is it possible to e-mail the documents
to someone?

Thanks,

--
Paul Willies


"Bob Buckland ?Smile" wrote:

> Hi Paul,
>
> This sounds like one that came up once before, but to confirm that it's a problem, what are the steps to reproduce this, using one
> of the MS Office supplied multilingual fonts and what languages are enabled with the Office Language Settings Tool.
>
> If you have two scenarios, one where it works the way you're trying to go and one that doesn't please provide both repro steps.
> Also do you have a page/blog, etc that you can provide a link to for good/bad example documents?
>
>
> Bob Buckland ?Smile
> MS Office System Products MVP
>
> *Courtesy is not expensive and can pay big dividends*
>
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Conversions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET