Format types based on Dictionary-Development-Kit script:
-v "10.11" $COMPATIBLE_VERS = ["10.5" "10.6" "10.11"]
- multi-section or 1-section
| рук{[']}а{[/']} | |
| [m1][c darkmagenta]-[']и[/'][/c], [p]вин.[/p] [c darkmagenta]р[']у[/']ку[/c], [p]мн.[/p] [c darkmagenta]р[']у[/']ки[/c], [p]дат.[/p] [c darkmagenta]рук[']а[/']м[/c], [p]ж.[/p][/m] | |
| [m1][b]1.[/b][/m] | |
| [m1]Каждая из двух верхних конечностей человека от плечевого сустава до кончиков пальцев.[/m] | |
| [m1][*][ex][i]Заложить руки за спину. Скрестить руки на груди.[/i][/ex][/*][/m] | |
| [m1][*]□[/*][/m] | |
| [m1][*][ex][i]∘ Корж залюбовался руками корейца. Мускулистые, голые по локоть, они отливали на солнце золотом.[/i] Диковский, Патриоты.[/ex][/*][/m] | |
| [m1]||[/m] | |
| [m1]Та же конечность от запястья до кончиков пальцев; кисть.[/m] | |
| [m1][*][ex][i]Взять в руку. Погладить рукой. Мыть руки перед едой.[/i][/ex][/*][/m] |
Format types based on Dictionary-Development-Kit script:
-v "10.11" $COMPATIBLE_VERS = ["10.5" "10.6" "10.11"]
| import json | |
| if __name__ == "__main__": | |
| c = 0 | |
| kml = """<?xml version="1.0" encoding="UTF-8"?> | |
| <kml xmlns="http://earth.google.com/kml/2.2"> | |
| <Document><Style id="placemark-red"> | |
| <IconStyle> | |
| <Icon> | |
| <href>https://omaps.app/placemarks/placemark-red.png</href> |
I propose dictionary creators to share their XDXF dictionaries. Just write a comment, that contains:
In this article I listed some common problems I encountered when I tried to use Freematics OBD-reader together with traccar device-tracking server. Both are open-source, thanks to which I was able to improve both and their cooperation.
Freematics: official repo and my fork.
traccar: official repo and my fork.
| import math | |
| def lks_2_latlon(x, y): | |
| # Ellipsoid model constants (actual values here are for WGS84) */ | |
| UTMScaleFactor = 0.9996 | |
| sm_a = 6378137.0 | |
| sm_b = 6356752.314 | |
| x -= 500000.0 | |
| # Pirmā atšķirība no WGS84 - Kilometriņš šurpu, kilometriņš turpu. |
| import xml.etree.ElementTree | |
| import djvu.decode as djvu | |
| import sys | |
| __author__ = 'soshial' | |
| ''' | |
| 1. export bookmarks from PDF using pdfminer: | |
| > python tools/dumppdf.py -T ~/book.pdf > ~/toc_pdf.xml | |
| 2. use current script to convert bookmarks (we need python-djvulibre), but it could be easily done without it (using pages, see http://www.ub-filosofie.ro/~solcan/wt/gnu/d/bdjv.html) |
| <?xml version="1.0"?> | |
| <scenarios xmlns="http://www.abbyy.com/FineReader/Shell/TaskAutomation/0"> | |
| <scenario name="Моя задача111"> | |
| <operation operationType="UseBatch" mode="loadOptions" batchOrOptionsPath="" checkAfterExecute="false" | |
| optionsMode="loadOptions"> | |
| <batchOptions xmlns="http://www.abbyy.com/FineReader/BatchOptions/0" hasLanguageDataBase="false"> | |
| <ocr options="OCRO_DetectTables,OCRO_DetectPictures" textType="STT_Normal" hilightLevel="SBEHL_Thorough" | |
| patternName="(Default)" patternMode="UPM_DontUseUserPattern"> | |
| <language type="" languages="French,RussianOldSpelling"/> | |
| </ocr> |
| import json,codecs | |
| session_text = codecs.open( "sessionstore.bak", "r", "utf-8" ).read() | |
| json = json.loads(session_text) | |
| for i in range(len(json['_closedWindows'][0]['tabs'])): | |
| print json['_closedWindows'][0]['tabs'][i]['entries'][-1]['url'] | |
| print 'done' |