ב אֵין בּוֹנִים בֵּית הַכְּנֶסֶת אֶלָּא בְּגָבְהָהּ שֶׁל עִיר, וּמַגְבִּיהִין אוֹתוֹ עַד שֶׁיִּהְיֶה גָּבוֹהַּ מִכָּל בָּתֵּי הָעִיר שֶׁמִּשְׁתַּמְּשִׁים בָּהֶם, לַאֲפוּקֵי בִּירָנִיּוֹת (פֵּרוּשׁ בִּנְיָנִים הָעֲשׂוּיִם לְנוֹי תַּרְגּוּם שְׂכִיּוֹת הַחֶמְדָּה בִּירָנִיּוֹת שַׁפִּירָן) וּמִגְדָּלִים שֶׁאֵין מִשְׁתַּמְּשִׁים בָּהֶם; וְגַג שֶׁהוּא מְשֻׁפָּע וְאֵינוֹ רָאוּי לְתַשְׁמִישׁ, מְשַׁעֲרִין עַד הַמָּקוֹם שֶׁהוּא רָאוּי לְתַשְׁמִישׁ, דְּהַיְנוּ שֶׁאִם יֵשׁ עֲלִיָּה תַּחַת הַגַּג לֹא תְּהֵא גָּבוֹהַּ יוֹתֵר מִבֵּית הַכְּנֶסֶת. הַגָּה: וּבִשְׁעַת הַדַּחַק, אוֹ שֶׁיֵּשׁ מִצְוַת מַלְכוּת שֶׁאֵינָן רַשָּׁאִים לִבְנוֹת בֵּית הַכְּנֶסֶת כְּדִינוֹ, מֻתָּר לְהִתְפַּלֵּל בְּבַיִת אַף עַל פִּי שֶׁדָּרִין בַּעֲלִיָּה עַל גַּבָּיו, וּבִלְבַד שֶׁיִּנְהֲגוּ בָּעֲלִיָּה שֶׁעָלָיו בִּנְקִיּוּת, כְּמוֹ שֶׁיִּתְבָּאֵר סוֹף סִימָן קנ"א. (בֵּית יוֹסֵף סִימָן קנ"ד בְּשֵׁם מַהֲרִ"י בֶּן חָבִיב).
2 When we build a synagogue, it should only be at the height of the [rest of the] city, and we heighten it until it is taller than the buildings of all [other] buildings that are in use up to [but not including] the ends of the spires(i.e., structures used for ornamental purposes; Targum [Yonatan] for delightful imagery (Isaiah 2:16): decorative spires) and towers that are not used. A slanted roof that is not usable: we measure it from the part that is fit to usable, that is, if there is an attic under the roof, it should not be higher than the synagogue. Rema: In an extenuating circumstance, or if there is fear of the [secular] regime that doesn't give permission to build a synagogue according to its [i.e. Jewish] law, then it is permitted to pray in a house, even though someone lives in the attic above it, as long as those living in the attic above it keep it clean, as will be explained at the end of siman 151 (Beit Yosef - siman 154 in the name of Mahari b. Chaviv).