Skip to content

OperaVaria/unit-converter-web

Repository files navigation

Mértékegységváltó a történeti tudományok számára – webalkalmazás

E webalkalmazás egy könnyen használható átváltó történelmi mértékegységek számára. Célja, hogy segítse mind a kutatókat, mind az eligazodni vágyókat a múlt mértékegységeinek konvertálásában. Szemben az interneten elérhető más átváltókkal, jelen projektben minden információ megbízható szakirodalmi forrásból származik, eredetük a mértékegység-adatbázisban részletesen jelölve van és ellenőrizhető. A felületen megjelenő rövid információk ellátják a felhasználót a kiválasztott mértékegységek és mértékegységrendszerek alapvető kontextusával. Az alkalmazás elérhető magyar és angol felülettel egyaránt.

Adatbázis

Az adatbázis pillanatnyilag főképp a történelmi Ausztriához és Magyarországhoz kapcsolódó mértékegységrendszereket tartalmaz, csakúgy, mint az ókori görög és római mértékeket; ugyanakkor bármely mértékegységrendszer bevezethető, ezek hozzáadása folyamatos. Minden modern metrikus és lényegi angolszász mértékegység szerepel viszonyítás végett. Az adatbázis tartalma külön hozzáférhető a "database" mappában sqlite, csv és json formátumban egyaránt. Az ógörög szavak átírásakor az úgynevezett "tudományos" átírást alkalmaztuk.

Technikai háttér

Projektünk a Flask web frameworkre épül, Python backenddel és hagyományos, reszponzív HTML-CSS-JS frontenddel. Az extra funkcionalitás a következő Flask kiegészítőkkel valósult meg:

A frontend elkészítéséhez külső weboldal-sablon nem került felhasználásra. Az egyedi legördülő menük a Choices.js plugin integrálásával készültek. Az alkalmazás a HTML oldalak generálásában nagyban támaszkodik a Jinja sablon motorra, a lehető legoptimálisabb weboldal-kódolás elérése érdekében. A mértékegység-adatbázis az SQLite adatbázismotor segítségével épült.

E projekt a korábbi, Python asztali alkalmazásunk online implementációja és továbbfejlesztése.

Unit Converter for Historical Studies - web application

This web application is an easy-to-use converter for historical measurement units. Its aim is to assist both researchers and regular users with the conversion of units from the past. Contrary to other converters available on the internet, in the present project all information is derived from reliable literature, their source is duly noted and verifiable in the unit database. Short information notices on the interface provide the user with the basic context of the selected unit or unit system. The application is available with both English and Hungarian interfaces.

Database

Currently the database features mostly unit systems connected to the historical Austria and Hungary, as well as the Ancient Greek and Roman measurements; however any unit system can be implemented, their addition is continuous. All modern metric and relevant Anglo-American units are present for reference. The contents of the database are accessible separately in the "database" folder in either sqlite, csv, or json formats. The Ancient Greek words were transliterated following the ALA-LC romanization standard.

Technical background

Our project is built on the Flask web framework, with a Python backend and a conventional, responsive HTML-CSS-JS frontend. Extra functionality has been added with the following Flask extensions:

No external website templates were utilized for the creation of the front-end. The custom drop-down menus were made with the integration of the Choices.js plugin. The application relies greatly on the Jinja template engine in generating the HTML pages to achieve the most optimal website coding. The unit database was built with the aid of the SQLite database engine.

This project is the improved version and online implementation of our previous, Python desktop application.

Egyéb információk - Other Information

Tesztelve/Tested on: Firefox 123.0, Google Chrome 122.0 (Windows 11 and Android ver.)

Favicon: "Scale Unbalanced" by Templarian from SVG Repo, PD Licence.

Elérhetőség/Contact

License: GPL v3