File: alias.tti

package info (click to toggle)
brltty 6.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 35,776 kB
  • sloc: ansic: 150,447; java: 13,484; sh: 9,667; xml: 5,702; tcl: 2,634; makefile: 2,328; awk: 713; lisp: 366; python: 321; ml: 301
file content (76 lines) | stat: -rw-r--r-- 2,418 bytes parent folder | download | duplicates (3)
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
71
72
73
74
75
76
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2025 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://brltty.app/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

# This BRLTTY text subtable defines several useful character aliases

# ensure that space is defined
ifNotGlyph \s  glyph \s 0
ifNotInput 0  input \s 0

# characters that represent a space
alias	\xA0	\s	# no-break space
alias	\u2002	\s	# en space
alias	\u2003	\s	# em space
alias	\u2004	\s	# three-per-em space
alias	\u2005	\s	# four-per-em space
alias	\u2006	\s	# six-per-em space
alias	\u2007	\s	# figure space
alias	\u2008	\s	# punctuation space
alias	\u2009	\s	# thin space
alias	\u200A	\s	# hair space
alias	\u200B	\s	# zero width space
alias	\u202F	\s	# narrow no-break space
alias	\u205F	\s	# medium mathematical space

ifGlyph -
  # characters that represent a dash
  alias	\u2012	-	# figure dash
  alias	\u2013	-	# en dash
  alias	\u2014	-	# em dash
  alias	\u2448	-	# ocr dash
  alias	\u301C	-	# wave dash
  alias	\u3030	-	# wavy dash
  alias	\uFE58	-	# small em dash

  # characters that represent a hyphen
  alias	\xAD	-	# soft hyphen
  alias	\u2010	-	# hyphen
  alias	\u2011	-	# non-breaking hyphen

  # characters that represent a minus sign
  alias	\u2052	-	# commercial minus sign
  alias	\u2212	-	# minus sign

  # characters that can represent either a hyphen or a minus sign
  alias	\uFE63	-	# small hyphen-minus
  alias	\uFF0D	-	# fullwidth hyphen-minus

  # other characters that can look like a dash
  alias	\u2015	-	# horizontal bar
endIf

ifGlyph '
  # characters commonly (mis)used to represent an apostrophe
  alias	\u2018	'	# left single quotation mark
  alias	\u2019	'	# right single quotation mark
endIf

# degree signs
ifGlyph	C	alias	\u2103	C	# degree Celsius
ifGlyph	F	alias	\u2109	F	# degree Fahrenheit