tgrosinger / advanced-tables-obsidian

Improved table navigation, formatting, and manipulation in Obsidian.md
GNU General Public License v3.0
2.12k stars 79 forks source link

Sanskrit characters mess with cell length #261

Open mptgh opened 1 year ago

mptgh commented 1 year ago

Describe the bug The cell length gets messed up when using Devanagari characters for Hindi or Sanskrit languages.

To Reproduce

  1. Create a table.
  2. Type using MacOS Devanagari keyboard
  3. Hit tab or enter to align the columns
  4. See error (screenshots below)

Expected behavior

Columns should automatically align after hitting tab.

Screenshots

Screenshot 2023-05-26 at 14 37 59

Desktop

Additional context Devanagari is the script used for Hindi, Sanskrit, and other Indian languages. This issue happens when using either the Devanagari Querty keyboard, Hindi - Standard, and Sanskrit - Standard keyboard, included in MacOS. I noticed there was a similar issue with Japanese characters but the solution wouldn't work for Devanagari characters, I guess.

tgrosinger commented 1 year ago

Hello, thanks for the issue report. Unfortunately I am not sure how to resolve this issue. Characters sets which are not fixed width, and the same fixed width as the English characters in the other rows is going to result in misalignment when counting the number of characters.

I'm open to suggestions though.

mptgh commented 1 year ago

Does nobody have any suggestions? :(

I wish I could help. But...

what if there was a way to identify the width of each character to standardize them with the English characters in a separate reference table? Ok, that probably doesn't make any sense. But I'm sure there must be a solution to this.

ParkerRobb commented 10 months ago

Is this related to #306 ?