From c4b55778b71238a3a635b1f8510318fddde6fd2b Mon Sep 17 00:00:00 2001 From: Francesco Mecca Date: Mon, 24 Feb 2020 14:37:50 +0100 Subject: [PATCH] script conversione --- tesi/conv.py | 7 ++----- tesi/tesi.pdf | Bin 249740 -> 249740 bytes tesi/tesi_unicode.tex | 14 +++++++------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/tesi/conv.py b/tesi/conv.py index fe70105..3206322 100644 --- a/tesi/conv.py +++ b/tesi/conv.py @@ -35,11 +35,8 @@ def convert(ch, mathmode): return symbols[ch] if ch in symbols else ch # convert symbols except the one requiring math mode modifiers -# all passes produces a list of words that must be joined by ' '.join( ) -firstpass = ''.join([convert(*c) for c in read_by_char(argv[1])]).split(' ') -# secondpass = insert_math(''.join(firstpass).split(' ')) -# thirdpass = escape_outside_mathmode(firstpass) +firstpass = [convert(*c) for c in read_by_char(argv[1])] -newfile = ' '.join(firstpass) +newfile = ''.join(firstpass) with open(argv[2], 'w') as f: f.write(newfile) diff --git a/tesi/tesi.pdf b/tesi/tesi.pdf index 9ebe838e185cd0af5eb0a2c450d8cd1cd9d7137f..f8637f1b9ee82424935c9fb9fa4998ad5292db14 100644 GIT binary patch delta 106 zcmeB~&)+kjzoCV(g=q_O(`hDi!|5%jnH7Qb_T{IUA2K?-8kn0JIh#5g8(Ekd8oN0; f8arD$x>^`HTNs!-8CV$DDcBHFviym^v9anmL-98M_!enz