הוספת מילון ארמי - עברי
-
@צדיק-וטוב-לו @י.-פל.
יש בתיקיית ההתקנה של תורת אמת (ToratEmetInstall) תיקייה בשם Dictionaries ובתוכה קובץ בשם FinalDictionary.txt.import json from collections import defaultdict from pathlib import Path dict_source = { 0: "מילון שיח ישראל", 1: "מילון פשיטא", 2: "מושגים ואישים", 3: "מפירוש אונקלוס על התורה" } dict_all = defaultdict(list) dict_path = Path(r"C:\Users\User\Documents\ToratEmetInstall\Dictionaries\FinalDictionary.txt") output_path = Path("Dictionary.json") with dict_path.open("r", encoding="windows-1255") as f: content = f.read() lines = content.split("\n") for line in lines: line = line.strip() if not line: continue if not line[0].isdigit(): continue source = dict_source[int(line[0])] key, value = line[1:].strip().split("=", maxsplit=1) dict_all[source].append({key: value}) with output_path.open("w", encoding="utf-8") as f: json.dump(dict_all, f, indent=2, ensure_ascii=False)משום מה קובץ json הוא לא אחד מסוגי הקבצים שניתן להעלות לפורום.[Dictionary.json](פורמט קובץ לא תקין. הפורמטים המורשים הם: .png, .jpg, .bmp, .txt, .webp, .webm, .mp4, .gif, .bat, .pdf, .xlsx, .xls, .docx, .doc, .jpeg)

@ע-ה-דכו-ע -
@צדיק-וטוב-לו @י.-פל.
יש בתיקיית ההתקנה של תורת אמת (ToratEmetInstall) תיקייה בשם Dictionaries ובתוכה קובץ בשם FinalDictionary.txt.import json from collections import defaultdict from pathlib import Path dict_source = { 0: "מילון שיח ישראל", 1: "מילון פשיטא", 2: "מושגים ואישים", 3: "מפירוש אונקלוס על התורה" } dict_all = defaultdict(list) dict_path = Path(r"C:\Users\User\Documents\ToratEmetInstall\Dictionaries\FinalDictionary.txt") output_path = Path("Dictionary.json") with dict_path.open("r", encoding="windows-1255") as f: content = f.read() lines = content.split("\n") for line in lines: line = line.strip() if not line: continue if not line[0].isdigit(): continue source = dict_source[int(line[0])] key, value = line[1:].strip().split("=", maxsplit=1) dict_all[source].append({key: value}) with output_path.open("w", encoding="utf-8") as f: json.dump(dict_all, f, indent=2, ensure_ascii=False)משום מה קובץ json הוא לא אחד מסוגי הקבצים שניתן להעלות לפורום.[Dictionary.json](פורמט קובץ לא תקין. הפורמטים המורשים הם: .png, .jpg, .bmp, .txt, .webp, .webm, .mp4, .gif, .bat, .pdf, .xlsx, .xls, .docx, .doc, .jpeg)

@ע-ה-דכו-ע@האדם-החושב תשנה לזה סיומת, ותעלה.
-
-
@האדם-החושב יש לך רעיון איך לשלב את זה בתוכנה?
-
@האדם-החושב יש לך רעיון איך לשלב את זה בתוכנה?
@הבל-הבלים כלומר?
-
איך לשלב את המילון בתוכנה? מבחינת המשתמש, איפה הוא יראה את זה?
-
בכלים ובתפריט ימני של בחירת טקסט

