1.1 --- a/moinformat/input/common.py Mon Aug 13 22:54:01 2018 +0200
1.2 +++ b/moinformat/input/common.py Tue Aug 14 22:33:30 2018 +0200
1.3 @@ -28,12 +28,15 @@
1.4
1.5 default_encoding = "utf-8"
1.6
1.7 - def __init__(self, parameters=None):
1.8 + def __init__(self, metadata):
1.9 +
1.10 + "Initialise the input context with the given 'metadata'."
1.11
1.12 - "Initialise the input context with the optional 'parameters'."
1.13 + self.metadata = metadata
1.14
1.15 - self.parameters = parameters or {}
1.16 - self.encoding = self.parameters.get("encoding") or self.default_encoding
1.17 + # Obtain essential metadata.
1.18 +
1.19 + self.encoding = metadata.get("input_encoding", self.default_encoding)
1.20
1.21 def all(self):
1.22