This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| r""" | |
| Redenumeste PDF-uri tradusand denumirea lor in romana cu DeepL Web. | |
| Flux: | |
| - ia numele PDF-ului fara extensie | |
| - inlocuieste "-" si "_" cu spatii | |
| - elimina cuvintele "compress" si "FINALIZAT" | |
| - trimite textul in DeepL, cu sursa auto-detectata si tinta romana | |
| - redenumeste PDF-ul cu rezultatul din romana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| r""" | |
| Redenumeste PDF-uri tradusand denumirea lor in romana cu DeepL Web. | |
| Flux: | |
| - ia numele PDF-ului fara extensie | |
| - inlocuieste "-" si "_" cu spatii | |
| - elimina cuvintele "compress" si "FINALIZAT" | |
| - trimite textul in DeepL, cu sursa auto-detectata si tinta romana | |
| - redenumeste PDF-ul cu rezultatul din romana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import re | |
| import shutil | |
| import unicodedata | |
| from datetime import datetime | |
| from pathlib import Path | |
| SOURCE_DIR = Path(r"G:\ARHIVA\C") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| r""" | |
| Google Translate Docs automation - Chrome version. | |
| Flux: | |
| - scaneaza recursiv g:\ARHIVA\C pentru .doc/.docx | |
| - converteste .doc la .docx cu Microsoft Word | |
| - imparte documentele mai mari de 5 MB in parti _partea1, _partea2, ... | |
| - urca fiecare parte la Google Translate Docs, pe rand | |
| - asteapta 60 secunde dupa traducere, apoi descarca traducerea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FINAL Corecturi gramaticale, punctuatie, stilistice si semantic-logice de pe site-ul https://neculaifantanaru.com | |
| Corectează gramatica, ortografia și punctuația textului dat in limba romana. Precizeaza ce anume nu e corect, logic si stilistic in textul dat, conform instrucțiunilor de mai jos: | |
| 1. Respectarea fidelă a textului original: | |
| - Analizează textul pentru a corecta greșelile gramaticale, de ortografie, punctuație și structură. | |
| - Păstrează cât mai mult posibil stilul, tonul și intenția originală a autorului. | |
| 2. Intervenții minime: | |
| - Corectează doar elementele care împiedică claritatea sau respectarea normelor limbii române. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Simple Dreamweaver-like HTML/PHP editor with code + design view | |
| // NOTE: Set your project root folder here: | |
| $ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru | |
| mb_internal_encoding('UTF-8'); | |
| function norm_path($p) | |
| { | |
| $p = str_replace(["\\", ".."], ["/", ""], $p); | |
| return ltrim($p, "/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import os | |
| import re | |
| import time | |
| from collections import deque | |
| from html.parser import HTMLParser | |
| from pathlib import Path | |
| from urllib.parse import unquote, urldefrag, urljoin, urlparse | |
| from urllib.request import Request, urlopen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone generat din setarile PhotoScape: batch - font albastru senin. | |
| Citeste imaginile din INPUT_DIR si scrie JPG in OUTPUT_DIR. | |
| Setarile originale sunt embeduite in SETTINGS. | |
| Corectii importante fata de generarea anterioara: | |
| - multe valori PhotoScape la 100 sunt valori de lucru/neutre pentru acel control, | |
| nu comenzi de colorare agresiva; | |
| - in Curves se aplica doar curba RGB/master, fiindca in PhotoScape canalele | |
| Red/Green/Blue nu sunt bifate in presetul de referinta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone generat din setarile PhotoScape: batch - font albastru senin. | |
| Citeste imaginile din INPUT_DIR si scrie JPG in OUTPUT_DIR. | |
| Setarile originale sunt embeduite in SETTINGS. | |
| Corectii importante fata de generarea anterioara: | |
| - multe valori PhotoScape la 100 sunt valori de lucru/neutre pentru acel control, | |
| nu comenzi de colorare agresiva; | |
| - in Curves se aplica doar curba RGB/master, fiindca in PhotoScape canalele | |
| Red/Green/Blue nu sunt bifate in presetul de referinta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script standalone "Inchis" - face textul gri / slab contrast mai NEGRU. | |
| Pipeline minimalist (fara CLAHE/unsharp -> fara umbre/halouri): | |
| 1. Median 3x3 - praf fin | |
| 2. LEVELS Photoshop: BP=80, WP=240, gamma=0.65 | |
| -> bg >240 devine alb pur, text gri (100) -> dark (~12) | |
| PASTREAZA anti-aliasing (italice, serife) - NU binarizeaza. | |
| """ | |
| import cv2 |
NewerOlder