unicode 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. -*-mode: text; coding: latin-1;-*-
  2. Copyright (C) 2002-2012 Free Software Foundation, Inc.
  3. See the end of the file for license conditions.
  4. Problems, fixmes and other unicode-related issues
  5. -------------------------------------------------------------
  6. Notes by fx to record various things of variable importance. handa
  7. needs to check them -- don't take too seriously, especially with
  8. regard to completeness.
  9. * SINGLE_BYTE_CHAR_P returns true for Latin-1 characters, which has
  10. undesirable effects. E.g.:
  11. (multibyte-string-p (let ((s "x")) (aset s 0 ?£) s)) => nil
  12. (multibyte-string-p (concat [?£])) => nil
  13. (text-char-description ?£) => "M-#"
  14. These examples are all fixed by the change of 2002-10-14, but
  15. there still exist questionable SINGLE_BYTE_CHAR_P in the
  16. code (keymap.c and print.c).
  17. * Rationalize character syntax and its relationship to the Unicode
  18. database. (Applies mainly to symbol an punctuation syntax.)
  19. * Fontset handling and customization needs work. We want to relate
  20. fonts to scripts, probably based on the Unicode blocks. The
  21. presence of small-repertoire 10646-encoded fonts in XFree 4 is a
  22. pain, not currently worked round.
  23. With the change on 2002-07-26, multiple fonts can be
  24. specified in a fontset for a specific range of characters.
  25. Each range can also be specified by script. Before using
  26. ISO10646 fonts, Emacs checks their repertories to avoid such
  27. fonts that don't have a glyph for a specific character.
  28. fx has worked on fontset customization, but was stymied by
  29. basic problems with the way the default face is dealt with
  30. (and something else, I think). This needs revisiting.
  31. * Work is also needed on charset and coding system priorities.
  32. * The relevant bits of latin1-disp.el need porting (and probably
  33. re-naming/updating). See also cyril-util.el.
  34. * Quail files need more work now the encoding is largely irrelevant.
  35. * What to do with the old coding categories stuff?
  36. * The preferred-coding-system property of charsets should probably be
  37. junked unless it can be made more useful now.
  38. * find-multibyte-characters needs looking at.
  39. * Implement Korean cp949/UHC, BIG5-HKSCS and any other important missing
  40. charsets.
  41. * Lazy-load tables for unify-charset somehow?
  42. Actually, Emacs clears out all charset maps and unify-map just
  43. before dumping, and they are loaded again on demand by the
  44. dumped emacs. But, those maps (char tables) generated while
  45. temacs is running can't be removed from the dumped emacs.
  46. * iso-2022 charsets get unified on i/o.
  47. With the change on 2003-01-06, decoding routines put `charset'
  48. property to decoded text, and iso-2022 encoder pay attention
  49. to it. Thus, for instance, reading and writing by
  50. iso-2022-7bit preserve the original designation sequences.
  51. The property name `preferred-charset' may be better?
  52. We may have to utilize this property to decide a font.
  53. * Revisit locale processing: look at treating the language and
  54. charset parts separately. (Language should affect things like
  55. spelling and calendar, but that's not a Unicode issue.)
  56. * Handle Unicode combining characters usefully, e.g. diacritics, and
  57. handle more scripts specifically (à la Devanagari). There are
  58. issues with canonicalization.
  59. * We need tabular input methods, e.g. for maths symbols. (Not
  60. specific to Unicode.)
  61. * Need multibyte text in menus, e.g. for the above. (Not specific to
  62. Unicode -- see Emacs etc/TODO, but now mostly works with gtk.)
  63. * There's currently no support for Unicode normalization.
  64. * Populate char-width-table correctly for Unicode characters and
  65. worry about what happens when double-width charsets covering
  66. non-CJK characters are unified.
  67. * There are type errors lurking, e.g. in
  68. Fcheck_coding_systems_region. Define ENABLE_CHECKING to find them.
  69. * Old auto-save files, and similar files, such as Gnus drafts,
  70. containing non-ASCII characters probably won't be re-read correctly.
  71. This file is part of GNU Emacs.
  72. GNU Emacs is free software: you can redistribute it and/or modify
  73. it under the terms of the GNU General Public License as published by
  74. the Free Software Foundation, either version 3 of the License, or
  75. (at your option) any later version.
  76. GNU Emacs is distributed in the hope that it will be useful,
  77. but WITHOUT ANY WARRANTY; without even the implied warranty of
  78. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  79. GNU General Public License for more details.
  80. You should have received a copy of the GNU General Public License
  81. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.