summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Hjalmarsson <gunnarhj@ubuntu.com>2015-09-23 11:44:55 -0400
committerJames Cloos <cloos@jhcloos.com>2015-09-25 09:29:25 -0400
commit121a1bad334459f66f78bfca6df53dc841cf97f8 (patch)
tree79cf424988bda6eb6a6d4df1330c71174e2457fd
parent3f41d8a7f82eb5ffbd5c5d36472cf7043186b904 (diff)
Add compose file for pt_PT similar to pt_BR
This is a forward of the Ubuntu bug https://launchpad.net/bugs/518056 One of the conclusions from the discussion on that bug report, which basically is about typing the ccedilla character easily on a non- Portuguese keyboard, is that X11 should include a compose file for pt_PT.UTF-8 similar to the file for pt_BR.UTF-8. FDO bug: https://bugs.freedesktop.org/show_bug.cgi?id=90300 Signed-off-by: Gunnar Hjalmarsson <gunnarhj@ubuntu.com> Signed-off-by: James Cloos <cloos@jhcloos.com>
-rw-r--r--configure.ac10
-rw-r--r--nls/compose.dir.pre2
-rw-r--r--nls/locale.dir.pre2
-rw-r--r--nls/pt_PT.UTF-8/Compose.pre3
-rw-r--r--nls/pt_PT.UTF-8/XI18N_OBJS7
-rw-r--r--nls/pt_PT.UTF-8/XLC_LOCALE.pre142
6 files changed, 159 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 14ad5430..663abf27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -438,11 +438,11 @@ locales="\
iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \
ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \
koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \
- microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 ru_RU.UTF-8 \
- sr_CS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 vi_VN.tcvn \
- vi_VN.viscii zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.UTF-8 \
- zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 zh_TW zh_TW.big5 \
- zh_TW.UTF-8"
+ microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \
+ ru_RU.UTF-8 sr_CS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \
+ vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \
+ zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \
+ zh_TW zh_TW.big5 zh_TW.UTF-8"
AC_SUBST(locales)
XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
diff --git a/nls/compose.dir.pre b/nls/compose.dir.pre
index 268c90a4..3433b39f 100644
--- a/nls/compose.dir.pre
+++ b/nls/compose.dir.pre
@@ -422,7 +422,7 @@ en_US.UTF-8/Compose: ph_PH.UTF-8
en_US.UTF-8/Compose: pl_PL.UTF-8
en_US.UTF-8/Compose: pp_AN.UTF-8
pt_BR.UTF-8/Compose: pt_BR.UTF-8
-en_US.UTF-8/Compose: pt_PT.UTF-8
+pt_PT.UTF-8/Compose: pt_PT.UTF-8
en_US.UTF-8/Compose: ro_RO.UTF-8
ru_RU.UTF-8/Compose: ru_RU.UTF-8
en_US.UTF-8/Compose: ru_UA.UTF-8
diff --git a/nls/locale.dir.pre b/nls/locale.dir.pre
index 8570ba33..ccba0368 100644
--- a/nls/locale.dir.pre
+++ b/nls/locale.dir.pre
@@ -423,7 +423,7 @@ en_US.UTF-8/XLC_LOCALE: ph_PH.UTF-8
en_US.UTF-8/XLC_LOCALE: pl_PL.UTF-8
en_US.UTF-8/XLC_LOCALE: pp_AN.UTF-8
pt_BR.UTF-8/XLC_LOCALE: pt_BR.UTF-8
-en_US.UTF-8/XLC_LOCALE: pt_PT.UTF-8
+pt_PT.UTF-8/XLC_LOCALE: pt_PT.UTF-8
en_US.UTF-8/XLC_LOCALE: ro_RO.UTF-8
ru_RU.UTF-8/XLC_LOCALE: ru_RU.UTF-8
en_US.UTF-8/XLC_LOCALE: ru_UA.UTF-8
diff --git a/nls/pt_PT.UTF-8/Compose.pre b/nls/pt_PT.UTF-8/Compose.pre
new file mode 100644
index 00000000..31d93771
--- /dev/null
+++ b/nls/pt_PT.UTF-8/Compose.pre
@@ -0,0 +1,3 @@
+include "X11_LOCALEDATADIR/en_US.UTF-8/Compose"
+<dead_acute> <C> : "Ç" Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA
+<dead_acute> <c> : "ç" ccedilla # LATIN SMALL LETTER C WITH CEDILLA
diff --git a/nls/pt_PT.UTF-8/XI18N_OBJS b/nls/pt_PT.UTF-8/XI18N_OBJS
new file mode 100644
index 00000000..628fc7bc
--- /dev/null
+++ b/nls/pt_PT.UTF-8/XI18N_OBJS
@@ -0,0 +1,7 @@
+# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
+#
+# XI18N objects table for pt_PT.UTF-8 locale
+#
+XLC common/xlcUTF8Load _XlcUtf8Loader # XLC_open
+XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
+XOM common/xomGeneric _XomGenericOpenOM # XOM_open
diff --git a/nls/pt_PT.UTF-8/XLC_LOCALE.pre b/nls/pt_PT.UTF-8/XLC_LOCALE.pre
new file mode 100644
index 00000000..115621f2
--- /dev/null
+++ b/nls/pt_PT.UTF-8/XLC_LOCALE.pre
@@ -0,0 +1,142 @@
+XCOMM XLocale Database Sample for pt_PT.UTF-8
+XCOMM
+XCOMM Based on XLocale Database Sample for en_US.UTF-8
+XCOMM
+
+XCOMM
+XCOMM XLC_FONTSET category
+XCOMM
+XLC_FONTSET
+
+on_demand_loading True
+
+object_name generic
+
+XCOMM fs0 class (7 bit ASCII)
+fs0 {
+ charset {
+ name ISO8859-1:GL
+ }
+ font {
+ primary ISO8859-1:GL
+ vertical_rotate all
+ }
+}
+XCOMM fs1 class (ISO8859 families)
+fs1 {
+ charset {
+ name ISO8859-1:GR
+ }
+ font {
+ primary ISO8859-1:GR
+ }
+}
+XCOMM fs2 class (Kanji)
+fs2 {
+ charset {
+ name JISX0208.1983-0:GL
+ }
+ font {
+ primary JISX0208.1983-0:GL
+ }
+}
+XCOMM fs3 class (Korean Character)
+fs3 {
+ charset {
+ name KSC5601.1987-0:GL
+ }
+ font {
+ primary KSC5601.1987-0:GL
+ }
+}
+XCOMM fs4 class (Chinese Han Character)
+fs4 {
+ charset {
+ name GB2312.1980-0:GL
+ }
+ font {
+ primary GB2312.1980-0:GL
+ }
+}
+XCOMM fs5 class (Half Kana)
+fs5 {
+ charset {
+ name JISX0201.1976-0:GR
+ }
+ font {
+ primary JISX0201.1976-0:GR
+ vertical_rotate all
+ }
+}
+XCOMM ISO10646 is last, per Roland Mainz in
+XCOMM http://bugs.freedesktop.org/show_bug.cgi?id=1896
+fs6 {
+ charset {
+ name ISO10646-1
+ }
+ font {
+ primary ISO10646-1
+ }
+}
+END XLC_FONTSET
+
+XCOMM
+XCOMM XLC_XLOCALE category
+XCOMM
+XLC_XLOCALE
+
+encoding_name UTF-8
+mb_cur_max 6
+state_depend_encoding False
+
+XCOMM cs0 class
+cs0 {
+ side GL:Default
+ length 1
+ ct_encoding ISO8859-1:GL
+}
+
+XCOMM cs1 class
+cs1 {
+ side GR:Default
+ length 1
+ ct_encoding ISO8859-1:GR
+}
+
+XCOMM cs2 class
+cs2 {
+ side GR
+ length 2
+ ct_encoding JISX0208.1983-0:GL; JISX0208.1983-0:GR;\
+ JISX0208.1983-1:GL; JISX0208.1983-1:GR
+}
+
+XCOMM cs3 class
+cs3 {
+ side GL
+ length 2
+ ct_encoding KSC5601.1987-0:GL; KSC5601.1987-0:GR;\
+ KSC5601.1987-1:GL; KSC5601.1987-1:GR
+}
+
+XCOMM cs4 class
+cs4 {
+ side GR
+ length 2
+ ct_encoding GB2312.1980-0:GL; GB2312.1980-0:GR
+}
+
+XCOMM cs5 class
+cs5 {
+ side GR
+ length 1
+ ct_encoding JISX0201.1976-0:GR
+}
+
+XCOMM cs6 class
+cs6 {
+ side none
+ ct_encoding ISO10646-1
+}
+
+END XLC_XLOCALE