# HG changeset patch # User Oleksandr Gavenko # Date 1282679395 -10800 # Node ID eeda6f41f8e59d139b342e3fdc296029e4d5f3de # Parent 5fee9f3276aab05d4da6a83d7e5b2fee94d1f6b0# Parent 244083c7d2677a3d4db511e01b9ee8a0e42dc8d0 merged diff -r 5fee9f3276aa -r eeda6f41f8e5 emacs.rst --- a/emacs.rst Sat Aug 21 17:09:00 2010 +0300 +++ b/emacs.rst Tue Aug 24 22:49:55 2010 +0300 @@ -99,23 +99,41 @@ With transient-mark-mode and delete-selection-mode enabled: select region, type M-| sort -u RET to replace selection with sorted and uniquified lines. -** Determining running environment. +** Determining running environment/platform. -Check such variable: +Check variables: emacs-major-version emacs-minor-version - window-system - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window. - window-system-version - operating-system-release - system-configuration - like configuration triplet: cpu-manufacturer-os - system-name + window-system - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window + window-system-version - for windows only + operating-system-release - release of the operating system Emacs is running on + system-configuration - like configuration triplet: cpu-manufacturer-os + system-name - host name of the machine you are running on system-time-locale - system-type + system-type - indicating the type of operating system you are using: + 'gnu' (GNU Hurd), 'gnu/linux', 'gnu/kfreebsd' (FreeBSD), + 'darwin' (GNU-Darwin, Mac OS X), 'ms-dos', 'windows-nt', 'cygwin' system-uses-terminfo window-size-fixed -Run such checks: +and check functions: + + (fboundp ...) - return t if SYMBOL's function definition is not void + (featurep ...) - returns t if FEATURE is present in this Emacs + (display-graphic-p) - return non-nil if DISPLAY is a graphic display; graphical + displays are those which are capable of displaying several + frames and several different fonts at once + (display-multi-font-p) - same as 'display-graphic-p' + (display-multi-frame-p) - same as 'display-graphic-p' + (display-color-p) - return t if DISPLAY supports color + (display-images-p) - return non-nil if DISPLAY can display images + (display-grayscale-p) - return non-nil if frames on DISPLAY can display shades of gray + (display-mouse-p) - return non-nil if DISPLAY has a mouse available + (display-popup-menus-p) - return non-nil if popup menus are supported on DISPLAY + (display-selections-p) - return non-nil if DISPLAY supports selections + +Run those checks as below: (when window-system ...) (when (eq window-system 'x) ...) @@ -215,3 +233,8 @@ hanoi hanoi-unix life pong tetris gomoku +* Long lines. + + (setq longlines-show-hard-newlines t) + (setq longlines-wrap-follows-window-size t) + (longlines-mode 1) diff -r 5fee9f3276aa -r eeda6f41f8e5 font.rst --- a/font.rst Sat Aug 21 17:09:00 2010 +0300 +++ b/font.rst Tue Aug 24 22:49:55 2010 +0300 @@ -26,6 +26,9 @@ See + http://en.wikipedia.org/wiki/Free_software_Unicode_typefaces + http://www.openfontlibrary.org + Open Font Library, a library of free fonts http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=FontsInCyberspace&_sc=1 ** DejaVu. @@ -40,9 +43,35 @@ $ sudo apt-get install ttf-dejavu -** IPA. +** Core fonts for the Web. + +From Microsoft. + + http://corefonts.sourceforge.net + mirror + http://en.wikipedia.org/wiki/Core_fonts_for_the_Web + +** Liberation. + +GPL font: Liberation Sans, Liberation Serif and Liberation Mono. + +As alternative to Arial, Times New Roman, and Courier New. -See + https://fedorahosted.org/liberation-fonts + home page + http://en.wikipedia.org/wiki/Liberation_fonts + +** Linux Libertine. + +Free and open alternatives to commercial fonts like Times Roman. + + http://www.linuxlibertine.org + home page + http://en.wikipedia.org/wiki/Linux_Libertine + +** SIL (IPA font). + +Charis SIL, Doulos SIL, Gentium. http://scripts.sil.org/DoulosSILfont http://scripts.sil.org/CharisSILfont @@ -54,13 +83,70 @@ $ sudo apt-get install ttf-sil-charis $ sudo apt-get install ttf-gentium +** Junicode. + +Have beta status. + + http://en.wikipedia.org/wiki/Junicode + * How configure font for X? ** Debian. -$ sudo aptitude install fontconfig-config -$ sudo dpkg-reconfigure fontconfig-config + $ sudo aptitude install fontconfig-config + $ sudo dpkg-reconfigure fontconfig-config Font tuning method for screen: Native Enable subpixel rendering for screen: Always (или Automatic) Enable bitmapped fonts by default?: No + +* Font development. + +** Microsoft. + + http://www.microsoft.com/typography/DevToolsOverview.mspx + Tools & SDKs from Microsoft + http://www.microsoft.com/typography/DevArticles.mspx + Articles from Microsoft + +** FontForge. + +Typeface (font) editor program. BSD licence. + + http://fontforge.sourceforge.net + home page + http://en.wikipedia.org/wiki/FontForge + +* Best font for reading. + +** Рубленые (Гротески). + +Arial, Verdana, Helvetica. + +Verdana наиболее читабельный, у Arial слишком буквы слипаются. + +TODO + +Trebushet MS +AcademyTT + +Droid +Georgia +sans-serif +Calibri +Candara + +liberation serif + +Book Antiqua + +Garamond +Bookman + +Tahoma + +Courier New, Times New Roman, Lucida Sans Unicode + +Подчеркнутый, полужирный или курсивный текст. + +Serif - это шрифт с засечками, антиква. diff -r 5fee9f3276aa -r eeda6f41f8e5 power.rst --- a/power.rst Sat Aug 21 17:09:00 2010 +0300 +++ b/power.rst Tue Aug 24 22:49:55 2010 +0300 @@ -1,4 +1,5 @@ --*- mode: outline -*- + +-*- mode: outline; coding: utf-8 -*- * ACPI power states. @@ -74,3 +75,13 @@ cmd> powercfg /RestoreDefaultPolicies +* Intel. + +** Intel Speedstep® Technology. + + http://www.intel.com/support/processors/sb/CS-028855.htm + Frequently asked questions for Intel Speedstep® Technology + http://www.intel.com/p/en_US/support/highlights/processors/frequencyid + Intel® Processor Frequency ID Utility + http://software.intel.com/en-us/articles/enhanced-intel-speedstepr-technology-and-demand-based-switching-on-linux + Enhanced Intel SpeedStep® Technology and Demand-Based Switching on Linux diff -r 5fee9f3276aa -r eeda6f41f8e5 source-docgen.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source-docgen.rst Tue Aug 24 22:49:55 2010 +0300 @@ -0,0 +1,35 @@ +-*- mode: outline; coding: utf-8 -*- + +* About. + + http://en.wikipedia.org/wiki/Comparison_of_documentation_generators + +* Doxygen. + +Doxygen is a documentation generator for C++, C, Java, Objective-C, Python, +IDL (CORBA and Microsoft flavors), Fortran, VHDL, PHP, C#. + + http://www.doxygen.org + home page + http://en.wikipedia.org/wiki/Doxygen + +* DOC++. + +DOC++ is a documentation system for C, C++, IDL and Java generating both TeX +output for high quality hardcopies and HTML output for sophisticated online +browsing of your documentation. The documentation is extracted directly from +the C/C++/IDL header/source files or Java class files. + + http://docpp.sourceforge.net/ + home page + +* ROBODoc + +ROBODoc is a documentation tool. It extracts the documentation from your source +code and formats it in HTML, RTF, TeX, XML DocBook (PDF), or ASCII. Works with +C, C++, Fortran, Perl, Scripts, Assembler, Tcl, Basic, and any language that +supports remarks. + + http://sourceforge.net/projects/robodoc + home page + http://en.wikipedia.org/wiki/ROBODoc diff -r 5fee9f3276aa -r eeda6f41f8e5 wget.rst --- a/wget.rst Sat Aug 21 17:09:00 2010 +0300 +++ b/wget.rst Tue Aug 24 22:49:55 2010 +0300 @@ -1,5 +1,9 @@ -*- mode: outline; coding: utf-8 -*- +* Recursive site download. + + $ wget -r -np -nc -e robots=off -p -k TOP-LEVEL-URL + * Get server response header. $ wget --server-response http://example.com