Japanese Input Method Editor(IME)


What is IME?


An IME is a program that allows computer users to enter complex characters and symbols, such as Japanese languages (usually but not limited to East Asian ones) that are made up of thousands of characters that can't fit on a standard keyboard. 


Why we need IME?

Each language of CCJK has lots of characters, we cannot map all of them on standard keyboard.

How the Japanese IME Looks Like?



Composition Window :-
Contains the collection of characters that the user has composed with the IME. These characters are drawn by the IME on top of the application. When the user notifies the IME that the composition string is satisfactory, the IME then sends the composition string to the application via a series of WM_CHAR messages.


Candidate Window :-
                 
When the user has entered a valid pronunciation, the IME displays a list of candidate characters that all match the given pronunciation. The user then selects the intended character from this list, and the IME adds this character to the Composition Window display.



- Click on the Input Mode button (an "A" by default) will allow you to select the Input Mode:



- Likewise for kanji conversion modes:



- The IME Pad button will bring up the IME Features menu which includes a soft-keyboard which allows direct input of hiragana and katakana:



 - Tool button will bring up the IME Options Menu:


Shortcuts used to toggle b/w IME :-
¨ ALT-~ (tilde): Cycles between kana and direct input mode
¨ ALT-SHIFT: Cycles through available languages
¨ ALT-CAPS_LOCK:  Switches to katakana input mode
¨ CTRL-CAPS_LOCK: Switches to hiragana input mode


Java : Program to reversing a string


public class ReverseString {

/**
* @param args
*/
public static void main(String[] args) {

//String[] name = new String[10];
String name , rev = "";

Scanner in = new Scanner(System.in);
System.out.println("Enter the string for reversal :- ");
name = in.nextLine();

int len = name.length();

for(int i = len-1;i>=0;i--){
rev = rev + name.charAt(i);
}
System.out.println(rev);
}


}

Java : Program swapping two numbers without using third variable


public class SwapTwoNo {

/**
* @param args
*/
public static void swap(int a , int b){

a = b+a;
b = a-b;
a = a-b;

System.out.println("Values of a and b after swap := " + a +" "+ b + " respectively");
}


public static void main(String[] args) {

int a = 5;
int b = 6;
System.out.println("Values of a and b before swap := " + a +" "+ b + " respectively");
swap(a,b);

}
}

Android : How to connect your Android device over Wifi using ADB command for App debugging

How to connect your Android device over Wi-Fi using ADB command Sometimes it requires to connect your Android dev...