4

I have an SRS written in RTL language (Hebrew) that can't be touched.

I translated the Hebrew names in the SRS. Of course I want to be able to understand the meaning of a value in my enum (or any other object)

I did the following

enum Objects
{
    /// <summary>אזעקה</summary> // <=== the hebrew name (RTL)
    Alarm,
    /// <summary>סיבת אזעקה</summary> // <=== the hebrew name (RTL)
    Alarm_Reason
}

Now when I write Objects.Alarm, IntelliSense properly displays "אזעקה".

However, when I write Objects.Alarm_Reason, IntelliSense wrongly displays "אזעקה סיבת " instead of properly displaying "סיבת אזעקה". The order of words is switched!

Is there any way to fix this?

Microsoft suggests that there is no way around the issue, but I hoped someone would have an idea for a workaround?

Would creating a VS2010 plugin that will force IntelliSense to accept RTL properly be possible?

j0k
  • 22,600
  • 28
  • 79
  • 90
Nahum
  • 6,959
  • 12
  • 48
  • 69
  • I copy pasted the code but I get this error instead: http://i.imgur.com/bQOIY.png Any ideea why? – Răzvan Flavius Panda Mar 15 '12 at 09:51
  • @RăzvanPanda no idea. probably installing hebrew language pack will solve this. writting none english comments is generally a bad practice because of this. but this will make ussing my SRS much easier. – Nahum Mar 15 '12 at 09:58
  • Did you enter the two words using copy paste or keyboard input? – Răzvan Flavius Panda Mar 15 '12 at 10:38
  • A little late, but I am currently struggling with this issue. It is possible to insert Unicode characters into XML comments by their code: `א` inserts an **א**. Perhaps it is possible to fix this using the [Unicode directional formatting codes](http://www.unicode.org/reports/tr9/#Directional_Formatting_Codes). – Zev Spitz Jan 01 '13 at 17:46
  • hi @ZevSpitz please post here if you can provide a working solution. – Nahum Jan 02 '13 at 06:44
  • For your purposes it may be enough to put `‫` after the `` start tag. It didn't help me (nor did any of the variations I tried), because I need to embed LTR strings within the RTL text. Try this, and I'll post as an answer if it works. – Zev Spitz Jan 02 '13 at 07:33
  • You're probably aware that unless you are certain that you'll be the only person using this code, using a language other than English in comments is a bad idea, as it will prevent anyone who doesn't speak the langauge from benefiting from your comments. The only reason I need something like this is for teaching purposes, when the students are beginning programmers and not fluent enough in English. – Zev Spitz Jan 02 '13 at 08:49
  • 2
    thats not entierly true. not everyone works in a big company with very skilled programers that are fluent in english. there are MANY small oraganizations where some programers even with CSbsc that have trouble understanding english as embraressing as it sounds. there is no way that the project will EVER be read by someone who is not totally fluent in Hebrew. but the issue here is that the requirments and SRS are written in hebrew. and I need a comfortable way to map between Hebrew and English terms. the client requires all the documents be in hebrew etc etc.. – Nahum Jan 02 '13 at 09:08
  • Point taken. Did you have any success with the override code? – Zev Spitz Jan 02 '13 at 09:42
  • No. I did not :( thanks for trying. – Nahum Jan 02 '13 at 09:44

1 Answers1

1

Adding hebrew input language and activating might make it work as intended:

And then try inserting/pasting the 2 words again in the XML.

Update

From what I read I reached the same conclusion, that it is not possible with basic visual studio functionality.

As you said, it might be a good idea to write a plugin to transform the summary in the RTL form when displaying the tool tip.

Following links might be of use:

CSharp Intellisense

Custom Intellisense Extension

How to extend IntelliSense items?

Community
  • 1
  • 1
Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169