Use it with KindleGen
kindlegen dic.opf
| #!/usr/bin/env python | |
| # Copyright (c) 2017 Kurt Jacobson | |
| # License: https://kcj.mit-license.org/@2017 | |
| import cairo | |
| import gi | |
| gi.require_version('Gtk', '3.0') | |
| gi.require_version('Gdk', '3.0') |
| <bookmarks> | |
| <group name="root"> | |
| <group name="ETHNIC / FOLK / SPIRITUAL MUSIC"> | |
| <bookmark name="Indian Folk/Ethnic" url="http://79.111.14.76:9021/"/> | |
| <bookmark name="Russian Folk Music" url="http://79.120.77.11:9057/"/> | |
| <bookmark name="Православная Духовная Музыка" url="http://79.111.14.76:9127/"/> | |
| <bookmark name="Flamenco" url="http://79.111.14.76:9055/"/> | |
| <bookmark name="Tango" url="http://79.120.39.202:9117/"/> | |
| <bookmark name="Middle East Music" url="http://79.111.119.111:9133/"/> | |
| <bookmark name="Celtic Music" url="http://79.111.14.76:9087/"/> |
| -- Allow changing a property with by zoom-adjusted amount | |
| function zoom_invariant_add(prop, amt) | |
| amt = amt / 2 ^ mp.get_property_number("video-zoom") | |
| mp.set_property_number(prop, mp.get_property_number(prop) + amt) | |
| end | |
| -- Resets the pan if the entire image would be visible | |
| function zoom_check_center() | |
| local zoom = mp.get_property_number("video-zoom") | |
| local rot = mp.get_property_number("video-rotate") * math.pi / 180 |
| -- ZOOM | |
| function zoom_in() | |
| zoom = mp.get_property("video-zoom") | |
| zoom_to = zoom + 0.1 | |
| mp.set_property("video-zoom", zoom_to) | |
| end | |
| function zoom_out() | |
| zoom = mp.get_property("video-zoom") | |
| zoom_to = zoom - 0.1 | |
| mp.set_property("video-zoom", zoom_to) |
| #!/bin/bash | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2015 | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
Use it with KindleGen
kindlegen dic.opf