File: prime-config.rb.in

package info (click to toggle)
prime 1.0.0.1-2.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,420 kB
  • sloc: ruby: 7,139; lisp: 1,866; sh: 442; makefile: 242
file content (70 lines) | stat: -rw-r--r-- 2,585 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# prime-config.rb: Setting of global variables and default variables for PRIME.
# $Id: prime-config.rb.in,v 1.5 2005/03/07 07:51:32 komatsu Exp $
#
# Copyright (C) 2003 Hiroyuki Komatsu <komatsu@taiyaki.org>
#     All rights reserved.
#     This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of 
# the GNU General Public License version 2.

require 'etc'
home = Etc.getpwuid['dir']
# home = ENV['HOME']

PRIME_USER_DIR    = ENV['PRIME_USER_DIR']    || home + '/.prime'
PRIME_DATA_DIR    = ENV['PRIME_DATA_DIR']    || '@PRIME_DATA_DIR@'
PRIME_GRAMMAR_DIR = ENV['PRIME_GRAMMAR_DIR'] || '@PRIME_GRAMMAR_DIR@'
PRIME_CONFIG_DIR  = ENV['PRIME_CONFIG_DIR']  || '@PRIME_CONFIG_DIR@'
PRIME_DOC_DIR     = ENV['PRIME_DOC_DIR']     || '@PRIME_DOC_DIR@'

PRIME_COMMAND                  = '@PRIME_COMMAND@'
PRIME_COMMAND_REFRESH          = '@PRIME_COMMAND@-refresh'
PRIME_COMMAND_USERDICT_CONVERT = '@PRIME_COMMAND@-userdict-convert'
PRIME_COMMAND_USERDICT_UPDATE  = '@PRIME_COMMAND@-userdict-update'
PRIME_COMMAND_DICT_CONVERT     = '@PRIME_COMMAND@-dict-convert'
PRIME_COMMAND_DICT_INDEX       = '@PRIME_COMMAND@-dict-index'

#### Default settings
PRIME_ENV = {}

## Enginges: kana-kanji conversion engines.
PRIME_ENV['engines'] = [
  :PrimeEngineBasic,
  :PrimeEngineUserdict2,
  :PrimeEnginePersonalDict,
  :PrimeEngineAlphabet,
  :PrimeEngineNumber,
]

## Suikyo: romaji-kana conversion library.
PRIME_TYPING_METHOD_DEFAULT         = 'romaji'
PRIME_ENV['typing_method']          = PRIME_TYPING_METHOD_DEFAULT

## If true, PRIME considers the validation of the preedition.
## ex). "����pl��" => "apple".  The available values are [nil, true, false].
PRIME_ENV['hybrid_typing']          = nil

#PRIME_ENV['suikyo_tables']         = ["romaji"]
#PRIME_ENV['suikyo_reverse_tables'] = ["romaji_reverse"]
PRIME_ENV['suikyo_use_cache']      = true

PRIME_ENV['style_auto_space']         = false
PRIME_ENV['style_mask_pending_chars'] = false
PRIME_ENV['style_japanese_period']    = '��'
PRIME_ENV['style_japanese_comma']     = '��'

PRIME_ENV['char_encoding'] = 'EUC-JP'

PRIME_TYPING_TABLE = {'romaji' => ['romaji', 'egg-mark'],
                      'kana'   => ['kana'],
                      'tcode'  => ['tcode']}
PRIME_TYPING_REVERSE_TABLE = {'romaji' => ['romaji_reverse',
                                           'egg-mark_reverse'],
                              'kana'   => ['kana_reverse'],
                              'tcode'  => ['tcode_reverse']}

# --- Text properties for Emacs. ---
# Local variables:
# mode: ruby
# End: