Commit graph

998 commits

Author SHA1 Message Date
Egbert Eich
952eccd0d2 i18n: Consolidate compose handling for locales with UTF-8 encoding.
- add an entry to include the default en_US compose file
  for the ja_JP, ko_KR, th_TH, zh_CN, zh_HK and zh_TW locales.
- add missing entries for zh_CN. and zh_HK and am_ET.
- change entries for the UTF-8 encoding for ru_RU, ja_JP,
  ko_KR, th_TH and zh_TW to point to their native directory
  entries.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
Reviewed-by: James Cloos <cloos@jhcloos.com>
2012-11-30 09:36:51 -05:00
Yaakov Selkowitz
d14b6a250f XIM: remove Private and Public macros
Private is a struct member name in mingw-w64 <winioctl.h>, causing this
useless define in a private header to break the build.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2012-10-29 18:43:35 -05:00
Adam Jackson
f2a8def423 XErrorDB: Add GLXBadProfileARB
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-10-17 14:41:06 -04:00
Ross Burton
d45b3fc19f Allow overriding location of keysymdef.h
Currently keysymdef.h is found by using the includedir of xproto.  This doesn't
work when cross-compiling with a sysroot as that ends up being /usr/include/X11,
not a path into the cross-build environment.

So, add an option to allow explicitly specifying the location of keysymdef.h,
and verify that the specified or found path exists.

(original patch by Martin Jansa <martin.jansa@gmail.com>, revised by myself)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2012-09-12 22:30:39 +01:00
Eric S. Raymond
44cdc0dc2c Renove some unnecessary low-level markup.
Also, SYNTAX -> SYNOPSIS so function prototypes get parsed by doclifter.
This appears to have been somebody's thinko, it's only in a few of the files.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 19:15:07 -04:00
Eric S. Raymond
b686600ab5 The .NT/.NE macro pair is no longer used. Remove it.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 10:53:33 -04:00
Eric S. Raymond
b83f289852 Remove the one and only use of the .NT/.NE pair.
The problem with these macros is that they rely on being able to
center the note label.  That doesn't play well with modern HTML,
not anyway without coomplications like CSS.  This use was just a cute
trick, not adding enough value to be kept.
2012-08-23 10:42:46 -04:00
Eric S. Raymond
e9509fa674 The .C{ and .C} macros are never used. Remove them.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 10:23:45 -04:00
Eric S. Raymond
6b2f7ddeea The .FN macro, paired with .FD, is also never used. Remove it.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 10:08:08 -04:00
Eric S. Raymond
cac6572701 The ".FD" macro is never used. Remove it.
It was a temptation to presentation-level klugery and is best gone.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 10:03:00 -04:00
Eric S. Raymond
6e27a828f3 Clean up, my last commit missed four cases.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 09:54:25 -04:00
Eric S. Raymond
a7fb575957 Eliminate all uses of tab stops in the libX11 man pages.
Two steps: First, expand tabs to 8 spaces in code and structure
listings.  Second, make the .Ds used to wrap code listings switch to
constant-width font (CW) rather than numeric font position 1, which
maps to R on most systems.

It is possible some archaic systems won't know what CW is, but the
only risk is that code listings won't look quite right on troff
devices; the PostScript and DVI drivers definitely grok it, so those
important cases are OK.

The purpose of these changes is to get rid of presentation-level
markup so these pages will lift clean to DocBook.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-08-23 08:24:17 -04:00
Will Thompson
8042f88ace Add compose sequences for "therefore" and "because".
These sequences look sensible to me. I added them to the APL-related
section of Mathematical Operators—they're in that section of Unicode
anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=51922

Signed-off-by: Will Thompson <will@willthompson.co.uk>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2012-07-13 10:46:07 +01:00
Alan Coopersmith
65358ea507 Convert XCreate{Pix,Bit}map...Data to use C99 designated initializers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-08 09:17:29 -07:00
Alan Coopersmith
0dc93f7e43 XCreate{Pix,Bit}map...Data: Free pixmap in error path if XCreateGC fails
Fixes leaks in error paths found by Parfait 1.0.0:

Error: X Resource Leak
   Leaked X Resource pix
        at line 62 of CrBFData.c in function 'XCreateBitmapFromData'.
          pix initialized at line 60 with XCreatePixmap
