Skip to content

Commit 1f3f0cd

Browse files
khanxmetusarahboyce
authored andcommitted
Fixed #35754 -- Mapped full-width characters in latex to half-width.
1 parent ccd6e13 commit 1f3f0cd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ answer newbie questions, and generally made Django that much better:
110110
Anubhav Joshi <[email protected]>
111111
Anvesh Mishra <[email protected]>
112112
Anže Pečar <[email protected]>
113+
A. Rafey Khan <[email protected]>
113114
Aram Dulyan
114115
115116
Arjun Omray <[email protected]>

docs/conf.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,12 @@ def django_release():
292292
\setmainfont{Symbola}
293293
""",
294294
"preamble": r"""
295-
\usepackage{newunicodechar}
296295
\usepackage[UTF8]{ctex}
296+
\xeCJKDeclareCharClass{HalfLeft}{"2018, "201C}
297+
\xeCJKDeclareCharClass{HalfRight}{
298+
"00B7, "2019, "201D, "2013, "2014, "2025, "2026, "2E3A
299+
}
300+
\usepackage{newunicodechar}
297301
\newunicodechar{π}{\ensuremath{\pi}}
298302
\newunicodechar{≤}{\ensuremath{\le}}
299303
\newunicodechar{≥}{\ensuremath{\ge}}

0 commit comments

Comments
 (0)