Commit graph

195 commits

Author SHA1 Message Date
12a89f9560 add mode to tex formatters 2022-02-09 19:25:25 +01:00
e84030978c read in FormattingConfig correctly 2022-02-09 19:14:00 +01:00
8a6bfef421 add default macro file (forgotten earlier) 2022-02-09 18:02:57 +01:00
3e6f2f99c3 rework format method to support multiple output files 2022-02-09 18:02:41 +01:00
6798962880 correct file extension handling for simple tex formatters 2022-02-09 17:42:56 +01:00
7a3fded422 implement naming scheme 2022-02-09 17:31:06 +01:00
65d2df0aa6 fix macro replacement bugs: basic macro replacement now working 2022-02-09 17:22:38 +01:00
1f9825e937 fix some formatting issues with headers 2022-02-09 16:24:02 +01:00
190ff1a339 split up postprocessing of lines and shipout. add trailing % characters for latex2e packages 2022-02-09 15:59:11 +01:00
b4526f5d0c adapt usage of macros to new attribute dict 2022-02-09 15:46:10 +01:00
5c244f2680 better error checking 2022-02-09 15:39:36 +01:00
c2e2a3fad5 add attribute dict to pytex formatters to query attributes used in formatting 2022-02-09 15:38:01 +01:00
7b689255bc integrate git version info into formatters 2022-02-09 14:08:51 +01:00
c3b4a87b51 implement getting git version info 2022-02-09 13:35:38 +01:00
209829ffe3 better cleaning functions / add documentation 2022-02-09 12:38:40 +01:00
591e6533b4 reorganize git versioning types
clean dict also recursively in lists
2022-02-09 12:26:24 +01:00
1e8fe43131 refactor git version info into own file 2022-02-09 12:06:15 +01:00
c04897c26c fix parsing tex type and flavour 2022-02-09 11:55:18 +01:00
5a5f0ef1e4 move macro-related enums. add attributes to pytex formatters 2022-02-09 11:49:14 +01:00
3f25502be4 add properties for tex type and flavour 2022-02-09 11:39:58 +01:00
180eae4f12 fix bug with line stream 2022-02-09 11:26:01 +01:00
410bf3d519 set up version info after build 2022-02-09 01:22:25 +01:00
1bcd6040fb fix some small bugs: main building mechanism now working 2022-02-09 00:13:34 +01:00
ec26ec232f add newline after header 2022-02-08 23:54:38 +01:00
2222e20e47 fix some bugs in formatters 2022-02-08 23:54:29 +01:00
25935f4350 fix bug in GenericText 2022-02-08 23:45:55 +01:00
096bfd2ae2 update builder 2022-02-08 23:34:29 +01:00
5f8411d907 fix missing property decorators 2022-02-08 23:34:18 +01:00
7318c9380d add typing annotation 2022-02-08 23:34:04 +01:00
288d2cdef4 extend hashing method 2022-02-08 23:33:52 +01:00
80036d3dda fix bugs in GenericText 2022-02-08 23:33:43 +01:00
189e0178c4 implement parts of builder 2022-02-08 21:57:30 +01:00
0423cb5de8 better root dir management 2022-02-08 19:40:41 +01:00
b00e62c017 add setters for properties 2022-02-08 19:24:48 +01:00
4aaec9fc3d use correct VersionInfo 2022-02-08 19:15:26 +01:00
3571d409f0 fix some bugs, more type annotations 2022-02-08 19:01:18 +01:00
92e69a0d77 let pytex source files auto select formatter if not given 2022-02-08 18:31:36 +01:00
f89ccf245b add auto formatter choosing 2022-02-08 18:26:25 +01:00
a0dbb3882e fix some type errors 2022-02-08 17:40:08 +01:00
6cd8d9655d fix future config handling, use abstract classes 2022-02-08 17:21:36 +01:00
1a6989734e implement simple tex formatter 2022-02-08 17:04:16 +01:00
b69019d814 fix some type errors 2022-02-08 16:39:20 +01:00
237203b149 fix some type errors 2022-02-08 16:34:59 +01:00
582d6670b8 fix some type errors 2022-02-08 16:24:42 +01:00
91bcb64be5 fix type issues 2022-02-08 16:09:56 +01:00
ad39decb39 implement VersionInfo 2022-02-08 00:33:45 +01:00
e93e69d771 implement VersionInfo 2022-02-08 00:33:29 +01:00
b53b3be39a fix bug with version info 2022-02-08 00:24:25 +01:00
7d8f33294f add todos 2022-02-07 23:38:32 +01:00
d28205311c implement getting pytex files 2022-02-07 23:33:32 +01:00
dd65ab626b start implementing build (still failing) 2022-02-07 23:12:17 +01:00
41a7eb2c20 fix imports 2022-02-07 22:28:13 +01:00
13b5aa0d2a add proper version info object 2022-02-07 22:24:14 +01:00
f5c1a6c0c3 add hashing 2022-02-07 22:01:43 +01:00
d08637eeba add dependencies to a formatterIF 2022-02-07 22:01:31 +01:00
b3eb6f2a90 adjust set_from_json method and make GitVersionInfo a config object 2022-02-07 21:42:31 +01:00
c83f24798e refactor files and rework git version info into a Config file 2022-02-07 21:18:47 +01:00
07280ce9f2 remove unnecessary files 2022-02-07 21:03:59 +01:00
3af968470d add TODO 2022-02-07 21:00:51 +01:00
e68fcb6550 add root dir to pytex builder 2022-02-07 19:00:25 +01:00
94b5f28567 optimize imports and reformat files 2022-02-07 18:36:30 +01:00
3dfb889728 fix some bugs in parsing 2022-02-07 18:33:00 +01:00
fd54e5221a implement i/o of pytex config 2022-02-07 18:06:19 +01:00
08c9ac19bc better imports 2022-02-07 17:45:35 +01:00
4557f282ce add i/o methods to build dir specification / make it a config 2022-02-07 17:43:23 +01:00
bcae59052c rename license -> license_ 2022-02-07 17:33:45 +01:00
6766b0405b move config to own file 2022-02-07 17:33:00 +01:00
d8c365b3ae move config to own file 2022-02-07 17:32:46 +01:00
2f335e39fa move some methods of FormattingConfig to general Config type 2022-02-07 17:28:09 +01:00
225cd19788 add setters to build dir spec 2022-02-07 17:18:10 +01:00
fde1aff4f5 rename license -> license_ 2022-02-07 17:10:12 +01:00
cbd7ac3d1a finish implementing reading from yaml / json 2022-02-07 01:15:14 +01:00
51bf833e1f fix some bugs with reading config and merging dictionaries 2022-02-07 01:09:05 +01:00
d1a87b5356 fix some bugs 2022-02-07 00:42:03 +01:00
9d68c5cd9f simplify config before dumping 2022-02-07 00:21:16 +01:00
fb9a6a8471 fix writing to json and yaml 2022-02-07 00:04:31 +01:00
d37fbe1c76 dump 2022-02-06 23:53:07 +01:00
d49b845039 remove bad import 2022-02-06 23:53:01 +01:00
d1ed1718c4 add to generic text. dump formatting config to json 2022-02-06 23:52:44 +01:00
cfc6be9cd6 add setters to formatting config 2022-02-06 22:58:43 +01:00
f84a9e53ab change handling of license to GenericText 2022-02-06 22:37:41 +01:00
a49c9f7d1b add dependencies attributes 2022-02-06 22:34:43 +01:00
fdcf03eb3d add build time attribute 2022-02-06 22:30:08 +01:00
75c528c3df add path method 2022-02-06 22:20:28 +01:00
a8303cae45 add git management file 2022-02-06 21:27:19 +01:00
426e5a7d66 make config class a better interface 2022-02-06 21:26:55 +01:00
66b597d90c refactor formatting config to exclude git version info 2022-02-06 21:25:52 +01:00
85a32a19cc fix builder class 2022-02-06 20:43:49 +01:00
6d219f00fa dump tmp changes 2022-02-06 20:39:27 +01:00
f2fc8a832d start working on pytex builder 2022-02-06 20:39:17 +01:00
6bef2a82e6 make pytex file more flexible 2022-02-06 20:38:51 +01:00
4928694212 make pytex file more flexible 2022-02-06 20:38:46 +01:00
d6b9f95efb add pytex config 2022-02-06 20:38:14 +01:00
fd7d49c0a6 reformat file 2022-02-06 19:40:41 +01:00
b7aaa974d2 add more formatters 2022-02-06 19:40:14 +01:00
8e8d2a56c6 implement basic macros 2022-02-06 19:36:37 +01:00
79fc7b5217 add header in tex formatter 2022-02-06 18:51:49 +01:00
94516b4bbb remove prefix from config 2022-02-06 18:39:34 +01:00
1094fce0a4 implement general interface for tex formatters 2022-02-06 18:34:39 +01:00
9ae70fae13 add LineStream class 2022-02-06 18:12:30 +01:00