moebiuscurve / ibus-table-others

ibus-table-others
code.google.com/p/ibus/
GNU General Public License v3.0
15 stars 8 forks source link

latex table: {} are in VALID_INPUT_CHARS but not used anywhere in the table #27

Closed mike-fabian closed 1 year ago

mike-fabian commented 1 year ago

{ and } should probably be removed from the list of valid input chars in the latex table.

See: https://github.com/moebiuscurve/ibus-table-others/issues/26#issuecomment-1438944256

mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$ grep '\[' latex.txt 
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^\_[]{}
\sqrt[3]        ∛       0
\sqrt[4]        ∜       0
mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$ grep '{' latex.txt 
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^\_[]{}
mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$ grep '}' latex.txt 
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^\_[]{}
mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$ grep '\[' latex.txt 
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^\_[]{}
\sqrt[3]        ∛       0
\sqrt[4]        ∜       0
mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$ grep '\]' latex.txt 
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^\_[]{}
\sqrt[3]        ∛       0
\sqrt[4]        ∜       0
mfabian@hathi:/local/mfabian/src/ibus-table-others/tables (release-candidate-1.3.15)
$
mike-fabian commented 1 year ago

The original version of the latex table used to have a few of { and }:

mfabian@hathi:/local/mfabian/src/ibus-table-others/tables ((1.3.0.20140707) %) $ grep '{' latex.txt VALID_INPUTCHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\[]{} \mathbb{C} ℂ 0 \mathcal{E} ℇ 0 \mathfrak{H} ℌ 0 mfabian@hathi:/local/mfabian/src/ibus-table-others/tables ((1.3.0.20140707) %) $ grep '}' latex.txt VALID_INPUTCHARS = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\[]{} \mathbb{C} ℂ 0 \mathcal{E} ℇ 0 \mathfrak{H} ℌ 0 mfabian@hathi:/local/mfabian/src/ibus-table-others/tables ((1.3.0.20140707) %) $

mike-fabian commented 1 year ago

But this commit:

commit 879b13882cd570cd69e3923b118522a898995f9a (HEAD)
Author: Giuseppe Castagna <Giuseppe.Castagna@univ-paris-diderot.fr>
Date:   Wed Jul 23 08:41:30 2014 +0200

    Updates and bugfixes for the LaTeX table by Giuseppe Castagna (original author of the LaTeX table)

changed and extended these to:

+###
+### Unicode symbols interval 2100-214F
+###
+###\mathbb--------------
+\mathbbC       ℂ       0
+\mathbbH       ℍ       0
+\mathbbN       ℕ       0
+\mathbbP       ℙ       0
+\mathbbQ       ℚ       0
+\mathbbR       ℝ       0
+\mathbbZ       ℤ       0
+###\mathcal-------------
+\mathcalE      ℰ       0
+\mathcalF      ℱ       0
+\mathcalg      ℊ       0
+\mathcalH      ℋ       0
+\mathcalI      ℐ       0
+\mathcalL      ℒ       0
+\mathcalM      ℳ       0
+\mathcalR      ℛ       0
+\mathcalB      ℬ       0
+###\mathfrak------------
+\mathfrakH     ℌ       0
+\mathfrakR     ℜ       0
+\mathfrakC     ℭ       0
+\mathfrakZ     ℨ       0