"And you shall write them" – that it shall be a perfect writing (complete according to its law, Rashi), that one should not write alephin as ayinin or ayinin as alephin, betin as kaphin or kaphin as betin, gamin as tzadin or tzadin as gamin, daltin as rishin or rishin as daltin, hehin as chetin or chetin as hehin, vavin as yodin or yodin as vavin, zayinim as nunin or nunin as zayinim, tetin as pephin or pephin as tetin, bent letters as straight ones or straight ones as bent ones, memin as samekhin or samekhin as memin, closed letters as open ones or open ones as closed ones. An open parasha – he shall not make it closed; a closed one – he shall not make it open. If he wrote it as a shira (with gaps of a large brick and a small brick), or if he wrote the shira like it (without gaps etc.), or if he wrote not with ink, or if he wrote the Names of God in gold – behold, these must be sequestered; see there. And one must be careful with the formation of the letters and their crowns, as has been explained at length in Orach Chaim siman 32 and siman 36. And it has already been explained in siman 273 that regarding the lack of tagin, even on the letters shaatnez getz, it is not disqualified. The Rosh disqualifies, but we hold like the Rambam that it does not disqualify (and so wrote the Taz, subsection 5). And so too the dots that are above the letters in the place where they are needed, if he omitted them – it is not disqualified, but rather he must make them.
וכתבתם – שתהא כתיבה תמה (שלם כהלכתה רש"י), שלא יכתוב אלפין עיינין עיינין אלפין, ביתין כפין כפין ביתין, גמין צדין צדין גמין, דלתין רישין רישין דלתין, היהין חיתין חיתין היהין, ווין יודין יודין ווין, זיינין נונין נונין זיינין, טיתין פיפין פיפין טיתין, כפופין פשוטין פשוטין כפופין, מימין סמכין סמכין מימין, סתומין פתוחים פתוחים סתומים. פרשה פתוחה – לא יעשנה סתומה, סתומה – לא יעשנה פתוחה. כתבה כשירה (בדילוגין אריח ולבינה), או שכתב את השירה כיוצא בה (שלא בדילוגין וכו'), או שכתב שלא בדיו, או שכתב את האזכרות בזהב – הרי אלו יגנוזו, עיין שם. וצריך ליזהר בתיקון האותיות ובזיונן, כמו שנתבאר באורך באורח חיים סימן ל"ב וסימן ל"ו (ערוך השולחן אורח חיים לו). וכבר נתבאר בסימן רע"ג דבחוסר תגין, אף בשעטנ"ז ג"ץ אינו נפסל. והרא"ש פוסל, וקיימא לן כהרמב"ם שאינו פוסל (וכן כתב הט"ז סעיף קטן ה). וכן הנקודות שעל האותיות במקום שצריך, אם חיסרן – אינו פסול, אלא שצריך לעשותן.