summaryrefslogtreecommitdiff
path: root/man/example-filter.sh
blob: 2a71d40d7c595fe9f21bdf1d78c93d979ed07b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# This is a super bootleg script for converting plaintext examples into groff.

while read line; do
	echo "$line" | while read -n 1 char; do
		if [[ $char == "%" ]]; then
			echo -n '%'
			continue
		fi
		ord=$(printf '%d' "'$char")
		if [[ $ord -eq 0 ]]; then
			printf ' '
		elif [[ $ord -gt 127 ]]; then
			printf '\[u%X]' "'$char"
		else
			printf "$char"
		fi
	done
	echo
	echo ".br"
done
=945f0315513d8b6cdab65a08a033f66c697a4b4e&follow=1'>i3: workspaces.py -- small cosmetic changesRené 'Necoro' Neumann1-3/+3 2013-06-18i3: Use i3-msg 'exec …' for processes, not sh.CommandRené 'Necoro' Neumann2-3/+8 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-0/+1 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-1/+1 2013-06-17i3 changesRené 'Necoro' Neumann2-2/+2 2013-06-14i3: New 'open new workspace with a terminal on'René 'Necoro' Neumann2-15/+31 2013-06-14Vimperator: Do not open popups in a new window -- sucks with tiling WMsRené 'Necoro' Neumann1-1/+1 2013-06-08Cleanup X startup filesRené 'Necoro' Neumann3-19/+42 2013-06-07i3: better renameRené 'Necoro' Neumann2-3/+17 2013-06-07i3: Some keybinding changes.René 'Necoro' Neumann1-5/+6 2013-06-07i3: Overhaul workspaces.pyRené 'Necoro' Neumann1-27/+19 2013-06-06i3: use $mod+t for tabbed instead of $mod+wRené 'Necoro' Neumann1-1/+1 2013-06-06i3: unify scripts into oneRené 'Necoro' Neumann6-49/+1771 2013-06-06i3: new temporary workspaceRené Neumann2-1/+27 2013-06-06Allow 'klass' in i3.py descriptionsRené Neumann1-0/+4 2013-06-04i3: rename workspaceRené Neumann1-0/+3 2013-06-03Some more greek chars / math product and sumRené 'Necoro' Neumann1-0/+6 2013-06-02Fix rules in i3-config. Somehow 'set' expands variables twice :-/René Neumann1-14/+11 2013-06-01Overhaul xlock.shRené 'Necoro' Neumann1-4/+8 2013-06-01Better workspace chooserRené 'Necoro' Neumann3-2/+581 2013-06-01FF/TB/Pidgin stuffRené 'Necoro' Neumann1-26/+45 2013-06-01More i3René 'Necoro' Neumann1-2/+11 2013-06-01FixesRené 'Necoro' Neumann2-2/+2