Pregnant and nursing women fast and complete the fast on Tisha B'Av, in the same manner that they fast and complete the fast on Yom Kippur. However, on the other three fasts, they are exempt from fasting, and all the more so on Ta'anit Esther, and they should not be stringent upon themselves. Nevertheless, it is proper that they should not eat to indulge in food and drink, but only as much as is necessary for the sustenance of the fetus; and so too anyone who is unable to fast. And even on Tisha B'Av, if they are weak such that they are close to falling into illness, even without danger, they are not to fast. And this is the difference between Tisha B'Av and Yom Kippur: for on Yom Kippur one may not eat except in a case of danger, but on Tisha B'Av, even in a case without danger, for in a case of illness the Rabbis did not decree. Therefore the Tur wrote in the name of the Ramban, and so too our teacher, the Beit Yosef, in siman 554 section 6, that a woman after childbirth throughout thirty days, and likewise a sick person who needs to eat, do not require an assessment, but rather one feeds them immediately, for in a case of illness the Rabbis did not decree; thus far his words. And even if it is an illness where one is not bedridden—for if one is bedridden, even on Yom Kippur one does not fast, as anyone who is bedridden is in danger, as is proven in Shabbat (32a), see there, and it will be explained in siman 618 with the help of Heaven. But those with mere aches fast. The general rule of the matter: anyone who is in the category of a sick person does not fast on Tisha B'Av, and anyone who is not in the category of a sick person fasts. And ordinary pregnant and nursing women fast, unless they are weak and close to illness. And minors do not fast at all on Tisha B'Av, even a fast of hours. And one who was lacking mental competence and was healed, and is improving from day to day, should not fast on Tisha B'Av, and should not withhold from himself meat and wine (Magen Avraham, subsection 8, in the name of the Maharil) until he is completely healed, for the fast would return him to his lack of competence, and likewise the withholding of meat and wine, and anything he needs even from the other afflictions, such as washing, anointing, and wearing leather shoes, for he requires much guarding. (Less than the halachic measure is not applicable to Tisha B'Av, as it is midrabbanan.)
עוברות ומניקות – מתענות ומשלימות בתשעה באב, כדרך שמתענות ומשלימות ביום הכיפורים. אבל בשלושה צומות אחרות – פטורות מלהתענות, וכל שכן בתענית אסתר, ולא יחמירו על עצמן. ואף על פי כן ראוי שלא יאכלו להתענג במאכל ומשתה, אלא כדי קיום הולד; וכן כל מי שאינו יכול להתענות. ואפילו בתשעה באב, אם הן חלושות שקרוב שיפלו לחולי, אף בלא סכנה – אין להן להתענות. וזה הוא ההפרש בין תשעה באב ליום הכיפורים, דביום הכיפורים אין לאכול רק במקום סכנה, ובתשעה באב – אפילו שלא במקום סכנה, דבמקום חולי לא גזרו רבנן. ולכן כתב הטור בשם הרמב"ן, וכן רבינו הבית יוסף בסימן תקנד סעיף ו, דחיה כל שלושים יום, וכן חולה שהוא צריך לאכול – אין צריך אומד, אלא מאכילין אותו מיד, דבמקום חולי לא גזרו רבנן; עד כאן לשונו. ואפילו הוא חולי שאינו מוטל במטה - דאלו מוטל במטה גם ביום הכיפורים אינו מתענה, דכל שמוטל במטה הוא בסכנה, כדמוכח בשבת (לב א), עיין שם, ויתבאר בסימן תריח בסייעתא דשמיא. אבל בעלי מיחושים בעלמא – מתענים. כללו של דבר: כל שהוא בגדר חולה – אינו מתענה בתשעה באב, וכל שאינו בגדר חולה – מתענה. וסתם עוברות ומיניקות – מתענות, אלא אם כן חלושות, וקרובות לחולי. וקטנים – אינם מתענים כלל בתשעה באב, אפילו תענית שעות. ומי שהיה חסר דיעה ונתרפא, ומשתבח מיום ליום – לא יתענה בתשעה באב, ולא ימנע את עצמו מבשר ויין (מגן אברהם סעיף קטן ח, בשם מהרי"ל) עד שיתרפא לגמרי, דהתענית ישיבנו לחסרון דעתו, וכן מניעת בשר ויין, וכל מה שצריך אפילו משארי עינויים, כמו רחיצה וסיכה, ונעילת הסנדל, כי צריך הרבה שמירה. (פחות מכשיעור לא שייך בתשעה באב, שהוא מדרבנן.)