Mozc(Google日本語入力)のけいならべ配列用ローマ字テーブル
けいならべという日本語入力のためのキーボード配列があります。2打で1文字を入力する、いわゆる行段系配列の一つです。打鍵が多くなるのを気にする方もいると思いますが、「左手で子音・右手で母音」という覚えやすい単純な規則であるため図一つ見るだけで理解でき、配列マニア以外にも迷わずおすすめできるのが最大の魅力です。
キー配列を変更するソフトウェアはWindowsならDvorakJ、OSXならKarabinerがありますが、Linuxにはこの類のソフトウェアがありません。今自分はLinuxデスクトップを使っているので、やむなく自分でMozc*1の配列用ローマ字テーブルを作ってみました*2。まあ、Linuxデスクトップでけいならべという、日本で数人いるのかどうかも怪しいほどに需要がなさそうですが。
qwerty_and_keinarabe.txt - Google ドライブ
あと、自分は英字配列にColemakを使っている使っていた*3ので、Colemak版のローマ字テーブルも一応公開しときます。
colemak_and_keinarabe.txt - Google ドライブ
それこそ誰が使うのかという話ですが、念の為。まあ、英字をよく入力する人にはColemakはおすすめしたいところです。
ローマ字テーブルに問題がある場合はコメント欄にどうぞ。
- 2018.2.6 ローマ字テーブルを修正しました。
おまけ
けいならべの配列図を大小2つアップロードしておきます。
5年半ぶりにFLAC 1.3.0 が出たけれど
公式のバイナリはまだ更新されていない。そこで有志が作成したWindows用バイナリの在りかをメモしておく。
- RareWaresのもの
- Hydrogenaudio Forums の有志が作成したもの
- 4種類あり、Caseのものが一番早いようだが、そう大きくは変わらない。
基本的には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
一番簡単な指定方法は、ショートカットを作成してプロパティを開き、リンク先の欄にコマンドライン設定を書き込む。
気軽に使えてレンダリングもまあまあ綺麗でXPS*1も開けてと、なかなか便利なSumatraPDFではあるが、もっとGUIで設定できるようになるといいのだけれど。
追記
2.3からは「詳細設定」で背景の色を設定できるようになった。
*1:LibreOfficeも含めたフリーのPDF出力ソフトだと、フォント次第では縦書きでずれることがあるが、XPSだとずれないので、たまに重宝する。
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