Sorting strings in a locale-sensitive way

This article was originally written in English. Text in other languages was provided by machine translation.

In this section, you will learn how to sort strings in a locale-sensitive way.

Before Flash Player 10.1 was released, the sorting API in AS3 was using a locale-independent way which means the APIs are not locale aware. This is not user-friendly for international users who don’t use English as their first/only language. Let’s look at the following example code for some Chinese data:

If we use the APIs in Flash Player 10.0 and earlier to sort the strings:

Actually, the output result is in simple Unicode code point order for the conventional sorting, which is not correct for Chinese users.

With Flash Player 10.1, we can easily sort strings in a locale-sensitive way with the new flash.globalization.collator class. For handling strings sorting and searching, flash.globalization.* package provides Collator class. This class performs locale-sensitive string sorting and searching, or you can say, it allows performing string sorting and searching for different languages.

In the following example, we have instantiate a Collator object with a specific locale. Then we have called the compare method of the Collator class to perform a locale-sensitive string sorting. The sort method returns a negative value if the first string argument is less than the second, a positive value if the first string argument is greater than the second and 0 if the first string argument is equal to the second one.

Now, the output result looks great for Chinese users.

If you want to learn more about Flash Player 10.1 globalization API, please check the following package:

flash.globalization

Adobe Ideas 1.2 released to AppStore!

This article was originally written in English. Text in other languages was provided by machine translation.

Version 1.2 is available for download worldwide!

Adobe® Ideas is your digital sketchbook, letting you capture and explore ideas anywhere you go. Adobe Ideas is an ideal companion for the professional design applications from Adobe, including Adobe Illustrator® and Adobe Photoshop®. Now with a new in-app purchase option, you can get up to 10 drawing layers plus a photo layer for each sketch as well as layer transformations – move, rotate and scale each layer.
Sketch design concepts while sitting in a cafe, capture and store color themes while browsing through the photos on your phone, or jot down notes on a photo. Any time you need to explore creative ideas, Adobe Ideas is there with you.
Features:
• Simple vector-based drawing tools
• Zoom without jaggies or big pixels
• Variable-size brushes using multi-touch control
• Vector eraser
• Gallery-style organizer to quickly scroll through your ideas and color themes
• Huge virtual canvas
• Display ideas on an external VGA display (requires VGA adapter)
• Automatic creation of harmonized color themes from your photos or images
• Pick specific colors from photos or images easily
• Separate drawing and photo layers
• Easy creation of multiple versions of design concepts
• 50-level undo/redo
• Fast zooming and panning
• Save drawing to “saved photos” album on iPad and iPhone
• Ability to email ideas as PDF files for editing in Adobe Illustrator and Photoshop or for viewing with any PDF viewer
• Available in French, German and Japanese

In-app Purchase:
• Layers: available for in-app purchase. Create up to 10 drawing layers plus a photo layer for each sketch; control order and opacity for each layer. New Move tool offers move, scale and rotate for each layer.

What’s new in version 1.2:
New Layers functionality (Premium feature): $4.99. Create up to 10 drawing layers plus a photo layer for each sketch; control order and opacity for each layer. New Layers Move tool offers move, scale and rotate for each layer.
• Huge performance improvement to zooming and panning
• VGA Out – connect to an external display or projector to show sketch content real-time (requires Apple VGA adapter)
• Left/Right toolbar setting- customize the location of your toolbar.
• Improved stroke smoothing. Some smoothing occurs while drawing.

What tools can read what I am writing about?

This article was originally written in English. Text in other languages was provided by machine translation.

If you have a gmail account, have you noticed that the Ads side bar always has the relevant ads to any single email you get? I noticed lately when I opened my email from my international phone bill company. The Ads bar has “International calls”, “mobile calls”, “Calls to India”, etc. To prove it, you can try sending yourself an email with any keywords. I put “diet, health, weight loss” and guess what, when I open the email I sent to myself, I see “diabetes food”, “low carb diet”, “Health and fitness”…on the Ads bar.

I hope nobody at Google really reads my email, at least not that fast. Some busy tool must be extracting key words from a user-generated content, tagging it somehow and searching the tagged ads.

Same idea could apply to our users queries on our products, or community content so we would know what they are talking about and provide them with relevant help information. We can probably drop the ads feature.

But I’m not aware of many such text analytic tools on the market. Any ideas?

Mengmeng

Vamos comemorar os 20000 fãs do Facebook do Photoshop Elements!

Este artigo foi originalmente escrito em Português. Qualquer texto em outro idioma foi fornecido via tradução automática.

 

Como um agradecimento por seguir a sua página e para comemorar 20000 fãs no Facebook, a equipe do Photoshop Elements doará um pacote do Adobe Photoshop Elements 9 e Premiere Elements 9 a três fãs selecionados aleatoriamente que adicionarem um comentário ao ‘post’ abaixo:

Let’s celebrate 20,000 Facebook Fans!

Simplesmente compartilhe porque você adora o Photoshop Elements e a equipe selecionará três vencedores aleatórios. Comentários em Inglês são preferidos, mas em outros idiomas serão bem-vindos. Não esqueça de deixar uma maneira da equipe contatar você no seu comentário.

Boa sorte!

Esse artigo é uma tradução parcial do post Let’s celebrate 20,000 Facebook Fans! de Maria Yap, Director of Product Management, Digital Imaging, Adobe Systems

Adobe Reader X: Arabic, Hebrew, Greek

This article was originally written in English. Text in other languages was provided by machine translation.

 

As a bit of a follow up to my announcement of Acrobat and Reader X availability, I would also like to mention that the Arabic, Hebrew and Greek versions of Reader X are now available on the Reader Download Center (RDC).

Arabic and Hebrew are available for the Windows platform, while Greek is available on Windows as well as Intel-based MacOS systems. Check the RDC for complete details.