face 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .TH FACE 6
  2. .SH NAME
  3. face \- face files
  4. .SH DESCRIPTION
  5. The directory
  6. .B /lib/face
  7. contains a hierarchy of images of people.
  8. In that directory are subdirectories named by the sizes of
  9. the corresponding image files:
  10. .B 48x48x1
  11. (48 by 48 pixels, one bit per pixel);
  12. .B 48x48x2
  13. (48 by 48 pixels, two (grey) bits per pixel);
  14. .B 48x48x4
  15. (48 by 48 pixels, four (grey) bits per pixel);
  16. .B 48x48x8
  17. (48 by 48 pixels, eight (color-mapped) bits per pixel);
  18. .B 512x512x8
  19. (512 by 512 pixels, eight (color-mapped) bits per pixel);
  20. .B 512x512x24
  21. (512 by 512 pixels, twenty-four bits per pixel (3 times 8 bits
  22. per color)).
  23. The large files serve no special purpose; they are stored
  24. as images
  25. (see
  26. .IR image (6)).
  27. The small files are the `icons' displayed by
  28. .B faces
  29. and
  30. .B seemail
  31. (see
  32. .IR faces (1));
  33. for depths less than 4, their format is special.
  34. .PP
  35. One- and two-bit deep icons are stored as text, one line of the file to one scan line
  36. of display.
  37. Each line is divided into 8-bit, 16-bit, or 32-bit big-endian words,
  38. stored as a list of comma-separated hexadecimal C constants,
  39. such as:
  40. .IP
  41. .EX
  42. 0x9200, 0x1bb0, 0x003e,
  43. .EE
  44. .PP
  45. This odd format is historical and the programs that read it
  46. are somewhat forgiving about blanks and the need for commas.
  47. .PP
  48. The files
  49. .BR /lib/face/*/.dict
  50. hold a correspondence between users at machines
  51. and face files.
  52. The format is
  53. .IP
  54. .EX
  55. .I machine\fB/\fPuser directory\fB/\fPfile\fB.\fPver
  56. .EE
  57. .PP
  58. The
  59. .I machine
  60. is the domain name of the machine sending the message,
  61. and
  62. .I user
  63. the name of the user sending it, as recorded in
  64. .BR /sys/log/mail .
  65. The
  66. .I directory
  67. is a further subdirectory of (say)
  68. .BR /lib/face/48x48x1 ,
  69. named by a single letter corresponding to the first character
  70. of the user names. The
  71. .I file
  72. is the name of the file, typically but not always the user name,
  73. and
  74. .I ver
  75. is a number to distinguish different images, for example to
  76. distinguish the image for Bill Gates from the image for Bill Joy,
  77. both of which might otherwise be called
  78. .BR b/bill .
  79. For example, Bill Gates might be represented by the line
  80. .IP
  81. .EX
  82. microsoft.com/bill b/bill.1
  83. .EE
  84. .PP
  85. If multiple entries exist for a user in the various
  86. .B .dict
  87. files,
  88. .I faces
  89. chooses the highest pixel size less than or equal to that of the
  90. display on which it is running.
  91. .PP
  92. Finally, or rather firstly, the file
  93. .B /lib/face/.machinelist
  94. contains a list of machine/domain pairs, one per line,
  95. to map any of a set of machines to a single domain name to
  96. be looked up in the
  97. .B .dict
  98. files. The machine name may be a regular expression,
  99. so for example the entry
  100. .IP
  101. .EX
  102. \&.*research\e.bell-labs\e.com astro
  103. .EE
  104. .PP
  105. maps any of the machines in Bell Labs Research into the
  106. shorthand name
  107. .BR astro ,
  108. which then appears as a domain name in the
  109. .B .dict
  110. files.
  111. .SH "SEE ALSO"
  112. .IR mail (1),
  113. .IR tweak (1),
  114. .IR image (6)