forked from Sivan22/pdf-missing-encoding-fixer-heb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (50 loc) · 3.25 KB
/
Copy pathindex.html
File metadata and controls
54 lines (50 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<html lang="he" dir="rtl">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>תיקון מיפוי גופנים ב‑PDF — Hebrew PDF Text Fixer</title>
<style>
:root { color-scheme: light dark; }
body { font-family: system-ui, "Segoe UI", Arial, sans-serif; max-width: 720px;
margin: 0 auto; padding: 2rem 1.25rem; line-height: 1.6; }
h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.sub { opacity: .7; margin-top: 0; font-size: .95rem; }
#drop { border: 2px dashed currentColor; border-radius: 12px; padding: 2.5rem 1rem;
text-align: center; opacity: .8; margin: 1.5rem 0; }
#drop.over { opacity: 1; background: rgba(127,127,127,.12); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
button { border: 1px solid currentColor; border-radius: 8px; padding: .55rem 1rem;
background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 600; }
button.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
#log { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: .85rem;
background: rgba(127,127,127,.1); border-radius: 8px; padding: 1rem; min-height: 3rem; }
a.dl { display: inline-block; margin-top: 1rem; padding: .6rem 1.2rem; border-radius: 8px;
background: #2563eb; color: #fff; text-decoration: none; font-weight: 600; }
.muted { opacity: .65; font-size: .85rem; }
progress { width: 100%; }
</style>
</head>
<body>
<h1>תיקון מיפוי גופנים ב‑PDF</h1>
<p class="sub">העלו קובץ PDF עברי שהטקסט בו יוצא משובש בהעתקה או בחיפוש (גופן ישן שאיבד את
מיפוי התווים), וקבלו בחזרה קובץ זהה לחלוטין למראית עין — אך עם טקסט עברי תקין,
ניתן לחיפוש ולהעתקה. הגופנים והעמודים המקוריים נשמרים כפי שהם; רק המיפוי מתוקן.</p>
<div id="drop">גררו לכאן קובץ PDF, כמה קבצי PDF, או תיקייה שלמה
<div class="actions">
<button id="pick-file" class="primary" type="button">בחירת קבצים</button>
<button id="pick-folder" type="button">בחירת תיקייה</button>
</div>
<input id="file" type="file" accept="application/pdf" multiple hidden />
<input id="folder" type="file" accept="application/pdf" multiple hidden />
</div>
<progress id="bar" max="100" value="0" hidden></progress>
<div id="log">הכל מתבצע במחשב שלכם בלבד — שום קובץ לא נשלח לשרת.</div>
<div id="out"></div>
<p class="muted" dir="ltr">All processing runs locally in your browser (mupdf‑wasm). Nothing is uploaded.
Repairs the character→Unicode mapping of legacy Hebrew fonts in place — the original
page graphics are untouched, so the file looks identical but its text becomes correct.</p>
<script type="module" src="/src/main.ts"></script>
</body>
</html>