Error: X Resource Leak
   Leaked X Resource pix
        at line 70 of CrPFBData.c in function 'XCreatePixmapFromBitmapData'.
          pix initialized at line 66 with XCreatePixmap

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
2012-07-08 09:17:22 -07:00
Alan Coopersmith
dce84b8c39 libX11 spec: Correct prototype for XConvertSelection
selection & target parameters were accidentally run together

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-06-06 13:31:19 -07:00
Alan Coopersmith
6c5cb2a90a libX11 1.5.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-06-01 23:37:09 -07:00
Alan Coopersmith
05c587ec3b libX11 1.4.99.902 (1.5 RC2)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-26 14:37:28 -07:00
Pander
d817834d97 Compose: Reassigned squences with minus and a or o
Reassigned squences with minus and a or o (vice versa and lower and
upper case) to conform existing series and not resulting in tilde.
Also added noe missing underscore sequence.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-25 23:28:04 -07:00
Pander
6bfd1dca6e Compose: Removed <slash> <U> and vice versa
Combination with lower case u suffices

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-25 23:26:48 -07:00
Pander
3a8b163713 Compose: Removed <n> <minus> for n with tilde, also vice versa & for upper case
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-25 23:25:39 -07:00
Pander
fd514d7a35 Compose: Removed <S> in combination with a numeral for superscript
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-25 23:24:40 -07:00
Pander
1b5cad3ca5 Compose: Reassigned <o> <apostrophe> to oacute, also for upper case.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-25 23:24:23 -07:00
James Cloos
0bbc0d5e60
Remove duplicate compose sequences from commit e51e37c118.
The compose-check script only handles compiled Compose files, not
the Compose.pre files.  One must remember to use:

    ./autogen.sh; make; make check

when reviewing patches to the Compose.pre files....

Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-05-10 12:27:28 -04:00
Geoff Streeter
e51e37c118 Add APL support to compose
Signed-off-by: Geoff Streeter <geoff@dyalog.com>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-05-08 15:48:41 -04:00
Julien Cristau
dac90324ce configure: make previous change work with older autoconf
autoconf 2.63 doesn't seem to like the nested AC_CHECK_DECL/FUNC.  So do
the tests separately.

Reported-by: Dave Airlie
Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-05-05 16:05:07 +02:00
Julien Cristau
f5b50af432 configure: check if issetugid is declared
GNU/kFreeBSD has issetugid in libc (for legacy apps?), but doesn't
declare it anywhere, causing gcc to error out with
-Werror=implicit-function-declaration.  Use AC_CHECK_DECL in addition to
AC_CHECK_FUNC so we disable this code instead of failing to build it.

Debian bug#669670 <http://bugs.debian.org/669670>

Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-04 20:20:07 -07:00
Peter Hutterer
52e1b5cc3b Typo fix
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-30 16:37:01 +10:00
Alan Coopersmith
b64969f0e5 Add X11R7 sections to the libX11 & XKBlib credits to cover Docbook conversion
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-17 18:17:53 -07:00
Alan Coopersmith
9ea611696f Add olinks from libX11 & localedb specs to ICCCM spec
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-17 18:01:36 -07:00
Alan Coopersmith
b3c1b8cdab Add olinks from libX11 spec to ICCCM spec
Also convert ICCCM title mentions from <emphasis> to <citetitle>

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-17 17:49:50 -07:00
Alan Coopersmith
ebebb65e75 libX11 AppC: Fix section headers that didn't translate from nroff properly
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-17 09:20:13 -07:00
Alan Coopersmith
d5ab4ae0e7 Add olinks from libX11 spec to x11protocol spec
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-17 09:20:06 -07:00
Alan Coopersmith
83878a0e34 libX11 spec: Remove .br nroff macro left behind in XGetWindowProperty prototype
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-14 22:28:53 -07:00
Alan Coopersmith
abc523fce3 libX11 1.4.99.901 (1.5 RC1)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-15 22:14:45 -07:00
Alan Coopersmith
b2cc5905a4 Remove "register" qualifier that annoys Solaris Studio compiler
Fixes warning:
"Xrm.c", line 1094: warning: storage class after type is obsolescent

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-15 22:03:21 -07:00
James Cloos
62d4295389
Fix the gtk+ additions
(Some of) the Dstroke and dstroke entries already were present as U011[01],
even though XK_Dstroke and XK_dstroke are part of the latin2 set in keysymdef.h.

