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
| FINAL Corecturi gramaticale, punctuatie, stilistice si semantic-logice de pe site-ul https://neculaifantanaru.com | |
| Repararea trecutului necesită dedicare față de propriile acțiuni și alegeri, pentru a întoarce roata destinului spre bine. | |
| aici am doua scopuri: repararea trecutului, si intoarcerea rostii spre bine. Dar nu vad nicio dependenta intre ele, nicio legatura. Mai bine asa ceva: | |
| Roata destinului se poate intoarce doar prin repararea trecutului cu ajutorul alegerilor intelepte. | |
| Da, noua formulare este mai coerentă logic, deoarece stabilește o relație de condiționare între cele două idei: repararea trecutului devine mijlocul prin care destinul poate fi îndreptat spre bine. |
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
| # -*- coding: utf-8 -*- | |
| r""" | |
| caz-nou.py - clauze noi peste compara_taguri.py | |
| ================================================== | |
| Ce face | |
| ------- | |
| Refoloseste alinierea globala din compara_taguri.py (programare dinamica, cost minim pe tot | |
| articolul) si ADAUGA la costul unei perechi RO-EN noua clauze care privesc ALFABETUL, LIMBA, | |
| NUMERELE, LINK-URILE, NUMELE PROPRII si "GUNOIUL" inserat in text. Pe langa cost, fiecare tag |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Teste pentru compara_taguri.py | |
| python test_compara_taguri.py | |
| Testele acopera: | |
| 1. exemplul mic din "1. Specificatii.txt" (9 taguri RO vs 6 taguri EN) | |
| 2. fisierele model din repo (atrageti-clientii-ca-un-magnet.html vs | |
| do-you-attract-clients-like-a-magnet.html) -> 5.C, 11.B, 17.B |
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
| # -*- coding: utf-8 -*- | |
| r""" | |
| Compara direct cele doua fisiere model (RO si EN) din folderul PROBLEMA si afiseaza | |
| tagurile RO care nu au corespondent in EN. | |
| python test_2_html.py | |
| Rezultatul asteptat (din specificatii): | |
| Tag-uri in RO: {'A': 2, 'B': 6, 'C': 9} | |
| Tag-uri in EN: {'A': 2, 'B': 4, 'C': 8} |
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 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| compara_taguri.py | |
| ================= | |
| Gaseste tagurile <p> din fisierul RO care NU au corespondent in fisierul EN | |
| (si invers), intre <!-- ARTICOL START --> si <!-- ARTICOL FINAL -->. | |
| Identificatori per tag (conform specificatiilor): |
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
| Da. Tactica, în forma completă și clarificată din toate exemplele de până acum, poate fi definită astfel: | |
| # Tactica „Înlocuire CITAT” | |
| Tactica „Înlocuire CITAT” este o metodă de introducere a unui citat prin care se evită formulele directe, repetitive și previzibile de tipul: | |
| „X a spus...” | |
| „X a afirmat...” | |
| „X a declarat...” | |
| „X a rostit...” |
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
| Am acest tag: | |
| <p class="text_obisnuit">Dacă mă gândesc la filmul “ <em>Marea evadare (1963)</em> ” consider că dintre toți evadații, MacDonald, a fost veriga cea mai slabă. Chiar dacă s-a priceput să-i instruiască foarte bine pe oameni, el a fost singurul care la “proba practică” a picat. El a picat testul desăvârșirii sale !</p> | |
| fa-mi un regex pentru notepad++ care sa replace orice (spatiu)“(spatiu) cu (spatiu)“ doar in tagurile de tipul: <p class="text_obisnuit">.*</p> sau <p class="text_obisnuit2">.*</p> | |
| Pentru a elimina spațiul de după ghilimelele de deschidere tip „roată” (“ ) doar în interiorul paragrafelor menționate, poți folosi funcționalitatea de căutare RegEx din Notepad++ bazată pe operatorul \G (care continuă potrivirea de la ultima înlocuire). | |
| Iată expresiile pe care trebuie să le introduci în fereastra Replace (Ctrl + H): | |
| • Find what: (?:\G|^<p class="text_obisnuit2?">).*?\K“\s+ | |
| • Replace with: “ |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Converteste un fisier text din ANSI (Windows-1252 / Windows-1250 / ISO-8859-x) | |
| in UTF-8, pastrand diacriticele si caracterele speciale. | |
| De ce apar xAD, xFC, x96 in Notepad++: | |
| Fisierul este salvat intr-o codificare pe un octet (ANSI), dar este citit | |
| ca UTF-8. Octetii care nu formeaza o secventa UTF-8 valida sunt afisati | |
| bruti, in hexazecimal. Exemple din fisierul tau: | |
| 0xFC -> u (Munchhausen) |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Descarca toata arhiva revistei xd3 (PDF) de pe | |
| https://www.xd3.ro/arhiva-revistei-in-pdf/ in folderul G:\\xd3. | |
| Cum functioneaza: | |
| Pagina de arhiva are 51 de linkuri catre Dropbox. Butonul "Download" din | |
| interfata Dropbox nu poate fi apasat de un script, iar vechiul truc cu | |
| "?dl=1" nu mai merge: Dropbox raspunde cu o pagina HTML, nu cu PDF-ul. |
NewerOlder