יד בית, כלומר חדר, שיש בו ספר תורה – לא ישמש בו מיטתו עד שיוציאנו מהחדר. ואם אין לו מקום אחר להוציאו – יעשה לפניו מחיצה עשרה טפחים בגובה, לכל משך ספר התורה עם הארון, באופן שהמחיצה תהיה בולט מצדדי הארון. ואף על פי שבתפילין מותר כשישימם כלי תוך כלי, כמבואר באורח חיים סימן מ, וכן בשאר כתבי הקודש, מכל מקום בתורה מפני גודל קדושתה וחיוב כבודה – לא הותרה באופן זה רק על ידי מחיצה קיימת לשעתה. ולא לתלות וילון או סדין בפניה, אלא אם כן קושר קצוות הסדין באיזה דבר. ואם לאו – הרי זה כמחיצה הניטלת ברוח, ואינה מחיצה. וכן מחיצה שיש בה נקבים גדולים כמו חלונות – לא הוי מחיצה (עיין מגן אברהם באורח חיים סימן ר"מ (שולחן ערוך אורח חיים רמ) סעיף קטן ט"ו). והרמב"ם בפרק עשירי דין ז (רמב"ם הלכות תפילין ומזוזה וספר תורה י) מתיר גם בספר תורה בכלי תוך כלי, והכלי שני אינו כליו של הספר תורה כפי הדינים שנתבארו באורח חיים סימן מ. ולכן אם פירש טליתו על הארגז שמונח בו – חשיב ככלי תוך כלי. וכל הראשונים חלקו עליו, וסבירא להו דלא הותר זה רק בתפילין וחומשים ושארי כתבי קודש, ולא בספר תורה. והלכה כרבים. (עיין פתחי תשובה סעיף קטן י"ב, שהביא בשם החו"י להתיר בליל טבילה בחדר שיש בו ספרים, עיין שם. [ו]צריך עיון גדול, ולעניות דעתי אין להתיר, ובהכרח לכסות עליהם שני כיסויין. ואם עומדין בדפין אצל הכותל בלי ארגז – יכסם גם כן בשני כיסויין, או כיסוי ארוך עשרה טפחים שהיא אפשר כמחיצה לעניין ספרים. וזה שהספרים עומדים למעלה מעשרה – לא מהני. וגם מה שכתב בסעיף קטן ט בשם הפמ"א, דבחדר הפתוח לבית שיש בו ספר תורה או ספרים אסור לשמש מטתו, עיין שם – גם כן דברים תמוהים הם, כיון שהוא חדר בפני עצמו. ודייק ותמצא קל.)
14 A room that has a Torah scroll in it—one may not use one's bed there until removing it from the room. If there is no other place to remove it—make a partition ten handbreadths high before it, for the entire length of the Torah scroll with the Ark, so the partition protrudes from the Ark's sides. Even though with tefillin it is permitted when placed in a vessel within a vessel, as explained in Orach Chaim 40, and similarly with other sacred writings, nevertheless with a Torah scroll, because of its great sanctity and the obligation to honor it, this was not permitted except through a permanent partition for that time. Not to hang a curtain or sheet before it, unless tying the sheet's edges to something. If not, it is like a partition that can be blown by wind, and is not a partition. Similarly, a partition with large holes like windows is not a partition (see Magen Avraham in Orach Chaim 240). The Rambam in chapter 10, law 7, permits even for a Torah scroll with a vessel within a vessel, and the second vessel is not the Torah scroll's vessel according to the laws explained in Orach Chaim 40. Therefore, if one spread one's tallit over the chest in which it is placed, it is considered vessel within vessel. All the Rishonim disagreed with him, and hold that this was only permitted for tefillin, chumashim, and other sacred writings, but not for a Torah scroll. The law follows the majority. (See Pitchei Teshuva citing Chavot Yair permitting on the night of immersion in a room with books, see there. This requires great study, and in my humble opinion should not be permitted, and it is necessary to cover them with two coverings. If standing on shelves against the wall without a chest, cover them also with two coverings, or a covering ten handbreadths long which is perhaps like a partition regarding books. That the books stand above ten handbreadths does not help. Also what is written there citing Peri Megadim, that in a room open to a house containing a Torah scroll or books it is forbidden to use one's bed, see there—these too are puzzling words, since it is a separate room. Examine carefully and you will find it easy.)