The addition of <Multi_key> <o> <apostrophe> as a postfix version of
<Multi_key> <apostrophe> <o> blocks the existing entries for ǻ and Ǻ.
That prevents its and <Multi_key> <O> <apostrophe>’s addition.

Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-03-14 17:25:46 -04:00
Pander
91bcce48d9 Complete compose key sequences for musical symbols
Signed-off-by: Pander <pander@users.sourceforge.net>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-03-14 14:54:39 -04:00
Pander
cf040016d4 Add compose sequences from gtk+ to X.Org
Signed-off-by: Pander <pander@users.sourceforge.net>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-03-14 14:54:39 -04:00
Keith Packard
a4c591ced5 Block for other threads in _XUserLockDisplay
Wait for all other threads to release the user-level lock when
acquiring it. This ensures that only one thread at a time holds the
user-level lock, necessary as it is a nesting lock and a single
variable is used to determine when the lock is nesting and when it is
contended.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2012-03-13 23:34:18 -07:00
Jon TURNEY
ed00b460ac Don't use caddr_t casts
(caddr_t) isn't used anywhere else in xcb or libX11.
Cast to (char *) for consistency.

Removing this cast allows building for MinGW without patching.

v2: Cast to (char *) rather than just dropping the cast

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-11 17:44:23 +00:00
Julien Cristau
20adca02c2 Revert "xcb: Add TCP fallback"
This reverts commit f09c5299a3.

The TCP fallback ended up falling back to UNIX socket connection if
$DISPLAY was set to e.g. some.host:0 and the initial attempt failed.

Debian bug#659558 <http://bugs.debian.org/659558>

Signed-off-by: Julien Cristau <jcristau@debian.org>

Conflicts:

	src/OpenDis.c
2012-03-09 19:38:22 +01:00
James Cloos
f437819361
Make the compose sequence for ẞ work.
There is no XK_Ssharp symbol for U+1E9E LATIN CAPITAL LETTER SHARP S,
so use the U1e9e symbol in the Compose sequence.

(Compose sequences do not work when the target symbol is unknown.)

Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-02-22 14:15:13 -05:00
Marko Myllynen
2ca641c3a5 Use ezh/EZH in compose maps
Related: https://bugs.freedesktop.org/show_bug.cgi?id=19687

Signed-off-by: Marko Myllynen <myllynen@redhat.com>
Reviewed-by: Matt Dew <marcoz@osource.org>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-02-21 09:17:55 -05:00
Marko Myllynen
61725822f2 Provide translation from XK_permille (ad5) to Unicode (U2030)
https://bugs.freedesktop.org/show_bug.cgi?id=19687

Signed-off-by: Marko Myllynen <myllynen@redhat.com>
Reviewed-by: Matt Dew <marcoz@osource.org>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-02-21 09:17:49 -05:00
Jeremy Huddleston
d2cce0abba nls: Use LC_CTYPE=C for sed magic
Stricter versions of sed can trip up if the input does not match
LC_CTYPE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-02-12 19:14:37 -08:00
Frédéric Boiteux
f180e043f5 Compositions with the dead greek symbol
FreeDesktop Bug 21475 <https://bugs.freedesktop.org/show_bug.cgi?id=21475>

Signed-off-by: Frédéric Boiteux <fboiteux@calistel.com>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-02-08 17:58:26 -05:00
Ryan Pavlik
d58e8f8e27 Use pthreads on MinGW also
Use pthreads (provided by the pthreads-win32 compatability library which implements
them using native Win32 threading) on MinGW

Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2012-01-23 14:21:17 +00:00
Ryan Pavlik
bf15ccb682 Add XWindows.h include to Xxcbint.h
This avoids some conflicting type re-definition errors which occur if
we attempt to include Windows headers after Xmd.h

Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2012-01-23 14:21:07 +00:00
Matt Dew
cadcbd376f informaltable & table cleanup
On certain tables, add top and bottom borders to table header
and a bottom border to the table. This matches what those
tables in the old pdfs looked like.

the <?dbfo keep-together='always'> prevents tables from
splitting across pages. Useful for tiny tables.

Converting the colwidth to a floating point, IE, 1* -> 1.0*
cleans up these build errors:
WARNING: table-layout="fixed" and column-width unspecified =>
falling back to proportional-column-width(1)

Signed-off-by: Matt Dew <marcoz@osource.org>
2012-01-21 17:59:51 -07:00