Commit graph

138 commits

Author SHA1 Message Date
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
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
5f8411d907 fix missing property decorators 2022-02-08 23:34:18 +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
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
13b5aa0d2a add proper version info object 2022-02-07 22:24:14 +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
3af968470d add TODO 2022-02-07 21:00:51 +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
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
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
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
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
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
a5a3ec0dfa add description attribute to formatting config 2022-02-06 16:52:24 +01:00
6a09adac85 implement dict formatter 2022-02-06 16:50:09 +01:00
0f912b6c2f add header formatting method 2022-02-06 16:08:05 +01:00
b9fd9f0e25 implement config parsing of pytex files in pytex formatter class 2022-02-06 16:04:11 +01:00
68d908c4f2 add escape char attribute 2022-02-06 15:36:12 +01:00
ed491be8ca implement better generic text and part of header method 2022-02-06 15:28:04 +01:00
ea81305e36 bugfix 2022-02-06 15:12:40 +01:00
4e1eee2c8c formatter 2022-02-06 15:12:05 +01:00
12de6e43cb start tex formatter 2022-02-06 15:11:34 +01:00
2ee175784b start dict formatter 2022-02-06 15:10:38 +01:00
5ede703131 start pytex formatter 2022-02-06 15:10:28 +01:00
19ed77fd38 rename generic text method 2022-02-06 15:10:00 +01:00
3fd9ab1049 move git version info 2022-02-06 15:09:49 +01:00
eccf857d19 better formatting config properties 2022-02-06 15:09:25 +01:00
406bf0bf7d move enums 2022-02-06 00:12:54 +01:00
c669b15fc9 better decorator 2022-02-06 00:02:59 +01:00
1688463e96 add experimental decorator 2022-02-05 23:54:45 +01:00
5f4d9a8cc0 extend formatting config 2022-02-05 22:40:10 +01:00
e1dc1e367a add generic text class 2022-02-05 22:37:09 +01:00
15dd058f73 fix some circular imports 2022-02-05 19:36:42 +01:00
1ab35ed7c9 refactor / rename files into different project structure 2022-02-05 19:09:09 +01:00