Skip to content

Commit

Permalink
Merge pull request #92 from Kolaru/greek_capital
Browse files Browse the repository at this point in the history
Fix greek letters
  • Loading branch information
Kolaru authored Nov 21, 2022
2 parents 81c6dad + 7505094 commit 3a489ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion reference/references.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ inputs["symbols"] = [
L"\alpha \beta \gamma \delta \epsilon \omega \theta \phi \varphi \psi",
L"\Gamma \Delta \Omega \Theta \Phi \Psi",
L"\nabla \rightarrow \neq \leq \hbar",
L"\text{phi} \rightarrow \phi \quad \text{varphi} \rightarrow \varphi"
L"\text{phi} \rightarrow \phi \quad \text{varphi} \rightarrow \varphi",
L"\text{epsilon} \rightarrow \epsilon \quad \text{varepsilon} \rightarrow \varepsilon"
]

inputs["underover"] = [
Expand Down
10 changes: 3 additions & 7 deletions src/engine/new_computer_modern_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ _latex_to_new_computer_modern = Dict(
raw"\varepsilon" => 3378,
raw"\vartheta" => 3379,
raw"\varkappa" => 3380,
raw"\varphi" => 3381,
raw"\varphi" => 3373,
raw"\varrho" => 3382,
raw"\varpi" => 3383,

raw"\epsilon" => 3356,
raw"\theta" => 3359,
raw"\kappa" => 3361,
raw"\phi" => 3373,
raw"\phi" => 3381,
raw"\rho" => 3368,
raw"\pi" => 3367
)
Expand All @@ -32,14 +32,10 @@ for (symbol, glyph_id) in _latex_to_new_computer_modern
_symbol_to_new_computer_modern[symbol] = (cmmath_fontpath, glyph_id)
end

# Standard hreek symbols : thin and italic
# Standard lowercase greek symbols : thin and italic
for i in 0:24
capital = 'Α' + i
small = 'α' + i

if !haskey(_symbol_to_new_computer_modern, capital)
_symbol_to_new_computer_modern[capital] = (cmmath_fontpath, 3326 + i)
end
if !haskey(_symbol_to_new_computer_modern, small)
_symbol_to_new_computer_modern[small] = (cmmath_fontpath, 3352 + i)
end
Expand Down

0 comments on commit 3a489ea

Please sign in to comment.