[hackers] [sandy] Change lowercase and uppercase functions in config file to include at least ISO-8859-1 characters that have a defined case change. PS: damn eszett || Rafael Garcia

From: <hg_AT_suckless.org>
Date: Sat, 26 Nov 2011 13:26:05 +0100 (CET)

changeset: 104:08c37098d7cc
tag: tip
user: Rafael Garcia <rafael.garcia.gallego_AT_gmail.com>
date: Sat Nov 26 13:26:01 2011 +0100
files: config.def.h
description:
Change lowercase and uppercase functions in config file to include at least ISO-8859-1 characters that have a defined case change. PS: damn eszett


diff -r 3c5010c555e1 -r 08c37098d7cc config.def.h
--- a/config.def.h Thu Oct 06 12:55:35 2011 +0200
+++ b/config.def.h Sat Nov 26 13:26:01 2011 +0100
_AT_@ -122,7 +122,7 @@
 { .keyv.c = CONTROL('K'), { t_eol, t_rw, 0, 0 }, f_delete, { .m = m_nextchar } },
 { .keyv.c = CONTROL('K'), { t_rw, 0, 0, 0 }, f_delete, { .m = m_eol } },
 { .keyv.c = CONTROL('L'), { 0, 0, 0, 0 }, f_center, { 0 } },
-{ .keyv.c = META('l'), { t_sel, t_rw, 0, 0 }, f_pipe, { .v = "tr [A-Z] [a-z]" } }, /* Lowercase */
+{ .keyv.c = META('l'), { t_sel, t_rw, 0, 0 }, f_pipe, { .v = "tr [A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ] [a-zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ]" } }, /* Lowercase */
 { .keyv.c = CONTROL('M'), { t_rw, t_ai, 0, 0 }, f_pipeai, AUTOINDENT } ,
 { .keyv.c = CONTROL('M'), { t_rw, 0, 0, 0 }, f_insert, { .v = "\n" } },
 { .keyv.c = CONTROL('M'), { 0, 0, 0, 0 }, f_move, { .m = m_nextline } },
_AT_@ -139,7 +139,7 @@
 { .keyv.c = CONTROL('T'), { 0, 0, 0, 0 }, f_pipero , TOCLIP },
 { .keyv.c = CONTROL('U'), { t_bol, t_rw, 0, 0 }, f_delete, { .m = m_prevchar } },
 { .keyv.c = CONTROL('U'), { t_rw, 0, 0, 0 }, f_delete, { .m = m_bol } },
-{ .keyv.c = META('u'), { t_sel, t_rw, 0, 0 }, f_pipe, { .v = "tr [a-z] [A-Z]" } }, /* Uppercase */
+{ .keyv.c = META('u'), { t_sel, t_rw, 0, 0 }, f_pipe, { .v = "tr [a-zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ] [A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ] | sed 's/ß/SS/g'" } }, /* Uppercase */
 { .keyv.c = CONTROL('V'), { 0, 0, 0, 0 }, f_move, { .m = m_prevscr } },
 { .keyv.c = META('v'), { 0, 0, 0, 0 }, f_move, { .m = m_nextscr } },
 { .keyv.c = CONTROL('W'), { t_rw, 0, 0, 0 }, f_delete, { .m = m_prevword } },
Received on Sat Nov 26 2011 - 13:26:05 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 26 2011 - 13:36:05 CET