Changes between Initial Version and Version 1 of doc/common/charsets


Ignore:
Timestamp:
08/18/09 08:21:13 (15 years ago)
Author:
slavazanko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/common/charsets

    v1 v1  
     1= Select charsets = 
     2 
     3If you want to select chansets, you need to make project with {{{--enable-charset}}} option. Select charsets works in file panels, editor and viewer. 
     4 
     5 
     6List of charsets plased in /etc/mc/mc.charsets file. Format of file is a simple: any string must contain: 
     7 
     8{{{ 
     9<Name of charset> <description of charset> 
     10}}} 
     11 
     12'Name of charset' must be named by one of {{{iconv -l}}} output charsets names. 'Description of charset' -- string for display charset into 'select charsets' dialog window. 'Name of charset' and 'Description of charset' must be separated by space or tab symbol. 
     13 
     14Default mc.charsets file contain: 
     15 
     16{{{ 
     17ASCII           7-bit ASCII 
     18ISO-8859-1      ISO 8859-1 
     19ISO-8859-2      ISO 8859-2 
     20ISO-8859-5      ISO 8859-5 
     21CP1250          Windows 1250 
     22CP1251          Windows 1251 
     23CP437           CP 437 
     24CP850           CP 850 
     25CP852           CP 852 
     26CP866           CP 866 
     27KOI8-R          KOI8-R 
     28KOI8-U          KOI8-U 
     29UTF-8           UTF-8 
     30}}} 
     31 
     32You may edit this list as you need. If you mean, that some charsets need to include into default file (in project repository) please keep ticket in our bugtracker. 
     33 
     34== Display setup == 
     35 
     36As first, you need to setup charset of input/output (must be equal to your system charset). Setting is made in the 'Display bits' dialog window (Menu -> Options -> Display bits ...). When you save the settings the encoding will be recorded in the configuration file ~/.mc/ini (option 'display_codepage' in section [Misc]).  
     37 
     38== In editor and viewer == 
     39 
     40For change charset press  {{{Ctrl-t}}} (or select Menu -> Command -> Encoding...).This means that the file will be recoded from selected charset into input/output charset. File still untouched. 
     41 
     42Search also be produced in the charset that you chose. You can choose "All charsets" in the search dialog to search in all known charsets. 
     43 
     44If you save the settings of editor, then the chosen charset will written in the configuration file ~/.mc/ini ('source_codepage parameter' in the [Misc] section). In next time of   editor start saved charset will be used for all reopening files. 
     45 
     46== In file panels == 
     47 
     48Press {{{Ctrl-t}}} in active panel (or select 'Menu -> <Left|Right>  -> Encoding...'. Select needed charset. In title of panel you'll see: 
     49{{{ 
     50/some/path#enc:<selected charset> 
     51}}} 
     52 
     53You may continue to navigate into subdirs. Named of files and directoryes will be recoded from selected charset into input/output charset. You may change charset into subdir: 
     54{{{ 
     55/some/path#enc:<selected charset>/subdir#enc:<selected charset 2> 
     56}}} 
     57In any case recode of filenames will be made from last selected charset into input/output charset (not between charsets in path). 
     58 
     59If you select 'No translation' in 'Choose codepage' dialog window, all charset recode info will be cleaned from path. 
     60