[vim/vim] Display of doubly accented Thai characters (Issue #13043)

20 views
Skip to first unread message

Peter Salvi

unread,
Sep 6, 2023, 3:47:14 AM9/6/23
to vim/vim, Subscribed

Steps to reproduce

  1. Use a Thai-capable font (e..g the fixed-width Tlwg Typist)
  2. Paste น้ำ นี้
  3. Alternatively, load this keymap: http://salvi.chaosnet.org/snippets/thai_utf-8.vim
  4. ... and type "ohe ouh"

Expected behaviour

The words should look like the left-hand sides of the equations in this image:
thai-emacs

Instead they look like this:
thai-gvim

(Using vim in a terminal with a Thai font leads to similar results.)

Version of Vim

9.0.1736

Environment

OS: Manjaro (6.0.11 kernel)
Terminal: xfce4-terminal 1.1.0-1 (or gvim)
$TERM: xterm-256color
shell: bash 5.1.016

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13043@github.com>

Yee Cheng Chin

unread,
Sep 6, 2023, 8:05:23 PM9/6/23
to vim/vim, Subscribed

For using in terminal, I think that's the bug with your terminal. E.g. I used it in Ubuntu's terminal and it works fine. I did reproduce this in GTK gVim though, so I think that's a bug with the GTK GUI.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13043/1709277460@github.com>

Peter Salvi

unread,
Sep 7, 2023, 3:54:05 AM9/7/23
to vim/vim, Subscribed

@ychin, you are right, in the case of using vim in a terminal, it seems to be the terminal's problem. Exactly what terminal did you use? I have tried xfce-terminal, xterm, rxvt-unicode, lxterminal, gnome-terminal, konsole, terminology, terminator, guake and st, with several TLWG fonts (Tlwg Typist, Tlwg Mono, Tlwg Typo, Tlwg Typewriter), none of which produced the correct output. (In many cases, the second example is displayed correctly, but not the first - note the correct position of the small circle.)
Using the Emacs Gtk GUI with any of the above fonts works well (e.g. with: -PfEd-Tlwg Typist-regular-normal-normal--13----*-0-iso10646-1), but fails when running Emacs in a terminal, of course.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13043/1709652460@github.com>

Yee Cheng Chin

unread,
Sep 7, 2023, 10:04:40 AM9/7/23
to vim/vim, Subscribed

Right , actually in terminal it does look wrong. The circle is overlapped. Seems like the existence of ำ affects the "น้", but the logic isn't handling that.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13043/1710213581@github.com>

Reply all
Reply to author
Forward
0 new messages