Mensor demoLaunch mensor

Mensor is a tiny PWA web app, derived from software I created some years ago to provide measurement units conversion and detection in the context of a digital epigraphical edition. Recently, I rewrote it using the latest technologies, as it was a good candidate to provide a demo for didactic purposes.

This sample shows how a modern web app works, providing pure HTML, CSS, and Javascript, which no more represent a hypertext document, but rather a highly interactive user interface. In this case, I chose this sample to demonstrate how a complete app can be self-contained using just these technologies. In less trivial scenarios, such apps use a web API backend to do their job, but here everything happens inside the client device, once the app has been loaded.

To start with Mensor:

  1. in source value, enter the numeric value you want to convert.
  2. use the filters to narrow the list of available measurement units, so you can pick the source unit and one or more target units. Units are first of all grouped into 4 families: linear, surface, weight, capacity. Once you have selected your family, you can filter the list by any of the following parameters:
    group: a coherent group of units. Pick the one you want from the drop-down list, or just leave (any group).
    culture: the culture the units belong to. Pick the one you want from the drop-down list, or just leave (any culture).
    name: enter any part of the unit name (or alternate name).
  3. once you have found the desired unit, set it as the source unit by clicking the checkmark button, or add it to the target units by clicking the plus button.
  4. you can collapse the unit picker, to focus on the conversion results.
  5. whenever you change the source unit value, all the corresponding values in the target units will be shown. Also, below the results list a multiples list may appear. This is the list of all the units which, among the target units, have the chance to be multiples or sub-multiples of the source unit value. This can be useful when you have a measurement value and you want to quickly find out whether it’s a multiple or sub-multiple of a specific set of measurement units. For instance, say you have a Roman inscription with a length of 29.7 cm: this is probably a “round” value for the Roman world, insofar as there the pes is a linear unit corresponding to 29 cm. Thus, if you have selected a set of Roman units in which the pes appears, the value 29.7 will be listed among the multiples of the pes.

Demo Directory