#############################################################################
# This is an example or template for setting up environment variables 
# for configuration and best use of the mined editor.
# The script can be included in or "sourced" from $HOME/.profile -
# for users of csh of tcsh the syntax has to be adapted.


#############################################################################
# Use mined as the editor invoked by other applications.
EDITOR=mined
 export EDITOR


#############################################################################
# General mined options variable.
# All command line options (as documented in the manual page) that 
# you normally want as a preference should be collected here.
MINED=pQQ
MINED=QQ
	# Recommended options:
	# p	distinguishes display of line ends and paragraph ends
	# QQ	nice style of menu selection bar
 export MINED


#############################################################################
# System environment.

# Command to print a file, with "%s" to be replaced by the file name.
#MINEDPRINT="uprint %s"	# this is the default anyway (with additional PATH)
# export MINEDPRINT

# File name of online help archive if not installed in a standard location.
# The example setting selects the newest of mined.hlp files that 
# you may have locally.
#MINEDHELPFILE=`ls -1 -t $HOME/opt/mined*/mined.hlp | sed -e "1 p" -e d`
# export MINEDHELPFILE

#############################################################################
# Character encoding and handling preferences.

#########################
# Select Han character information to be shown.
#MINEDHANINFO=MCJSKVF	# show all information in popup-menu form
#	include the following letters to select the according information:
#	M	Mandarin pronunciation
#	C	Cantonese pronunciation
#	J	Japanese pronunciation
#	S	Sino-Japanese pronunciation
#	K	Korean pronunciation
#	V	Vietnamese pronunciation
#	D	character description
#	F	"full": display selected information in popup-menu form
 export MINEDHANINFO

#########################
# Select keyboard mappings for international scripts.
#	Script tags attached to the keyboard mappings for use in this 
#	variable can be looked up in the Input Method flag menu; the 
#	HOP function toggles between display of the full input method 
#	name and its tag.
#	Two mapping tags can be given in the environment variable; 
#	the first one or the one before a "-" separator is applied 
#	as preselection, the one after "-" is used for standby 
#	(activate with Alt-k).
MINEDKEYMAP=py-rs	# select Pinyin mapping, set Radical/Stroke standby
MINEDKEYMAP=-gr		# set Greek mapping standby
 export MINEDKEYMAP

#########################
# configuration of character encoding auto-detection
MINEDDETECT="BGC JS KH WYM VN T"	# allow auto-detection of 
# - CJK encodings: Big5, GB, CNS, JIS (EUC-JP), Shift-JIS, UHC, JOHAB
# - Mapped 8 bit encoding: Windows-ANSI, Cyrillic/KOI8-RU, Mac Roman, 
#			VISCII, TCVN, TIS-620
# Remove the one-letter tags of those encodings that you 
# don't want to be auto-detected, 
# for better recognition of those encodings that you do use.
# Note that not all encodings mentioned here are actually auto-detected;
# see the manual for details about which encodings are not auto-detected.


#############################################################################
# Setup for common copy/paste buffer in a heterogeneous network.
# If you work in a heterogeneous network and want to share a common 
# temporary directory for paste buffers 
# to be used for copy/paste operations between multiple invocations 
# of mined, 
# you can set a directory and user name for mined temporary files.
# The user name must be same on all machines (regardless of different 
# login names you may have) and the directory name to be used may be 
# different in order to refer to the same mounted network directory.
MINEDTMP=$HOME/tmp
 export MINEDTMP
MINEDUSER=myself
 export MINEDUSER


#############################################################################
# Display preferences.

#########################
# display of line markers
# -	The following variables tell mined which characters to use for 
#	display of TAB characters, line ends, and shifted lines.
#	For MINEDRET, MINEDTAB, MINEDSHIFT, the ISO Latin-1 character set 
#	is used even if mined is run in UTF-8 mode. Alternative UTF 
#	variables exist.
#	I highly recommend setting MINEDDIM (see below) together with 
#	these special character display settings to have them displayed 
#	in a moderate colour.

