This file contains 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
# OCR PDF file | |
ocrmypdf -l ces input.pdf output.pdf | |
# -l => language: -l eng+deu, -l ces | |
# --sidecar => Generate text files that contain the same text recognized by OCR | |
# --title TITLE => Set document title (place multiple words in quotes) | |
# --author AUTHOR => Set document author | |
# --subject SUBJECT => Set document subject description | |
# --keywords KEYWORDS => Set document keywords |
This file contains 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
// JavaScript | |
document.getElementsByTagName("html")[0].webkitRequestFullScreen(); | |
// document.getElementsByTagName("html")[0].requestFullscreen(); | |
// document.getElementsByTagName("html")[0].msRequestFullscreen(); |
This file contains 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 | |
// example code | |
setlocale(LC_CTYPE, 'cs_CZ'); | |
$str = "Běloučký kůň úpěl ďábelské ódy $ ' 1234"; | |
preg_replace('/(?<=-)-+/', '', // Replace all duplicase hyphens with one only | |
preg_replace( '/[^-a-z0-9]/', '', // Strip all non-alfanumeric characters or hyphens |
OlderNewer