ד כָּל מְלָאכָה שֶׁחַיָּבִין עָלֶיהָ בְּשַׁבָּת אִם עָשָׂה אוֹתָהּ בְּיוֹם טוֹב שֶׁלֹּא לְצֹרֶךְ אֲכִילָה לוֹקֶה חוּץ מִן הַהוֹצָאָה מֵרְשׁוּת לִרְשׁוּת וְהַהַבְעָרָה שֶׁמִּתּוֹךְ שֶׁהֻתְּרָה הוֹצָאָה בְּיוֹם טוֹב לְצֹרֶךְ אֲכִילָה הֻתְּרָה שֶׁלֹּא לְצֹרֶךְ אֲכִילָה. לְפִיכָךְ מֻתָּר בְּיוֹם טוֹב לְהוֹצִיא קָטָן אוֹ סֵפֶר תּוֹרָה אוֹ מַפְתֵּחַ וְכַיּוֹצֵא בְּאֵלּוּ מֵרְשׁוּת לִרְשׁוּת. וְכֵן מֻתָּר לְהַבְעִיר אַף עַל פִּי שֶׁאֵינוֹ לְצֹרֶךְ אֲכִילָה. וּשְׁאָר מְלָאכוֹת כָּל שֶׁיֵּשׁ בּוֹ צֹרֶךְ אֲכִילָה מֻתָּר כְּגוֹן שְׁחִיטָה וַאֲפִיָּה וְלִישָׁה וְכַיּוֹצֵא בָּהֶן. וְכָל שֶׁאֵין בָּהֶן צֹרֶךְ אֲכִילָה אָסוּר כְּגוֹן כְּתִיבָה וַאֲרִיגָה וּבִנְיָן וְכַיּוֹצֵא בָּהֶן:
4 Any act that is culpable on the Sabbath is punishable with lashing if it is committed on a holyday and not for the purpose of food. This does not include the prohibition against conveying objects from one domain to another, and the prohibition against starting a fire on the Sabbath. Since the transfer of objects from one domain to another has been made permissible for the purpose of preparing food, it has been made permissible even for purposes other than food preparation.— — So too, it is permissible to start a fire on a holyday even when it is not needed for the preparation of food. Other acts, however, are permissible on a holyday only when they are needed for the preparation of food; for example: slaughtering, baking, kneading, and the like. Therefore it is permitted on a holiday to bring out a child or a Torah scroll or a key, and that which is similar to these from domain to domain. --- And all things [the purpose] of which are not the sake of eating are forbidden, such as writing, and weaving, and building and that which is similar to them.