שולחן ערוך, יורה דעה ת׳

Shulchan Arukh, Yoreh De'ah 400

דיני אבלות בשבת. ובו ב' סעיפים:
שבת אינו מפסיק אבלות ועולה למנין שבעה שהרי קצת דיני אבלות נוהגים בו דהיינו דברים שבצינעא שהם תשמיש המטה ורחיצה אבל דברים שבפרהסיא (לא) דהיינו להסיר עטיפתו (ודוקא כשהוא מעוטף עטיפות ישמעאלים כמו שנתבאר לעיל סימן שפ"ו אבל קצת עטיפה שנוהגים בקצת מקומות כל ל' אין צריך להסיר בשבת הואיל ויש לו מנעלים ברגליו) (מהרי"ו סימן ה') וללבוש מנעליו ולזקוף המטה מכפייתה ושלא ללבוש בגד קרוע אלא מחליפו ואם אין לו להחליף מחזיר קרעו לאחריו ות"ת הוי דבר שבצינעא אבל לחזור הפרשה כיון שחייב אדם להשלים פרשיותיו עם הצבור הוי כקורא את שמע ומותר ואם קראו את האבל לעלות לתורה צריך לעלות שאם היה נמנע היה דבר של פרהסי' ורבינו תם היו קורים אותו בכל פעם שלישי ואירע בו אבלות ולא קראו החזן ועלה הוא מעצמו ואמר כיון שהורגל לקרותו שלישי בכל שבת הרואה שאינו עולה אומר שבשביל אבלות הוא נמנע והוי דברים של פרהסיא. (וכן אם הכהן אבל ואין כהן אחר בב"ה מותר לקרותו אבל בענין אחר אסור) (הגהות מיימוני פ"ג מה"א) :
The Sabbath does not interrupt the mourning and enters into the counting of the seven [days], for some of the laws of mourning are observed therein, viz., matters of privacy, as the use of the conjugal couch and bathing, but matters that affect public mourning [one does] not [observe]. [Hence, he should] remove the mourner's wrapping, and [this applies] only if he [the mourner] is wrapped up in a covering of Ishmaelites as was explained supra § 386, but [if] only [wrapped in] part of a covering, which is the practice in some localities for the entire thirty [days], he is not required to remove [it] on the Sabbath, since he has shoes on his feet; and [he must] put on his shoes and put up the couch from its overturned [position], and he should not wear a rent garment, but changes it; and if he has no [garment] to change [into], he turns the rent side [of his garment front] to back. [With respect to] the study of Torah, it is [regarded] as a matter pertaining to private [mourning]. However, to review the [weekly Biblical] portion, — [the law is that] since a person is dutibound to complete [the weekly Biblical] portion with the Congregation, he is [regarded] as one who reads the Shema, and is permitted. If the mourner was called to the reading of the Torah, he is required to go up, for should he refrain [from so doing], it would be [regarded as] a matter of public [mourning, which is forbidden on the Sabbath]. R.Tam would always be called [to the reading of the Torah on the Sabbath as] third, and [when] mourning [once] befell him and the Hazzan did not call him [as usual], he went up of his own accord and stated [that since] he was accustomed to be called as third on every Sabbath, one who notices that he does not go up [now] will say that on account of mourning he refrained [from going up] and [consequently], this would be regarded as a matter pertaining to public mourning [which is forbidden on the Sabbath]. Likewise, if the Kohen is a mourner, and there is no other Kohen in the Synagogue, it is permissible to call him [to the reading of the Torah], but otherwise it is forbidden.
גררתו חיה או הרגוהו לסטים ובשבת נתייאש מלבקש כיון דדברים שבצינעא נוהג בשבת עולה לו ליום אחד: הגה אם פגע יום ל' של אבלות בשבת ויום כ"ט בערב שבת מותר לו לרחוץ בערב שבת אף במקומות שנוהגים שלא לרחוץ כל ל' דהואיל ומדינא שרי לאחר שבעה אלא שנהגו להחמיר כל ל' בכהאי גוונא שרי משום כבוד שבת (הגהות מיימוני בשם מהר"ם פ"י ופ"ו די"ט) וה"ה כל כיוצא בזה כגון לחזור אל מקומו בליל שבת וללבוש בגדי שבת דהא נמי אינו אלא מנהג בעלמא (כן נראה מדברי מהר"ש) כמו שנתבאר לעיל סי' שפ"ט וש"צ ואע"פ שיש לחלק בין רחיצה שאסורה בשבת ובין דברים אלו שאפשר לו לעשות בשבת מ"מ אין נ"ל לחלק בכך :
If a beast dragged him away or [there is a rumour that] robbers have murdered him, and on the Sabbath the search [for him] was given up, — [the law is that] since he observes matters pertaining to private [mourning] on the Sabbath, it enters into [the counting] of one day [of the seven days of mourning]. Gloss: If the thirtieth day of mourning fell on the Sabbath and the twenty-ninth day on the eve of the Sabbath, he is permitted to bathe on the eve of the Sabbath, even in localities where it is customary not to bathe for the entire thirty [days], for since legally [bathing] is permissible after the seven [days], only that [people] have adopted a stringent view for the entire thirty [days], — in a case such as this, it is permissible out of respect to the Sabbath. And likewise, anything similar to this, e.g., [it is permissible for him] to return to his [customary] place in the Synagogue on the Sabbath night and to wear Sabbath garments, for this too, is merely a custom as has been explained supra § 389 and § 390; and although a distinction may be drawn between bathing, which is forbidden on the Sabbath and these [aforementioned] matters which it is possible for him to do on the Sabbath, yet, it does not seem to me [that there is a need for] making such a distinction.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 2 se'ifim