{"id":494809,"date":"2026-09-16T05:53:29","date_gmt":"2026-09-16T05:53:29","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=494809"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=494809","title":{"rendered":"\u041a\u0430\u043a \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c DOCM \u0432 DOCX: \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u043e\u0442 \u0431\u044b\u043b\u043e \u0443 \u0412\u0430\u0441 \u0442\u0430\u043a\u043e\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 <strong>Python<\/strong> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443, \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Microsoft Word \u0438 COM-\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043d\u0435\u0442-\u043d\u0435\u0442 \u0434\u0430 \u0438 \u043f\u0440\u0438\u0434\u0435\u0442 \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c docm? \u0412\u0435\u0434\u044c \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c, \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Python \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f (\u0438, \u0447\u0442\u043e \u0433\u0440\u0435\u0445\u0430 \u0442\u0430\u0438\u0442\u044c, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f) \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u2013 <strong>python-docx<\/strong>. \u0410 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 docx-\u0444\u0430\u0439\u043b\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c Word \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u043c\u044b \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u043c \u2013 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b (\u043f\u0440\u043e\u0448\u0443 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u044c\u044e, \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2013 \u043b\u0443\u0447\u0448\u0435 \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0442\u044c). \u041c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044f \u0441 \u043d\u0438\u043c \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c GUI \u0447\u0435\u0440\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong>pywinauto<\/strong> \u0438 <strong>pyautogui<\/strong>, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e: \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u2013 \u043d\u0430\u0447\u0438\u043d\u0430\u0439 \u0441\u043d\u0430\u0447\u0430\u043b\u0430\u2026 <\/p>\n<p>\u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443, \u043c\u0435\u0436 \u0442\u0435\u043c, \u043d\u0435\u0442 \u0434\u0435\u043b\u0430 \u0434\u043e \u043d\u0430\u0448\u0438\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439: \u0435\u0433\u043e \u0444\u0430\u0439\u043b(\u044b) \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 <em>\u0434\u043e\u043b\u0436\u0435\u043d<\/em> \u0443\u043c\u0435\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, doc-\u0444\u0430\u0439\u043b\u044b \u0443\u0436\u0435 \u043d\u0435 \u0432 \u0445\u043e\u0434\u0443, \u0438\u043d\u0430\u0447\u0435 \u0431\u044b \u0434\u0430\u043b\u044c\u0448\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435 \u043e \u0447\u0435\u043c.<\/p>\n<p>\u0422\u0430\u043a \u0432\u043e\u0442, \u043f\u0430\u043c\u044f\u0442\u0443\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0438 \u0444\u043e\u0440\u043c\u0430\u0442 docx, \u0438 \u0444\u043e\u0440\u043c\u0430\u0442 docm \u2013 \u0441\u0443\u0442\u044c \u0430\u0440\u0445\u0438\u0432\u044b xml-\u0444\u0430\u0439\u043b\u043e\u0432 (\u0434\u0430, \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u043a\u0438\u0435 .rels, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043d\u0438 \u2013 \u0442\u0435 \u0436\u0435 xml\u2019\u043a\u0438), \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c: \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435? \u0412\u043e\u0442 \u043f\u0440\u044f\u043c \u0437\u0430\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u044c \u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?<\/p>\n<p>\u0421\u043a\u0430\u0437\u0430\u043d\u043e \u2013 \u0441\u0434\u0435\u043b\u0430\u043d\u043e! \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">import osimport zipfileimport redef docm2docx_convert(input_file: str, output_file: str, info=False) -&gt; bool:    \"\"\"    \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 docm-\u0444\u0430\u0439\u043b\u0430 \u0432 docx (\u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f)        \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:        input_file: str - \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u043e\u043c\u0443 docm-\u0444\u0430\u0439\u043b\u0443        output_file: str - \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 docx-\u0444\u0430\u0439\u043b\u0443        info: bool - \u0444\u043b\u0430\u0433 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f    \"\"\"    if str(input_file).lower()[-4:] != 'docm':        if info:            print(f'{os.path.basename(input_file)} - \u044d\u0442\u043e \u043d\u0435 docm-\u0444\u0430\u0439\u043b, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e')        return False    # \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 zip-\u0430\u0440\u0445\u0438\u0432\u0430, \u043a\u0430\u043a\u043e\u0432\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f docm-\u0444\u0430\u0439\u043b    input_zip = zipfile.ZipFile(input_file)    all_content_dct = {name: input_zip.read(name) for name in input_zip.namelist()}        # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0445 xml-\u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 docx-\u0444\u0430\u0439\u043b\u0435    files2del_lst = ['vbaData.xml', 'vbaProject.bin', 'vbaProject.bin.rels']    for xml_file_as_key in list(all_content_dct.keys()):        if [file2del for file2del in files2del_lst if file2del in xml_file_as_key]:            del all_content_dct[xml_file_as_key]    for xml_file_as_key, xml_content_as_value in all_content_dct.items():        # \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 '[Content_Types].xml'        if xml_file_as_key == '[Content_Types].xml':            xml_content_as_str = xml_content_as_value.decode(encoding='utf-8')            xml_content_as_lst = re.findall(r'&lt;.+?&gt;', xml_content_as_str)            # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432            for xml_element in reversed(xml_content_as_lst):                if [el2del for el2del in (                        'vnd.ms-office.vbaProject', 'vnd.ms-word.vbaData+xml',                        ) if el2del in xml_element]:                    xml_content_as_lst.remove(xml_element)            # \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430            for i, xml_element in enumerate(xml_content_as_lst):                if 'vnd.ms-word.document.macroEnabled.main+xml' in xml_element:                    xml_element_with_repl = xml_element.replace(                        'vnd.ms-word.document.macroEnabled',                         'vnd.openxmlformats-officedocument.wordprocessingml.document'                        )                    xml_content_as_lst[i] = xml_element_with_repl            # \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432            checked_element = '&lt;Default Extension=\"emf\" ContentType=\"image\/x-emf\"\/&gt;'            if checked_element not in xml_content_as_lst:                xml_content_as_lst.insert(2, checked_element)            checked_element = ('&lt;Override PartName=\"\/word\/stylesWithEffects.xml\" '                               'ContentType=\"application\/vnd.ms-word.stylesWithEffects+xml\"\/&gt;')            if checked_element not in xml_content_as_lst:                xml_content_as_lst.insert(-1, checked_element)            all_content_dct[xml_file_as_key] = ''.join(xml_content_as_lst).encode(encoding='utf-8')        # \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 'word\/_rels\/document.xml.rels'        if xml_file_as_key == 'word\/_rels\/document.xml.rels':            xml_content_as_str = xml_content_as_value.decode(encoding='utf-8')            xml_content_as_lst = re.findall(r'&lt;.+?&gt;', xml_content_as_str)            # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430            for xml_element in reversed(xml_content_as_lst):                if 'Target=\"vbaProject.bin\"' in xml_element:                    xml_content_as_lst.remove(xml_element)            # \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432            r_id = 1            for i, xml_element in enumerate(xml_content_as_lst):                r_id_search = re.findall(r'Id=\"rId\\d\"', xml_element)                if r_id_search:                    xml_element_with_repl = xml_element.replace(r_id_search[0], f'Id=\"rId{r_id}\"')                    xml_content_as_lst[i] = xml_element_with_repl                    r_id += 1            all_content_dct[xml_file_as_key] = ''.join(xml_content_as_lst).encode(encoding='utf-8')    # \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0430\u0440\u0445\u0438\u0432\u0430 \u0432 docx-\u0444\u0430\u0439\u043b    with zipfile.ZipFile(output_file, mode='w') as conv_file:        for xml_filename, xml_content in all_content_dct.items():            conv_file.writestr(zinfo_or_arcname=xml_filename, data=xml_content, compress_type=zipfile.ZIP_DEFLATED)       if info:        print(f'\u0424\u0430\u0439\u043b \"{os.path.basename(input_file)}\" \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d \u0432 \"{os.path.basename(output_file)}\"')    return True<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 docm-\u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430, \u043c\u044b \u0432 \u0441\u0432\u043e\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c. \u0420\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443 \u043e\u043d\u0438 \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0432\u0441\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u0438\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043d\u044e, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u043b\u043e \u0437\u0430\u0434\u0430\u0447\u0443. <\/p>\n<p>Docm-\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0432 Microsoft Office 2007, Microsoft Office 2010 \u0438 Microsoft Office 2016, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 LibreOffice 7.5.3.2 \u0438 LibreOffice 26.8.0.3 (\u043d\u0443 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439). \u0412\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f python-docx, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 docx-\u0444\u0430\u0439\u043b\u044b: 1.1.2. <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e LibreOffice VBA-\u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 *.docm, \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442, \u043d\u043e \u0444\u0430\u0439\u043b \u0441 \u0442\u0430\u043a\u0438\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u0435\u0436\u0434\u044b \u043d\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0442\u0440\u0435\u0442 \u0441 \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 \u0432\u0441\u0435, \u0447\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a Microsoft, \u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043f\u043e\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u0430\u043c\u0438, \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u0431\u043b\u0435\u043a\u043b\u0438.<\/p>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043e\u043f\u0438\u043b\u043a\u0443 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0434\u043d\u0435\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0449\u0438\u0445\u0441\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u0439, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u044f\u0441\u043d\u044f\u044e\u0449\u0438\u0445 \u043a\u043e\u0434:<\/p>\n<p>1) \u041c\u043e\u0434\u0443\u043b\u044c python-docx\u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 (\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 docm \u00ab\u0447\u0438\u0441\u0442\u044b\u0439\u00bb docx \u043e\u043d \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0447\u0438\u0442\u0430\u0435\u0442, \u0445\u043e\u0442\u044f Word\u00ab\u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f\u00bb), \u0430 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 xml-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 [Content_Types].xml:<\/p>\n<pre><code class=\"xml\">&lt;Override PartName=\"\/word\/document.xml\" ContentType=\"application\/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 docm-\u0444\u0430\u0439\u043b\u0435 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"xml\">&lt;Override PartName=\"\/word\/document.xml\" ContentType=\"application\/vnd.ms-word.document.macroEnabled.main+xml\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439, \u0442\u043e \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 docx-\u0444\u0430\u0439\u043b \u043c\u043e\u0434\u0443\u043b\u0435\u043c python-docx \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>2)\u00a0\u0424\u0430\u0439\u043b \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 Microsoft Office 2007, \u0432 \u0442\u043e\u043c \u0436\u0435 [Content_Types].xml \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"xml\">&lt;Default Extension=\"emf\" ContentType=\"image\/x-emf\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c python-docx \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c docx, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u043e\u0442 \u043a\u043b\u044f\u043d\u0435\u0442\u0441\u044f \u041c\u0430\u0442\u0440\u0438\u0446\u0435\u0439, \u0447\u0442\u043e \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0430\u043a\u0440\u043e\u0441\u044b. \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u043b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u00ab\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443\u00bb:<\/p>\n<pre><code class=\"xml\">&lt;Override PartName=\"\/docProps\/thumbnail.emf\" ContentType=\"application\/octet-stream\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e 2010-\u0439 \u0438 2016 \u043e\u0444\u0438\u0441\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0443\u0435\u0442 \u0441 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c:<\/p>\n<pre><code class=\"xml\">&lt;Default Extension=\"emf\" ContentType=\"image\/x-emf\"\/&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442 \u2013 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c.<\/p>\n<p>3) \u0410\u0440\u0445\u0438\u0432 xml\u2019\u0435\u0439, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0439 Word \u0432 2007-\u043c \u0438 2016-\u043c \u00ab\u043e\u0444\u0438\u0441\u0430\u0445\u00bb \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438\u0437 \u0448\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432: settings.xml, stylesWithEffects.xml, styles.xml, theme1.xml, fontTable.xml, webSettings.xml, \u0430 \u0432\u043e\u0442 2010-\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0449\u0435 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: endnotes.xml \u0438 footnotes.xml. \u0414\u0430, \u044d\u0442\u043e \u0432\u0441\u0435 \u00ab\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043a\u0443\u0445\u043d\u044f\u00bb, \u0441\u0438\u043b\u044c\u043d\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f, \u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u2013 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442&#8230;<\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u043f\u0430\u043b\u043b\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0438 \u0435\u0449\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u0443.<\/p>\n<p>P.S. \u041d\u0435 \u0432\u0430\u0439\u0431\u043a\u043e\u0434\u0438\u043d\u0433!<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1082756\/\">https:\/\/habr.com\/ru\/articles\/1082756\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u043e\u0442 \u0431\u044b\u043b\u043e \u0443 \u0412\u0430\u0441 \u0442\u0430\u043a\u043e\u0435, \u0447\u0442\u043e \u043d\u0430 \u0432\u0445\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 Python \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443, \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Microsoft Word \u0438 COM-\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043d\u0435\u0442-\u043d\u0435\u0442 \u0434\u0430 \u0438 \u043f\u0440\u0438\u0434\u0435\u0442 \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c docm? \u0412\u0435\u0434\u044c \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c, \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Python \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f (\u0438, \u0447\u0442\u043e \u0433\u0440\u0435\u0445\u0430 \u0442\u0430\u0438\u0442\u044c, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f) \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u2013 python-docx. \u0410 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 docx-\u0444\u0430\u0439\u043b\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c Word \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u043c\u044b \u0436\u0435 \u043f\u043e\u043c\u043d\u0438\u043c \u2013 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b (\u043f\u0440\u043e\u0448\u0443 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u044c\u044e, \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2013 \u043b\u0443\u0447\u0448\u0435 \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0442\u044c). \u041c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044f \u0441 \u043d\u0438\u043c \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c GUI \u0447\u0435\u0440\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 pywinauto \u0438 pyautogui, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e: \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u2013 \u043d\u0430\u0447\u0438\u043d\u0430\u0439 \u0441\u043d\u0430\u0447\u0430\u043b\u0430\u2026 \u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443, \u043c\u0435\u0436 \u0442\u0435\u043c, \u043d\u0435\u0442 \u0434\u0435\u043b\u0430 \u0434\u043e \u043d\u0430\u0448\u0438\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439: \u0435\u0433\u043e \u0444\u0430\u0439\u043b(\u044b) \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, doc-\u0444\u0430\u0439\u043b\u044b \u0443\u0436\u0435 \u043d\u0435 \u0432 \u0445\u043e\u0434\u0443, \u0438\u043d\u0430\u0447\u0435 \u0431\u044b \u0434\u0430\u043b\u044c\u0448\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435 \u043e \u0447\u0435\u043c.\u0422\u0430\u043a \u0432\u043e\u0442, \u043f\u0430\u043c\u044f\u0442\u0443\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0438 \u0444\u043e\u0440\u043c\u0430\u0442 docx, \u0438 \u0444\u043e\u0440\u043c\u0430\u0442 docm \u2013 \u0441\u0443\u0442\u044c \u0430\u0440\u0445\u0438\u0432\u044b xml-\u0444\u0430\u0439\u043b\u043e\u0432 (\u0434\u0430, \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u043a\u0438\u0435 .rels, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043d\u0438 \u2013 \u0442\u0435 \u0436\u0435 xml\u2019\u043a\u0438), \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c: \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435? \u0412\u043e\u0442 \u043f\u0440\u044f\u043c \u0437\u0430\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u044c \u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?\u0421\u043a\u0430\u0437\u0430\u043d\u043e \u2013 \u0441\u0434\u0435\u043b\u0430\u043d\u043e! \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442:import osimport zipfileimport redef docm2docx_convert(input_file: str, output_file: str, info=False) -&gt; bool:    &#171;&#187;&#187;    \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 docm-\u0444\u0430\u0439\u043b\u0430 \u0432 docx (\u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f)        \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:        input_file: str &#8212; \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u043e\u043c\u0443 docm-\u0444\u0430\u0439\u043b\u0443        output_file: str &#8212; \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 docx-\u0444\u0430\u0439\u043b\u0443        info: bool &#8212; \u0444\u043b\u0430\u0433 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f    &#171;&#187;&#187;    if str(input_file).lower()[-4:] != &#8216;docm&#8217;:        if info:            print(f'{os.path.basename(input_file)} &#8212; \u044d\u0442\u043e \u043d\u0435 docm-\u0444\u0430\u0439\u043b, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e&#8217;)        return False    # \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 zip-\u0430\u0440\u0445\u0438\u0432\u0430, \u043a\u0430\u043a\u043e\u0432\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f docm-\u0444\u0430\u0439\u043b    input_zip = zipfile.ZipFile(input_file)    all_content_dct = {name: input_zip.read(name) for name in input_zip.namelist()}        # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0445 xml-\u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 docx-\u0444\u0430\u0439\u043b\u0435    files2del_lst = [&#8216;vbaData.xml&#8217;, &#8216;vbaProject.bin&#8217;, &#8216;vbaProject.bin.rels&#8217;]    for xml_file_as_key in list(all_content_dct.keys()):        if [file2del for file2del in files2del_lst if file2del in xml_file_as_key]:            del all_content_dct[xml_file_as_key]    for xml_file_as_key, xml_content_as_value in all_content_dct.items():        # \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 &#8216;[Content_Types].xml&#8217;        if xml_file_as_key == &#8216;[Content_Types].xml&#8217;:            xml_content_as_str = xml_content_as_value.decode(encoding=&#8217;utf-8&#8242;)            xml_content_as_lst = re.findall(r'&lt;.+?&gt;&#8217;, xml_content_as_str)            # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432            for xml_element in reversed(xml_content_as_lst):                if [el2del for el2del in (                        &#8216;vnd.ms-office.vbaProject&#8217;, &#8216;vnd.ms-word.vbaData+xml&#8217;,                        ) if el2del in xml_element]:                    xml_content_as_lst.remove(xml_element)            # \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430            for i, xml_element in enumerate(xml_content_as_lst):                if &#8216;vnd.ms-word.document.macroEnabled.main+xml&#8217; in xml_element:                    xml_element_with_repl = xml_element.replace(                        &#8216;vnd.ms-word.document.macroEnabled&#8217;,                         &#8216;vnd.openxmlformats-officedocument.wordprocessingml.document&#8217;                        )                    xml_content_as_lst[i] = xml_element_with_repl            # \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432            checked_element = &#8216;&lt;Default Extension=&#187;emf&#187; ContentType=&#187;image\/x-emf&#187;\/&gt;&#8217;            if checked_element not in xml_content_as_lst:                xml_content_as_lst.insert(2, checked_element)            checked_element = (&#8216;&lt;Override PartName=&#187;\/word\/stylesWithEffects.xml&#187; &#8216;                               &#8216;ContentType=&#187;application\/vnd.ms-word.stylesWithEffects+xml&#187;\/&gt;&#8217;)            if checked_element not in xml_content_as_lst:                xml_content_as_lst.insert(-1, checked_element)            all_content_dct[xml_file_as_key] = &#187;.join(xml_content_as_lst).encode(encoding=&#8217;utf-8&#8242;)        # \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 &#8216;word\/_rels\/document.xml.rels&#8217;        if xml_file_as_key == &#8216;word\/_rels\/document.xml.rels&#8217;:            xml_content_as_str = xml_content_as_value.decode(encoding=&#8217;utf-8&#8242;)            xml_content_as_lst = re.findall(r'&lt;.+?&gt;&#8217;, xml_content_as_str)            # \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430            for xml_element in reversed(xml_content_as_lst):                if &#8216;Target=&#187;vbaProject.bin&#187;&#8216; in xml_element:                    xml_content_as_lst.remove(xml_element)            # \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432            r_id = 1            for i, xml_element in enumerate(xml_content_as_lst):                r_id_search = re.findall(r&#8217;Id=&#187;rId\\d&#187;&#8216;, xml_element)                if r_id_search:                    xml_element_with_repl = xml_element.replace(r_id_search[0], f&#8217;Id=&#187;rId{r_id}&#187;&#8216;)                    xml_content_as_lst[i] = xml_element_with_repl                    r_id += 1            all_content_dct[xml_file_as_key] = &#187;.join(xml_content_as_lst).encode(encoding=&#8217;utf-8&#8242;)    # \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0430\u0440\u0445\u0438\u0432\u0430 \u0432 docx-\u0444\u0430\u0439\u043b    with zipfile.ZipFile(output_file, mode=&#8217;w&#8217;) as conv_file:        for xml_filename, xml_content in all_content_dct.items():            conv_file.writestr(zinfo_or_arcname=xml_filename, data=xml_content, compress_type=zipfile.ZIP_DEFLATED)       if info:        print(f&#8217;\u0424\u0430\u0439\u043b &#171;{os.path.basename(input_file)}&#187; \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d \u0432 &#171;{os.path.basename(output_file)}&#187;&#8216;)    return True\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 docm-\u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430, \u043c\u044b \u0432 \u0441\u0432\u043e\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c. \u0420\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443 \u043e\u043d\u0438 \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0432\u0441\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u0438\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043d\u044e, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u043b\u043e \u0437\u0430\u0434\u0430\u0447\u0443. Docm-\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0432 Microsoft Office 2007, Microsoft Office 2010 \u0438 Microsoft Office 2016, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 LibreOffice 7.5.3.2 \u0438 LibreOffice 26.8.0.3 (\u043d\u0443 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439). \u0412\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f python-docx, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 docx-\u0444\u0430\u0439\u043b\u044b: 1.1.2. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e LibreOffice VBA-\u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 *.docm, \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442, \u043d\u043e \u0444\u0430\u0439\u043b \u0441 \u0442\u0430\u043a\u0438\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u0435\u0436\u0434\u044b \u043d\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0442\u0440\u0435\u0442 \u0441 \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 \u0432\u0441\u0435, \u0447\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a Microsoft, \u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043f\u043e\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u0430\u043c\u0438, \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u0431\u043b\u0435\u043a\u043b\u0438.\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043e\u043f\u0438\u043b\u043a\u0443 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0434\u043d\u0435\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0449\u0438\u0445\u0441\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u0439, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u044f\u0441\u043d\u044f\u044e\u0449\u0438\u0445 \u043a\u043e\u0434:1) \u041c\u043e\u0434\u0443\u043b\u044c python-docx\u043f\u0435\u0440\u0435\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 (\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 docm \u00ab\u0447\u0438\u0441\u0442\u044b\u0439\u00bb docx \u043e\u043d \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0447\u0438\u0442\u0430\u0435\u0442, \u0445\u043e\u0442\u044f Word\u00ab\u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f\u00bb), \u0430 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 xml-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 [Content_Types].xml:&lt;Override PartName=&#187;\/word\/document.xml&#187; ContentType=&#187;application\/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml&#187;\/&gt;\u0412 docm-\u0444\u0430\u0439\u043b\u0435 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:&lt;Override PartName=&#187;\/word\/document.xml&#187; ContentType=&#187;application\/vnd.ms-word.document.macroEnabled.main+xml&#187;\/&gt;\u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439, \u0442\u043e \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 docx-\u0444\u0430\u0439\u043b \u043c\u043e\u0434\u0443\u043b\u0435\u043c python-docx \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c.2)\u00a0\u0424\u0430\u0439\u043b \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 Microsoft Office 2007, \u0432 \u0442\u043e\u043c \u0436\u0435 [Content_Types].xml \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:&lt;Default Extension=&#187;emf&#187; ContentType=&#187;image\/x-emf&#187;\/&gt;\u041c\u043e\u0434\u0443\u043b\u044c python-docx \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c docx, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u043e\u0442 \u043a\u043b\u044f\u043d\u0435\u0442\u0441\u044f \u041c\u0430\u0442\u0440\u0438\u0446\u0435\u0439, \u0447\u0442\u043e \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0430\u043a\u0440\u043e\u0441\u044b. \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u043b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u00ab\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443\u00bb:&lt;Override PartName=&#187;\/docProps\/thumbnail.emf&#187; ContentType=&#187;application\/octet-stream&#187;\/&gt;\u041d\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e 2010-\u0439 \u0438 2016 \u043e\u0444\u0438\u0441\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0443\u0435\u0442 \u0441 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c:&lt;Default Extension=&#187;emf&#187; ContentType=&#187;image\/x-emf&#187;\/&gt;\u0412 \u043e\u0431\u0449\u0435\u043c, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442 \u2013 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c.3) \u0410\u0440\u0445\u0438\u0432 xml\u2019\u0435\u0439, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0439 Word \u0432 2007-\u043c \u0438 2016-\u043c \u00ab\u043e\u0444\u0438\u0441\u0430\u0445\u00bb \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438\u0437 \u0448\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432: settings.xml, stylesWithEffects.xml, styles.xml, theme1.xml, fontTable.xml, webSettings.xml, \u0430 \u0432\u043e\u0442 2010-\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0449\u0435 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: endnotes.xml \u0438 footnotes.xml. \u0414\u0430, \u044d\u0442\u043e \u0432\u0441\u0435 \u00ab\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043a\u0443\u0445\u043d\u044f\u00bb, \u0441\u0438\u043b\u044c\u043d\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f, \u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u2013 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442&#8230;\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u043f\u0430\u043b\u043b\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0438 \u0435\u0449\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u0443.P.S. \u041d\u0435 \u0432\u0430\u0439\u0431\u043a\u043e\u0434\u0438\u043d\u0433!\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1082756\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-494809","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=494809"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494809\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}