1. 15 Dec, 1999 40 commits
    • Kenichi Handa's avatar
      Register tibetan-composition-function in · d169c89e
      Kenichi Handa authored
      composition-function-table.
      (tibetan-composable-pattern): New variable.
      (tibetan-subjoined-transcription-alist): Change key "R" to "+R".
      (tibetan-precomposition-rule-alist): Move punctuations to
      tibetan-punctuation-transcription-alist and
      tibetan-obsolete-glyphs.
      (tibetan-punctuation-transcription-alist): New variable.
      (tibetan-obsolete-glyphs): New variable.
      (tibetan-regexp): Improve the initialization code.
      d169c89e
    • Kenichi Handa's avatar
      Most functions rewritten. · 3bdf8898
      Kenichi Handa authored
      (tibetan-char-p): Renamed from tibetan-char-examin.
      (tibetan-composable-examin) (tibetan-complete-char-examin)
      (tibetan-vertical-stacking) (tibetan-composition): Deleted.
      (tibetan-add-components): New function.
      (tibetan-composition-function): New function.
      3bdf8898
    • Kenichi Handa's avatar
      Register thai-composition-function in · c27737aa
      Kenichi Handa authored
      composition-function-table.
      (thai-tis620): Delete `pre-write-conversion' property.
      c27737aa
    • Kenichi Handa's avatar
      Mostly rewritten. · 31ce7719
      Kenichi Handa authored
      31ce7719
    • Kenichi Handa's avatar
      Register lao-composition-function in · 86e2a803
      Kenichi Handa authored
      composition-function-table.
      86e2a803
    • Kenichi Handa's avatar
      (thai-category-table): Use · c595d888
      Kenichi Handa authored
      make-category-table, not copy-category-table, to initialize it.
      (thai-composition-pattern): New variable.
      (thai-with-thai-category-table): New macro.
      (thai-compose-region, thai-compose-string): Rewritten.
      (thai-post-read-conversion): Rewritten.
      (thai-pre-write-conversion): Deleted.
      (thai-composition-function): New function.
      c595d888
    • Kenichi Handa's avatar
      (quail-install-map): New optional arg · 817e162f
      Kenichi Handa authored
      NAME.
      (quail-get-translation): If DEF is a symbol but not a function,
      ignore it.
      (quail-start-translation): Put a key sequence undefined in the
      translation keymap in unread-command-events, not generated-events.
      Return parameterized event (compose-last-chars N) if the input
      characters should be composed.
      (quail-map-definition): If DEF is t, treat it as nil.
      (quail-delete-last-char): Delete the quail region.
      (quail-show-translations): Don't show list of translations if the
      quail package is deterministic.
      (quail-completion-max-depth): New variable.
      (quail-completion-1): Pay attention to the above variable.  Fix
      for the case that a translation is a function.
      (quail-map-from-table, quail-map-from-table-1,
      quail-map-from-table-2): New functions.
      (quail-lookup-map-and-concat): New function
      817e162f
    • Kenichi Handa's avatar
      (set-nested-alist): Set BRANCHES (if · 72594565
      Kenichi Handa authored
      non-nil) at the tail of ALIST.
      (compose-region, decompose-region, decompse-string,
      reference-point-alist, compose-chars): Moved to composite.el.
      (compose-chars-component, compose-chars-rule,
      decompose-composite-char): Deleted.
      72594565
    • Kenichi Handa's avatar
      (iso-2022-7bit, iso-2022-7bit-ss2 · ccac3d77
      Kenichi Handa authored
      iso-2022-7bit-lock, iso-2022-7bit-lock-ss2, iso-2022-8bit-ss2,
      x-ctext): Give `composition' property t.
      ccac3d77
    • Kenichi Handa's avatar
      (encode-coding-char): Don't check · 5b8d2ff5
      Kenichi Handa authored
      composite character.
      5b8d2ff5
    • Kenichi Handa's avatar
      (mule-version): Updated to 5.0 (AOI). · 35554641
      Kenichi Handa authored
      (mule-version-date): Updated to 1999.12.7.
      (with-category-table): New macro.
      35554641
    • Kenichi Handa's avatar
      (vertical-centering-font-regexp): New · 0c4f97d0
      Kenichi Handa authored
      variable.
      0c4f97d0
    • Kenichi Handa's avatar
      Fix cateogries of Lao symbols. · d5f05a67
      Kenichi Handa authored
      d5f05a67
    • Kenichi Handa's avatar
      (what-cursor-position): Show "(composed)" if the · f0d16a7f
      Kenichi Handa authored
      character is composed.
      f0d16a7f
    • Kenichi Handa's avatar
      (ps-plot-region): Handle new composition. · 9d4d60c1
      Kenichi Handa authored
      9d4d60c1
    • Kenichi Handa's avatar
      Define encode-composition-rule and find-composition · d0da93b3
      Kenichi Handa authored
      for Emacs 20.4 and the earlier versions.
      (ps-mule-init-external-library): Just require a feature for
      external libraries.
      (ps-mule-prologue): Postscript code modified for new composition.
      (ps-mule-find-wrappoint): New arg COMPOSITION.
      (ps-mule-plot-string): Delete code for composite characaters.
      (ps-mule-plot-composition): New funcion.
      (ps-mule-prepare-font-for-components): New function.
      (ps-mule-plot-components): New function.
      (ps-mule-composition-prologue-generated): Renamed from
      ps-mule-cmpchar-prologue-generated.
      (ps-mule-composition-prologue): New named from
      ps-mule-cmpchar-prologue.  Modified for new composition.
      (ps-mule-plot-rule-cmpchar, ps-mule-plot-cmpchar,
      ps-mule-prepare-cmpchar-font): Deleted.
      (ps-mule-string-encoding): New arg NO-SETFONT.
      (ps-mule-bitmap-prologue): In Postscript code of BuildGlyphCommon,
      check Composing, not Cmpchar
      (ps-mule-initialize): Set ps-mule-composition-prologue-generated
      to nil.
      (ps-mule-begin-job): Check existence of new composition.
      d0da93b3
    • Kenichi Handa's avatar
      Rewritten for new composition. · 653b6bad
      Kenichi Handa authored
      653b6bad
    • Kenichi Handa's avatar
      New file. · c674f351
      Kenichi Handa authored
      c674f351
    • Kenichi Handa's avatar
      (x_append_glyph): Setup members of struct glyph properly · b4192550
      Kenichi Handa authored
      for composition.
      (x_append_composite_glyph): New function.
      (VCENTER_BASELINE_OFFSET): New macro.
      (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
      of struct it for the composition.  Cache pixel offsets in the
      struct composition.  Delete codes for a composite character.
      Handle Vignore_relative_composition in composition code.
      (struct glyph_string): Delete member cmpcharp, add new member cmp.
      (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
      (x_compute_glyph_string_overhangs): Likewise.
      (x_get_glyph_overhangs): Delete codes for a composite character.
      (x_right_overwritten): Check s->cmp, not s->cmpcharp.
      (x_draw_glyph_string_background): Likewise.  Delete codes for
      checking s->gidx for a composition.
      (x_draw_glyph_string_foreground): Delete code for a composite
      character.
      (x_draw_composite_glyph_string_foreground): New function.
      (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
      (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
      (struct work): Deleted.
      (x_fill_composite_glyph_string): Argument changed.  Mostly
      rewritten for that.
      (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
      (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
      (BUILD_COMPOSITE_GLYPH_STRING): New macro.
      (BUILD_GLYPH_STRINGS): For composition, call
      BUILD_COMPOSITE_GLYPH_STRING.
      (x_new_font): Initialize f->output_data.x->baseline_offset, not
      f->output_data.x->font_baseline.
      b4192550
    • Kenichi Handa's avatar
      (struct x_output): Change member font_baseline to · b6c3d034
      Kenichi Handa authored
      baseline_offset.
      b6c3d034
    • Kenichi Handa's avatar
      (lisp_data_to_selection_data): Adjusted for the change · 99e1184e
      Kenichi Handa authored
      for find_charset_in_str.
      99e1184e
    • Kenichi Handa's avatar
      Include intervals.h. · 58cad5ed
      Kenichi Handa authored
      (syms_of_xfns): Make `display' property nonsticky by default.
      58cad5ed
    • Kenichi Handa's avatar
      (choose_face_fontset_font): Delete codes for a · 78d2079c
      Kenichi Handa authored
      composite character.
      (realize_x_face): Likewise.  Change a place to set local variable
      `f' to avoid a bug of GCC 2.8.1 on Solaris.
      78d2079c
    • Kenichi Handa's avatar
      (it_props): Add an entry for composition. · 260a86a0
      Kenichi Handa authored
      (face_before_or_after_it_pos): For composition, check face of a
      character after the composition.
      (handle_composition_prop): New function.
      (get_next_display_element): Adjusted for the change of
      CHAR_STRING.
      (set_iterator_to_next): Handle the case that it->method ==
      next_element_from_composition.
      (next_element_from_composition): New function.
      (message_dolog): Adjusted for the change of CHAR_STRING.
      (set_message_1): Likewise.
      (check_point_in_composition): New function.
      (reconsider_clip_changes): If point moved into or out of
      composition, set b->clip_changed to 1 to force updating of the
      screen.
      (disp_char_vector): Delete codes for a composite character.
      (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
      260a86a0
    • Kenichi Handa's avatar
      f02d6d5c
    • Kenichi Handa's avatar
      (Vtext_property_default_nonsticky): New variable · abc2f676
      Kenichi Handa authored
      (syms_of_textprop): Declare it as a Lisp variable.
      abc2f676
    • Kenichi Handa's avatar
      (encode_terminal_code): Delete codes for a composite · c7cba11d
      Kenichi Handa authored
      character.  Adjusted for the change of CHAR_STRING.
      (produce_glyphs): When called, it->what can be IT_COMPOSITION.
      Delete codes for a composite character.
      c7cba11d
    • Kenichi Handa's avatar
      (SYNTAX_ENTRY_INT): Delete codes for a composite · aa9b6dd6
      Kenichi Handa authored
      character.
      aa9b6dd6
    • Kenichi Handa's avatar
      daaa6ed8
    • Kenichi Handa's avatar
      Include composite.h. · e0016554
      Kenichi Handa authored
      (read_process_output): Call update_compositions.
      e0016554
    • Kenichi Handa's avatar
      19a86a03
    • Kenichi Handa's avatar
      (readchar): Adjusted for the change of CHAR_STRING. · 449fea39
      Kenichi Handa authored
      Delete a code that handles an invalid too-long multibyte sequence
      because we are now sure that we never encounter with such a
      sequence.
      (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
      MAX_LENGTH_OF_MULTI_BYTE_FORM.
      (init_obarray): Likewise.
      (read1): Likewise.  Adjusted for the change of CHAR_STRING.
      449fea39
    • Kenichi Handa's avatar
      (QCtest, QCweakness, Qequal): Extern them. · 19481752
      Kenichi Handa authored
      (hash_put): Adjusted for the change of the definition.
      (signal_after_change): Likewise.
      (check_point_in_composition): Extern it.
      19481752
    • Kenichi Handa's avatar
      (push_key_description): Adjusted for the change of · 0a16479f
      Kenichi Handa authored
      CHAR_STRING.
      (Ftext_char_description): Likewise.
      0a16479f
    • Kenichi Handa's avatar
      (Vdisable_point_adjustment): New variable. · adf5cb9c
      Kenichi Handa authored
      (Vglobal_disable_point_adjustment): New variable.
      (syms_of_keyboard): Declare them as Lisp variables.
      (command_loop_1): Check them and call adjust_point_for_property if
      necessary.
      (adjust_point_for_property): New function.
      adf5cb9c
    • Kenichi Handa's avatar
      (adjust_intervals_for_insertion): To check stickines · f56b42ac
      Kenichi Handa authored
      of properties, pay attention to text-property-default-nonsticky.
      (merge_properties_sticky): Likewise.
      (get_property_and_range): New function.
      f56b42ac
    • Kenichi Handa's avatar
      Include composite.h. · a5ecc8a3
      Kenichi Handa authored
      (get_property_and_range): Extern it.
      (Vtext_property_default_nonsticky): Extern it.
      a5ecc8a3
    • Kenichi Handa's avatar
      (copy_text): Adjusted for the change of CHAR_STRING. · 0ef71121
      Kenichi Handa authored
      (insert_char): Likewise.
      (insert): Call update_compositions.
      (insert_and_inherit): Likewise.
      (insert_before_markers): Likewise.
      (insert_before_markers_and_inherit): Likewise.
      (insert_from_string): Likewise.
      (insert_from_string_before_markers): Likewise.
      (insert_from_buffer): Likewise.
      (replace_range): Likewise.
      (count_combining_composition): Deleted.
      (count_combining_before): Delete codes for a composite character.
      (count_combining_after): Likewise.
      (del_range_1): Call update_compositions.
      (del_range_byte): Likewise.
      (del_range_both): Likewise.
      (Fcombine_after_change_execute): Likewise.
      0ef71121
    • Kenichi Handa's avatar
      (check_composition): New function. · 012fd715
      Kenichi Handa authored
      (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
      MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
      (current_column_1): Handle new way of composition.
      (Fmove_to_column): Likewise.
      (compute_motion): Likewise.
      012fd715
    • Kenichi Handa's avatar
      (Vvertical_centering_font_regexp): New variable. · 810abb87
      Kenichi Handa authored
      (syms_of_fontset): Declare it as a Lisp variable and initialize.
      Set Vignore_relative_composition to nil.
      (fs_load_font): Initialize `vertical_centering' of struct
      font_info.
      810abb87