Difference between revisions of "Unicode support"

From WikEmacs
Jump to navigation Jump to search
(anonymous deleted valid content without explanation.)
(Undo revision 2166 by 115.241.77.242 (talk))
Line 1: Line 1:
Emacs 23 and earlier displayed empty blocks for characters when no suitable font was found.
+
Vim, can do this.1. The Ex command below cratees a temporary buffer with the data for occurences just like M-x occurences. Excepting that it can inlucde as many files as required and even some powerful shell like patterns for e.g. **/*.h **/*.cpp -> This will search for the pattern occuerence in all .h and .cpp files found in current directory and any other sub-directory with in it!!:vimgrep // %2. Once you have entered the command above, you can preview the results in [Quickfix List] just like in Emacs using :copen, but you have useful normal mode short cuts to move next, forward, rewind, etc. etc.:copen3. The [Quickfix List] buffer is read-only as well. Easily remediated by below, and you can filter afterwards.:set modifiable4. Lather, rinse, repeat and shine.5. Now you can save the [Quickfix List] permanently to the harddisk using commands below and review them later on.:w Afterwards, start VIM with the quickfix list as shown below:$ gvim -q Now, Can *your* editor do that?
 
 
Emacs 24 shows the hex code in the block. From {{CommandKeys|C-h n RET|view-emacs-news}}:
 
 
 
"Enhanced support for characters with no glyphs in available fonts. If a character has no glyphs in any of the available fonts, Emacs normally displays it either as a hexadecimal code in a box or as a thin 1-pixel space. In addition to these two methods, Emacs can display these characters as empty box, as an acronym, or not display them at all. To change how these characters are displayed, customize the variable `glyphless-char-display-control'."
 
 
 
= Useful Keybindings =
 
 
 
; {{CommandKeys|C-x 8 RET|ucs-insert}}
 
: Use this to input a unicode charcter without resorting to any of the [[Input methods]]. For example, to insert a  [http://www.fileformat.info/info/unicode/char/2603/index.htm snowman] type {{Keys|C-x 8 RET SNOWMAN RET}} or type {{Keys|C-x 8 RET 2603 RET}}.
 
 
 
; {{CustomizeVariable|glyphless-char-display-control}}
 
: Control how characters that don't have glyphs are displayed.  Typically glyphless characters are rendered as rectangular boxes with hex numbers inside them.
 
: (From ''NEWS'' file) - "Enhanced support for characters with no glyphs in available fonts. If a character has no glyphs in any of the available fonts, Emacs normally displays it either as a hexadecimal code in a box or as a thin 1-pixel space.  In addition to these two methods, Emacs can display these characters as empty box, as an acronym, or not display them at all.  To change how these characters are displayed, customize the variable `glyphless-char-display-control'."
 

Revision as of 14:51, 22 June 2012

Vim, can do this.1. The Ex command below cratees a temporary buffer with the data for occurences just like M-x occurences. Excepting that it can inlucde as many files as required and even some powerful shell like patterns for e.g. **/*.h **/*.cpp -> This will search for the pattern occuerence in all .h and .cpp files found in current directory and any other sub-directory with in it!!:vimgrep // %2. Once you have entered the command above, you can preview the results in [Quickfix List] just like in Emacs using :copen, but you have useful normal mode short cuts to move next, forward, rewind, etc. etc.:copen3. The [Quickfix List] buffer is read-only as well. Easily remediated by below, and you can filter afterwards.:set modifiable4. Lather, rinse, repeat and shine.5. Now you can save the [Quickfix List] permanently to the harddisk using commands below and review them later on.:w Afterwards, start VIM with the quickfix list as shown below:$ gvim -q Now, Can *your* editor do that?