ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] S: oggtool.sh -- quick'n'dirty tag charset tool (was: Огг)
  @ 2002-03-15 17:22             ` Michael Shigorin
  2002-03-15 18:38               ` Vyt
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2002-03-15 17:22 UTC (permalink / raw)
  To: ROmul; +Cc: mandrake-russian


[-- Attachment #1.1: Type: text/plain, Size: 482 bytes --]

On Fri, Mar 15, 2002 at 04:42:44PM +0300, ROmul wrote:
> > Скрипт для
> > вырезания/iconv/правки/iconv/заливания сделать, если что?
> Да. У меня все тэги в 1251. В ручную править заканаешься. 
Нафига? :)

> Соответсвенно туда и обратно (1251 - UTF8). Спасибо.
Ловите...

Ест _один_ параметр (опциональный) и дальше кучку оггов.
В общем, см. начало скрипта или дерните без параметров.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ http://visa.chem.univ.kiev.ua/~mike/

[-- Attachment #1.2: oggtool.sh --]
[-- Type: text/plain, Size: 1260 bytes --]

#!/bin/bash
# script by mike@altlinux.ru to facilitate with
# Ogg Vorbis tag converting/editing

EDIT=0
OGGEDITOR=vim
GUESS=0
FILTER=cat
ICONVS=""
# et ICONVS to "-s -c" to drop bad chars (with ALT iconv)

[ "$*" = "" ] && {
	echo "USAGE:" >&2
	echo "$0 -wu [oggfiles] to conv 1251->utf" >&2
	echo "$0 -uw [oggfiles] to conv utf->1251" >&2
	echo "$0 -e [oggfiles] to edit tags with ${EDITOR:=vim}" >&2
	echo "$0 -g [oggfiles] to try to guess quickly tag charset" >&2
	exit 0
}

case $1 in
	-wu) FILTER="iconv -fcp1251 -tutf-8"; shift;;
	-uw) FILTER="iconv -futf-8 -tcp1251"; shift;;
	-ku) FILTER="iconv -fkoi8-u -tutf-8"; shift;;
	-uk) FILTER="iconv -futf-8 -tkoi8-u"; shift;;
	-wk) FILTER="iconv -fcp1251 -tkoi8-u"; shift;;
	-kw) FILTER="iconv -fkoi8-u -tcp1251"; shift;;
	-e)  EDIT=1; shift;;
	-g)  GUESS=1; shift;;
esac

for i in "$*"; do
	vorbiscomment -l "$i" \
	| $FILTER > "$i.TAG" && {
		[ $GUESS = 1 ] && {
			grep -q "п.п.п" "$i.TAG" && \
				echo "$i -- like UTF-8" || \
				echo "$i -- like not UTF-8"
			}
		[ $EDIT  = 1 ] && $OGGEDITOR "$i.TAG"
		vorbiscomment -w "$i" < "$i.TAG"
	} || {
		echo "WARNING!  Some problems with \'$i\'," >&2
		echo "*******   examine \'$i.TAG\'!" >&2
		echo ".......   (orig file not modified)" >&2
		exit 1
	}
done

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mdk-re] S: oggtool.sh -- quick'n'dirty tag charset tool (was: Огг)
  2002-03-15 17:22             ` [mdk-re] S: oggtool.sh -- quick'n'dirty tag charset tool (was: Огг) Michael Shigorin
@ 2002-03-15 18:38               ` Vyt
  0 siblings, 0 replies; 3+ messages in thread
From: Vyt @ 2002-03-15 18:38 UTC (permalink / raw)
  To: mandrake-russian

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

On Fri, 15 Mar 2002 16:28:49 +0200
Michael Shigorin <mike@lic145.kiev.ua> wrote:

> On Fri, Mar 15, 2002 at 04:42:44PM +0300, ROmul wrote:
> > > Скрипт для
> > > вырезания/iconv/правки/iconv/заливания сделать, если что?
> > Да. У меня все тэги в 1251. В ручную править заканаешься. 
> Нафига? :)
> 
> > Соответсвенно туда и обратно (1251 - UTF8). Спасибо.
> Ловите...

Странно, сделал .ogg, записал теги в easytag, winamp c
vorbis-plugin'ом их нормально показал на русском.

Правда, у меня система в CP1251.

<skipped>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [mdk-re] Огги и тэги. Вопрос решен.
  @ 2002-03-15 21:09               ` ROmul
  0 siblings, 0 replies; 3+ messages in thread
From: ROmul @ 2002-03-15 21:09 UTC (permalink / raw)
  To: mandrake-russian; +Cc: Michael Shigorin

On Fri, 15 Mar 2002 16:32:16 +0200

MS> > И еще -имена у многих файлов содержат пробелы, соответсвенно это
нужно учесть. MS> а как же :)
MS> 
Все нормально - решилось. Дело в том, что xmms имеет несколько настроек русского интерфейса - cp1251, koi8r 
и некую опцию "стандартные настроки русского интерфейса". Так вот, работает все только при последней установке. Тэги корректно отображаются. Все. Всем помогавшим большое спасибо!
Я думаю к сборнику стоит приложить файлик или прямо написать в прилагаемых html как стоит настраиват софт, а то так вот будут мучаться люди....

-- 
---
	ROmul,
	    The rubberheart... <-Exit project->
HOMEPAGE: http://exit.webzone.ru	    



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-15 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 17:22             ` [mdk-re] S: oggtool.sh -- quick'n'dirty tag charset tool (was: Огг) Michael Shigorin
2002-03-15 18:38               ` Vyt
2002-03-15 21:09               ` [mdk-re] Огги и тэги. Вопрос решен ROmul

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