MINEDRET=123	# line end displays as 12223 
MINEDRET=··«	# line end displays as ····« 
MINEDRET=«·«	# line end displays as «···« 
MINEDRET=«·	# line end displays as «···· 
MINEDRET=«	# line end displays as «     
 export MINEDRET
#MINEDUTFRET=	# line end in UTF-8 mode, use UTF-8 characters here
		# (number of valid characters still taken from MINEDRET!)
# export MINEDUTFRET

MINEDTAB=213	# TAB displays as 12222223 
MINEDTAB=··»	# TAB displays as ·······» 
MINEDTAB=·»»	# TAB displays as »······» 
MINEDTAB=·»	# TAB displays as »······· 
MINEDTAB=·	# TAB displays as ········ 
 export MINEDTAB
#MINEDUTFTAB=	# TAB display in UTF-8 mode, use UTF-8 characters here
		# (number of valid characters still taken from MINEDTAB!)
# export MINEDUTFTAB

#MINEDSHIFT=	# Character that marks lines that continue beyond the 
		# right screen border. Default is "»". If a second 
		# character is included, it is used to mark lines that 
		# are shifted out beyond the left screen border (e. g. "«").
# export MINEDSHIFT

#########################
# special terminal option
#MINEDMARK=as
#	A termcap capability code (e.g. alternate character set) to be 
#	used as a screen attribute for the special markers above.
#	Example usage (with xterm) should be combined with:
#MINEDRET='y'	# or '`' or 'u' or 'j'
#MINEDTAB='f'	# or 'l' or 'z'
#MINEDSHIFT='z'

#########################
# display mode (character attribute, e.g. colour) of line markers
MINEDDIM=31	# TAB and line end special display uses ANSI mode 31 (red)
 export MINEDDIM

#########################
# display mode (character attribute, e.g. colour) of Unicode indications
# (non-Latin-1 characters in Latin-1 terminals)
#MINEDUNI="¤ 46"	# display Unicode characters as "¤" and display all 
			# UTF-8 specialities in ANSI mode 46 (cyan background)
# export MINEDUNI

#########################
# other display modes
#MINEDCTRL="33;44"	# control character display uses this ANSI mode
# export MINEDCTRL
#MINEDMENU=	# menu line and menus use this ANSI mode
# export MINEDMENU
#MINEDDIAG=	# dialog and status (bottom) line uses this ANSI mode
# export MINEDDIAG

#########################
# display of text modification status
#MINEDMODF		# String that marks modified text in the file status. 
# export MINEDMODF	# Default is " (*)".


#################################################################
# Adjusting to terminal properties.

# Display for silly 7-bit terminals with character set switching
# Enable output translation of 8 bit characters to be displayed using an 
# alternate character set. The example setting works for the 
# Siemens 9780x terminal.
#case "$TERM" in
#9780*)	MINEDOUT='                                   n   l p    o s   xrv             i`at _      bz    j f   k hQ!"#'\''$%)*01239 8;-BCDEGF HTUVWZK['
#	 export MINEDOUT;;
#esac

#########################
# UTF-8 terminal preselection
# This is normally not needed because mined applies UTF-8 auto-detection 
# and - as a fallback - also analyses at the locale environment variables;
# Only if the terminal cannot respond cursor positions (needed for 
# auto-detection) and a weird locale configuration is used where the 
# locale name does not reflect the encoding in the usual way, this 
# would have to be configured explicitly:
#utf8_term=	# select UTF-8 terminal operation
# Deprecated. Use MINED=$MINED+U instead
# export utf8_term
#utf8_no_combining_screen=	# assume screen not to handle combining chars
# Deprecated. Use MINED=$MINED-cc instead
# export utf8_no_combining_screen
#utf8_screen=	# select UTF-8 output only
# Obsolete. Was only needed for xterm UTF-8 support alpha releases.
# export utf8_screen
#utf8_input=	# select UTF-8 input only
# Obsolete. Was only needed for xterm UTF-8 support alpha releases.
# export utf8_input

#########################
# silly terminal connection work-around
#NoControlSQ=	# Disables ^S and ^Q command functions for dumb terminal 
		# connections that use these characters for flow control 
		# but don't filter them out themselves.
# export NoControlSQ


#############################################################################
# end
