5年半ぶりにFLAC 1.3.0 が出たけれど

公式のバイナリはまだ更新されていない。そこで有志が作成したWindows用バイナリの在りかをメモしておく。

基本的にはRareWaresのものを使えばいいだろう。

追記

New FLAC Frontendというものを発見。

昔のVB製のように、日本語が文字化けすることもないのがありがたい。

Firefox15で統合されたPDF.jsを無効にする

Firefox15(Aurora)でPDF.jsが統合された。

Mozilla、Firefox 15でPDFビューワをサポート

しかし、30数ページのPDFを開いたらメモリ爆食いで動作も遅く、便利という感じがしなかったので、無効にすることにした。

about:config の pdfjs.disabled を「true」にすればいいようだ。

LibreOffice Writerにおける、かな文字の擬似混植方法

かなフォントを簡単に漢字と組合せられるWord置換の記事内容を、LibreOffice*1で行うための方法

(1) メニュー→編集→検索と置換
(2) 検索テキスト [ぁ-ヾ]
(3) 置換テキスト $0
(4) 「詳細オプション」ボタンを押して、「正規表現」にチェック
(5) 右側の「書式」ボタンを押して、仮名文字に適用するフォントを選択
(6) 置換テキストの下に設定したフォントが表示されていることを確認
  検索テキストの方に表示されちゃったら「書式なし」ボタンでリセット後、
  置換テキストにカーソルを設定してから(5)の操作
(7) 選択範囲のみ置換なら「現在の選択範囲のみ」もチェック
(8) 「置換」/「すべて置換」ボタンで置換

http://toro.2ch.net/test/read.cgi/bsoft/1322589693/824

これで大昔に買って死蔵していた仮名フォントを使える。

*1:Apache OpenOfficeでも使えるとは思うが、確認はしてない

SumatraPDFでPDF文書を開いた際に背景の色を変える方法

-set-color-range

https://code.google.com/p/sumatrapdf/wiki/CommandLineArguments

にはテキストの色を、には背景の色を16進数で指定する。

一番簡単な指定方法は、ショートカットを作成してプロパティを開き、リンク先の欄にコマンドライン設定を書き込む。

気軽に使えてレンダリングもまあまあ綺麗でXPS*1も開けてと、なかなか便利なSumatraPDFではあるが、もっとGUIで設定できるようになるといいのだけれど。

追記

2.3からは「詳細設定」で背景の色を設定できるようになった。

*1:LibreOfficeも含めたフリーのPDF出力ソフトだと、フォント次第では縦書きでずれることがあるが、XPSだとずれないので、たまに重宝する。

Vistaのブート修復について2

http://support.microsoft.com/kb/927392/ja

注 : BCD を再構築してもスタートアップの問題が解決しない場合は、BCD をエクスポートして削除した後に、このオプションを再実行します。これにより、BCD が完全に再構築されます。この操作を行うには、Windows RE のコマンド プロンプトで次のコマンドを入力します。

bcdedit /export C:\BCD_Backup
c:
cd boot
attrib bcd -s -h -r
ren c:\boot\bcd bcd.old
bootrec /RebuildBcd

oggencのオプション

同じくVorbisエンコーダのひとつ「oggenc」の -h の内容についてメモ。

Usage: oggenc2 [options] input.wav [...]

OPTIONS:
 General:
 -Q, --quiet          Produce no output to stderr
 -h, --help           Print this help text
 -k, --skeleton       Adds an Ogg Skeleton bitstream
 -r, --raw            Raw mode. Input files are read directly as PCM data
 -F, --raw-format=n   Set format for raw input. Default is 1 for
                      Standard PCM; use 3 for IEEE Float.
 -B, --raw-bits=n     Set bits/sample for raw input. Default is 16,
                      32 assumed for IEEE Float.
 -C, --raw-chan=n     Set number of channels for raw input. Default is 2
 -R, --raw-rate=n     Set samples/sec for raw input. Default is 44100
 --raw-endianness     1 for bigendian, 0 for little (defaults to 0)
 -b, --bitrate        Choose a nominal bitrate to encode at. Attempt
                      to encode at a bitrate averaging this. Takes an
                      argument in kbps. By default, this produces a VBR
                      encoding, equivalent to using -q or --quality.
                      See the --managed option to use a managed bitrate
                      targetting the selected bitrate.
 --managed            Enable the bitrate management engine. This will allow
                      much greater control over the precise bitrate(s) used,
                      but encoding will be much slower. Don't use it unless
                      you have a strong need for detailed control over
                      bitrate, such as for streaming.
 -m, --min-bitrate    Specify a minimum bitrate (in kbps). Useful for
                      encoding for a fixed-size channel.
 -M, --max-bitrate    Specify a maximum bitrate in kbps. Useful for
                      streaming applications.
 --advanced-encode-option option=value
                      Sets an advanced encoder option to the given value.
                      The valid options (and their values) are documented
                      in the man page supplied with this program. They are
                      for advanced users only, and should be used with
                      caution.
 -q, --quality        Specify quality between -2 (low) and 10 (high),
                      instead of specifying a particular bitrate.
                      This is the normal mode of operation.
                      Fractional qualities (e.g. 2.75) are permitted
                      The default quality level is 3.
 --resample n         Resample input data to sampling rate n (Hz)
 -S, --converter      Specify the resampling engine to be used.
                      Options are: 0 (Best), 1 (Medium) & 2 (Fast).
 --downmix            Downmix stereo to mono. Only allowed on stereo
                      input.
 --scale n            Scale input data to n (n = between 0.00 and 1.00)
 --FLAC-scale n       Scale input data using FLAC Replaygain Tags where:
                      c = 1 to use Title Replaygain value, and
                      c = 2 to use Album Replaygain value.
 -s, --serial         Specify a serial number for the stream. If encoding
                      multiple files, this will be incremented for each
                      stream after the first.
 --discard-comments   Prevents comments in FLAC and Ogg FLAC files from
                      being copied to the output Ogg Vorbis file.
 --ignorelength       Ignore the datalength in WAV headers. This allows
                      support for files > 4GB and STDIN data streams.

 Naming:
 -o, --output=fn      Write file to fn (only valid in single-file mode)
 -n, --names=string   Produce filenames as this string, with %a, %t, %l,
                      %n, %d replaced by artist, title, album, track number,
                      and date, respectively (see below for specifying these).
                      %% gives a literal %.
 -X, --name-remove=s  Remove the specified characters from parameters to the
                      -n format string. Useful to ensure legal filenames.
 -P, --name-replace=s Replace characters removed by --name-remove with the
                      characters specified. If this string is shorter than the
                      --name-remove list or is not specified, the extra
                      characters are just removed.
                      Default settings for the above two arguments are platform
                      specific.
 --utf8               Tells oggenc that the command line parameters date,
                      title, album, artist, genre, and comment are already in
                      UTF8. On windows, this switch applies to file names too.
 -c, --comment=c      Add the given string as an extra comment. This may be
                      used multiple times. The argument should be in the
                      format "tag=value".
 -d, --date           Date for track (usually date of performance)
 -N, --tracknum       Track number for this track
 -t, --title          Title for this track
 -l, --album          Name of album
 -a, --artist         Name of artist
 -G, --genre          Genre of track
                      If multiple input files are given, then multiple
                      instances of the previous five arguments will be used,
                      in the order they are given. If fewer titles are
                      specified than files, OggEnc will print a warning, and
                      reuse the final one for the remaining files. If fewer
                      track numbers are given, the remaining files will be
                      unnumbered. For the others, the final tag will be reused
                      for all others without warning (so you can specify a date
                      once, for example, and have it used for all the files)
 -p, --padding n      Number of kilobytes of padding to provide in comment
                      header for post-encoding tagging. (0 - 4 permitted)

INPUT FILES:
 OggEnc input files must currently be 32, 24, 16, or 8 bit PCM WAV, AIFF, or
 AIFF/C files, or 32 bit IEEE floating point WAV. Files may be mono or stereo
 (or more channels) and any sample rate.
 ALSO with this version, you may input FLAC, MONKEYS AUDIO, WAVPACK, LAPC,
 OPTIMFROG and SHORTEN files. You MUST ensure that the appropriate
 encoder/decoder (i.e., flac.exe, etc) is in the same dir/folder as
 oggenc2.exe, or is in the defined path.
 Alternatively, the --raw option may be used to use a raw PCM data file, which
 must be 16bit stereo little-endian PCM ('headerless wav'), unless additional
 parameters for raw mode are specified.
 You can specify taking the file from stdin by using - as the input filename.
 In this mode, output is to stdout unless an output filename is specified
 with -o

vencのオプション

Vorbisエンコーダのひとつ「venc」のオプションについてメモ。

usage: venc [options] InputFileName [OutputFileName]

InputFileName is "input wav file name" or "-"(standard input)

[options]  (There are exclusive relations)
  -qVALUE         This value sets audio quality-level. It is between
                  -2 (low quality) and 10 (high quality). [VBR mode]
  -bVALUE         This value sets tagets bitrate (in kbits). [ABR mode]

[options]  (Non-recommendation)
  -ub=VALUE       Upper bitrate setting (in kbits) for "-b".
  -lb=VALUE       Lower bitrate setting (in kbits) for "-b".
  -lowpass=VALUE  Overwrite default low-pass filter setting. New
                  low-pass filter value is between 2 and 99 (in kHz).
  -ibtune=VALUE   This relatively changes the noise masking value of
                  impulse block. This value is between -15 and 0.

[options] 
  -downmix        If the input stream is stereo, the stream of stereo
                  is converted into mono.
  -resample=VALUE The VALUE sets new sampling rate.
  -padding=VALUE  This adds padding of VALUE (byte) to vorbis comment
                  domain.
  -ignore_length  The data length header is ignored.
  -i              Display of this software information.

WebMをきっかけにVorbisが注目されて欲しいものだが。