view src/bidimirror.h @ 111789:f97704487fb3

Merge changes made in Gnus trunk. nnir.el: Batch header retrieval. proto-stream.el: New library to provide protocol-specific TLS/STARTTLS connections for IMAP, NNTP, SMTP, POP3 and similar protocols. nnimap.el (nnimap-open-connection): Use it. proto-stream.el (open-proto-stream): Complete the documentation. nnimap.el (nnimap-open-connection): Check for "OK" from the greeting. nntp.el: Use proto-streams for the relevant connections types. nntp.el (nntp-open-connection): Switch on STARTTLS on supported servers. proto-stream.el (open-proto-stream): Add a way to specify what the end of a command is. proto-stream.el (proto-stream-open-tls): Delete output from openssl if we're using tls.el. proto-stream.el (proto-stream-open-network): If we don't have gnutls-cli or gnutls built in, then don't try to establish a STARTTLS connection. color.el (color-lab->srgb): Fix function call name. proto-stream.el: Fix the syntax in the comment. nntp.el (nntp-open-connection): Fix the STARTTLS command syntax. proto-stream.el (proto-stream-open-starttls): Actually implement the starttls.el STARTTLS. proto-stream.el (proto-stream-always-use-starttls): New variable. proto-stream.el (proto-stream-open-starttls): De-duplicate the starttls code. proto-stream.el (proto-stream-open-starttls): Folded back into the main function. proto-stream.el (proto-stream-command): Refactor out. nnimap.el (nnimap-stream): Change default to `undecided'. nnimap.el (nnimap-open-connection): If `nnimap-stream' is `undecided', try ssl first, and then network. nnimap.el (nnimap-open-connection-1): Respect nnimap-server-port. nnimap.el (nnimap-open-connection): Be more backwards-compatible. proto-stream.el (open-protocol-stream): Renamed from open-proto-stream. proto-stream.el (proto-stream-open-network): When doing opportunistic TLS upgrades we don't really care about the identity of the peer. gnus.texi (Customizing the IMAP Connection): Note the new defaults. gnus.texi (Direct Functions): Note the STARTTLS upgrade. proto-stream.el (proto-stream-open-network): Force starttls.el to use gnutls-cli, since that what we've checked for. proto-stream.el (proto-stream-always-use-starttls): Only default to t if open-gnutls-stream exists. proto-stream.el (proto-stream-open-network): If STARTTLS failed, then just open a normal connection. proto-stream.el (proto-stream-open-network): Wait until the greeting before doing STARTTLS. nnimap.el (nnimap-open-connection-1): Always upgrade to STARTTLS (for backwards compatibility). nnimap.el (nnimap-open-connection-1): Really respect nnimap-server-port. nntp.el (nntp-open-connection): Provide a :success condition. nnimap.el (nnimap-open-connection-1): Ditto. proto-stream.el (proto-stream-open-network): See what the response to the STARTTLS command is. proto-stream.el (proto-stream-open-network): Add some comments. proto-stream.el: Fix example. proto-stream.el (open-protocol-stream): Actually mention the STARTTLS upgrade. nnir.el (nnir-get-active): Skip nnir-ignored-newsgroups when searching. nnir.el (nnir-ignore-newsgroups): Fix default value. nnir.el (nnir-run-gmane): Use mm-delete-duplicates instead of delete-dups that is not available in XEmacs 21.4. mm-util.el (mm-delete-duplicates): Add comment. gnus-sum.el (gnus-summary-delete-article): If delete fails don't change the registry. nnimap.el (nnimap-open-connection-1): w32 open-network-stream doesn't seem to accept strings-with-numbers as port numbers. color.el: fix docstring to use English rather than math notation for intervals. shr.el (shr-find-fill-point): Don't break before apostrophes. nnir.el (nnir-request-move-article): Bail out if no move support in group. color.el (color-rgb->hsv): Fix docstring. nnir.el (nnir-get-active): Improve active list retrieval. shr.el (shr-find-fill-point): Work better for kinsoku chars and apostrophes. gnus-gravatar.el (gnus-gravatar-size): Set gnus-gravatar-size to nil. nnimap.el (nnimap-open-connection-1): Use gnus-string-match-p. nnimap.el (nnimap-open-connection-1): Fix PREAUTH. proto-stream.el (open-protocol-stream): All starttls connections are handled by the network handler. gnus-gravatar.el (gnus-gravatar-insert): Delete unnecessary binding to t of inhibit-read-only since it is inside gnus-with-article-headers. gnus-gravatar.el (gnus-gravatar-transform-address): Use mail-extract-address-components that supports non-ASCII names rather than mail-header-parse-addresses. shr.el (shr-find-fill-point): Don't break line between kinsoku-bol characters. gnus-gravatar.el (gnus-gravatar-insert): Allow LWSP in the middle of names. nnmaildir.el (nnmaildir-request-set-mark): Add article to add-mark funcall. gnus-msg.el: Remove nastygram thing. message.el (message-from-style): Fix comment. message.el (message-user-organization): Do not use gnus-local-organization. gnus.el: Remove gnus-local-organization. rtree.el: New file to handle range trees. nnir.el, gnus-sum.el: Redo the way nnir handles registry updates. rtree.el (rtree-extract): Simplify. gnus-win.el (gnus-configure-windows): Remove Gnus 3.x setting support. gnus-msg.el: Mark gnus-outgoing-message-group as obsolete. gnus.texi (Archived Messages): Remove gnus-outgoing-message-group. gnus-win.el (gnus-configure-frame): Remove old compatibility code. rtree.el (rtree-memq): Rewrite it as a non-recursive function. rtree.el (rtree-add, rtree-delq, rtree-length): Implement. rtree.el (rtree-add): Make code slightly faster. nnir.el: Allow modified summary-line-format in nnir summary buffers.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 02 Dec 2010 22:21:31 +0000
parents 7e588bac2220
children
line wrap: on
line source

  struct {
    int from, to;
  } bidi_mirror[] = {
	{ 0x0028, 0x0029 },
	{ 0x0029, 0x0028 },
	{ 0x003C, 0x003E },
	{ 0x003E, 0x003C },
	{ 0x005B, 0x005D },
	{ 0x005D, 0x005B },
	{ 0x007B, 0x007D },
	{ 0x007D, 0x007B },
	{ 0x00AB, 0x00BB },
	{ 0x00BB, 0x00AB },
	{ 0x0F3A, 0x0F3B },
	{ 0x0F3B, 0x0F3A },
	{ 0x0F3C, 0x0F3D },
	{ 0x0F3D, 0x0F3C },
	{ 0x169B, 0x169C },
	{ 0x169C, 0x169B },
	{ 0x2039, 0x203A },
	{ 0x203A, 0x2039 },
	{ 0x2045, 0x2046 },
	{ 0x2046, 0x2045 },
	{ 0x207D, 0x207E },
	{ 0x207E, 0x207D },
	{ 0x208D, 0x208E },
	{ 0x208E, 0x208D },
	{ 0x2208, 0x220B },
	{ 0x2209, 0x220C },
	{ 0x220A, 0x220D },
	{ 0x220B, 0x2208 },
	{ 0x220C, 0x2209 },
	{ 0x220D, 0x220A },
	{ 0x2215, 0x29F5 },
	{ 0x223C, 0x223D },
	{ 0x223D, 0x223C },
	{ 0x2243, 0x22CD },
	{ 0x2252, 0x2253 },
	{ 0x2253, 0x2252 },
	{ 0x2254, 0x2255 },
	{ 0x2255, 0x2254 },
	{ 0x2264, 0x2265 },
	{ 0x2265, 0x2264 },
	{ 0x2266, 0x2267 },
	{ 0x2267, 0x2266 },
	{ 0x2268, 0x2269 },
	{ 0x2269, 0x2268 },
	{ 0x226A, 0x226B },
	{ 0x226B, 0x226A },
	{ 0x226E, 0x226F },
	{ 0x226F, 0x226E },
	{ 0x2270, 0x2271 },
	{ 0x2271, 0x2270 },
	{ 0x2272, 0x2273 },
	{ 0x2273, 0x2272 },
	{ 0x2274, 0x2275 },
	{ 0x2275, 0x2274 },
	{ 0x2276, 0x2277 },
	{ 0x2277, 0x2276 },
	{ 0x2278, 0x2279 },
	{ 0x2279, 0x2278 },
	{ 0x227A, 0x227B },
	{ 0x227B, 0x227A },
	{ 0x227C, 0x227D },
	{ 0x227D, 0x227C },
	{ 0x227E, 0x227F },
	{ 0x227F, 0x227E },
	{ 0x2280, 0x2281 },
	{ 0x2281, 0x2280 },
	{ 0x2282, 0x2283 },
	{ 0x2283, 0x2282 },
	{ 0x2284, 0x2285 },
	{ 0x2285, 0x2284 },
	{ 0x2286, 0x2287 },
	{ 0x2287, 0x2286 },
	{ 0x2288, 0x2289 },
	{ 0x2289, 0x2288 },
	{ 0x228A, 0x228B },
	{ 0x228B, 0x228A },
	{ 0x228F, 0x2290 },
	{ 0x2290, 0x228F },
	{ 0x2291, 0x2292 },
	{ 0x2292, 0x2291 },
	{ 0x2298, 0x29B8 },
	{ 0x22A2, 0x22A3 },
	{ 0x22A3, 0x22A2 },
	{ 0x22A6, 0x2ADE },
	{ 0x22A8, 0x2AE4 },
	{ 0x22A9, 0x2AE3 },
	{ 0x22AB, 0x2AE5 },
	{ 0x22B0, 0x22B1 },
	{ 0x22B1, 0x22B0 },
	{ 0x22B2, 0x22B3 },
	{ 0x22B3, 0x22B2 },
	{ 0x22B4, 0x22B5 },
	{ 0x22B5, 0x22B4 },
	{ 0x22B6, 0x22B7 },
	{ 0x22B7, 0x22B6 },
	{ 0x22C9, 0x22CA },
	{ 0x22CA, 0x22C9 },
	{ 0x22CB, 0x22CC },
	{ 0x22CC, 0x22CB },
	{ 0x22CD, 0x2243 },
	{ 0x22D0, 0x22D1 },
	{ 0x22D1, 0x22D0 },
	{ 0x22D6, 0x22D7 },
	{ 0x22D7, 0x22D6 },
	{ 0x22D8, 0x22D9 },
	{ 0x22D9, 0x22D8 },
	{ 0x22DA, 0x22DB },
	{ 0x22DB, 0x22DA },
	{ 0x22DC, 0x22DD },
	{ 0x22DD, 0x22DC },
	{ 0x22DE, 0x22DF },
	{ 0x22DF, 0x22DE },
	{ 0x22E0, 0x22E1 },
	{ 0x22E1, 0x22E0 },
	{ 0x22E2, 0x22E3 },
	{ 0x22E3, 0x22E2 },
	{ 0x22E4, 0x22E5 },
	{ 0x22E5, 0x22E4 },
	{ 0x22E6, 0x22E7 },
	{ 0x22E7, 0x22E6 },
	{ 0x22E8, 0x22E9 },
	{ 0x22E9, 0x22E8 },
	{ 0x22EA, 0x22EB },
	{ 0x22EB, 0x22EA },
	{ 0x22EC, 0x22ED },
	{ 0x22ED, 0x22EC },
	{ 0x22F0, 0x22F1 },
	{ 0x22F1, 0x22F0 },
	{ 0x22F2, 0x22FA },
	{ 0x22F3, 0x22FB },
	{ 0x22F4, 0x22FC },
	{ 0x22F6, 0x22FD },
	{ 0x22F7, 0x22FE },
	{ 0x22FA, 0x22F2 },
	{ 0x22FB, 0x22F3 },
	{ 0x22FC, 0x22F4 },
	{ 0x22FD, 0x22F6 },
	{ 0x22FE, 0x22F7 },
	{ 0x2308, 0x2309 },
	{ 0x2309, 0x2308 },
	{ 0x230A, 0x230B },
	{ 0x230B, 0x230A },
	{ 0x2329, 0x232A },
	{ 0x232A, 0x2329 },
	{ 0x2768, 0x2769 },
	{ 0x2769, 0x2768 },
	{ 0x276A, 0x276B },
	{ 0x276B, 0x276A },
	{ 0x276C, 0x276D },
	{ 0x276D, 0x276C },
	{ 0x276E, 0x276F },
	{ 0x276F, 0x276E },
	{ 0x2770, 0x2771 },
	{ 0x2771, 0x2770 },
	{ 0x2772, 0x2773 },
	{ 0x2773, 0x2772 },
	{ 0x2774, 0x2775 },
	{ 0x2775, 0x2774 },
	{ 0x27C3, 0x27C4 },
	{ 0x27C4, 0x27C3 },
	{ 0x27C5, 0x27C6 },
	{ 0x27C6, 0x27C5 },
	{ 0x27C8, 0x27C9 },
	{ 0x27C9, 0x27C8 },
	{ 0x27D5, 0x27D6 },
	{ 0x27D6, 0x27D5 },
	{ 0x27DD, 0x27DE },
	{ 0x27DE, 0x27DD },
	{ 0x27E2, 0x27E3 },
	{ 0x27E3, 0x27E2 },
	{ 0x27E4, 0x27E5 },
	{ 0x27E5, 0x27E4 },
	{ 0x27E6, 0x27E7 },
	{ 0x27E7, 0x27E6 },
	{ 0x27E8, 0x27E9 },
	{ 0x27E9, 0x27E8 },
	{ 0x27EA, 0x27EB },
	{ 0x27EB, 0x27EA },
	{ 0x27EC, 0x27ED },
	{ 0x27ED, 0x27EC },
	{ 0x27EE, 0x27EF },
	{ 0x27EF, 0x27EE },
	{ 0x2983, 0x2984 },
	{ 0x2984, 0x2983 },
	{ 0x2985, 0x2986 },
	{ 0x2986, 0x2985 },
	{ 0x2987, 0x2988 },
	{ 0x2988, 0x2987 },
	{ 0x2989, 0x298A },
	{ 0x298A, 0x2989 },
	{ 0x298B, 0x298C },
	{ 0x298C, 0x298B },
	{ 0x298D, 0x2990 },
	{ 0x298E, 0x298F },
	{ 0x298F, 0x298E },
	{ 0x2990, 0x298D },
	{ 0x2991, 0x2992 },
	{ 0x2992, 0x2991 },
	{ 0x2993, 0x2994 },
	{ 0x2994, 0x2993 },
	{ 0x2995, 0x2996 },
	{ 0x2996, 0x2995 },
	{ 0x2997, 0x2998 },
	{ 0x2998, 0x2997 },
	{ 0x29B8, 0x2298 },
	{ 0x29C0, 0x29C1 },
	{ 0x29C1, 0x29C0 },
	{ 0x29C4, 0x29C5 },
	{ 0x29C5, 0x29C4 },
	{ 0x29CF, 0x29D0 },
	{ 0x29D0, 0x29CF },
	{ 0x29D1, 0x29D2 },
	{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 0x2E20 },
	{ 0x2E22, 0x2E23 },
	{ 0x2E23, 0x2E22 },
	{ 0x2E24, 0x2E25 },
	{ 0x2E25, 0x2E24 },
	{ 0x2E26, 0x2E27 },
	{ 0x2E27, 0x2E26 },
	{ 0x2E28, 0x2E29 },
	{ 0x2E29, 0x2E28 },
	{ 0x3008, 0x3009 },
	{ 0x3009, 0x3008 },
	{ 0x300A, 0x300B },
	{ 0x300B, 0x300A },
	{ 0x300C, 0x300D },
	{ 0x300D, 0x300C },
	{ 0x300E, 0x300F },
	{ 0x300F, 0x300E },
	{ 0x3010, 0x3011 },
	{ 0x3011, 0x3010 },
	{ 0x3014, 0x3015 },
	{ 0x3015, 0x3014 },
	{ 0x3016, 0x3017 },
	{ 0x3017, 0x3016 },
	{ 0x3018, 0x3019 },
	{ 0x3019, 0x3018 },
	{ 0x301A, 0x301B },
	{ 0x301B, 0x301A },
	{ 0xFE59, 0xFE5A },
	{ 0xFE5A, 0xFE59 },
	{ 0xFE5B, 0xFE5C },
	{ 0xFE5C, 0xFE5B },
	{ 0xFE5D, 0xFE5E },
	{ 0xFE5E, 0xFE5D },
	{ 0xFE64, 0xFE65 },
	{ 0xFE65, 0xFE64 },
	{ 0xFF08, 0xFF09 },
	{ 0xFF09, 0xFF08 },
	{ 0xFF1C, 0xFF1E },
	{ 0xFF1E, 0xFF1C },
	{ 0xFF3B, 0xFF3D },
	{ 0xFF3D, 0xFF3B },
	{ 0xFF5B, 0xFF5D },
	{ 0xFF5D, 0xFF5B },
	{ 0xFF5F, 0xFF60 },
	{ 0xFF60, 0xFF5F },
	{ 0xFF62, 0xFF63 },
	{ 0xFF63, 0xFF62 } };