WPF Sample for Drawing Text

In my earlier post, I mentioned the different consideration when dealing with rtl (or Bidi) text.  This time I’m going to post the sample with more in-depth discussion. 1)      I created a WPF Windows application: RTLApplication.   2)      Created a CustomControl and called it RTL Control. This is the rendering code, and the highlight shows…

1

Event and Arabic CLIP

  November was a very hectic month. I participated as a speaker in the IT Evolution event, touring 6 cities in Gulf. IT Evolution 08 is a one-day event. There are separate tracks for IT professionals and developers. The event was organized by the DPE team in Gulf to tour 6 cities, Abu Dhabi (UAE),…

2

Arabic CLIP is available!

Microsoft CLIP (or Microsoft Captions Language Interface Pack) is a language solution that uses tooltips or a window to display translation. CLIP works with any application to show translations in the Tooltip and/or the CLIP Window. You can also add/edit/delete your own translations Now for the first-time we are announcing Arabic CLIP. It’s a community…

1

Developing Arabic WPF applications – Part 4

Drawing Text using FormattedText FormattedText Class offers low-level method to manage drawing text in Windows Presentation Foundation (WPF). It processes text as graphical elements, instead of text in controls such as the TextBox and TextBlock, which implement the FlowDirection model or the XPS document model. Basically, you should avoid using Formatted text and use the…

3

Developing Arabic WPF applications – Part 3

I talked before about changing the input language in a textbox in Windows Forms but what about WPF? In WPF, you should use the InputLanguageManager class. You can use it in either the code or in the XAML markup. I wrote a sample to demo an application with default language set to Arabic(Egypt). <Window x:Class=”WpfApplication1.Window1″…

4

Arabic Online Machine Translation

Good news, Arabic Microsoft machine translation (MT) engine is now live at  http://www.windowslivetranslator.com . Previously the site contained a 3rd party MT but now we put our own MS engine. There is also more good news, Tbot now supports Arabic. What is Tbot? It’s the translation robot you can add to your MSN contacts and…

1

Developing Arabic WPF applications – Part 2

There are a few cases where FlowDirection does not behave as expected. This blog covers two of these exceptions. Image An Image represents a control that displays an image. It can be used with a Source property that defines the uniform resource identifier (URI) of the Image to display. Unlike other UI elements, an Image…

2

What About SQL?

I’m all about VS but I came across this interesting article about SQL. The title is Arabic Language Support in SQL Server 2005, it’s found at http://msdn.microsoft.com/en-us/library/cc295829.aspx. It has some interesting info about Arabic support in SQL. There is info about storing and manipulating Arabic strings. In addition, the paper discusses Hijri dates and some really important material…

2

Microsoft EDC 2008

Next week, I’ll pack and head to Egypt, to attend Egypt Developer Conference (EDC). EDC 2008 is the biggest Developers Conference of the year in Egypt. I’m sure to attend, although I won’t deliver any sessions but I would love to meet with the developers. I can extract some interesting phrases about the event but…

1

Mixed Time Date display

Hi, I wanted to continue posting in this blog in a hope that it would help people understand more the challenges in Arabic application development. Today, I’ll talk a little about some wrong behavior in the mixed Arabic \English display of dates. I hope it’s a useful insight to the issues in hand. I got…

1