-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Info attributes to ascii class files
Now all ascii files will contain the info attributes. This enables the class to dynamically add attributes based on the content of Sile._info_attributes_. Each of those entries will be converted to a regex Pattern and will process on each read line by patching the instance readline function. This is very crude, and might be slow for very big files with lots of attributes, perhaps it can be streamlined a bit by removing those attributes which are static and already found (or perhaps all non-updatable attributes will be removed for searching once the full file has been processed). It proves quite simple to use and makes the code look prettier and more readable. But the internals are a bit messy. Signed-off-by: Nick Papior <[email protected]>
- Loading branch information
Showing
3 changed files
with
212 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters