1

When I try to make a table that has Korean character (한글) mixed with English words, the table becomes unaligned, and according to an answer about Japanese found here the the same problem with Japanese letters, it seems English letters, and Japanese letters have different base pixel sizes, and thus something needs to be changed at the operating system level.

Table with messed up alignment

Here it is in plain text:

| English word      | Korean word | Memorized? |
|-------------------+-------------+------------|
| friend            | 친구        | yes        |
| to eat            | 먹다        | yes        |
| this row          | is just     | English    |
| to bring with you | 가지고 가다 | no         |

I'm using MacOs Mojave, and actually using spacemacs, any ideas what I can do? Thank you.

  • Have you checked the string-width of Korean and Latin characters with your font like suggested in the question you've linked to? Can you add information about your font configuration so people won't have to guess what fonts are you using? – DoMiNeLa10 Mar 26 at 20:33
  • I'm sorry but what do you mean by checking my string-width? Is that within macOS or within spacemacs? – Jim Larsen Mar 27 at 3:21
  • You'll want to call string-width from Emacs with strings with Latin and Korean characters, with the easiest way being the scratch buffer. – DoMiNeLa10 Mar 27 at 17:05
  • Could you paste the actual text instead of just a screenshot? I'm interested in digging into this, and being able to copy your example into Emacs would help. – Sam Mar 28 at 2:13
  • @DoMiNeLa10 I'm very sorry, but I don't know how to call something like that. I'm very new to spacemacs, emacs, org-mode... everything. I tried typing :string-width to no avail. – Jim Larsen Mar 28 at 3:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.