Skip to content

Commit

Permalink
Merge pull request #282 from TheoChem-VU/281-missing-characters-in-re…
Browse files Browse the repository at this point in the history
…portcharacter

Added missing characters in `report.character`
YHordijk authored Jul 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents e670c7d + fa07e38 commit 5fc7749
Showing 3 changed files with 207 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tcutility/__init__.py
Original file line number Diff line number Diff line change
@@ -14,4 +14,4 @@ def ensure_2d(x, transposed=False):
return x


from tcutility import constants, formula, geometry, log, molecule, results, slurm, data, analysis # noqa: F401, E402
from tcutility import constants, formula, geometry, log, molecule, results, slurm, data, analysis, report # noqa: F401, E402
205 changes: 205 additions & 0 deletions src/tcutility/report/_char_widths.txt
Original file line number Diff line number Diff line change
@@ -60,6 +60,43 @@ calibri 6 0.7412109375
calibri 7 0.7412109375
calibri 8 0.7412109375
calibri 9 0.7412109375
calibri ⁰ 0.37109375
calibri ¹ 0.4443359375
calibri ² 0.4443359375
calibri ³ 0.4443359375
calibri ⁴ 0.3701171875
calibri ⁵ 0.3701171875
calibri ⁶ 0.37109375
calibri ⁷ 0.3701171875
calibri ⁸ 0.37109375
calibri ⁹ 0.3701171875
calibri ⁺ 0.3896484375
calibri ⁻ 0.2216796875
calibri ⁼ 0.3896484375
calibri ⁽ 0.2216796875
calibri ⁾ 0.2216796875
calibri ⁿ 0.37109375
calibri ⁱ 0.1484375
calibri ₀ 0.37109375
calibri ₁ 0.37109375
calibri ₂ 0.3701171875
calibri ₃ 0.3701171875
calibri ₄ 0.3701171875
calibri ₅ 0.3701171875
calibri ₆ 0.37109375
calibri ₇ 0.3701171875
calibri ₈ 0.37109375
calibri ₉ 0.3701171875
calibri ₊ 0.3896484375
calibri ₋ 0.2216796875
calibri ₌ 0.3896484375
calibri ₍ 0.2216796875
calibri ₎ 0.2216796875
calibri ₐ 0.37109375
calibri ₑ 0.37109375
calibri ₒ 0.37109375
calibri ₓ 0.3330078125
calibri ₔ 0.37109375
calibri α 0.814453125
calibri β 0.814453125
calibri γ 0.7412109375
@@ -118,13 +155,17 @@ calibri { 0.4453125
calibri } 0.4453125
calibri [ 0.3701171875
calibri ] 0.3701171875
calibri ( 0.4443359375
calibri ) 0.4443359375
calibri + 0.7783203125
calibri - 0.4443359375
calibri _ 0.7412109375
calibri = 0.7783203125
calibri ^ 0.6259765625
calibri : 0.3701171875
calibri ; 0.3701171875
calibri % 1.185546875
calibri * 0.5185546875
calibri 0.3701171875
arial a 0.7412109375
arial b 0.7412109375
@@ -188,6 +229,43 @@ arial 6 0.7412109375
arial 7 0.7412109375
arial 8 0.7412109375
arial 9 0.7412109375
arial ⁰ 0.5625
arial ¹ 0.4443359375
arial ² 0.4443359375
arial ³ 0.4443359375
arial ⁴ 0.5625
arial ⁵ 0.5625
arial ⁶ 0.5625
arial ⁷ 0.5625
arial ⁸ 0.5625
arial ⁹ 0.5625
arial ⁺ 0.5625
arial ⁻ 0.5625
arial ⁼ 0.5625
arial ⁽ 0.30078125
arial ⁾ 0.30078125
arial ⁿ 0.486328125
arial ⁱ 0.2890625
arial ₀ 0.5625
arial ₁ 0.5625
arial ₂ 0.5625
arial ₃ 0.5625
arial ₄ 0.5625
arial ₅ 0.5625
arial ₆ 0.5625
arial ₇ 0.5625
arial ₈ 0.5625
arial ₉ 0.5625
arial ₊ 0.5625
arial ₋ 0.5625
arial ₌ 0.5625
arial ₍ 0.30078125
arial ₎ 0.30078125
arial ₐ 0.49609375
arial ₑ 0.4951171875
arial ₒ 0.5029296875
arial ₓ 0.4375
arial ₔ 0.4951171875
arial α 0.7705078125
arial β 0.7666015625
arial γ 0.6669921875
@@ -246,13 +324,17 @@ arial { 0.4453125
arial } 0.4453125
arial [ 0.3701171875
arial ] 0.3701171875
arial ( 0.4443359375
arial ) 0.4443359375
arial + 0.7783203125
arial - 0.4443359375
arial _ 0.7412109375
arial = 0.7783203125
arial ^ 0.6259765625
arial : 0.3701171875
arial ; 0.3701171875
arial % 1.185546875
arial * 0.5185546875
arial 0.3701171875
times_new_roman a 0.591796875
times_new_roman b 0.6669921875
@@ -316,6 +398,43 @@ times_new_roman 6 0.6669921875
times_new_roman 7 0.6669921875
times_new_roman 8 0.6669921875
times_new_roman 9 0.6669921875
times_new_roman ⁰ 0.5625
times_new_roman ¹ 0.3994140625
times_new_roman ² 0.3994140625
times_new_roman ³ 0.3994140625
times_new_roman ⁴ 0.5625
times_new_roman ⁵ 0.5625
times_new_roman ⁶ 0.5625
times_new_roman ⁷ 0.5625
times_new_roman ⁸ 0.5625
times_new_roman ⁹ 0.5625
times_new_roman ⁺ 0.5625
times_new_roman ⁻ 0.5625
times_new_roman ⁼ 0.5625
times_new_roman ⁽ 0.30078125
times_new_roman ⁾ 0.30078125
times_new_roman ⁿ 0.419921875
times_new_roman ⁱ 0.2890625
times_new_roman ₀ 0.5625
times_new_roman ₁ 0.5625
times_new_roman ₂ 0.5625
times_new_roman ₃ 0.5625
times_new_roman ₄ 0.5625
times_new_roman ₅ 0.5625
times_new_roman ₆ 0.5625
times_new_roman ₇ 0.5625
times_new_roman ₈ 0.5625
times_new_roman ₉ 0.5625
times_new_roman ₊ 0.5625
times_new_roman ₋ 0.5625
times_new_roman ₌ 0.5625
times_new_roman ₍ 0.30078125
times_new_roman ₎ 0.30078125
times_new_roman ₐ 0.3642578125
times_new_roman ₑ 0.341796875
times_new_roman ₒ 0.3837890625
times_new_roman ₓ 0.38671875
times_new_roman ₔ 0.341796875
times_new_roman α 0.6982421875
times_new_roman β 0.677734375
times_new_roman γ 0.5888671875
@@ -374,13 +493,17 @@ times_new_roman { 0.6396484375
times_new_roman } 0.6396484375
times_new_roman [ 0.4443359375
times_new_roman ] 0.4443359375
times_new_roman ( 0.4443359375
times_new_roman ) 0.4443359375
times_new_roman + 0.751953125
times_new_roman - 0.4443359375
times_new_roman _ 0.6669921875
times_new_roman = 0.751953125
times_new_roman ^ 0.6259765625
times_new_roman : 0.3701171875
times_new_roman ; 0.3701171875
times_new_roman % 1.1103515625
times_new_roman * 0.6669921875
times_new_roman 0.3330078125
helvetica a 0.7412109375
helvetica b 0.7412109375
@@ -444,6 +567,43 @@ helvetica 6 0.7412109375
helvetica 7 0.7412109375
helvetica 8 0.7412109375
helvetica 9 0.7412109375
helvetica ⁰ 0.37109375
helvetica ¹ 0.4443359375
helvetica ² 0.4443359375
helvetica ³ 0.4443359375
helvetica ⁴ 0.3701171875
helvetica ⁵ 0.3701171875
helvetica ⁶ 0.37109375
helvetica ⁷ 0.3701171875
helvetica ⁸ 0.37109375
helvetica ⁹ 0.3701171875
helvetica ⁺ 0.3896484375
helvetica ⁻ 0.2216796875
helvetica ⁼ 0.3896484375
helvetica ⁽ 0.2216796875
helvetica ⁾ 0.2216796875
helvetica ⁿ 0.37109375
helvetica ⁱ 0.1484375
helvetica ₀ 0.37109375
helvetica ₁ 0.37109375
helvetica ₂ 0.3701171875
helvetica ₃ 0.3701171875
helvetica ₄ 0.3701171875
helvetica ₅ 0.3701171875
helvetica ₆ 0.37109375
helvetica ₇ 0.3701171875
helvetica ₈ 0.37109375
helvetica ₉ 0.3701171875
helvetica ₊ 0.3896484375
helvetica ₋ 0.2216796875
helvetica ₌ 0.3896484375
helvetica ₍ 0.2216796875
helvetica ₎ 0.2216796875
helvetica ₐ 0.37109375
helvetica ₑ 0.37109375
helvetica ₒ 0.37109375
helvetica ₓ 0.3330078125
helvetica ₔ 0.37109375
helvetica α 0.814453125
helvetica β 0.814453125
helvetica γ 0.7412109375
@@ -502,13 +662,17 @@ helvetica { 0.4453125
helvetica } 0.4453125
helvetica [ 0.3701171875
helvetica ] 0.3701171875
helvetica ( 0.4443359375
helvetica ) 0.4443359375
helvetica + 0.7783203125
helvetica - 0.4443359375
helvetica _ 0.7412109375
helvetica = 0.7783203125
helvetica ^ 0.6259765625
helvetica : 0.3701171875
helvetica ; 0.3701171875
helvetica % 1.185546875
helvetica * 0.5185546875
helvetica 0.3701171875
garamond a 0.7412109375
garamond b 0.7412109375
@@ -572,6 +736,43 @@ garamond 6 0.7412109375
garamond 7 0.7412109375
garamond 8 0.7412109375
garamond 9 0.7412109375
garamond ⁰ 0.37109375
garamond ¹ 0.4443359375
garamond ² 0.4443359375
garamond ³ 0.4443359375
garamond ⁴ 0.3701171875
garamond ⁵ 0.3701171875
garamond ⁶ 0.37109375
garamond ⁷ 0.3701171875
garamond ⁸ 0.37109375
garamond ⁹ 0.3701171875
garamond ⁺ 0.3896484375
garamond ⁻ 0.2216796875
garamond ⁼ 0.3896484375
garamond ⁽ 0.2216796875
garamond ⁾ 0.2216796875
garamond ⁿ 0.37109375
garamond ⁱ 0.1484375
garamond ₀ 0.37109375
garamond ₁ 0.37109375
garamond ₂ 0.3701171875
garamond ₃ 0.3701171875
garamond ₄ 0.3701171875
garamond ₅ 0.3701171875
garamond ₆ 0.37109375
garamond ₇ 0.3701171875
garamond ₈ 0.37109375
garamond ₉ 0.3701171875
garamond ₊ 0.3896484375
garamond ₋ 0.2216796875
garamond ₌ 0.3896484375
garamond ₍ 0.2216796875
garamond ₎ 0.2216796875
garamond ₐ 0.37109375
garamond ₑ 0.37109375
garamond ₒ 0.37109375
garamond ₓ 0.3330078125
garamond ₔ 0.37109375
garamond α 0.814453125
garamond β 0.814453125
garamond γ 0.7412109375
@@ -630,11 +831,15 @@ garamond { 0.4453125
garamond } 0.4453125
garamond [ 0.3701171875
garamond ] 0.3701171875
garamond ( 0.4443359375
garamond ) 0.4443359375
garamond + 0.7783203125
garamond - 0.4443359375
garamond _ 0.7412109375
garamond = 0.7783203125
garamond ^ 0.6259765625
garamond : 0.3701171875
garamond ; 0.3701171875
garamond % 1.185546875
garamond * 0.5185546875
garamond 0.3701171875
2 changes: 1 addition & 1 deletion src/tcutility/report/_generate_font_widths.py
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
'garamond',
]

characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ.,/?<>{}[]+-_=^:; '
characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔαβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ.,/?<>{}[]()+-_=^:;%* '

script = """
const jsdom = require("jsdom");

0 comments on commit 5fc7749

Please sign in to comment.