ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maksim Otstavnov <maksim@otstavnov.com>
To: "ALT Linux Community" <community@lists.altlinux.org>
Subject: Re: [Comm] PostScript
Date: Tue, 25 Apr 2006 07:35:32 +0400
Message-ID: <262769171.20060425073532@otstavnov.com> (raw)
In-Reply-To: <op.s8jbhx0ymb8vzs@oc.peooc.net>

Hello Aleksander,

Tuesday, April 25, 2006, 2:59:47 AM, you wrote:

>> А какие конкретно вопросы по ps?

ANG> Основной вопрос:
ANG> Как программировать вывод строк на русском языке?

ANG> Подозреваю, что RU-символы  hex-кодами задают. Может ошибаюсь

В ps нет понятия языка. Если Вам нужно вывести строку, содержащую
не-ascii-символы, их можно включить в нее или непосредственно, или в
виде восьмеричных значений в формате \ddd. Обратите внимание, что
восьмеричные значения --- часть литерала, т.е. соответствующая строка
должна заключаться в скобки, как и при непосредственном включении.

Впрочем, при желании, можно воспользоваться и шестнадцатиричным
представлением: цепочка шестнадцатеричных цифр, записанная в угловых
скобках, интерпретируется как последовательность пар цифр,
представляющих по символу каждая. Шестнадцатеричные значения --- не
часть литерала, поэтому заключать их в скобки не нужно.

В любом случае код представления должен соответствовать кодовой
странице шифра.

ANG> Латиницу относительно просто:
ANG> %!
ANG> (Latinica) show showpage

Соответственно, кириллицу можно вывести одним из трех способов:

%!
(Кириллица) show showpage

%!
(\353\311\322\311\314\314\311\303\301) show showpage

%!
<ebc9d2c9ccccc9c3c1> show showpage

-- 
-- Maksim




  reply	other threads:[~2006-04-25  3:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-23 10:14 Aleksander N.Gorohovski
2006-04-23  8:13 ` Yuri N. Glibovetz
2006-04-23 11:34   ` Aleksander N.Gorohovski
2006-04-23  8:48 ` Gleb Kulikov
2006-04-23 17:00   ` Aleksander N.Gorohovski
2006-04-24 14:41     ` Gleb Kulikov
2006-04-24  8:54 ` Yura Kalinichenko
2006-04-24 22:53   ` Aleksander N.Gorohovski
2006-04-24  9:14 ` Maksim Otstavnov
2006-04-24 22:59   ` Aleksander N.Gorohovski
2006-04-25  3:35     ` Maksim Otstavnov [this message]
2006-04-25 18:49     ` Yura Kalinichenko
2006-04-26  7:59       ` Aleksander N.Gorohovski
2006-04-27 10:00         ` Aleksander N. Gorohovski
2006-04-27 18:38           ` Yura Kalinichenko
2006-04-28 15:58             ` Aleksander N. Gorohovski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=262769171.20060425073532@otstavnov.com \
    --to=maksim@otstavnov.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git