Some concerns about Chinese characters: Microsoft Visual Studio International Feature Pack 2.0 is converted to uppercase, Chinese characters are translated into Japanese and Korean, text box content is correct, etc

Source: Internet
Author: User

Visual Studio International Feature Pack 2.0 is for version 1.0 (1.0
The product name of the version is Microsoft Visual Studio International pack 1.0 SR1)
Is designed to help. NET developers create international programs.

  • Chinese Text Alignment Class Library and
    TextBox Controls contains the WinForm and WPF TextBox Controls that support alignment of Simplified Chinese text,
    And a class library that helps developers easily align and display strings in Chinese text.
  • Chinese Auto
    Complete Class Library and TextBox Controls
    A TextBox Control that supports Simplified Chinese and Traditional Chinese Input Methods and automatically completes WinForm and WPF,
    And a class library that allows developers to easily add sensor input methods to standard controls and automatically complete functions.
  • Korean Auto
    Complete Class Library and ComboBox Controls include WinForm and
    The ComboBox control of WPF, and a class library that allows developers to easily add sensor input methods to standard controls and automatically complete functions.
  • Numeric Formatting Class Library contains classes that support Formatting numbers in five languages into texts. Version 2.0 supports Formatting Arabic numerals into Arabic texts.
  • The Yomigana Framework contains class libraries and controls.
    • Class Library:

      • For some general purpose classes, you can use generics to enable phonetic injection for an enumerative type.
      • For special purposes, you can use the generic above to enable certain types of sound injection for a string.
      • For special purposes, the StringAnnotation class uses the above generic to enable a string to be voiced, including the parsing and formatting functions.
      • A comparator class that compares strings.
      • A Data Structure that implements IEnumerable <string> is used to divide a string into enumerated string segments. The data structure divides a string into enumerated string segments and outputs them using IEnumerator <string>.
    • Controls:
      • Enhanced Ajax/WPF/WinForm textboxes is used to capture pronunciation based on user input.
      • An enhanced ASP. NET Label that uses Ruby labels.
      • Sample Code
      • ------------------------

Using system;
Using Microsoft. International. formatters;
Using system. Globalization;

Namespace hanzitopinyinandnumbertohanzi2. _ 0
{
/// <Summary>
/// Tool class
/// </Summary>
Public class randsuntils
{
/// <Summary>
/// Convert numbers into Chinese Characters
/// There is still a problem with the conversion of 911 ()
/// The correct one should be)
/// The reason is that 10 is taken into consideration when one row in the class library processes the integer 10.
/// </Summary>
/// <Param name = "number"> </param>
Public static void ConvertNumberToHanZi (double number)
{
Console. WriteLine ("starting to convert ..........");

String strConvertResult = "";

// 1.0 (two digits after the decimal point and no rounding mechanism)
EastAsiaNumericFormatter eastAsiaNumericFormatter = new EastAsiaNumericFormatter ();
StrConvertResult = string. Format (new EastAsiaNumericFormatter (), "{0: Lc}", number );

// 2.0 (the three digits after the decimal point have a rounding mechanism)
StrConvertResult = InternationalNumericFormatter. FormatWithCulture ("L", number, null, new CultureInfo ("zh-CHS "));

Console. WriteLine ("number" + number. ToString () + "in uppercase:" + strConvertResult );

Console. WriteLine ("processing is finished. Press any key to exit the program .....");
Console. ReadLine ();
}
}

Static class Program
{
/// <Summary>
/// Main entry point of the application.
/// </Summary>
[STAThread]
Static void Main ()
{
// Process conversion between numbers and Chinese characters
Randsuntils. ConvertNumberToHanZi (789111.23456789 );

// Control the alignment of textBox (I personally think there is nothing special)
// Application. Run (new Form1 ());

// Test the application of the self-sensing Program
// Application. Run (new Form3 ());

// Automatic translation (Japanese is not satisfactory, but Korean cannot be translated)
// Application. Run (new Form4 ());

}
}
}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.